Skip to content

Agent Prompt Packs

Terminal window
kaddo add agents

Agent 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:

MomentAgents
Basebootstrap-agent · business-agent · codebase-agent
Definitionbusiness-agent · product-agent · capability-agent · codebase-agent · architecture-agent · adr-agent/decision-agent
Projectionroadmap-agent · backlog-agent · work-item-agent · ownership-agent
Executionimplementation-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.md

Existing 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:

StateInstalls
newbusiness-agent · bootstrap-agent · codebase-agent · roadmap-agent · backlog-agent · work-item-agent · implementation-agent
pre-aicapability-agent · architecture-agent · roadmap-agent · backlog-agent · work-item-agent · implementation-agent
legacylegacy-agent · architecture-agent · capability-agent · roadmap-agent · backlog-agent · work-item-agent · implementation-agent

Agents are organized into groups by layer:

GroupAgents
businessbusiness-agent
productbootstrap-agent · capability-agent
techarchitecture-agent · codebase-agent · stack-agent · security-agent · standards-agent · module-design-agent · adr-agent · capsule-agent · graph-agent
deliverybacklog-agent · roadmap-agent · work-item-agent · implementation-agent · ownership-agent · git-strategy-agent
utilitieslegacy-agent
Terminal window
kaddo add agents # recommended set for the project state
kaddo add agents --all # every agent
kaddo add agents --group tech # one layer group

kaddo 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

AgentPurposeSaves to
capability-agentExtract/propose system capabilitiesknowledge/product/capabilities.md
architecture-agentReconstruct the architecture baselineknowledge/tech/current-state.md
roadmap-agentPropose roadmap candidatesknowledge/delivery/roadmap.md
legacy-agentSurface risks/unknowns before changing legacy codeknowledge/legacy/*.md
adr-agentPropose candidate architecture decisionsknowledge/tech/decision-candidates.md

Bootstrap agents

For new projects, these refine the knowledge base created by kaddo bootstrap across Business → Product → Tech → Delivery.

AgentPurposeSaves to
business-agentTurn an idea into a business definitionknowledge/business/*.md
bootstrap-agentGo from business to capabilities, quality attributes and roadmapknowledge/bootstrap-summary.md, capabilities.md, roadmap.md
codebase-agentPropose a codebase foundation (no code)knowledge/tech/codebase.md

Operational agents

These support day-to-day execution and the multirepo / global artifacts (VS-017).

AgentPurposeSaves to
backlog-agentCapture raw ideas/notes into a draft or roadmap candidate (no refinement)knowledge/delivery/work-items/draft/ or a roadmap candidate
work-item-agentDraft and refine a work item from contextactive work item
implementation-agentImplement a refined Work Item; suggest branch/scan/owners/guardcode · tests · updated knowledge
ownership-agentPropose precise code: ownership globs for Work Items/artifactsproposed code: globs (human applies)
capsule-agentRefine/validate a Knowledge Capsule for external sharing (no secrets/source).kaddo/exports/<system>.capsule.md
graph-agentReview graph hints and propose precise relationship front matterproposed code/capabilities/decisions/capsules (human applies)
git-strategy-agentRefine the Git strategyknowledge/tech/git-strategy.md
security-agentDocument security considerations (no scanning)knowledge/tech/security.md
standards-agentDefine lightweight standardsknowledge/tech/standards.md
stack-agentDocument the stackknowledge/tech/stack.md
module-design-agentFill in a module’s designknowledge/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 roadmap
work-item-agent
────────────────────────

This answers, for any response: who produced it, what it produced, and what runs next.

Responsibility matrix

AgentResponsible forProducesMay suggestMust NOT suggest
business-agentProblem, Users, Rules, Constraintsknowledge/business/business.mdproduct-agentGit, branches, commits, code
product-agentProduct, Capabilities, Scopeproduct.md, capabilities.mdroadmap-agentGit, implementation
capability-agentCapabilitiescapabilities.mdroadmap-agentGit, implementation
codebase-agentStack, Structure, Standardsknowledge/tech/codebase.mdarchitecture-agent, decision-agentGit, production code
architecture-agentArchitecture, Technical state, Riskscurrent-state.mddecision-agent, roadmap-agentGit, branches, code
decision-agent / adr-agentADRsknowledge/tech/decisions/implementation-agentGit, branches, code
roadmap-agentRoadmap, Initiatives, WI candidatesroadmap.mdkaddo create --from roadmap, work-item-agentbranches, commits, PRs, code
backlog-agentCapture ideas, structure new workwork-items/draft/, roadmap candidateswork-item-agent, roadmap-agentcode, git, auto-running other agents
work-item-agentWork Item refinementwork-items/implementation-agentcommits, PRs, branches
implementation-agentImplementationcode, tests, migrationsa branch (per Git strategy), a commit message, scan, owners suggest, guardrunning git, committing/pushing/merging without confirmation
ownership-agentPrecise code: ownershipproposed globskaddo owners suggest, kaddo guardcode, git, modifying files without confirmation
capsule-agentKnowledge Capsule for sharingrefined capsulekaddo capsule exportsecrets, source code, invented contracts, git
graph-agentGraph relationship qualityproposed front matterkaddo graph export, kaddo owners suggestcode, git, modifying files without confirmation, invented relationships
guard-agentKnowledge driftfindings, warningsupdate knowledge, update ownershipbranches, 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-agent

kaddo 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
## Role
Who the agent is and what it does. Always state: it does not write code, does not
invent business facts, infers cautiously and marks assumptions.
## When to Use
Which commands precede it (e.g. `kaddo scan` + `kaddo context`) and in which
project states (new / pre-ai / legacy).
## Input Required
Primary input: `.kaddo/context-pack.md`. Optional: README, docs, OpenAPI, notes.
## Expected Output
The artifact it produces and where it belongs.
## Instructions
Numbered steps describing what to analyze and produce.
## Constraints
What NOT to do (don't invent business context, mark assumptions, no code, etc.).
## Output Format
The exact output shape (a markdown block with the artifact's sections).
## Where to Save the Result
The destination path — it must match the `outputPath` of the related template.
## Quality Checklist
- [ ] quality criteria for the output

Four rules keep a custom agent aligned with Kaddo:

  1. Include all nine sections above (title + the ## headings).
  2. Reference .kaddo/context-pack.md as the primary input — Kaddo never calls an LLM, so the human pastes the prompt into their own chat.
  3. Match the output path in Where to Save the Result to the related template’s outputPath, preserving the agent ↔ template traceability.
  4. Keep it a prompt, not code: declarative, versionable, no execution.

Workflow

Terminal window
kaddo scan # deterministic technical signals
kaddo context # → .kaddo/context-pack.md
kaddo add agents # → knowledge/agents/*.md

Then, in your LLM chat:

  1. Paste .kaddo/context-pack.md.
  2. Paste the agent prompt for your task.
  3. Save the output where the agent specifies.
  • 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 roadmap

Each 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 roadmap will 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.

Created by Julian Dario Luna Patiño · v3.60.0