Contributing to aidokit

Thanks for considering a contribution. aidokit is pre-alpha; this guide will grow as the project matures. For the design context behind any decision, read .docs/ARCHITECTURE.md and the relevant spec under .docs/docs/specs/.


1. Status and scope

aidokit is in Phase 0 of the v0.1 release. The repo is being hand-built up to the point where aidokit init can re-emit the repo's own .claude/ directory (the dogfood gate — see ARCHITECTURE.md §20).

Until v0.1 lands, contributions are limited to:

Out-of-scope work (Codex adapter, additional stack packs, aidokit doctor/sync/migrate, brownfield, Minimum/Strict conformance, marketplace) is deferred — see .docs/ROADMAP.md.


2. Prerequisites

Tool Minimum Notes
Node.js 20.x LTS strongly recommended
pnpm 9.x corepack enable to pin the version specified in package.json
Git 2.40+
Claude Code latest Required for the dogfood and e2e flows
Beads CLI latest Optional in v0.1; required from v0.5 onward at Standard conformance

3. Local setup

The workspace itself is not yet created. The commands below describe the intended developer experience once Phase 0 lands.

git clone <repo-url> aidokit && cd aidokit
corepack enable
pnpm install
pnpm build           # turbo-orchestrated build across all packages
pnpm test            # unit + integration tiers
pnpm test:e2e        # gated; requires a working `claude` install
pnpm lint            # ESLint + Prettier check
pnpm typecheck       # tsc --noEmit across the workspace

4. Branching and PR workflow

4.1 What lands in a PR

A non-trivial PR includes, at minimum:

  1. The code change.
  2. Co-located unit tests.
  3. Integration test coverage if the change crosses package boundaries.
  4. Spec or doc updates in the same PR (no drift between .docs/docs/specs/ and code).
  5. A changeset entry (pnpm changeset).
  6. CHANGELOG updates land automatically from changesets at release time — do not edit CHANGELOG.md directly except for hand-curated narrative entries pre-v0.1.

4.2 What gets rejected


5. Testing conventions

Tier Location When it runs
Unit packages/*/src/**/*.test.ts Every pnpm test and every CI run
Integration packages/*/test/integration/ Every pnpm test and every CI run
Byte-compare reference packages/adapter-claude-code/test/reference/ Every CI run
E2E e2e/ (TBD) pnpm test:e2e only; CI matrix job (macOS, Linux)

Rules:


6. ADRs (Architecture Decision Records)

Architecture-relevant choices live in .docs/docs/architecture/decisions/.


7. Working with .docs/

The on-disk path is .docs/ (hidden). Public docs reference paths as docs/. This is an intentional Phase-0 choice — the dot prefix keeps design docs out of the published package surface. See AGENTS.md §2 for the full note.

When editing docs:


8. Reporting issues

For now, file issues against this repo. Include:

For security issues, do not open a public issue. Email the maintainer (address to be published in SECURITY.md at v1.0).


9. Code of conduct

Be kind. Disagree on substance, not on people. Reviewers are doing you a favour by spending attention on your PR; reciprocate when you review someone else's.


10. License

By contributing, you agree that your contributions are licensed under the Apache 2.0 License (license file to be added before v0.1 publish).