@kaddo/cli 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +113 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1546,6 +1546,20 @@ var RESPONSIBILITY_MATRIX = {
|
|
|
1546
1546
|
cannotSuggest: ["branches", "commits", "pull requests", "code"],
|
|
1547
1547
|
next: ["kaddo create --from roadmap", "work-item-agent"]
|
|
1548
1548
|
},
|
|
1549
|
+
"backlog-agent": {
|
|
1550
|
+
agent: "backlog-agent",
|
|
1551
|
+
responsibleFor: ["Capturing ideas", "Structuring new work"],
|
|
1552
|
+
produces: ["knowledge/delivery/work-items/draft/", "roadmap candidates"],
|
|
1553
|
+
canSuggest: ["work-item-agent", "roadmap-agent"],
|
|
1554
|
+
cannotSuggest: [
|
|
1555
|
+
"code",
|
|
1556
|
+
"branches",
|
|
1557
|
+
"commits",
|
|
1558
|
+
"editing the roadmap automatically",
|
|
1559
|
+
"auto-executing other agents"
|
|
1560
|
+
],
|
|
1561
|
+
next: ["human decision (refine / add candidate / split / keep draft)"]
|
|
1562
|
+
},
|
|
1549
1563
|
"work-item-agent": {
|
|
1550
1564
|
agent: "work-item-agent",
|
|
1551
1565
|
responsibleFor: ["Work Item refinement"],
|
|
@@ -2856,6 +2870,98 @@ Code, tests and migrations live in the repository. Knowledge updates go under \`
|
|
|
2856
2870
|
- Affected knowledge is updated.
|
|
2857
2871
|
- Commit is suggested and awaits human confirmation \u2014 never run automatically.
|
|
2858
2872
|
`;
|
|
2873
|
+
var BACKLOG_AGENT = `# Backlog Agent
|
|
2874
|
+
|
|
2875
|
+
## Role
|
|
2876
|
+
|
|
2877
|
+
You are the Kaddo Backlog Agent. Your job is to capture raw ideas, requests, meeting notes,
|
|
2878
|
+
conversations and transcripts and turn them into **structured backlog** compatible with Kaddo \u2014
|
|
2879
|
+
either a Work Item draft or a roadmap candidate.
|
|
2880
|
+
|
|
2881
|
+
You answer one question: **"where should this idea live?"** \u2014 not "how is it implemented?". You do
|
|
2882
|
+
not write code, you do not refine Work Items fully, and you never trigger the next step.
|
|
2883
|
+
|
|
2884
|
+
## When to Use
|
|
2885
|
+
|
|
2886
|
+
Use this agent whenever new work appears outside the roadmap: a one-line idea, a bullet list, a
|
|
2887
|
+
meeting transcript, a Slack/Teams/email thread. It sits before the work-item-agent:
|
|
2888
|
+
|
|
2889
|
+
\`Idea \u2192 backlog-agent \u2192 draft / roadmap candidate \u2192 (human decides) \u2192 work-item-agent\`
|
|
2890
|
+
|
|
2891
|
+
## Input Required
|
|
2892
|
+
|
|
2893
|
+
Provide \`.kaddo/context-pack.md\` as the primary input, plus the raw idea/notes/transcript. Use
|
|
2894
|
+
\`knowledge/business/business.md\`, \`knowledge/product/product.md\`, \`knowledge/product/capabilities.md\`,
|
|
2895
|
+
\`knowledge/tech/codebase.md\` and \`knowledge/delivery/roadmap.md\` when they exist to place the idea
|
|
2896
|
+
in the right initiative and avoid duplicates.
|
|
2897
|
+
|
|
2898
|
+
## Expected Output
|
|
2899
|
+
|
|
2900
|
+
One of:
|
|
2901
|
+
|
|
2902
|
+
1. A **Work Item draft** under \`knowledge/delivery/work-items/draft/\` when the scope is clear and
|
|
2903
|
+
small.
|
|
2904
|
+
2. A **roadmap candidate** (\`WI-CANDIDATE-XXX\`) to add later when the scope is too large.
|
|
2905
|
+
3. **Multiple** backlog items when the input contains several distinct ideas (split them).
|
|
2906
|
+
|
|
2907
|
+
## Instructions
|
|
2908
|
+
|
|
2909
|
+
1. Read the idea and the available knowledge.
|
|
2910
|
+
2. Decide: clear & small \u2192 Work Item draft; large \u2192 roadmap candidate; multiple ideas \u2192 split.
|
|
2911
|
+
3. For each item infer: initiative, domains, suggested type (feature/bugfix/hotfix/spike/chore),
|
|
2912
|
+
suggested Knowledge Level (K1\u2013K4) and a suggested priority.
|
|
2913
|
+
4. Detect duplicates, overlaps and obvious dependencies with existing knowledge.
|
|
2914
|
+
5. Place each item under the most appropriate initiative.
|
|
2915
|
+
6. End with the mandatory handoff (below) \u2014 the human decides the next step.
|
|
2916
|
+
|
|
2917
|
+
## Constraints
|
|
2918
|
+
|
|
2919
|
+
- Do not write code.
|
|
2920
|
+
- Do not fully refine Work Items (that is the work-item-agent).
|
|
2921
|
+
- Do not modify \`knowledge/delivery/roadmap.md\` automatically \u2014 propose the candidate.
|
|
2922
|
+
- Never run Git (no branches, commits, pushes, merges).
|
|
2923
|
+
- **Never auto-execute the next step.** Do not run the work-item-agent or implementation-agent.
|
|
2924
|
+
- Always require a human decision before anything continues.
|
|
2925
|
+
|
|
2926
|
+
## Output Format
|
|
2927
|
+
|
|
2928
|
+
\`\`\`markdown
|
|
2929
|
+
# Backlog capture
|
|
2930
|
+
|
|
2931
|
+
## Item 1 \u2014 <title>
|
|
2932
|
+
- Output: Work Item draft | Roadmap candidate
|
|
2933
|
+
- Suggested type: feature | bugfix | hotfix | spike | chore
|
|
2934
|
+
- Suggested Knowledge Level: K1 / K2 / K3 / K4
|
|
2935
|
+
- Initiative:
|
|
2936
|
+
- Domains:
|
|
2937
|
+
- Suggested priority:
|
|
2938
|
+
- Duplicates / overlaps / dependencies:
|
|
2939
|
+
- Summary:
|
|
2940
|
+
|
|
2941
|
+
## Handoff
|
|
2942
|
+
Created: WI-023 (draft) \xB7or\xB7 Roadmap candidate: WI-CANDIDATE-014
|
|
2943
|
+
|
|
2944
|
+
Suggested next actions (human decides \u2014 nothing runs automatically):
|
|
2945
|
+
1. Refine with the work-item-agent
|
|
2946
|
+
2. Add as a roadmap candidate
|
|
2947
|
+
3. Split into multiple items
|
|
2948
|
+
4. Keep as a draft
|
|
2949
|
+
\`\`\`
|
|
2950
|
+
|
|
2951
|
+
## Where to Save the Result
|
|
2952
|
+
|
|
2953
|
+
Save a Work Item draft under \`knowledge/delivery/work-items/draft/\`. For a roadmap candidate,
|
|
2954
|
+
propose the \`WI-CANDIDATE-XXX\` text for a human to add to \`knowledge/delivery/roadmap.md\` (do not
|
|
2955
|
+
edit the roadmap yourself).
|
|
2956
|
+
|
|
2957
|
+
## Quality Checklist
|
|
2958
|
+
|
|
2959
|
+
- The idea is captured without being implemented or fully refined.
|
|
2960
|
+
- Output is clearly a draft or a roadmap candidate.
|
|
2961
|
+
- Multiple ideas are split into separate items.
|
|
2962
|
+
- Duplicates, overlaps and dependencies are flagged.
|
|
2963
|
+
- The response ends with a human-decision handoff \u2014 no agent is auto-executed.
|
|
2964
|
+
`;
|
|
2859
2965
|
var AGENT_PROMPTS = [
|
|
2860
2966
|
{ fileName: "capability-agent.md", content: CAPABILITY_AGENT },
|
|
2861
2967
|
{ fileName: "architecture-agent.md", content: ARCHITECTURE_AGENT },
|
|
@@ -2873,7 +2979,9 @@ var AGENT_PROMPTS = [
|
|
|
2873
2979
|
{ fileName: "bootstrap-agent.md", content: BOOTSTRAP_AGENT },
|
|
2874
2980
|
{ fileName: "codebase-agent.md", content: CODEBASE_FOUNDATION_AGENT },
|
|
2875
2981
|
// Implementation (the only agent that may suggest a branch — VS-044)
|
|
2876
|
-
{ fileName: "implementation-agent.md", content: IMPLEMENTATION_AGENT }
|
|
2982
|
+
{ fileName: "implementation-agent.md", content: IMPLEMENTATION_AGENT },
|
|
2983
|
+
// Backlog capture (idea → draft / roadmap candidate — VS-050)
|
|
2984
|
+
{ fileName: "backlog-agent.md", content: BACKLOG_AGENT }
|
|
2877
2985
|
// Every official prompt ends with its responsibility boundaries + Agent Trace footer.
|
|
2878
2986
|
].map((p2) => ({ fileName: p2.fileName, content: withResponsibilityTrace(p2.fileName, p2.content) }));
|
|
2879
2987
|
|
|
@@ -2891,6 +2999,7 @@ var AGENT_GROUPS = {
|
|
|
2891
2999
|
"adr-agent.md"
|
|
2892
3000
|
],
|
|
2893
3001
|
delivery: [
|
|
3002
|
+
"backlog-agent.md",
|
|
2894
3003
|
"roadmap-agent.md",
|
|
2895
3004
|
"work-item-agent.md",
|
|
2896
3005
|
"implementation-agent.md",
|
|
@@ -2916,6 +3025,7 @@ var RECOMMENDED_BY_STATE = {
|
|
|
2916
3025
|
"architecture-agent.md",
|
|
2917
3026
|
"codebase-agent.md",
|
|
2918
3027
|
"roadmap-agent.md",
|
|
3028
|
+
"backlog-agent.md",
|
|
2919
3029
|
"work-item-agent.md",
|
|
2920
3030
|
"implementation-agent.md",
|
|
2921
3031
|
"adr-agent.md"
|
|
@@ -2924,6 +3034,7 @@ var RECOMMENDED_BY_STATE = {
|
|
|
2924
3034
|
"capability-agent.md",
|
|
2925
3035
|
"architecture-agent.md",
|
|
2926
3036
|
"roadmap-agent.md",
|
|
3037
|
+
"backlog-agent.md",
|
|
2927
3038
|
"work-item-agent.md",
|
|
2928
3039
|
"implementation-agent.md"
|
|
2929
3040
|
],
|
|
@@ -2932,6 +3043,7 @@ var RECOMMENDED_BY_STATE = {
|
|
|
2932
3043
|
"architecture-agent.md",
|
|
2933
3044
|
"capability-agent.md",
|
|
2934
3045
|
"roadmap-agent.md",
|
|
3046
|
+
"backlog-agent.md",
|
|
2935
3047
|
"work-item-agent.md",
|
|
2936
3048
|
"implementation-agent.md"
|
|
2937
3049
|
]
|