Develop
Repository layout
lucid-writer/
├── skills/lucid-writer/ # the skill: SKILL.md, references/, assets/, scripts/
├── agents/ # Claude Code review subagents (lucid-*.md)
├── .codex/agents/ # Codex twins of the subagents (lucid_*.toml)
├── network/conventions/lucid-writer/ # Mycelium convention pack
├── .claude-plugin/ # plugin.json, marketplace.json
├── .codex-plugin/plugin.json
├── plugin.json # portable manifest
├── pyproject.toml, lucid_writer/ # packaging shim for acumen
├── bench/ # acumen benchmark
├── evals/ # cases, rubric, case studies
├── docs/ # architecture, methodology, subagents
├── site/ # this website
└── scripts/ # installers, validate_repo.py
Validation
python3 scripts/validate_repo.pyThis checks, among other things:
- the skill’s frontmatter, reference files and assets;
- that both sets of subagents exist, are read-only, and that each Codex twin keeps the key rules of its Markdown source;
- that
lucid_writer.__version__, the three plugin manifests, the convention pack andCITATION.cffcarry one version; - that every bench skill snapshot matches
skill_nameinbench/config.yamland equals the skill at the commitbench/skills/SNAPSHOTS.tsvrecords; - that every review subagent treats supplied text as data, every marker a hook ruleset uses is defined in
SKILL.md, and no TODO or FIXME ships inskills/; - that every repository link on this site points at a file that exists.
CI runs it on Python 3.11 and 3.12, with full git history, together with node hooks/test.js, the self-tests of every helper script and of bench/gate/gate.py, the ledger check, a wheel build and acumen check --no-review.
Packaging
pyproject.toml and lucid_writer/__init__.py exist only so acumen can target the repository: it refuses a checkout with no installable Python package, then requires the package to import. Neither is part of the skill. lucid_writer.__version__ is the single source of the version number.
Benchmark workflow
Edit skills/lucid-writer/ and commit. To benchmark it, copy it to a new folder bench/skills/v<n+1> and add a row with the source commit to bench/skills/SNAPSHOTS.tsv; never overwrite or edit an existing snapshot. validate_repo.py fails when a snapshot differs from the skill at its recorded commit. Then run acumen from bench/ with --skill v<n+1>. Acumen benchmarks the committed main, not the working tree. The commands and caveats are in bench/README.md.
Contributing
Changes should fix a demonstrated failure rather than add prompt text. Add or update an eval case for every material behaviour change. See CONTRIBUTING.md.
Security
Audit any fork before installing executable skills. The bundled helpers and hooks use only the Python standard library or Node built-ins and make no network requests. SECURITY.md lists what each one reads and writes, and how to report a vulnerability privately.
Design provenance
lucid-writer is an original synthesis. Sources and licences are in docs/methodology.md and NOTICE.md; ideas adapted from scriptorium are re-expressed in original wording.
This site
The site is hand-written Quarto in site/. Preview it with:
quarto preview sitePushing to main with changes under site/ renders it and deploys it to GitHub Pages through .github/workflows/docs.yml. Pages must be enabled once: in the repository’s Settings → Pages, set Source to GitHub Actions.