aiblueprint-cli 1.4.23 → 1.4.24

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.
Files changed (89) hide show
  1. package/claude-code-config/skills/git-commit/SKILL.md +42 -0
  2. package/claude-code-config/{commands/git/create-pr.md → skills/git-create-pr/SKILL.md} +12 -18
  3. package/claude-code-config/skills/git-fix-pr-comments/SKILL.md +51 -0
  4. package/claude-code-config/skills/git-merge/SKILL.md +68 -0
  5. package/claude-code-config/skills/{claude-memory → meta-claude-memory}/SKILL.md +7 -2
  6. package/claude-code-config/skills/meta-claude-memory/references/rules-directory-guide.md +298 -0
  7. package/claude-code-config/skills/meta-prompt-creator/SKILL.md +285 -0
  8. package/claude-code-config/skills/meta-prompt-creator/references/anthropic-best-practices.md +126 -0
  9. package/claude-code-config/skills/meta-prompt-creator/references/anti-patterns.md +57 -0
  10. package/claude-code-config/skills/meta-prompt-creator/references/clarity-principles.md +54 -0
  11. package/claude-code-config/skills/meta-prompt-creator/references/context-management.md +389 -0
  12. package/claude-code-config/skills/meta-prompt-creator/references/few-shot-patterns.md +47 -0
  13. package/claude-code-config/skills/meta-prompt-creator/references/openai-best-practices.md +50 -0
  14. package/claude-code-config/skills/meta-prompt-creator/references/prompt-templates.md +110 -0
  15. package/claude-code-config/skills/meta-prompt-creator/references/reasoning-techniques.md +52 -0
  16. package/claude-code-config/skills/meta-prompt-creator/references/system-prompt-patterns.md +48 -0
  17. package/claude-code-config/skills/meta-prompt-creator/references/xml-structure.md +36 -0
  18. package/claude-code-config/skills/meta-skill-creator/LICENSE.txt +202 -0
  19. package/claude-code-config/skills/meta-skill-creator/SKILL.md +421 -0
  20. package/claude-code-config/skills/meta-skill-creator/package.json +5 -0
  21. package/claude-code-config/skills/meta-skill-creator/references/output-patterns.md +82 -0
  22. package/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md +374 -0
  23. package/claude-code-config/skills/meta-skill-creator/references/prompting-integration.md +363 -0
  24. package/claude-code-config/skills/meta-skill-creator/references/real-world-examples.md +513 -0
  25. package/claude-code-config/skills/meta-skill-creator/references/script-patterns.md +385 -0
  26. package/claude-code-config/skills/meta-skill-creator/references/workflows.md +28 -0
  27. package/claude-code-config/skills/meta-skill-creator/references/xml-tag-guide.md +606 -0
  28. package/claude-code-config/skills/meta-skill-creator/scripts/init-skill.ts +214 -0
  29. package/claude-code-config/skills/meta-skill-creator/scripts/package-skill.ts +146 -0
  30. package/claude-code-config/skills/meta-skill-creator/scripts/validate.ts +138 -0
  31. package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/SKILL.md +41 -15
  32. package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-00-init.md +2 -3
  33. package/claude-code-config/skills/utils-fix-errors/SKILL.md +61 -0
  34. package/claude-code-config/skills/utils-fix-grammar/SKILL.md +59 -0
  35. package/claude-code-config/skills/utils-oneshot/SKILL.md +56 -0
  36. package/claude-code-config/skills/workflow-apex/SKILL.md +303 -0
  37. package/claude-code-config/skills/workflow-apex/scripts/setup-templates.sh +134 -0
  38. package/claude-code-config/skills/workflow-apex/scripts/update-progress.sh +80 -0
  39. package/claude-code-config/skills/workflow-apex/steps/step-00-init.md +288 -0
  40. package/claude-code-config/skills/workflow-apex/steps/step-00b-branch.md +126 -0
  41. package/claude-code-config/skills/workflow-apex/steps/step-00b-economy.md +244 -0
  42. package/claude-code-config/skills/workflow-apex/steps/step-00b-interactive.md +153 -0
  43. package/claude-code-config/skills/workflow-apex/steps/step-01-analyze.md +361 -0
  44. package/claude-code-config/skills/workflow-apex/steps/step-02-plan.md +264 -0
  45. package/claude-code-config/skills/workflow-apex/steps/step-03-execute.md +239 -0
  46. package/claude-code-config/skills/workflow-apex/steps/step-04-validate.md +264 -0
  47. package/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +294 -0
  48. package/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +237 -0
  49. package/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +250 -0
  50. package/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +308 -0
  51. package/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +193 -0
  52. package/claude-code-config/skills/workflow-apex/templates/00-context.md +51 -0
  53. package/claude-code-config/skills/workflow-apex/templates/01-analyze.md +10 -0
  54. package/claude-code-config/skills/workflow-apex/templates/02-plan.md +10 -0
  55. package/claude-code-config/skills/workflow-apex/templates/03-execute.md +10 -0
  56. package/claude-code-config/skills/workflow-apex/templates/04-validate.md +10 -0
  57. package/claude-code-config/skills/workflow-apex/templates/05-examine.md +10 -0
  58. package/claude-code-config/skills/workflow-apex/templates/06-resolve.md +10 -0
  59. package/claude-code-config/skills/workflow-apex/templates/07-tests.md +10 -0
  60. package/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +10 -0
  61. package/claude-code-config/skills/workflow-apex/templates/09-finish.md +10 -0
  62. package/claude-code-config/skills/workflow-apex/templates/README.md +195 -0
  63. package/claude-code-config/skills/workflow-apex/templates/step-complete.md +7 -0
  64. package/package.json +1 -1
  65. package/claude-code-config/commands/explore.md +0 -90
  66. package/claude-code-config/commands/git/commit.md +0 -60
  67. package/claude-code-config/commands/git/fix-pr-comments.md +0 -59
  68. package/claude-code-config/commands/oneshot.md +0 -57
  69. package/claude-code-config/skills/create-slash-commands/SKILL.md +0 -1110
  70. package/claude-code-config/skills/create-slash-commands/references/arguments.md +0 -273
  71. package/claude-code-config/skills/create-slash-commands/references/patterns.md +0 -947
  72. package/claude-code-config/skills/create-slash-commands/references/prompt-examples.md +0 -656
  73. package/claude-code-config/skills/create-slash-commands/references/tool-restrictions.md +0 -389
  74. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/comprehensive-example.md +0 -0
  75. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/project-patterns.md +0 -0
  76. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/prompting-techniques.md +0 -0
  77. /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/section-templates.md +0 -0
  78. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/context-management.md +0 -0
  79. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/debugging-agents.md +0 -0
  80. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/error-handling-and-recovery.md +0 -0
  81. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/evaluation-and-testing.md +0 -0
  82. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/orchestration-patterns.md +0 -0
  83. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/subagents.md +0 -0
  84. /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/writing-subagent-prompts.md +0 -0
  85. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/SKILL.md +0 -0
  86. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/scripts/setup.sh +0 -0
  87. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-01-interactive-prd.md +0 -0
  88. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-02-create-stories.md +0 -0
  89. /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-03-finish.md +0 -0
