cc-dev-template 0.1.52 → 0.1.53

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-dev-template",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -19,6 +19,43 @@ There are two types. Pick one:
19
19
 
20
20
  **How to decide:** If the skill describes a process with distinct sequential phases, it is procedural. If it captures principles or knowledge applied whenever relevant, it is informational.
21
21
 
22
+ ## Determine Invocation Mode
23
+
24
+ Ask the user: "Should Claude be able to auto-activate this skill, or is it user-invoked only (via `/skill-name`)?"
25
+
26
+ **User-invoked only** — The user explicitly triggers with `/skill-name`. Use for:
27
+ - Actions with side effects (deploy, commit, publish)
28
+ - Workflows the user wants full control over
29
+ - Tasks that should never run unexpectedly
30
+
31
+ Configuration: `disable-model-invocation: true` + minimal description (just states what it does, no trigger phrases needed)
32
+
33
+ **Agent-invocable** — Claude detects when to activate based on conversation. Use for:
34
+ - Knowledge and guidance skills
35
+ - Workflows triggered by natural language patterns
36
+ - Skills where "just knowing when" is valuable
37
+
38
+ Configuration: No special flag + rich description with trigger phrases
39
+
40
+ ## Determine Execution Context
41
+
42
+ Ask the user: "Should this skill run inline (in the main conversation) or as a sub-agent (isolated context)?"
43
+
44
+ **Inline** — Skill runs in the main conversation. The agent sees all prior context and can continue the conversation naturally after the skill completes. Use for:
45
+ - Most skills
46
+ - Skills that need conversation history
47
+ - Skills where follow-up interaction is expected
48
+
49
+ Configuration: No special setting needed
50
+
51
+ **Sub-agent (fork)** — Skill runs in an isolated context. The sub-agent cannot see prior conversation and returns a single result. Use for:
52
+ - Heavy research or exploration tasks
53
+ - Parallel execution of independent work
54
+ - Skills that should not pollute the main context
55
+ - Long-running tasks that benefit from isolation
56
+
57
+ Configuration: `context: fork` (optionally add `agent: Explore` or `agent: Plan` for specialized behavior)
58
+
22
59
  ## Design the Frontmatter
23
60
 
24
61
  Every skill has YAML frontmatter. Required and optional fields:
@@ -54,6 +91,10 @@ Every skill has YAML frontmatter. Required and optional fields:
54
91
 
55
92
  ## Craft the Description
56
93
 
94
+ The description's purpose depends on the invocation mode:
95
+
96
+ ### For Agent-Invocable Skills
97
+
57
98
  The description determines when Claude activates the skill. This is the most important piece of metadata.
58
99
 
59
100
  Collect 5-10 trigger phrases from the user: "When you need this skill, what would you say to Claude?"
@@ -66,7 +107,14 @@ Combine into a description that:
66
107
 
67
108
  **Key insight:** If the description explains too much about WHAT the skill does, Claude believes it already knows enough and will not activate. Keep it about WHEN.
68
109
 
69
- **Context budget note:** Skill descriptions load at startup and share a character budget (default 15,000 chars across all skills). Keep descriptions tight — they cost tokens every session.
110
+ ### For User-Invoked Only Skills
111
+
112
+ The description just needs to tell the user what the skill does. Keep it minimal:
113
+ - One sentence stating the action
114
+ - No trigger phrases needed (Claude will not use them)
115
+ - Example: "Deploy the application to production"
116
+
117
+ **Context budget note:** Skill descriptions load at startup and share a character budget (default 15,000 chars across all skills). Keep descriptions tight — they cost tokens every session. User-invoked skills with `disable-model-invocation: true` should have especially minimal descriptions since Claude does not need activation cues.
70
118
 
71
119
  ## Plan the File Layout
72
120
 
@@ -103,6 +151,8 @@ List out the steps. Each step becomes one markdown file in `references/`. For ea
103
151
  Present the design:
