aiblueprint-cli 1.0.1 → 1.1.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.
Files changed (38) hide show
  1. package/claude-code-config/agents/explore-codebase.md +57 -0
  2. package/claude-code-config/agents/snipper.md +34 -0
  3. package/claude-code-config/agents/websearch.md +45 -0
  4. package/claude-code-config/commands/claude-memory.md +190 -0
  5. package/claude-code-config/commands/cleanup-context.md +82 -0
  6. package/claude-code-config/commands/commit.md +42 -10
  7. package/claude-code-config/commands/create-pull-request.md +33 -17
  8. package/claude-code-config/commands/deep-code-analysis.md +69 -19
  9. package/claude-code-config/commands/epct.md +49 -21
  10. package/claude-code-config/commands/explain-architecture.md +113 -0
  11. package/claude-code-config/commands/fix-pr-comments.md +45 -6
  12. package/claude-code-config/commands/prompt-agent.md +126 -0
  13. package/claude-code-config/commands/prompt-command.md +225 -0
  14. package/claude-code-config/commands/run-tasks.md +80 -25
  15. package/claude-code-config/commands/watch-ci.md +37 -16
  16. package/claude-code-config/hooks/hook-post-file.ts +162 -0
  17. package/claude-code-config/scripts/statusline-ccusage.sh +42 -10
  18. package/claude-code-config/scripts/validate-command.js +128 -42
  19. package/dist/cli.js +30775 -2514
  20. package/package.json +12 -4
  21. package/claude-code-config/agents/epct/code.md +0 -28
  22. package/claude-code-config/agents/epct/explore-orchestrator.md +0 -32
  23. package/claude-code-config/agents/epct/explore.md +0 -28
  24. package/claude-code-config/agents/epct/plan.md +0 -14
  25. package/claude-code-config/agents/epct/test.md +0 -12
  26. package/claude-code-config/agents/product/feedback-synthesizer.md +0 -146
  27. package/claude-code-config/agents/product/sprint-prioritizer.md +0 -102
  28. package/claude-code-config/agents/product/trend-researcher.md +0 -157
  29. package/claude-code-config/agents/tasks/app-store-optimizer.md +0 -192
  30. package/claude-code-config/agents/tasks/backend-reliability-engineer.md +0 -126
  31. package/claude-code-config/agents/tasks/code.md +0 -12
  32. package/claude-code-config/agents/tasks/frontend-ux-specialist.md +0 -136
  33. package/claude-code-config/agents/tasks/growth-hacker.md +0 -209
  34. package/claude-code-config/agents/tasks/prd-writer.md +0 -141
  35. package/claude-code-config/agents/tasks/senior-software-engineer.md +0 -75
  36. package/claude-code-config/agents/tasks/twitter-engager.md +0 -126
  37. package/claude-code-config/commands/deploy.md +0 -20
  38. package/claude-code-config/commands/epct-agent.md +0 -28
@@ -1,41 +1,69 @@
1
1
  ---
2
- description: Explore codebase, create implementation plan, code, and test following EPCT workflow
2
+ description: Systematic implementation using Explore-Plan-Code-Test methodology
3
3
  ---
4
4
 
5
- # Explore, Plan, Code, Test Workflow
5
+ You are a systematic implementation specialist. Follow the EPCT workflow rigorously for every task.
6
6
 
7
- At the end of this message, I will ask you to do something.
8
- Please follow the "Explore, Plan, Code, Test" workflow when you start.
7
+ **You need to always ULTRA THINK.**
9
8
 
10
- ## Explore
9
+ ## 1. EXPLORE
11
10
 
12
- First, use parallel subagents to find and read all files that may be useful for implementing the ticket, either as examples or as edit targets. The subagents should return relevant file paths, and any other info that may be useful.
11
+ **Goal**: Find all relevant files for implementation
13
12
 
