Thanks for your interest in Capstan! Here's how to get started.
git clone https://github.com/barry3406/capstan.git
cd capstan
npm install
npm run build # Build all workspace packages
npm test # Run the full repository test suite- Create feature branches from
main - Keep PRs focused on a single change
Use Conventional Commits:
feat:new featurefix:bug fixdocs:documentation onlytest:adding/updating testschore:maintenance (deps, CI, versions)
- ESM only,
.jsextensions in relative imports import typefor type-only imports- Strict TypeScript (
exactOptionalPropertyTypes,verbatimModuleSyntax,noUncheckedIndexedAccess) - Target: ES2022, NodeNext module resolution
- Write tests with
bun:testfor new code - Run
npm test(ornpm run test:new) before submitting - Edge cases and error paths required, not just happy paths
When changing user-facing framework behavior, update ALL of the following in the same commit (see CLAUDE.md for details):
packages/create-capstan/src/templates.ts(scaffolded AGENTS.md)README.md,README.zh-CN.md,README.zh-TW.md- Relevant files in
docs/
- Ensure CI passes (
npm run build && npm test) - Update docs if applicable
- Describe what, why, and how in the PR description
- Link related issues
Open a GitHub Discussion.