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, architecture/inventory.md
Contextkaddo contextnoneLLM-ready pack.kaddo/context-pack.md
Capability understandingcontext packcapability-agentcapabilitiesarchitecture/capabilities.md
Architecture understandingcontext + capabilitiesarchitecture-agentarchitecture baselinearchitecture/current-state.md
Roadmapcontext + capabilities + architectureroadmap-agentroadmaparchitecture/roadmap.md
Work Itemroadmapnonework itemarchitecture/work-items/*.md
Ownershipwork item + scannonefront matter ownershipupdated Work Item
Guardgit diff + ownershipnonedrift warningterminal output
ExplainKaddo artifactsnoneproject summary.kaddo/explain.md
Module designkaddo modules mapmodule-design-agentmodule designarchitecture/modules/<id>/module-design.md
Standards / security / stackkaddo add <topic>standards- / security- / stack-agentglobal artifactarchitecture/<topic>.md
Git strategykaddo add git-strategygit-strategy-agentgit strategyarchitecture/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 architecture/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
architecture/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 architecture/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 architecture/roadmap.md.

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.

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.