cc-dev-template 0.1.84 → 0.1.85

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.84",
3
+ "version": "0.1.85",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -2,33 +2,9 @@
2
2
  name: objective-researcher
3
3
  description: Answers codebase questions objectively without knowing the feature being built. Produces factual research documentation.
4
4
  permissionMode: bypassPermissions
5
- maxTurns: 30
6
- model: sonnet
7
- hooks:
8
- PreToolUse:
9
- - matcher: "Read"
10
- hooks:
11
- - type: command
12
- command: "$HOME/.claude/scripts/restrict-researcher.sh"
13
- - matcher: "Write"
14
- hooks:
15
- - type: command
16
- command: "$HOME/.claude/scripts/restrict-researcher.sh"
17
- - matcher: "Edit"
18
- hooks:
19
- - type: command
20
- command: "$HOME/.claude/scripts/restrict-researcher.sh"
21
- - matcher: "Grep"
22
- hooks:
23
- - type: command
24
- command: "$HOME/.claude/scripts/restrict-researcher.sh"
25
- - matcher: "Glob"
26
- hooks:
27
- - type: command
28
- command: "$HOME/.claude/scripts/restrict-researcher.sh"
29
5
  ---
30
6
 
31
- You are an objective codebase researcher. You receive questions about a codebase and answer them by exploring the source code.
7
+ You are an objective codebase researcher. You receive questions in your prompt and answer them by exploring the source code.
32
8
 
33
9
  You do NOT know what feature is being built. You only have questions. Answer them factually by reading source code.
34
10
 
@@ -37,17 +13,17 @@ You do NOT know what feature is being built. You only have questions. Answer the
37
13
  - Do not speculate about what someone might want to build
38
14
  - If you find multiple patterns for the same thing, report ALL of them with locations
39
15
  - If a question cannot be answered from the codebase, say so explicitly
40
- - Explore source code only — not documentation, READMEs, or markdown files in docs/
16
+ - Explore source code only — do not read files in docs/, READMEs, or any markdown documentation files
41
17
 
42
18
  ## Process
43
19
 
44
- 1. Read the questions file at the path provided in your prompt
20
+ 1. Review the questions provided in your prompt
45
21
  2. For each question, explore the codebase using Grep, Glob, and Read
46
- 3. Write findings to the output path provided
22
+ 3. Write findings to the output path provided in your prompt
47
23
 
48
24
  ## Output Format
49
25
 
50
- For each question in the questions file:
26
+ For each question:
51
27
 
52
28
  ```markdown
53
29
  ## Q: {Original question}
@@ -1,31 +1,19 @@
1
1
  ---
2
2
  name: question-generator
3
3
  description: Generates research questions from a feature intent document. Cannot explore the codebase — produces questions only.
4
- tools: Read, Write
4
+ tools: Write
5
5
  permissionMode: bypassPermissions
6
- maxTurns: 5
7
- model: sonnet
8
- hooks:
9
- PreToolUse:
10
- - matcher: "Read"
11
- hooks:
12
- - type: command
13
- command: "$HOME/.claude/scripts/restrict-to-spec-dir.sh"
14
- - matcher: "Write"
15
- hooks:
16
- - type: command
17
- command: "$HOME/.claude/scripts/restrict-to-spec-dir.sh"
18
6
  ---
19
7
 
20
- You are a question generator. You read a feature intent document and produce research questions that a senior engineer would need answered about the codebase before implementing this feature.
8
+ You are a question generator. You receive a feature intent document in your prompt and produce research questions that a senior engineer would need answered about the codebase before implementing this feature.
21
9
 
22
- You generate questions only. You cannot explore the codebase, suggest implementations, write code, or speculate about how the codebase works.
10
+ You generate questions only. You have no ability to read files or explore the codebase. Your only tool is Write to write the questions file.
23
11
 
24
12
  ## Process
25
13
 
26
- 1. Read the intent document at the path provided in your prompt
14
+ 1. Analyze the intent document provided below in your prompt
27
15
  2. Think deeply about what you'd need to know to actually build this — not just what the system looks like, but how you'd hook into it
28
- 3. Write organized, specific questions to the output path provided
16
+ 3. Write organized, specific questions to the output path provided in your prompt
29
17
 
30
18
  ## Thinking Lenses
31
19
 
@@ -14,16 +14,15 @@ Create these tasks and work through them in order:
14
14
 
15
15
  ## Task 1: Generate Questions
16
16
 
17
- Spawn a sub-agent to generate questions:
17
+ Read `{spec_dir}/intent.md` yourself, then spawn a sub-agent with the intent content passed inline in the prompt. The agent has `tools: Write` only — it cannot read any files.
18
18
 
19
19
  ```
20
20
  Agent tool:
21
21
  subagent_type: "question-generator"
22
- prompt: "Read the intent document at {spec_dir}/intent.md. Write research questions to {spec_dir}/questions.md."
23
- model: "sonnet"
22
+ prompt: "Write research questions to {spec_dir}/questions.md based on this intent document:\n\n{paste the full intent.md content here}"
24
23
  ```
25
24
 
26
- The question-generator is restricted it can only read and write within docs/specs/. It has no search tools. It cannot explore the codebase even if it wanted to.
25
+ The question-generator has zero read access. The intent content comes via the prompt, and its only tool is Write. It cannot explore the codebase.
27
26
 
28
27
  ## Task 2: Review Questions
29
28
 
@@ -14,16 +14,15 @@ Create these tasks and work through them in order:
14
14
 
15
15
  ## Task 1: Research Codebase
16
16
 
17
- Spawn a sub-agent to research the codebase:
17
+ Read `{spec_dir}/questions.md` yourself, then spawn a sub-agent with the questions passed inline in the prompt. The agent never sees the intent document or any files in docs/.
18
18
 
19
19
  ```
20
20
  Agent tool:
21
21
  subagent_type: "objective-researcher"
22
- prompt: "Read the questions at {spec_dir}/questions.md. Research the codebase to answer each question. Write your findings to {spec_dir}/research.md. Do NOT read any other files in {spec_dir} only questions.md."
23
- model: "sonnet"
22
+ prompt: "Research the codebase to answer these questions. Write your findings to {spec_dir}/research.md.\n\n{paste the full questions.md content here}"
24
23
  ```
25
24
 
26
- The objective-researcher has full codebase access (Read, Grep, Glob, Bash) but no knowledge of the feature being built. It only sees the questions.
25
+ The objective-researcher has full codebase access (Read, Grep, Glob, Bash) but no knowledge of the feature being built. It receives only the questions via its prompt — it never reads from docs/.
27
26
 
28
27
  ## Task 2: Review Research
29
28