Technical implementation of CraftRail
This section documents how the CraftRail repository itself is organized, built, checked, and released. It is maintainer and contributor documentation; project adopters can use CraftRail without installing this repository's development toolchain or deploying its website.
Implementation map
| Area | Implementation in this repository | Guide |
|---|---|---|
| Core, Workflow, and Adapters | Agent-neutral project content, lifecycle, and minimal instruction adapters | Design rationale |
| Repository layout | Framework docs, starter project docs, specs, templates, scripts, and tests | Repository structure |
| Python tools | Feature initializer and structural documentation validator using the standard library | Python quality checks and validator boundaries |
| Automated checks | Ruff, Mypy strict mode, pytest coverage, pre-commit, Actionlint, GitHub Actions | Python quality checks |
| Documentation website | Zensical reads canonical Markdown and builds static pages; Vercel serves site/ |
Documentation site |
| Agent neutrality | AGENTS.md is canonical; CLAUDE.md imports it; OpenCode reads AGENTS.md directly |
Agent compatibility |
Build and test the repository
Install development checks in an isolated environment:
python3 -m venv .venv-dev
source .venv-dev/bin/activate
python -m pip install -r requirements-dev.txt
pre-commit run --all-files
The checks type-check scripts/ and tests/, run 26 unit tests, require at least 90% combined line/branch coverage for the scripts, and validate supported workflow and document structures. GitHub Actions repeats them on pushes and pull requests. See the complete quality and release guide.
Maintain the documentation site
The website is a presentation layer over docs/, not another source of truth. Edit Markdown, update the explicit navigation in zensical.toml when adding a page, run a strict site build, and deploy to Vercel. GitHub Actions builds the site but does not currently publish it; publication uses the authenticated Vercel CLI. The deployment guide explains the architecture and the current separation work tracked as TD-001 in the repository-root ROADMAP.md.
Contribute and release
Contribution conventions live in the repository-root CONTRIBUTING.md. The release workflow validates semantic version tags, reruns quality checks, and creates GitHub releases with generated notes after an annotated tag is pushed. Review the release process and owner decisions in the quality and release guide before creating a release.