Skip to content

Latest commit

 

History

History
60 lines (53 loc) · 4.78 KB

project-structure.md

File metadata and controls

60 lines (53 loc) · 4.78 KB

Project structure

Top-level directory layout of the kit repository. The docs/ map lives in ../README.md, per-module CLI contracts in ../../lib/README.md, generated feature rows in FEATURES.md, and component fit in architecture.md.

dwarves-kit/
  AGENTS.md                  Tool-agnostic operate-contract front door (any runtime reads it first)
  CLAUDE.md                  Claude Code layer on top of AGENTS.md
  WORKFLOW.md                Compact spine summary copied into adopted repos (full spec in docs/WORKFLOW.md)
  README.md                  Public overview and quickstart pointer
  CONTRIBUTING.md            Contributor guide: local checks, PR shape, module contract
  CODE_OF_CONDUCT.md         Community conduct standards
  SECURITY.md                Vulnerability reporting, trust model, and hook safety scope
  CHANGELOG.md               Single in-repo release history (Keep a Changelog)
  LICENSE / VERSION          MIT license and current release version
  tool.toml                  Kit metadata (name, version, language=bash, deps)
  kit.toml / .kit.toml       Shipped harness defaults and this repo's project overrides
  repokit.toml               Multi-contributor harness config (owners, PR shape, release notes)
  install.sh / settings.json Bash installer and root Claude Code hook settings
  skills -> .agents/skills   Compatibility symlink to the portable skills root
  .agents/skills/            Portable SKILL.md playbooks (Claude Code, Antigravity, Codex, Devin)
  .claude/memory/            Tracked maintainer repo-memory notes
  .claude-plugin/            Claude Code marketplace and plugin manifests
  .codex-plugin/             Codex plugin manifest
  .githooks/                 Opt-in local pre-commit and pre-push git hooks
  .github/                   Issue forms, PR template, repokit PR workflow, sharded test.yml matrix
  agents/                    Subagent prompts dispatched by commands (roster in docs/MANUAL.md)
  bin/                       Stable `<subsystem> <verb>` consumer entrypoints forwarding to lib/<subsystem>/
  commands/                  Markdown `/kit:*` slash-command prompts (roster in docs/MANUAL.md)
  deploy/macos/              Optional macOS LaunchAgent dispatcher and runbook
  docs/                      Living documentation in 6 audience buckets (map in docs/README.md)
  examples/hello-spec/       Worked consumer repo illustrating `/kit:adopt` output
  hooks/                     Runtime hook manifests (`hooks.json`, `codex-hooks.json`, `agy-hooks.json`, `devin-hooks.json`), shared entry (`anchor-root.sh`, `entry-normalize.jq`), and hook scripts
  integrations/              Optional external surface add-ons (`claude-code/`, `hermes/`)
  lib/                       Standalone implementation modules (full module index in lib/README.md)
  output-styles/             Optional agent communication style presets
  scripts/                   Multi-contributor harness scripts (`check.sh`, `doctor.sh`, `pr-shape.sh`, `check-owners.sh`, `secret-scan.sh`, `pr-merge.sh`, `release-notes.sh`)
  templates/                 Consumer starter guide (`GUIDE.template.md`) and path-scoped `rules/`
  tests/                     Hermetic bash test suites, fixtures, sharded `run-all.sh`, and `gauntlet/`
  _meta -> dwarves-kit-internal  Maintainer-only gitignored symlink to the private board repo (absent in public clones)

Key lib/ entrypoints

Every lib/<subsystem>/ module carries its own README.md and is indexed in ../../lib/README.md and FEATURES.md. Consumer scripts always call bin/<subsystem>, never a deep lib/ path. A few core engines cited directly by architecture and dispatch contracts:

Path Role
lib/board/board.sh Cockpit board dispatcher (board, next, set, work, queue, run, state-check, plus adapter verbs)
lib/board/parse-board.sh Structured BACKLOG.md parser reused by queue and board adapters
lib/adapters/hermes/board-mirror.sh One-way git to Hermes kanban bridge engine (board mirror / board status)
lib/adapters/hermes/board-writeback.sh Reverse Hermes to git chore/board-sync PR leg (board writeback)
lib/gate/ Deterministic gate ledger, proof ledger, dispatch disjointness, and ship checks
lib/classify/ Task-type and risk-lane classifiers plus diff-floor checks
lib/queue/ Mega-goal runner (orchestrate.sh), Orca backend, and overnight queue launcher (queue.sh)
lib/system-design/build UML drawing-set engine behind skills/system-design and docs/figures/

For the full tracked file listing, run git ls-files.