14
- ## Plan
13
+ - Launch **parallel subagents** to search codebase (`explore-codebase` agent is good for that)
14
+ - Launch **parallel subagents** to gather online information (`websearch` agent is good for that)
15
+ - Find files to use as **examples** or **edit targets**
16
+ - Return relevant file paths and useful context
17
+ - **CRITICAL**: Think deeply before starting agents - know exactly what to search for
18
+ - Use multiple agents to search across different areas
15
19
 
16
- Next, think hard and write up a detailed implementation plan. Don't forget to include tests, lookbook components, and documentation. Use your judgement as to what is necessary, given the standards of this repo.
20
+ ## 2. PLAN
17
21
 
18
- If there are things you are not sure about, use parallel subagents to do some web research. They should only return useful information, no noise.
22
+ **Goal**: Create detailed implementation strategy
19
23
 
20
- If there are things you still do not understand or questions you have for the user, pause here to ask them before continuing.
24
+ - Write comprehensive implementation plan including:
25
+ - Core functionality changes
26
+ - Test coverage requirements
27
+ - Lookbook components if needed
28
+ - Documentation updates
29
+ - **STOP and ASK** user if anything remains unclear
21
30
 
22
- ## Code
31
+ ## 3. CODE
23
32
 
24
- When you have a thorough implementation plan, you are ready to start writing code. Follow the style of the existing codebase (e.g. we prefer clearly named variables and methods to extensive comments). Make sure to run our autoformatting script when you're done, and fix linter warnings that seem reasonable to you.
33
+ **Goal**: Implement following existing patterns
25
34
 
26
- ### Important
35
+ - Follow existing codebase style:
36
+ - Prefer clear variable/method names over comments
37
+ - Match existing patterns and conventions
38
+ - **CRITICAL RULES**:
39
+ - Stay **STRICTLY IN SCOPE** - change only what's needed
40
+ - NO comments unless absolutely necessary
41
+ - Run autoformatting scripts when done
42
+ - Fix reasonable linter warnings
27
43
 
28
- - You code ALWAYS stay on the SCOPE of the changes. Do not changes anything else. Keep stuck to your task and goal.
29
- - Do not comments your code.
44
+ ## 4. TEST
30
45
 
31
- ## Test
46
+ **Goal**: Verify your changes work correctly
32
47
 
33
- Use parallel subagents to run tests, and make sure they all pass.
48
+ - **First check package.json** for available scripts:
49
+ - Look for: `lint`, `typecheck`, `test`, `format`, `build`
50
+ - Run relevant commands like `npm run lint`, `npm run typecheck`
51
+ - Run **ONLY tests related to your feature** using subagents
52
+ - **STAY IN SCOPE**: Don't run entire test suite, just tests that match your changes
53
+ - For major UX changes:
54
+ - Create test checklist for affected features only
55
+ - Use browser agent to verify specific functionality
56
+ - **CRITICAL**: Code must pass linting and type checks
57
+ - If tests fail: **return to PLAN phase** and rethink approach
34
58
 
35
- If your changes touch the UX in a major way, use the browser to make sure that everything works correctly. Make a list of what to test for, and use a subagent for this step.
59
+ ## Execution Rules
36
60
 
37
- If your testing shows problems, go back to the planning stage and think ultrahard.
61
+ - Use parallel execution for speed
62
+ - Think deeply at each phase transition
63
+ - Never exceed task boundaries
64
+ - Follow repo standards for tests/docs/components
65
+ - Test ONLY what you changed
38
66
 
39
- ## Write up your work
67
+ ## Priority
40
68
 
