Agent Prompt Packs
kaddo add agentsAgent prompt packs are versionable Markdown prompts you use in your preferred LLM chat (Claude, ChatGPT, Cursor, Copilot, Windsurf…). They turn a Kaddo context pack into structured project knowledge.
Kaddo does not execute these agents. The CLI prepares deterministic context; the LLM does the interpretation. No API key, no model provider, no automation.
Agents by operating moment
Each agent intervenes in one of Kaddo’s operating moments:
| Moment | Agents |
|---|---|
| Base | bootstrap-agent · business-agent · codebase-agent |
| Definition | business-agent · product-agent · capability-agent · codebase-agent · architecture-agent · adr-agent/decision-agent |
| Projection | roadmap-agent · backlog-agent · work-item-agent · ownership-agent |
| Execution | implementation-agent · ownership-agent · architecture-agent · capability-agent · adr-agent · guard-agent · capsule-agent · graph-agent |
Installing
kaddo add agents creates knowledge/agents/:
Agents install into per-layer folders:
knowledge/agents/ README.md business/ business-agent.md product/ bootstrap-agent.md · capability-agent.md tech/ architecture-agent.md · codebase-agent.md · stack-agent.md · security-agent.md · standards-agent.md · module-design-agent.md · adr-agent.md · capsule-agent.md · graph-agent.md delivery/ backlog-agent.md · roadmap-agent.md · work-item-agent.md · implementation-agent.md · ownership-agent.md · git-strategy-agent.md utilities/ legacy-agent.mdExisting agent files are never overwritten silently — re-running the command only installs
missing files. kaddo init does not install agents; add them when you need them.
Progressive install & agent groups
Agents install progressively, by knowledge layer — you do not get all of them at once.
By default kaddo add agents installs only the set recommended for your project state:
| State | Installs |
|---|---|
new | business-agent · bootstrap-agent · codebase-agent · roadmap-agent · backlog-agent · work-item-agent · implementation-agent |
pre-ai | capability-agent · architecture-agent · roadmap-agent · backlog-agent · work-item-agent · implementation-agent |
legacy | legacy-agent · architecture-agent · capability-agent · roadmap-agent · backlog-agent · work-item-agent · implementation-agent |
Agents are organized into groups by layer:
| Group | Agents |
|---|---|
business | business-agent |
product | bootstrap-agent · capability-agent |
tech | architecture-agent · codebase-agent · stack-agent · security-agent · standards-agent · module-design-agent · adr-agent · capsule-agent · graph-agent |
delivery | backlog-agent · roadmap-agent · work-item-agent · implementation-agent · ownership-agent · git-strategy-agent |
utilities | legacy-agent |
kaddo add agents # recommended set for the project statekaddo add agents --all # every agentkaddo add agents --group tech # one layer groupkaddo understand reports your current phase from the real knowledge state — Discovery →
Planning → Delivery Preparation → Active Delivery → Maintenance — and recommends the agent for
that phase (see understand).
Understanding agents
| Agent | Purpose | Saves to |
|---|---|---|
capability-agent | Extract/propose system capabilities | knowledge/product/capabilities.md |
architecture-agent | Reconstruct the architecture baseline | knowledge/tech/current-state.md |
roadmap-agent | Propose roadmap candidates | knowledge/delivery/roadmap.md |
legacy-agent | Surface risks/unknowns before changing legacy code | knowledge/legacy/*.md |
adr-agent | Propose candidate architecture decisions | knowledge/tech/decision-candidates.md |
Bootstrap agents
For new projects, these refine the knowledge base created by
kaddo bootstrap across Business → Product → Tech → Delivery.
| Agent | Purpose | Saves to |
|---|---|---|
business-agent | Turn an idea into a business definition | knowledge/business/*.md |
bootstrap-agent | Go from business to capabilities, quality attributes and roadmap | knowledge/bootstrap-summary.md, capabilities.md, roadmap.md |
codebase-agent | Propose a codebase foundation (no code) | knowledge/tech/codebase.md |
Operational agents
These support day-to-day execution and the multirepo / global artifacts (VS-017).
| Agent | Purpose | Saves to |
|---|---|---|
backlog-agent | Capture raw ideas/notes into a draft or roadmap candidate (no refinement) | knowledge/delivery/work-items/draft/ or a roadmap candidate |
work-item-agent | Draft and refine a work item from context | active work item |
implementation-agent | Implement a refined Work Item; suggest branch/scan/owners/guard | code · tests · updated knowledge |
ownership-agent | Propose precise code: ownership globs for Work Items/artifacts | proposed code: globs (human applies) |
capsule-agent | Refine/validate a Knowledge Capsule for external sharing (no secrets/source) | .kaddo/exports/<system>.capsule.md |
graph-agent | Review graph hints and propose precise relationship front matter | proposed code/capabilities/decisions/capsules (human applies) |
git-strategy-agent | Refine the Git strategy | knowledge/tech/git-strategy.md |
security-agent | Document security considerations (no scanning) | knowledge/tech/security.md |
standards-agent | Define lightweight standards | knowledge/tech/standards.md |
stack-agent | Document the stack | knowledge/tech/stack.md |
module-design-agent | Fill in a module’s design | knowledge/tech/modules/<id>/module-design.md |
Each prompt declares: Role · When to Use · Input Required · Expected Output · Instructions ·
Constraints · Output Format · Where to Save the Result · Quality Checklist. The primary
input is always .kaddo/context-pack.md.
Responsibility boundaries & Agent Trace
Every official agent knows its responsibility, its limits and the next step in the flow. Each prompt ends with two standard blocks so the flow stays auditable and no agent drifts outside its lane:
- Responsibility & Boundaries — what the agent is responsible for, produces, may suggest and must NOT suggest. Agents produce knowledge only: they never run Git, code or commands.
- Agent Trace — a footer every response repeats:
────────────────────────Agent: roadmap-agent
Produced:knowledge/delivery/roadmap.md
Next:kaddo create --from roadmapwork-item-agent────────────────────────This answers, for any response: who produced it, what it produced, and what runs next.
Responsibility matrix
| Agent | Responsible for | Produces | May suggest | Must NOT suggest |
|---|---|---|---|---|
business-agent | Problem, Users, Rules, Constraints | knowledge/business/business.md | product-agent | Git, branches, commits, code |
product-agent | Product, Capabilities, Scope | product.md, capabilities.md | roadmap-agent | Git, implementation |
capability-agent | Capabilities | capabilities.md | roadmap-agent | Git, implementation |
codebase-agent | Stack, Structure, Standards | knowledge/tech/codebase.md | architecture-agent, decision-agent | Git, production code |
architecture-agent | Architecture, Technical state, Risks | current-state.md | decision-agent, roadmap-agent | Git, branches, code |
decision-agent / adr-agent | ADRs | knowledge/tech/decisions/ | implementation-agent | Git, branches, code |
roadmap-agent | Roadmap, Initiatives, WI candidates | roadmap.md | kaddo create --from roadmap, work-item-agent | branches, commits, PRs, code |
backlog-agent | Capture ideas, structure new work | work-items/draft/, roadmap candidates | work-item-agent, roadmap-agent | code, git, auto-running other agents |
work-item-agent | Work Item refinement | work-items/ | implementation-agent | commits, PRs, branches |
implementation-agent | Implementation | code, tests, migrations | a branch (per Git strategy), a commit message, scan, owners suggest, guard | running git, committing/pushing/merging without confirmation |
ownership-agent | Precise code: ownership | proposed globs | kaddo owners suggest, kaddo guard | code, git, modifying files without confirmation |
capsule-agent | Knowledge Capsule for sharing | refined capsule | kaddo capsule export | secrets, source code, invented contracts, git |
graph-agent | Graph relationship quality | proposed front matter | kaddo graph export, kaddo owners suggest | code, git, modifying files without confirmation, invented relationships |
guard-agent | Knowledge drift | findings, warnings | update knowledge, update ownership | branches, commits, code |
Git responsibility model
Only the implementation-agent may suggest a Git branch, and only by respecting
knowledge/tech/git-strategy.md (.kaddo/git.yml). It still never runs git — it suggests and
waits for explicit human confirmation. The roadmap-agent, work-item-agent, business-agent and
product-agent must never suggest branches, commits or pull requests.
This fixes a real drift seen in validation, where the roadmap-agent suggested
Create branch feature/wi-001-...before any Work Item existed.
Handoff rules
roadmap-agent → kaddo create --from roadmap → work-item-agent → implementation-agent → kaddo scan → kaddo owners suggest → kaddo guard → kaddo explain
idea (anytime) → backlog-agent → draft / roadmap candidate → (human decides) → work-item-agentkaddo understand recommends agents following exactly these handoffs.
The backlog-agent is the front door for new ideas: it captures free text, bullets, meeting notes or transcripts into a Work Item draft or a roadmap candidate, never refines or implements, and always hands back to a human decision — it never auto-runs the work-item-agent or implementation-agent.
Writing a custom agent
An agent is a versionable Markdown prompt — not code. To add your own, drop a
<name>-agent.md file in knowledge/agents/ following the canonical structure
below. These nine sections are required (Kaddo’s own agents are validated against
them), so keep them for consistency:
# <Name> Agent
## RoleWho the agent is and what it does. Always state: it does not write code, does notinvent business facts, infers cautiously and marks assumptions.
## When to UseWhich commands precede it (e.g. `kaddo scan` + `kaddo context`) and in whichproject states (new / pre-ai / legacy).
## Input RequiredPrimary input: `.kaddo/context-pack.md`. Optional: README, docs, OpenAPI, notes.
## Expected OutputThe artifact it produces and where it belongs.
## InstructionsNumbered steps describing what to analyze and produce.
## ConstraintsWhat NOT to do (don't invent business context, mark assumptions, no code, etc.).
## Output FormatThe exact output shape (a markdown block with the artifact's sections).
## Where to Save the ResultThe destination path — it must match the `outputPath` of the related template.
## Quality Checklist- [ ] quality criteria for the outputFour rules keep a custom agent aligned with Kaddo:
- Include all nine sections above (title + the
##headings). - Reference
.kaddo/context-pack.mdas the primary input — Kaddo never calls an LLM, so the human pastes the prompt into their own chat. - Match the output path in Where to Save the Result to the related template’s
outputPath, preserving the agent ↔ template traceability. - Keep it a prompt, not code: declarative, versionable, no execution.
Workflow
kaddo scan # deterministic technical signalskaddo context # → .kaddo/context-pack.mdkaddo add agents # → knowledge/agents/*.mdThen, in your LLM chat:
- Paste
.kaddo/context-pack.md. - Paste the agent prompt for your task.
- Save the output where the agent specifies.
Recommended order by project state
- new → roadmap-agent → architecture-agent
- pre-ai → capability-agent → architecture-agent → roadmap-agent
- legacy → legacy-agent → architecture-agent → capability-agent → roadmap-agent
The roadmap agent output
The roadmap-agent is the bridge between understanding and execution. Used in your LLM
chat, it produces a structured knowledge/delivery/roadmap.md designed to be both readable
today and machine-processable later:
context pack → roadmap agent → knowledge/delivery/roadmap.md → (future) kaddo create --from roadmapEach initiative (RM-001, RM-002, …) includes a goal, related capabilities, project area,
impact, risk, a suggested Knowledge Level (K1–K4), dependencies, why it comes now, and
candidate work items with type, suggested knowledge level, expected value and notes. The
roadmap also lists assumptions, a suggested execution order, a “Not Now” list, and the next
recommended work item.
Initiatives and work items are candidates for human review — not final commitments. The roadmap is generated in your LLM chat, never by the CLI, and priorities adapt to the project state (new / pre-ai / legacy). A future
kaddo create --from roadmapwill be able to read these candidates — but it is not implemented yet.
CLI vs LLM
- Kaddo CLI prepares, detects, structures and stores:
init,scan,context,add agents,create,guard. - Your LLM + agents interpret, understand and propose: capabilities, architecture, roadmap, risks.