Skip to content

Prompt Workflow

This page maps every step of the Kaddo loop to its CLI input, the LLM prompt/agent to use, the expected output and where to save it. Steps marked none are fully deterministic and need no LLM.

StepCLI inputLLM prompt/agentExpected outputSave as
Scankaddo scannonetechnical inventory.kaddo/scan.json, knowledge/inventory.md
Contextkaddo contextnoneLLM-ready pack.kaddo/context-pack.md
Capability understandingcontext packcapability-agentcapabilitiesknowledge/product/capabilities.md
Architecture understandingcontext + capabilitiesarchitecture-agentarchitecture baselineknowledge/tech/current-state.md
Roadmapcontext + capabilities + architectureroadmap-agentroadmapknowledge/delivery/roadmap.md
Backlog capturea raw idea / notes / transcriptbacklog-agentWork Item draft or roadmap candidateknowledge/delivery/work-items/draft/*.md or a roadmap candidate
Work Itemroadmapnonework itemknowledge/delivery/work-items/*.md
Work Item refinementcontext + draft Work Itemwork-item-agentready Work Item (acceptance · how to test · DoD)updated Work Item
Ownership proposalcontext + Work Items + inventoryownership-agentprecise code: globs (human confirms)applied via kaddo owners suggest
Ownershipwork item + scannonefront matter ownershipupdated Work Item
Implementationcontext + ready Work Itemimplementation-agentcode · tests · suggested branch/commitrepository + updated knowledge
Guardgit diff + ownershipnonedrift warningterminal output
Knowledge Capsulekaddo capsule export draftcapsule-agentrefined capsule (no secrets/source).kaddo/exports/<system>.capsule.md
ExplainKaddo artifactsnoneproject summary.kaddo/explain.md
Knowledge graphfront matter + capsulesnonelightweight knowledge graph.kaddo/graph.json, .kaddo/graph.mmd
Module designkaddo modules mapmodule-design-agentmodule designknowledge/tech/modules/<id>/module-design.md
Standards / security / stackkaddo add <topic>standards- / security- / stack-agentglobal artifactknowledge/tech/<topic>.md
Git strategykaddo add git-strategygit-strategy-agentgit strategyknowledge/tech/git-strategy.md

Kaddo never calls an LLM for you. You run the agents in your own chat (Claude, ChatGPT, Cursor, Copilot, Windsurf…), then save the output to the artifact path above.

How to run an agent step

  1. Open .kaddo/context-pack.md and the relevant agent prompt in knowledge/agents/.
  2. Paste the agent prompt into your LLM chat.
  3. Attach or paste the context pack (and any prior artifact the agent depends on).
  4. Review the output as a human.
  5. Save it to the target artifact path.

Prompt examples

These are starting points. The installed agent prompts (kaddo add agents) are the source of truth; adapt the wording to your project.

capability-agent

You are the Kaddo capability agent. Using the attached context pack, list the product
capabilities this codebase provides. For each capability: name, one-line purpose, the
domains it touches and the main source paths. Do not invent features. Output Markdown for
knowledge/product/capabilities.md.

architecture-agent

You are the Kaddo architecture agent. Using the context pack and capabilities.md, describe
the current architecture: main modules, boundaries, data flow and notable risks. Mark
assumptions explicitly. Output Markdown for knowledge/tech/current-state.md.

roadmap-agent

You are the Kaddo roadmap agent. Using the context pack, capabilities and current-state,
propose a prioritized roadmap of candidate Work Items. For each candidate: title, problem,
expected result, affected domains and a suggested knowledge level (K0–K4). Output Markdown
for knowledge/delivery/roadmap.md.

backlog-agent

Using the backlog-agent, capture the following idea:
[paste free text, bullets, meeting notes or a transcript]
Decide where it should live: a Work Item draft (clear and small) or a roadmap candidate
(too large), and split it into separate items if it contains multiple ideas. Infer initiative,
domains, suggested type (feature/bugfix/hotfix/spike/chore) and knowledge level, and flag
duplicates or dependencies. Do not refine fully, do not write code, do not run other agents.
End with a human-decision handoff (refine / add candidate / split / keep draft). Output Markdown
for a draft under knowledge/delivery/work-items/draft/ (or propose a WI-CANDIDATE for the roadmap).

legacy-agent

You are the Kaddo legacy agent. Using the context pack, identify high-risk areas of this
legacy system: code with no clear ownership, fragile boundaries and missing knowledge.
Recommend what to understand before changing each area. Mark uncertainty explicitly.

ownership-agent

You are the Kaddo ownership agent. Using the context pack, the Work Items under
knowledge/delivery/work-items/ and the technical inventory, propose precise code: globs for each
Work Item missing ownership. Prefer narrow globs (src/payments/**) over broad ones (src/**); use
only real paths; flag unclear ownership instead of guessing. Do not modify files — I will apply
your proposal with kaddo owners suggest.

implementation-agent

You are the Kaddo implementation agent. Implement Work Item WI-014 from the context pack. First
suggest a branch name per the project Git strategy (do not run git). Implement with tests, state
how to test it (exact commands/manual steps), suggest running kaddo scan / owners suggest / guard,
update affected knowledge, and end with a suggested Conventional Commit message — then wait for my
confirmation. Never commit, push or merge.

capsule-agent

You are the Kaddo capsule agent. Refine the draft Knowledge Capsule in
.kaddo/exports/<system>.capsule.md using the context pack, capabilities and current-state. Sharpen
purpose, public contracts (never invent them), risks, owners and out-of-scope; mark unknowns. Never
include secrets, credentials, PII or source code. Output Markdown for the capsule file.

graph-agent

You are the Kaddo graph agent. Review .kaddo/graph-hints.md (produced by kaddo graph export) and,
for each hint, propose precise relationship front matter for the affected Work Item or ADR: code,
capabilities, decisions, source_id or capsules. Use only real paths/IDs from the context pack and
inventory — never invent relationships; prefer narrow globs; mark uncertainty. Do not modify files.
Ask me to apply the front matter and re-run kaddo graph export.

adr-agent

You are the Kaddo ADR agent. Given a decision and its context, draft an Architecture
Decision Record: context, decision, alternatives considered, consequences and risks. Keep
it concise. Output Markdown for an ADR artifact.

See it end-to-end: each example ships a prompt-flow.md with a Mermaid diagram, an input/output table and copy/paste prompt handoffs for its scenario.

Next: Work Item Traceability — how the loop stays connected.

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