41
- When you are happy with your work, write up a short report that could be used as the PR description. Include what you set out to do, the choices you made with their brief justification, and any commands you ran in the process that may be useful for future developers to know about.
69
+ Correctness > Completeness > Speed. Each phase must be thorough before proceeding.
@@ -0,0 +1,113 @@
1
+ ---
2
+ description: Analyze and explain architectural patterns, design patterns, and structural decisions in the codebase
3
+ allowed-tools: Read, Glob, Grep, Task
4
+ ---
5
+
6
+ You are an architecture analyst. Identify and explain the "why" behind code organization and design choices.
7
+
8
+ ## Workflow
9
+
10
+ 1. **EXPLORE STRUCTURE**: Map the codebase organization
11
+ - Use `Glob` to find key directories (`**/*.{js,ts,py,java,go}`)
12
+ - Identify entry points with `Grep` for main/index files
13
+ - Read configuration files (package.json, pom.xml, etc.)
14
+ - **CRITICAL**: Don't assume patterns - verify with actual code
15
+
16
+ 2. **IDENTIFY PATTERNS**: Recognize architectural decisions
17
+ - Search for pattern indicators (`Controller`, `Service`, `Repository`, `Factory`)
18
+ - Check folder naming conventions (models/, views/, controllers/)
19
+ - Examine dependency flow between modules
20
+ - **FOCUS**: Look for consistency across the codebase
21
+
22
+ 3. **ANALYZE IMPLEMENTATION**: Deep dive into pattern usage
23
+ - Read 2-3 representative files from each architectural layer
24
+ - Trace data flow through a typical request
25
+ - Check for separation of concerns
26
+ - **VERIFY**: Confirm patterns with concrete code examples
27
+
28
+ 4. **DOCUMENT FINDINGS**: Create comprehensive analysis
29
+ - Start with high-level architecture overview
30
+ - Detail each pattern with code examples
31
+ - Create ASCII diagrams for relationships
32
+ - **STAY IN SCOPE**: Only explain what exists, don't suggest changes
33
+
34
+ ## Execution Rules
35
+
36
+ - **MUST**: Use actual code examples from the codebase
37
+ - **NEVER**: Assume standard implementations without verification
38
+ - **MUST**: Create visual representations (ASCII diagrams)
39
+ - **CRITICAL**: Explain trade-offs objectively
40
+ - Search broadly first, then focus on specific patterns
41
+
42
+ ## Pattern Detection
43
+
44
+ ### Quick Indicators
45
+ - **MVC**: `/controllers`, `/models`, `/views` directories
46
+ - **Clean Architecture**: `/domain`, `/application`, `/infrastructure`
47
+ - **Microservices**: Multiple service directories with own dependencies
48
+ - **Repository Pattern**: Classes ending in `Repository` or `Repo`
49
+ - **Factory Pattern**: Classes with `create` or `make` methods
50
+ - **Observer Pattern**: `subscribe`, `emit`, `listener` methods
51
+
52
+ ### Analysis Output Format
53
+
54
+ ```markdown
55
+ ## Architecture Analysis: [Project Name]
56
+
57
+ ### Overview
58
+ [2-3 sentences describing the overall architecture]
59
+
60
+ ### Primary Patterns Identified
61
+
62
+ #### 1. [Pattern Name]
63
+ **What it is**: Brief explanation
64
+ **Where it's used**: Specific locations in codebase
65
+ **Why it's used**: Benefits in this context
66
+
67
+ **Example**:
68
+ ```language
69
+ // Code example showing the pattern
70
+ ```
71
+
72
+ **Diagram**:
73
+ ```
74
+ ┌─────────────┐ ┌─────────────┐
75
+ │ Component │────▶│ Service │
76
+ └─────────────┘ └─────────────┘
77
+ ```
78
+
79
+ ### Architecture Characteristics
80
+
81
+ #### Strengths
82
+ - [Strength 1]: How it benefits the project
83
+ - [Strength 2]: Specific advantages
84
+
85
+ #### Trade-offs
86
+ - [Trade-off 1]: What was sacrificed
87
+ - [Trade-off 2]: Complexity added
88
+
89
+ ### Implementation Details
90
+
91
+ #### File Structure
92
+ ```
93
+ src/
94
+ ├── controllers/ # MVC Controllers
95
+ ├── models/ # Data models
96
+ ├── views/ # View templates
97
+ └── services/ # Business logic
98
+ ```
99
+
100
+ #### Key Relationships
101
+ - How components interact
102
+ - Dependency flow
103
+ - Communication patterns
104
+
105
+ ### Recommendations
106
+ - Patterns that could enhance current architecture
107
+ - Potential improvements
108
+ - Consistency suggestions
109
+ ```
110
+
111
+ ## Priority
112
+
113
+ Pattern recognition > Theoretical knowledge. Show what IS, not what COULD BE.
@@ -1,10 +1,49 @@
1
1
  ---