@@ -0,0 +1,195 @@
1
+ # APEX Template System
2
+
3
+ ## Overview
4
+
5
+ This directory contains template files used to initialize APEX workflow outputs when save mode (`-s`) is enabled. This template system significantly reduces token usage by moving repetitive content out of step files.
6
+
7
+ ## Template Files
8
+
9
+ | Template | Purpose | Created When |
10
+ |----------|---------|--------------|
11
+ | `00-context.md` | Workflow configuration and progress tracking | Always (if save_mode) |
12
+ | `01-analyze.md` | Analysis findings | Always (if save_mode) |
13
+ | `02-plan.md` | Implementation plan | Always (if save_mode) |
14
+ | `03-execute.md` | Implementation log | Always (if save_mode) |
15
+ | `04-validate.md` | Validation results | Always (if save_mode) |
16
+ | `05-examine.md` | Adversarial review findings | Only if examine_mode enabled |
17
+ | `06-resolve.md` | Finding resolution log | Only if examine_mode enabled |
18
+ | `07-tests.md` | Test analysis and creation | Only if test_mode enabled |
19
+ | `08-run-tests.md` | Test runner log | Only if test_mode enabled |
20
+ | `09-finish.md` | PR creation log | Only if pr_mode enabled |
21
+ | `step-complete.md` | Completion marker template | Referenced in steps |
22
+
23
+ ## Template Variables
24
+
25
+ Templates use `{{variable}}` syntax for placeholders:
26
+
27
+ | Variable | Description | Example |
28
+ |----------|-------------|---------|
29
+ | `{{task_id}}` | Kebab-case task identifier | `01-add-auth-middleware` |
30
+ | `{{task_description}}` | Plain text task description | `add authentication middleware` |
31
+ | `{{timestamp}}` | ISO 8601 timestamp | `2026-01-12T10:30:00Z` |
32
+ | `{{auto_mode}}` | Auto mode flag | `true` or `false` |
33
+ | `{{examine_mode}}` | Examine mode flag | `true` or `false` |
34
+ | `{{save_mode}}` | Save mode flag | `true` or `false` |
35
+ | `{{test_mode}}` | Test mode flag | `true` or `false` |
36
+ | `{{economy_mode}}` | Economy mode flag | `true` or `false` |
37
+ | `{{branch_mode}}` | Branch mode flag | `true` or `false` |
38
+ | `{{pr_mode}}` | PR mode flag | `true` or `false` |
39
+ | `{{interactive_mode}}` | Interactive mode flag | `true` or `false` |
40
+ | `{{branch_name}}` | Git branch name | `feature/add-auth` |
41
+ | `{{original_input}}` | Raw user input | `/apex -a -s add auth` |
42
+ | `{{examine_status}}` | Progress status for examine steps | `⏸ Pending` or `⏭ Skip` |
43
+ | `{{test_status}}` | Progress status for test steps | `⏸ Pending` or `⏭ Skip` |
44
+ | `{{pr_status}}` | Progress status for PR step | `⏸ Pending` or `⏭ Skip` |
45
+
46
+ ## Setup Script
47
+
48
+ ### `setup-templates.sh`
49
+
50
+ Initializes all template files in the output directory with variables replaced.
51
+
52
+ **Usage:**
53
+ ```bash
54
+ bash scripts/setup-templates.sh \
55
+ "task_id" \
56
+ "task_description" \
57
+ "auto_mode" \
58
+ "examine_mode" \
59
+ "save_mode" \
60
+ "test_mode" \
61
+ "economy_mode" \
62
+ "branch_mode" \
63
+ "pr_mode" \
64
+ "interactive_mode" \
65
+ "branch_name" \
66
+ "original_input"
67
+ ```
68
+
69
+ **Output:**
70
+ ```
71
+ .claude/output/apex/01-add-auth-middleware/
72
+ ├── 00-context.md # Always created
73
+ ├── 01-analyze.md # Always created
74
+ ├── 02-plan.md # Always created
75
+ ├── 03-execute.md # Always created
76
+ ├── 04-validate.md # Always created
77
+ ├── 05-examine.md # Only if examine_mode
78
+ ├── 06-resolve.md # Only if examine_mode
79
+ ├── 07-tests.md # Only if test_mode
80
+ ├── 08-run-tests.md # Only if test_mode
81
+ └── 09-finish.md # Only if pr_mode
82
+ ```
83
+
84
+ ## Progress Update Script
85
+
86
+ ### `update-progress.sh`
87
+
88
+ Updates the progress table in `00-context.md` without manual markdown editing.
89
+
90
+ **Usage:**
91
+ ```bash
92
+ bash scripts/update-progress.sh <task_id> <step_number> <step_name> <status>
93
+ ```
94
+
95
+ **Examples:**
96
+ ```bash
97
+ # Mark step 01 as in progress
98
+ bash scripts/update-progress.sh "01-add-auth" "01" "analyze" "in_progress"
99
+
100
+ # Mark step 01 as complete
101
+ bash scripts/update-progress.sh "01-add-auth" "01" "analyze" "complete"
102
+
103
+ # Mark step 02 as in progress
104
+ bash scripts/update-progress.sh "01-add-auth" "02" "plan" "in_progress"
105
+ ```
106
+
107
+ **Status Values:**
108
+ - `in_progress` → `⏳ In Progress`
109
+ - `complete` → `✓ Complete`
110
+
111
+ ## Token Savings
112
+
113
+ ### Before Optimization
114
+
115
+ Each step file contained full template content inline:
116
+
117
+ ```markdown
118
+ ### 1. Initialize Save Output (if save_mode)
119
+
120
+ **If `{save_mode}` = true:**
121
+
122
+ Create `{output_dir}/01-analyze.md`:
123
+ ```markdown
124
+ # Step 01: Analyze
125
+
126
+ **Task:** {task_description}
127
+ **Started:** {ISO timestamp}
128
+
129
+ ---
130
+
131
+ ## Context Discovery
132
+ ```
133
+
134
+ Update `00-context.md` progress:
135
+ ```markdown
136
+ | 01-analyze | ⏳ In Progress | {timestamp} |
137
+ ```
138
+ ```
139
+
140
+ **Token cost per step:** ~200 tokens × 9 steps = ~1,800 tokens
141
+
142
+ ### After Optimization
143
+
144
+ Step files now reference templates and scripts:
145
+
146
+ ```markdown
147
+ ### 1. Initialize Save Output (if save_mode)
148
+
149
+ **If `{save_mode}` = true:**
150
+
151
+ The file `{output_dir}/01-analyze.md` has already been created by the setup script.
152
+
153
+ Update progress:
154
+ ```bash
155
+ bash {skill_dir}/scripts/update-progress.sh "{task_id}" "01" "analyze" "in_progress"
156
+ ```
157
+
158
+ Append your findings to `01-analyze.md` as you work.
159
+ ```
160
+
161
+ **Token cost per step:** ~50 tokens × 9 steps = ~450 tokens
162
+
163
+ **Total savings:** ~1,350 tokens per workflow execution (75% reduction)
164
+
165
+ ## How It Works
166
+
167
+ 1. **Initialization (step-00-init.md):**
168
+ - Runs `setup-templates.sh` once at workflow start
169
+ - Creates all template files with variables replaced
170
+ - Output directory is ready with pre-initialized files
171
+
172
+ 2. **Each Step:**
173
+ - Runs `update-progress.sh` to mark step as "in_progress"
174
+ - Appends findings/logs to the pre-created step file
175
+ - Runs `update-progress.sh` again to mark step as "complete"
176
+
177
+ 3. **Benefits:**
178
+ - AI doesn't need to hold template content in context
179
+ - Consistent formatting across all workflows
180
+ - Easy to update templates without editing step files
181
+ - Scripts handle the tedious markdown updates
182
+
183
+ ## Updating Templates
184
+
185
+ To modify template content:
186
+
187
+ 1. Edit the template file in `templates/`
188
+ 2. Changes apply to all future workflows automatically
189
+ 3. No need to update step files
190
+
191
+ ## Maintenance
192
+
193
+ - Templates are stateless (no workflow-specific logic)
194
+ - Scripts are idempotent (safe to run multiple times)
195
+ - Variables use `{{var}}` syntax to avoid conflicts with markdown
@@ -0,0 +1,7 @@
1
+ ---
2
+
3
+ ## Step Complete
4
+
5
+ **Status:** ✓ Complete
6
+ **Next:** {{next_step}}
7
+ **Timestamp:** {{timestamp}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "AIBlueprint CLI for setting up Claude Code configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",
@@ -1,90 +0,0 @@
1
- ---
2
- description: Deep exploration of codebase, docs, and web for any topic or question
3
- argument-hint: <topic-or-question>
4
- ---
5
-
6
- You are an exploration specialist. Your mission is to gather comprehensive context about a topic.
7
-
8
- **ULTRA THINK before launching agents.**
9
-
10
- ## Workflow
11
-
12
- 1. **ULTRA THINK**: Plan exploration strategy
13
- - Identify key concepts, files, patterns to find
14
- - Determine which sources need exploration (codebase/docs/web)
15
- - List specific questions each agent should answer
16
- - **CRITICAL**: Know EXACTLY what to search for before launching agents
17
-
18
- 2. **LAUNCH PARALLEL EXPLORATION**: Gather context from all sources
19
-
20
- Launch ALL relevant agents in parallel in a single message.
21
- Scale agent count based on complexity:
22
-
23
- - **Codebase exploration** (`explore-codebase` agents):
24
- - Simple topic: 1 agent for general search
25
- - Complex topic: 2-3 agents for different aspects
26
- - Multi-area: 1 agent per codebase area
27
-
28
- Each agent should:
29
- - Find related implementations and examples
30
- - Locate relevant files and patterns
31
- - Identify existing conventions and utilities
32
- - Search for related helpers and abstractions
33
-
34
- - **Documentation exploration** (`explore-docs` agents):
35
- - Single library: 1 agent with focused topics
36
- - Multiple libraries: 1 agent per library
37
- - Complex integration: agents for each + integration
38
-
39
- Each agent should:
40
- - Search library docs for APIs and patterns
41
- - Find best practices for tools being used
42
- - Gather code examples from official docs
43
-
44
- - **Web research** (`websearch` agents):
45
- - Simple question: 1 agent
46
- - Multi-faceted topic: 2-3 agents for different angles
47
-
48
- Each agent should:
49
- - Research latest approaches and solutions
50
- - Find community examples and patterns
51
- - Gather architectural guidance
52
-
53
- ## Agent Scaling Guide
54
-
55
- | Complexity | Codebase | Docs | Web |
56
- |-----------|----------|------|-----|
57
- | Simple | 1 | 1 | 1 |
58
- | Medium | 2 | 1-2 | 1 |
59
- | Complex | 2-3 | 2-3 | 2 |
60
- | Multi-library | 1-2 | 1 per lib | 1-2 |
61
-
62
- 3. **SYNTHESIZE FINDINGS**: Combine and organize results
63
- - Merge findings from all agents
64
- - Organize by topic/concern
65
- - Include file paths with line numbers (e.g., `src/auth.ts:42`)
66
- - Highlight key patterns and examples found
67
- - Note any dependencies or prerequisites
68
-
69
- 4. **REPORT**: Present findings to user
70
- - **Key Files**: List relevant files with purposes
71
- - **Patterns**: Existing conventions to follow
72
- - **Examples**: Code snippets and implementations found
73
- - **Documentation**: Key insights from docs
74
- - **Recommendations**: Suggested approaches based on findings
75
-
76
- ## Execution Rules
77
-
78
- - **PARALLEL EXECUTION**: All agents must run simultaneously for speed
79
- - **ULTRA THINK FIRST**: Never launch agents without clear search strategy
80
- - **COMPREHENSIVE**: Gather more context than seems necessary
81
- - **FILE REFERENCES**: Always include file paths with line numbers
82
- - **NO FILES**: Do NOT create any files - output findings directly
83
-
84
- ## Priority
85
-
86
- Context depth > Speed. Thorough exploration prevents implementation issues.
87
-
88
- ---
89
-
90
- User: #$ARGUMENTS
@@ -1,60 +0,0 @@
1
- ---
2
- description: Quick commit and push with minimal, clean messages
3
- model: haiku
4
- allowed-tools: Bash(git :*), Bash(npm :*), Bash(pnpm :*)
5
- ---
6
-
7
- <objective>
8
- Quickly analyze git changes and create a conventional commit message following the commitizen format (e.g., "update(statusline): refresh spend data"). This command prioritizes speed and efficiency for straightforward commits.
9
- </objective>
10
-
11
- <context>
12
- Git state: !`git status`
13
- Staged changes: !`git diff --cached --stat`
14
- Unstaged changes: !`git diff --stat`
15
- Recent commits: !`git log --oneline -5`
16
- Current branch: !`git branch --show-current`
17
- </context>
18
-
19
- <process>
20
- 1. **Analyze changes**: Review git status to determine what needs to be committed
21
- - If nothing staged but unstaged changes exist: stage all changes with `git add .`
22
- - If nothing to commit: inform user and exit
23
-
24
- 2. **Determine commit type and scope**:
25
- - Types: `feat`, `fix`, `update`, `docs`, `chore`, `refactor`, `test`, `perf`, `revert`
26
- - Scope: Identify the main area affected (e.g., `statusline`, `auth`, `api`, `ui`, `commands`)
27
- - Use `update` for refreshing/updating existing features
28
- - Use `feat` for new features
29
- - Use `fix` for bug fixes
30
-
31
- 3. **Generate commit message**:
32
- - Format: `type(scope): brief description`
33
- - Keep it under 72 characters
34
- - Use imperative mood ("add" not "added")
35
- - Start description with lowercase
36
- - Be specific but concise
37
- - Example: `update(statusline): refresh spend data`
38
-
39
- 4. **Create commit**: Execute `git commit -m "message"` immediately with the generated message
40
-
41
- 5. **Push changes**: After successful commit, push to remote with `git push`
42
- </process>
43
-
44
- <success_criteria>
45
- - Changes properly staged if needed
46
- - Commit message follows format: `type(scope): description`
47
- - Commit created successfully
48
- - Changes pushed to remote
49
- - No errors during git operations
50
- </success_criteria>
51
-
52
- <rules>
53
- - **SPEED OVER PERFECTION**: Generate one good commit message and commit immediately
54
- - **NO INTERACTION**: Never use AskUserQuestion - just analyze and commit
55
- - **AUTO-STAGE**: If changes exist but nothing staged, stage everything
56
- - **AUTO-PUSH**: Always push after committing
57
- - **MINIMAL OUTPUT**: Brief confirmation of what was committed
58
- - **IMPERATIVE MOOD**: Use "add", "update", "fix", not past tense
59
- - **LOWERCASE**: Description starts lowercase after colon
60
- </rules>
@@ -1,59 +0,0 @@
1
- ---
2
- description: Fetch PR review comments and implement all requested changes
3
- allowed-tools: Bash(gh :*), Bash(git :*), Read, Edit, MultiEdit
4
- ---
5
-
6
- You are a PR review resolver. **Systematically address ALL unresolved review comments until PR is approved.**
7
-
8
- ## Context
9
-
10
- - Current branch: !`git branch --show-current`
11
- - Working tree status: !`git status --short`
12
- - Recent commits: !`git log --oneline -3`
13
-
14
- ## Workflow
15
-
16
- 1. **FETCH COMMENTS**: Gather all unresolved PR feedback
17
- - **Identify PR**: `gh pr status --json number,headRefName`
18
- - **Get reviews**: `gh pr review list --state CHANGES_REQUESTED`
19
- - **Get inline**: `gh api repos/{owner}/{repo}/pulls/{number}/comments`
20
- - **CRITICAL**: Capture BOTH review comments AND inline code comments
21
- - **STOP** if no PR found - ask user for PR number
22
-
23
- 2. **ANALYZE & PLAN**: Map feedback to specific actions
24
- - **Extract locations**: Note exact file:line references
25
- - **Group by file**: Batch changes for MultiEdit efficiency
26
- - **Define scope**: List **ONLY** files from review comments
27
- - **STAY IN SCOPE**: NEVER fix unrelated issues
28
- - **Create checklist**: One item per comment to track
29
-
30
- 3. **IMPLEMENT FIXES**: Address each comment systematically
31
- - **BEFORE editing**: ALWAYS `Read` the target file first
32
- - **Batch changes**: Use `MultiEdit` for same-file modifications
33
- - **Verify resolution**: Each comment **MUST** be fully addressed
34
- - **Direct fixes only**: Make **EXACTLY** what reviewer requested
35
- - **Track progress**: Check off each resolved comment
36
-
37
- 4. **COMMIT & PUSH**: Submit all fixes as single commit
38
- - **Stage everything**: `git add -A`
39
- - **Commit format**: `fix: address PR review comments`
40
- - **Push changes**: `git push` to update the PR
41
- - **NEVER include**: No "Generated with Claude Code" or co-author tags
42
- - **Verify**: Check PR updated with `gh pr view`
43
-
44
- ## Execution Rules
45
-
46
- - **NON-NEGOTIABLE**: Every unresolved comment MUST be addressed
47
- - **CRITICAL RULE**: Read files BEFORE any edits - no exceptions
48
- - **MUST** use exact file paths from review comments
49
- - **STOP** if unable to fetch comments - request PR number
50
- - **FORBIDDEN**: Style changes beyond reviewer requests
51
- - **On failure**: Return to ANALYZE phase, never skip comments
52
-
53
- ## Priority
54
-
55
- **Reviewer requests > Everything else**. STAY IN SCOPE - fix ONLY what was requested.
56
-
57
- ---
58
-
59
- User: #$ARGUMENTS
@@ -1,57 +0,0 @@
1
- ---
2
- description: Ultra-fast feature implementation - Explore then Code then Test
3
- argument-hint: <feature-description>
4
- ---
5
-
6
- <objective>
7
- Implement #$ARGUMENTS at maximum speed using the OneShot methodology.
8
-
9
- This workflow prioritizes rapid delivery through surgical exploration, immediate implementation, and focused validation. Speed over completeness - ship fast, iterate later.
10
- </objective>
11
-
12
- <process>
13
- 1. **EXPLORE** (5-10 min max):
14
- - Launch 1-2 parallel subagents maximum to find relevant files
15
- - Use `explore-codebase` for codebase search
16
- - Use `explore-docs` ONLY if library-specific knowledge needed
17
- - Find files to use as examples or edit targets
18
- - Be surgical - know exactly what to search for
19
- - NO PLANNING PHASE - gather context and move to coding
20
-
21
- 2. **CODE** (implement immediately):
22
- - Start coding as soon as basic context available
23
- - Follow existing codebase patterns and style
24
- - Prefer clear variable/method names over comments
25
- - Stay STRICTLY in scope - change only what's needed
26
- - NO comments unless absolutely necessary
27
- - NO refactoring beyond feature requirements
28
- - Run autoformatting scripts when done
29
- - Fix reasonable linter warnings as you go
30
-
31
- 3. **TEST** (validate quality):
32
- - Check package.json for available scripts (lint, typecheck, format)
33
- - Run: `npm run lint && npm run typecheck` (or equivalent)
34
- - If checks fail: fix errors immediately and re-run
35
- - Stay in scope - don't run full test suite unless requested
36
- - For major changes only: run relevant tests with `npm test -- <pattern>`
37
- </process>
38
-
39
- <rules>
40
- **Critical constraints:**
41
- - SPEED IS PRIORITY: Move fast, break nothing
42
- - NO PLANNING: Trust exploration and code directly
43
- - PARALLEL AGENTS: Max 2 agents during explore phase
44
- - MINIMAL TESTS: Lint + typecheck only (unless user requests more)
45
- - STAY FOCUSED: Implement exactly what's requested, nothing more
46
- - ULTRA THINK: Always engage deep reasoning for optimal solutions
47
- - If stuck or uncertain: ask user immediately instead of over-exploring
48
- </rules>
49
-
50
- <success_criteria>
51
-
52
- - Feature implemented following existing codebase patterns
53
- - Code passes linting and type checking
54
- - Implementation stays strictly within requested scope
55
- - No unnecessary comments or refactoring
56
- - Autoformatting applied where available
57
- </success_criteria>