cc-dev-template 0.1.3 → 0.1.5
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/package.json
CHANGED
|
@@ -106,6 +106,21 @@ For each ADR in `relevant_adrs`:
|
|
|
106
106
|
- ADR-005 violation: Using MD5 instead of bcrypt for passwords
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
+
## Prompt Work
|
|
110
|
+
|
|
111
|
+
If your task involves creating or editing **prompts**—for sub-agents, commands, skills, Claude Agent SDK, or any other prompt artifacts—activate the **prompting skill** before proceeding with implementation.
|
|
112
|
+
|
|
113
|
+
This applies when:
|
|
114
|
+
- Writing or modifying agent prompt files (`.md` files that define agent behavior)
|
|
115
|
+
- Creating or editing slash command definitions
|
|
116
|
+
- Writing or updating skill definitions (`SKILL.md`)
|
|
117
|
+
- Crafting prompts for Claude Agent SDK usage
|
|
118
|
+
- Any work where you're defining instructions that Claude will follow
|
|
119
|
+
|
|
120
|
+
**How to activate**: Use the Skill tool with `skill: "prompting"` to load the prompting best practices, then apply those principles to your prompt work.
|
|
121
|
+
|
|
122
|
+
The prompting skill ensures your prompts follow established patterns: explaining WHY not just WHAT, using positive framing, being clear and direct, and providing proper context. Quality prompts are critical since they shape agent behavior across all future executions.
|
|
123
|
+
|
|
109
124
|
## Escalation
|
|
110
125
|
|
|
111
126
|
**Stop immediately and escalate if:**
|
|
@@ -94,14 +94,37 @@ relevant_adrs:
|
|
|
94
94
|
- id: ADR-[XXX]
|
|
95
95
|
title: [title]
|
|
96
96
|
constraint: [What this ADR requires us to do or avoid]
|
|
97
|
+
|
|
98
|
+
# Submodules affected by this work (for repos with git submodules)
|
|
99
|
+
affected_submodules:
|
|
100
|
+
- path: [relative/path/to/submodule]
|
|
101
|
+
reason: [Why this submodule is affected by the plan]
|
|
97
102
|
```
|
|
98
103
|
|
|
99
104
|
**Field guidance:**
|
|
100
105
|
|
|
101
106
|
- **Required**: id, title, type, status, created, problem_statement, goals, success_criteria
|
|
102
|
-
- **Include if relevant**: integration_points, data_models, api_contracts, relevant_adrs
|
|
107
|
+
- **Include if relevant**: integration_points, data_models, api_contracts, relevant_adrs, affected_submodules
|
|
103
108
|
- **Only include fields that were discussed**: The plan reflects the conversation from Phases 1 and 2
|
|
104
109
|
|
|
110
|
+
**affected_submodules field:**
|
|
111
|
+
|
|
112
|
+
Include this field when working in repositories with git submodules and the plan's scope touches specific submodules. This enables scope-aware ADR discovery—the adr-agent can filter to only show ADRs that are either global or scoped to the affected submodules.
|
|
113
|
+
|
|
114
|
+
- `path` (required): Relative path to the submodule, matching what appears in `.gitmodules`
|
|
115
|
+
- `reason` (optional): Brief explanation of why this submodule is affected by the plan
|
|
116
|
+
|
|
117
|
+
Example:
|
|
118
|
+
```yaml
|
|
119
|
+
affected_submodules:
|
|
120
|
+
- path: packages/auth
|
|
121
|
+
reason: Adding new authentication method
|
|
122
|
+
- path: packages/shared
|
|
123
|
+
reason: Shared types need updating for new auth flow
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
When a plan declares affected_submodules, ADRs scoped to those submodules become relevant, while ADRs scoped to unaffected submodules can be filtered out. ADRs with no scope field are always treated as global and remain relevant regardless of which submodules are affected.
|
|
127
|
+
|
|
105
128
|
**Why no approach or risks?** The plan defines WHAT we're building, not HOW. The approach (phases, task breakdown) gets figured out during decomposition in execution. Risks emerge naturally during exploration or decomposition.
|
|
106
129
|
</step>
|
|
107
130
|
|
|
@@ -56,10 +56,13 @@ While codebase exploration is happening, also spawn the adr-agent to find archit
|
|
|
56
56
|
```
|
|
57
57
|
Spawn adr-agent: "Find ADRs that would be relevant to [summary of requirements].
|
|
58
58
|
For each relevant ADR, explain why it matters and what
|
|
59
|
-
constraints it imposes on this work.
|
|
59
|
+
constraints it imposes on this work.
|
|
60
|
+
|
|
61
|
+
If this work affects specific submodules, mention which ones
|
|
62
|
+
so the agent can filter ADRs by scope."
|
|
60
63
|
```
|
|
61
64
|
|
|
62
|
-
ADRs discovered now will inform the plan you write. Better to know the rules before you design than to discover violations later.
|
|
65
|
+
ADRs discovered now will inform the plan you write. Better to know the rules before you design than to discover violations later. When specific submodules are involved, scope-aware discovery surfaces the most relevant ADRs while filtering out ADRs that only apply elsewhere.
|
|
63
66
|
</step>
|
|
64
67
|
|
|
65
68
|
<step name="Synthesize Findings">
|
|
@@ -18,6 +18,7 @@ Complete each step in order before proceeding to the next.
|
|
|
18
18
|
Spawn the adr-agent to validate the plan. The agent will:
|
|
19
19
|
- Read the plan.yaml
|
|
20
20
|
- Find ALL ADRs that might be relevant (not just the ones declared in the plan)
|
|
21
|
+
- Use the plan's `affected_submodules` field for scope-aware filtering
|
|
21
22
|
- Check compliance for each: COMPLIANT, TENSION, or CONFLICT
|
|
22
23
|
- Report what needs attention
|
|
23
24
|
|
|
@@ -28,12 +29,16 @@ Find all ADRs that could be relevant to this work—check beyond what's
|
|
|
28
29
|
declared in the plan's relevant_adrs field. Better to surface extra
|
|
29
30
|
ADRs than miss important ones.
|
|
30
31
|
|
|
32
|
+
Use the plan's affected_submodules field to focus on ADRs that apply
|
|
33
|
+
to the relevant submodules. Global ADRs always apply; submodule-scoped
|
|
34
|
+
ADRs only apply when their scope matches the affected submodules.
|
|
35
|
+
|
|
31
36
|
For each relevant ADR, report:
|
|
32
37
|
- COMPLIANT: Plan follows this ADR
|
|
33
38
|
- TENSION: Potential friction, worth noting
|
|
34
39
|
- CONFLICT: Plan violates this ADR, must resolve
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
Note in the report when ADRs were filtered by scope."
|
|
37
42
|
```
|
|
38
43
|
|
|
39
44
|
**Show the validation report to the user** before proceeding.
|