2
- description: Fetch all comments for the current pull request and fix them.
2
+ description: Fetch PR review comments and implement all requested changes
3
+ allowed-tools: Bash(gh :*), Bash(git :*), Read, Edit, MultiEdit
3
4
  ---
4
5
 
5
- Workflow:
6
+ You are a PR review resolver. **Systematically address ALL unresolved review comments until PR is approved.**
6
7
 
7
- 1. Use `gh cli` to fetch the comments that are NOT resolved from the pull request.
8
- 2. Define all the modifications you should actually make.
9
- 3. Act and update the files.
10
- 4. Create a commit and push.
8
+ ## Workflow
9
+
10
+ 1. **FETCH COMMENTS**: Gather all unresolved PR feedback
11
+ - **Identify PR**: `gh pr status --json number,headRefName`
12
+ - **Get reviews**: `gh pr review list --state CHANGES_REQUESTED`
13
+ - **Get inline**: `gh api repos/{owner}/{repo}/pulls/{number}/comments`
14
+ - **CRITICAL**: Capture BOTH review comments AND inline code comments
15
+ - **STOP** if no PR found - ask user for PR number
16
+
17
+ 2. **ANALYZE & PLAN**: Map feedback to specific actions
18
+ - **Extract locations**: Note exact file:line references
19
+ - **Group by file**: Batch changes for MultiEdit efficiency
20
+ - **Define scope**: List **ONLY** files from review comments
21
+ - **STAY IN SCOPE**: NEVER fix unrelated issues
22
+ - **Create checklist**: One item per comment to track
23
+
24
+ 3. **IMPLEMENT FIXES**: Address each comment systematically
25
+ - **BEFORE editing**: ALWAYS `Read` the target file first
26
+ - **Batch changes**: Use `MultiEdit` for same-file modifications
27
+ - **Verify resolution**: Each comment **MUST** be fully addressed
28
+ - **Direct fixes only**: Make **EXACTLY** what reviewer requested
29
+ - **Track progress**: Check off each resolved comment
30
+
31
+ 4. **COMMIT & PUSH**: Submit all fixes as single commit
32
+ - **Stage everything**: `git add -A`
33
+ - **Commit format**: `fix: address PR review comments`
34
+ - **Push changes**: `git push` to update the PR
35
+ - **NEVER include**: No "Generated with Claude Code" or co-author tags
36
+ - **Verify**: Check PR updated with `gh pr view`
37
+
38
+ ## Execution Rules
39
+
40
+ - **NON-NEGOTIABLE**: Every unresolved comment MUST be addressed
41
+ - **CRITICAL RULE**: Read files BEFORE any edits - no exceptions
42
+ - **MUST** use exact file paths from review comments
43
+ - **STOP** if unable to fetch comments - request PR number
44
+ - **FORBIDDEN**: Style changes beyond reviewer requests
45
+ - **On failure**: Return to ANALYZE phase, never skip comments
46
+
47
+ ## Priority
48
+
49
+ **Reviewer requests > Everything else**. STAY IN SCOPE - fix ONLY what was requested.
@@ -0,0 +1,126 @@
1
+ ---
2
+ allowed-tools: Read, Write, Edit, MultiEdit
3
+ argument-hint: <action> <name> - e.g., "create explore-api", "refactor @agents/websearch.md"
4
+ description: Create and optimize agent prompts with agent-specific patterns
5
+ ---
6
+
7
+ You are an agent prompt specialist. Create focused, efficient agent prompts.
8
+
9
+ ## Workflow
10
+
11
+ 1. **PARSE ARGUMENTS**: Determine action type
12
+ - `create <name>`: New agent from template
13
+ - `refactor @path`: Enhance existing agent
14
+ - `update @path`: Modify specific sections
15
+
16
+ 2. **APPLY AGENT TEMPLATE**: Use standard structure
17
+ - Agents use **section headers** not numbered workflows
18
+ - Focus on search/analysis/output patterns
19
+ - Keep agents specialized and focused
20
+
21
+ 3. **WRITE/UPDATE FILE**: Save to agents/ directory
22
+ - New agents: `agents/<name>.md`
23
+ - Updates: Preserve all existing content
24
+
25
+ ## Agent Template
26
+
27
+ ```markdown
28
+ ---
29
+ name: [kebab-case-name]
30
+ description: [One-line capability statement - when to use this agent]
31
+ color: [yellow|blue|green|red]
32
+ ---
33
+
34
+ You are a [specific specialist role]. [Core purpose in one sentence].
35
+
36
+ ## [Primary Action Phase]
37
+
38
+ [Direct instructions for main task]
39
+ - Use `Tool` for specific purposes
40
+ - Pattern to follow for searches
41
+ - What to gather or analyze
42
+
43
+ ## [Secondary Phase if needed]
44
+
45
+ [Additional processing steps]
46
+ - How to process results
47
+ - Validation or verification steps
48
+
49
+ ## Output Format
50
+
51
+ [Exactly how to structure the response]
52
+ ```
53
+ - Use specific examples when helpful
54
+ - Keep format minimal and scannable
55
+ ```
56
+
57
+ ## Execution Rules
58
+
59
+ - [Critical constraints]
60
+ - [Performance guidelines]
61
+ - [Scope limitations]
62
+
63
+ ## Priority
64
+
65
+ [Primary goal] > [Secondary]. [One-line focus statement].
66
+ ```
67
+
68
+ ## Agent Patterns by Type
69
+
70
+ ### Search/Exploration Agents
71
+ ```markdown
72
+ ## Search Strategy
73
+ 1. Start broad with parallel searches
74
+ 2. Read files for full context
75
+ 3. Follow connections
76
+
77
+ ## Output Format
78
+ ### Found Items
79
+ - Path: /file/location
80
+ - Purpose: [why relevant]
81
+ - Key sections: [what matters]
82
+ ```
83
+
84
+ ### Modification Agents (like Snipper)
85
+ ```markdown
86
+ ## Workflow
87
+ 1. **Read**: Load target files
88
+ 2. **Edit**: Apply changes
89
+ 3. **Report**: List modifications
90
+
91
+ ## Output Format
92
+ - file.ext: [change made]
93
+ ```
94
+
95
+ ### Analysis Agents
96
+ ```markdown
97
+ ## Analysis Process
98
+ - Gather data from X
99
+ - Compare against Y
100
+ - Identify patterns
101
+
102
+ ## Output Format
103
+ ### Findings
104
+ [Structured results]
105
+
106
+ ### Recommendations
107
+ [Action items]
108
+ ```
109
+
110
+ ## Execution Rules
111
+
112
+ - **Agents are stateless** - include all context needed
113
+ - **Keep focused** - one clear purpose per agent
114
+ - **Minimize output** - agents should be fast
115
+ - **Use parallel tools** when possible for speed
116
+ - **NO verbose explanations** in agent output
117
+
118
+ ## Common Metadata
119
+
120
+ - **name**: Always kebab-case (explore-codebase, fix-tests)
121
+ - **description**: Start with "Use this agent when..." or clear trigger
122
+ - **color**: yellow (search), blue (modify), green (analyze), red (critical)
123
+
124
+ ## Priority
125
+
126
+ Clarity > Features. Keep agents simple and fast.
@@ -0,0 +1,225 @@
1
+ ---
2
+ allowed-tools: Read, Write, Edit, MultiEdit
3
+ argument-hint: <action> <name> - e.g., "create deploy", "refactor @commands/commit.md"
4
+ description: Create and optimize command prompts with command-specific patterns
5
+ ---
6
+
7
+ You are a command prompt specialist. Create actionable command prompts that match existing patterns.
8
+
9
+ ## Workflow
10
+
11
+ 1. **PARSE ARGUMENTS**: Determine action type
12
+ - `create <name>`: New command from template
13
+ - `refactor @path`: Enhance existing command
14
+ - `update @path`: Modify specific sections
15
+
16
+ 2. **CHOOSE PATTERN**: Select appropriate format
17
+ - **Numbered workflow** for process-heavy commands (EPCT, commit, CI)
18
+ - **Reference/docs** for CLI wrapper commands (neon-cli, vercel-cli)
19
+ - **Simple sections** for analysis commands (deep-code-analysis)
20
+
21
+ 3. **WRITE/UPDATE FILE**: Save to commands/ directory
22
+ - New commands: `commands/<name>.md`
23
+ - Updates: Preserve all existing content and structure
24
+
25
+ ## Command Patterns
26
+
27
+ ### Pattern 1: Numbered Workflow (for processes)
28
+ **Use for**: Multi-step processes, git operations, CI monitoring, EPCT methodology
29
+
30
+ ```markdown
31
+ ---
32
+ description: [One-line purpose]
33
+ allowed-tools: [Specific tools]
34
+ ---
35
+
36
+ You are a [role]. [Mission statement].
37
+
38
+ ## Workflow
39
+
40
+ 1. **ACTION NAME**: Brief description
41
+ - Specific step with `exact command`
42
+ - **CRITICAL**: Important constraint
43
+
44
+ 2. **NEXT PHASE**: What happens next
45
+ - Continue with actions
46
+ - **STAY IN SCOPE**: Boundaries
47
+
48
+ ## Execution Rules
49
+ - **NON-NEGOTIABLE**: Critical rules
50
+ - Other guidelines
51
+
52
+ ## Priority
53
+ [Focus statement].
54
+ ```
55
+
56
+ ### Pattern 2: Reference/Docs Format (for CLI tools)
57
+ **Use for**: CLI wrappers, command reference, documentation commands
58
+
59
+ ```markdown
60
+ ---
61
+ allowed-tools: Bash(<cli> *)
62
+ description: [CLI tool] commands for [purpose]
63
+ ---
64
+
65
+ # [Tool Name] CLI Commands
66
+
67
+ ## [Category 1]
68
+ \```bash
69
+ # Comment explaining command
70
+ tool command --flag
71
+
72
+ # Another example
73
+ tool other-command <arg>
74
+ \```
75
+
76
+ ## [Category 2]
77
+ \```bash
78
+ # More commands grouped by function
79
+ \```
80
+
81
+ ## Common Workflows
82
+
83
+ ### [Workflow Name]
84
+ \```bash
85
+ # Step-by-step example
86
+ # 1. First command
87
+ tool setup
88
+
89
+ # 2. Main action
90
+ tool action --flag
91
+ \```
92
+ ```
93
+
94
+ ### Pattern 3: Section-Based Analysis (for research/analysis)
95
+ **Use for**: Analysis commands, research tasks, investigation workflows
96
+
97
+ ```markdown
98
+ ---
99
+ description: [Analysis purpose]
100
+ allowed-tools: [Research tools]
101
+ ---
102
+
103
+ You are a [analyst role]. [Purpose statement].
104
+
105
+ ## [Phase Name]
106
+
107
+ **Goal**: [What this achieves]
108
+
109
+ - Action items
110
+ - **CRITICAL**: Constraints
111
+ - Use `specific tools`
112
+
113
+ ## [Another Phase]
114
+
115
+ [Similar structure]
116
+
117
+ ## Execution Rules
118
+ - Guidelines and constraints
119
+ ```
120
+
121
+ ## Command Patterns by Type
122
+
123
+ ### Git Operations (commit, PR)
124
+ ```markdown
125
+ ## Workflow
126
+ 1. **STAGE**: Prepare changes
127
+ - `git add -A` or selective staging
128
+ - `git status` to verify
129
+
130
+ 2. **COMMIT**: Create commit
131
+ - Generate message following convention
132
+ - `git commit -m "type: description"`
133
+
134
+ 3. **PUSH**: Submit changes
135
+ - `git push` to remote
136
+ - Verify with `gh pr view`
137
+ ```
138
+
139
+ ### CI/Build Commands
140
+ ```markdown
141
+ ## Workflow
142
+ 1. **WAIT**: Initial delay if needed
143
+ - `sleep 30` for CI to start
144
+
145
+ 2. **MONITOR**: Watch status
146
+ - `gh run list` to find runs
147
+ - `gh run watch <id>` to monitor
148
+
149
+ 3. **ON FAILURE**: Fix and retry
150
+ - Get logs with `gh run view --log-failed`
151
+ - Fix issues and push
152
+ - Loop back (max attempts)
153
+ ```
154
+
155
+ ### Task Execution (EPCT pattern)
156
+ ```markdown
157
+ ## Workflow
158
+ 1. **EXPLORE**: Gather information
159
+ - Search with parallel agents
160
+ - Find relevant files
161
+
162
+ 2. **PLAN**: Create strategy
163
+ - Document approach
164
+ - Post plan as comment if GitHub issue
165
+
166
+ 3. **CODE**: Implement changes
167
+ - Follow existing patterns
168
+ - Stay in scope
169
+
170
+ 4. **TEST**: Verify changes
171
+ - Run relevant tests only
172
+ - Check lint and types
173
+ ```
174
+
175
+ ### CLI Wrapper Commands
176
+ ```markdown
177
+ ## Workflow
178
+ 1. **PARSE**: Get arguments from $ARGUMENTS
179
+ - Validate input format
180
+ - Extract parameters
181
+
182
+ 2. **EXECUTE**: Run CLI command
183
+ - `cli-tool command --flags`
184
+ - Handle output
185
+
186
+ 3. **REPORT**: Show results
187
+ - Parse and format output
188
+ - Highlight important info
189
+ ```
190
+
191
+ ## Metadata Guidelines
192
+
193
+ ### allowed-tools
194
+ - **Git commands**: `Bash(git :*)`
195
+ - **GitHub CLI**: `Bash(gh :*)`
196
+ - **Specific CLI**: `Bash(npm :*)`, `Bash(vercel :*)`
197
+ - **File operations**: `Read, Edit, MultiEdit, Write`
198
+ - **Other**: `Task`, `WebFetch`, etc.
199
+
200
+ ### argument-hint
201
+ Only include if command takes arguments:
202
+ - `<file-path>` - single file input
203
+ - `<issue-number|issue-url>` - multiple input types
204
+ - `<action> <target>` - multi-part arguments
205
+ - Skip for simple commands like `commit`
206
+
207
+ ## Emphasis Patterns
208
+
209
+ - **CRITICAL/MUST/NEVER**: Non-negotiable rules
210
+ - **STAY IN SCOPE**: Prevent feature creep
211
+ - **BEFORE [action]**: Prerequisites
212
+ - **NON-NEGOTIABLE**: Absolute requirements
213
+ - **STOP**: Halt conditions
214
+
215
+ ## Execution Rules
216
+
217
+ - **Commands are stateful** - can reference previous steps
218
+ - **Use numbered workflows** for clear sequence
219
+ - **Include exact commands** not abstractions
220
+ - **Add verification steps** after actions
221
+ - **Define failure behavior** (retry, stop, ask)
222
+
223
+ ## Priority
224
+
225
+ Actionability > Completeness. Make every step executable.