104
152
  - Name
105
153
  - Type (informational or procedural)
154
+ - Invocation mode (agent-invocable or user-invoked only)
155
+ - Execution context (inline or sub-agent)
106
156
  - Frontmatter configuration
107
157
  - Description text
108
158
  - File layout
@@ -110,4 +160,9 @@ Present the design:
110
160
 
111
161
  Ask: "Does this design look right?"
112
162
 
113
- Read `references/create-step-3-write.md` when the design is confirmed.
163
+ ## Next Step
164
+
165
+ | Context | Action |
166
+ |---------|--------|
167
+ | Creating a new skill | Read `references/create-step-3-write.md` |
168
+ | Fixing an existing skill (came from fix-step-1-diagnose) | Read `references/fix-step-2-apply.md` to apply the structural changes |
@@ -80,4 +80,31 @@ Present the diagnosis to the user:
80
80
  - What principle it violates
81
81
  - What the fix would look like
82
82
 
83
- Read `references/fix-step-2-apply.md` when diagnosis is complete and findings are summarized.
83
+ ## Classify the Fix Type
84
+
85
+ Based on your diagnosis, determine which type of fix is needed:
86
+
87
+ **Surface fixes** — wording, style, dead ends, missing chain links, description tweaks:
88
+ - Fixing second person to imperative
89
+ - Adding positive framing
90
+ - Removing meta-descriptions
91
+ - Fixing broken file references
92
+ - Small description improvements
93
+
94
+ **Structural changes** — anything that changes the skill's architecture:
95
+ - Converting between informational and procedural types
96
+ - Adding or removing step files
97
+ - Adding new workflow branches
98
+ - Redesigning the file layout
99
+ - Adding scripts/ or templates/ directories
100
+ - Significantly rewriting the description and trigger phrases
101
+ - Changing frontmatter configuration (allowed-tools, context, agent, etc.)
102
+
103
+ Tell the user which type of fix is needed.
104
+
105
+ ## Next Step
106
+
107
+ | Fix Type | Action |
108
+ |----------|--------|
109
+ | Surface fixes only | Read `references/fix-step-2-apply.md` |
110
+ | Structural changes needed | Read `references/create-step-2-design.md` first to design the new structure, then read `references/fix-step-2-apply.md` to apply |
@@ -2,6 +2,17 @@
2
2
 
3
3
  Fix the issues identified in diagnosis. Plan the changes, confirm with the user, then apply.
4
4
 
5
+ ## If Coming From Design Step
6
+
7
+ If you just read `create-step-2-design.md` for structural changes, you now have:
8
+ - The skill type decision (informational vs procedural)
9
+ - The frontmatter configuration
10
+ - The crafted description with trigger phrases
11
+ - The file layout plan
12
+ - For procedural: the step breakdown
13
+
14
+ Use that design as the blueprint for your changes. The writing principles below still apply to all content you write.
15
+
5
16
  ## Plan Changes First
6
17
 
7
18
  Before editing, state:
@@ -87,4 +98,6 @@ Does this justify its token cost? If Claude already knows it — remove it. If i
87
98
 
88
99
  Make all planned modifications now.
89
100
 
101
+ For structural changes that involve writing new files (new step files, new SKILL.md sections, new scripts), reference `references/create-step-3-write.md` for the complete writing guidance — it covers size targets, step file structure, MCP tool references, and anti-patterns in more depth than the principles above.
102
+
90
103
  Read `references/fix-step-3-validate.md` when all fixes are applied.
@@ -1,5 +1,7 @@
1
1
  # Step 3: Validate and Test
2
2
 
3
+ For structural changes, use the full review checklist from `references/create-step-4-review.md` — it covers additional criteria like size targets, frontmatter validation, and description quality that matter when you've changed the skill's architecture.
4
+
3
5
  ## Public Knowledge Audit
4
6
 
5
7
  Go through every changed file. Find each code block, CLI command, API call, and implementation detail.