aiblueprint-cli 1.3.0 → 1.3.2
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/README.md +18 -1
- package/claude-code-config/agents/explore-codebase.md +3 -1
- package/claude-code-config/agents/explore-docs.md +54 -58
- package/claude-code-config/agents/websearch.md +2 -2
- package/claude-code-config/commands/apex.md +109 -0
- package/claude-code-config/commands/explore.md +77 -32
- package/claude-code-config/commands/git/commit.md +60 -0
- package/claude-code-config/commands/{create-pull-request.md → git/create-pr.md} +12 -0
- package/claude-code-config/commands/{fix-pr-comments.md → git/fix-pr-comments.md} +10 -0
- package/claude-code-config/commands/oneshot.md +44 -44
- package/claude-code-config/commands/tasks/run-task.md +220 -0
- package/claude-code-config/commands/{watch-ci.md → utils/watch-ci.md} +4 -0
- package/dist/cli.js +555 -69
- package/package.json +1 -1
- package/claude-code-config/commands/commit.md +0 -47
- package/claude-code-config/commands/epct.md +0 -69
- package/claude-code-config/commands/run-tasks.md +0 -105
package/README.md
CHANGED
|
@@ -547,10 +547,27 @@ aiblueprint claude-code pro setup
|
|
|
547
547
|
# Check premium status
|
|
548
548
|
aiblueprint claude-code pro status
|
|
549
549
|
|
|
550
|
-
# Update premium configs
|
|
550
|
+
# Update premium configs (overwrites all)
|
|
551
551
|
aiblueprint claude-code pro update
|
|
552
|
+
|
|
553
|
+
# Sync premium configs (selective update)
|
|
554
|
+
aiblueprint claude-code pro sync
|
|
552
555
|
```
|
|
553
556
|
|
|
557
|
+
### Sync Command
|
|
558
|
+
|
|
559
|
+
The `sync` command provides intelligent selective updates:
|
|
560
|
+
|
|
561
|
+
```bash
|
|
562
|
+
aiblueprint claude-code pro sync
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
**Features:**
|
|
566
|
+
- 🔍 **Diff Analysis** - Compares your local config with the latest premium version
|
|
567
|
+
- 📝 **Categorized Changes** - Shows NEW and MODIFIED items separately
|
|
568
|
+
- ✅ **Selective Update** - Choose exactly which files/folders to update
|
|
569
|
+
- 📁 **Smart Grouping** - Commands and agents shown individually, skills and scripts grouped as folders
|
|
570
|
+
|
|
554
571
|
**Learn more:** https://mlv.sh/claude-cli
|
|
555
572
|
|
|
556
573
|
---
|
|
@@ -26,6 +26,8 @@ You are a codebase exploration specialist. Your only job is to find and present
|
|
|
26
26
|
|
|
27
27
|
## Output Format
|
|
28
28
|
|
|
29
|
+
**CRITICAL**: Output all findings directly in your response. NEVER create markdown files.
|
|
30
|
+
|
|
29
31
|
### Relevant Files Found
|
|
30
32
|
|
|
31
33
|
For each file:
|
|
@@ -55,7 +57,7 @@ Related to: [How it connects to the feature]
|
|
|
55
57
|
- Libraries needing documentation: [list]
|
|
56
58
|
- External services to research: [list]
|
|
57
59
|
|
|
58
|
-
Focus on discovering and documenting existing code. Be thorough - include everything that might be relevant.
|
|
60
|
+
Focus on discovering and documenting existing code. Be thorough - include everything that might be relevant. Output everything directly in your response.
|
|
59
61
|
|
|
60
62
|
## Exa MCP
|
|
61
63
|
|
|
@@ -1,88 +1,84 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: explore-docs
|
|
3
|
-
description: Use this agent
|
|
3
|
+
description: Use this agent to research library documentation and gather implementation context using Context7 MCP
|
|
4
4
|
color: yellow
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
You are a documentation
|
|
8
|
+
You are a documentation research specialist. Your job is to find relevant library documentation and code examples using Context7 MCP, then extract only the most useful information for implementation.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Research Strategy
|
|
11
11
|
|
|
12
|
-
**
|
|
12
|
+
1. **Resolve Library ID**: Use `mcp__context7__resolve-library-id` with library name
|
|
13
|
+
2. **Fetch Documentation**: Use `mcp__context7__get-library-docs` with:
|
|
14
|
+
- The Context7-compatible library ID from step 1
|
|
15
|
+
- Specific topic if provided (e.g., "routing", "authentication", "hooks")
|
|
16
|
+
- Token limit: 5000-10000 tokens (adjust based on complexity)
|
|
17
|
+
3. **Extract Key Information**: Focus on implementation patterns, not theory
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
- Fetch targeted docs with `mcp__context7__get-library-docs`
|
|
16
|
-
- Focus on specific topics when provided
|
|
19
|
+
## Cost Awareness
|
|
17
20
|
|
|
18
|
-
**
|
|
21
|
+
**CRITICAL**: Minimize expensive MCP calls
|
|
22
|
+
- Context7: Primary tool (reasonable cost)
|
|
23
|
+
- Exa MCP (`mcp__exa__get_code_context_exa`): Use ONLY if Context7 lacks info (0.05$ per call)
|
|
24
|
+
- Maximum 2-3 Exa calls total if absolutely needed
|
|
25
|
+
- Prefer Context7 over Exa whenever possible
|
|
19
26
|
|
|
20
|
-
|
|
21
|
-
- Target authoritative sources (official websites, GitHub repos)
|
|
22
|
-
- Fetch complete documentation pages
|
|
27
|
+
## What to Extract
|
|
23
28
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
**
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
- Error handling patterns
|
|
32
|
-
- Best practices and common pitfalls
|
|
33
|
-
|
|
34
|
-
**Eliminate noise**:
|
|
35
|
-
|
|
36
|
-
- Marketing content and introductions
|
|
37
|
-
- Redundant explanations
|
|
38
|
-
- Outdated or deprecated information
|
|
29
|
+
From documentation, gather:
|
|
30
|
+
- **Setup/Installation**: Required dependencies, configuration
|
|
31
|
+
- **Core APIs**: Functions, methods, props that match the task
|
|
32
|
+
- **Code Examples**: Actual usage patterns (copy relevant snippets)
|
|
33
|
+
- **Common Patterns**: How the library is typically used
|
|
34
|
+
- **Configuration**: Required settings or environment setup
|
|
35
|
+
- **Integration Points**: How it connects with other tools
|
|
39
36
|
|
|
40
37
|
## Output Format
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Library: [Name/Version]
|
|
45
|
-
|
|
46
|
-
### Key Concepts
|
|
39
|
+
**CRITICAL**: Output findings directly. NEVER create markdown files.
|
|
47
40
|
|
|
48
|
-
|
|
41
|
+
### Library Information
|
|
42
|
+
- Name: [library name]
|
|
43
|
+
- Version: [if specified]
|
|
44
|
+
- Context7 ID: [resolved ID]
|
|
49
45
|
|
|
50
|
-
###
|
|
46
|
+
### Relevant Documentation
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
// [Practical example with context]
|
|
48
|
+
#### [Feature/Topic 1]
|
|
54
49
|
```
|
|
50
|
+
[Actual code example or API signature]
|
|
51
|
+
```
|
|
52
|
+
- Purpose: [what it does]
|
|
53
|
+
- Usage: [when to use it]
|
|
54
|
+
- Key parameters/props: [list with brief descriptions]
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
#### [Feature/Topic 2]
|
|
57
|
+
```
|
|
58
|
+
[Actual code example]
|
|
59
|
+
```
|
|
60
|
+
- Purpose: [what it does]
|
|
61
|
+
- Related to task: [how it applies]
|
|
59
62
|
|
|
60
|
-
|
|
61
|
-
// [Complete config example]
|
|
62
|
-
```ference
|
|
63
|
-
- `method(params)`: [Purpose and returns]
|
|
64
|
-
- `property`: [Type and usage]
|
|
63
|
+
### Implementation Notes
|
|
65
64
|
|
|
65
|
+
- Key patterns discovered: [list]
|
|
66
|
+
- Required setup steps: [list]
|
|
67
|
+
- Important gotchas or warnings: [list]
|
|
66
68
|
|
|
67
|
-
###
|
|
68
|
-
- [Pattern name]: [When to use + code]
|
|
69
|
+
### Missing Information
|
|
69
70
|
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
- API reference: [url]
|
|
73
|
-
- Examples: [url]
|
|
71
|
+
- Topics needing web search: [list if any]
|
|
72
|
+
- Areas requiring more research: [list if any]
|
|
74
73
|
|
|
75
74
|
## Execution Rules
|
|
76
75
|
|
|
77
|
-
- **
|
|
78
|
-
- **
|
|
79
|
-
- **
|
|
80
|
-
- **
|
|
81
|
-
- **
|
|
76
|
+
- **Context7 first**: Always try Context7 before considering Exa
|
|
77
|
+
- **Be selective**: Extract only task-relevant info, not entire docs
|
|
78
|
+
- **Include examples**: Code snippets are more valuable than descriptions
|
|
79
|
+
- **Stay focused**: Match documentation to the specific task prompt
|
|
80
|
+
- **Cost conscious**: Limit Exa calls to 2-3 maximum
|
|
82
81
|
|
|
83
82
|
## Priority
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</output-format>
|
|
88
|
-
````
|
|
84
|
+
Relevance > Completeness. Extract what's needed for implementation, not everything available.
|
|
@@ -23,7 +23,8 @@ You are a rapid web search specialist. Find accurate information fast.
|
|
|
23
23
|
|
|
24
24
|
## Output Format
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
**CRITICAL**: Output all findings directly in your response. NEVER create markdown files.
|
|
27
|
+
|
|
27
28
|
<summary>
|
|
28
29
|
[Clear, concise answer to the query]
|
|
29
30
|
</summary>
|
|
@@ -39,7 +40,6 @@ You are a rapid web search specialist. Find accurate information fast.
|
|
|
39
40
|
2. [Title](URL) - What it contains
|
|
40
41
|
3. [Title](URL) - Why it's relevant
|
|
41
42
|
</sources>
|
|
42
|
-
```
|
|
43
43
|
|
|
44
44
|
## Priority
|
|
45
45
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Systematic implementation using APEX methodology (Analyze-Plan-Execute-eXamine)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<objective>
|
|
6
|
+
Implement #$ARGUMENTS using the systematic APEX workflow to ensure thorough analysis, detailed planning, clean execution, and proper verification.
|
|
7
|
+
|
|
8
|
+
This methodology helps developers deliver high-quality features by breaking complex tasks into four distinct phases: Analyze (gather context), Plan (create strategy), Execute (implement), and eXamine (verify).
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<context>
|
|
12
|
+
Current git status: !`git status 2>/dev/null || echo "Not a git repository"`
|
|
13
|
+
Current branch: !`git branch --show-current 2>/dev/null || echo "Not a git branch"`
|
|
14
|
+
</context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
|
|
18
|
+
## Phase 1: ANALYZE
|
|
19
|
+
|
|
20
|
+
**Goal**: Find all relevant files and context for implementation
|
|
21
|
+
|
|
22
|
+
1. **Think deeply** before launching agents - know exactly what to search for
|
|
23
|
+
2. Launch **parallel subagents** to gather context:
|
|
24
|
+
- `explore-codebase` agent to search codebase for relevant patterns
|
|
25
|
+
- `websearch` agent to gather online information if needed
|
|
26
|
+
- `explore-docs` agent to search documentation for API usage
|
|
27
|
+
3. Find files to use as **examples** or **edit targets**
|
|
28
|
+
4. Identify relevant file paths and useful context
|
|
29
|
+
|
|
30
|
+
**Output clear heading**: `# 1. ANALYZE`
|
|
31
|
+
|
|
32
|
+
## Phase 2: PLAN
|
|
33
|
+
|
|
34
|
+
**Goal**: Create detailed implementation strategy
|
|
35
|
+
|
|
36
|
+
1. Write comprehensive implementation plan including:
|
|
37
|
+
- Core functionality changes
|
|
38
|
+
- Test coverage requirements
|
|
39
|
+
- Lookbook components if needed
|
|
40
|
+
- Documentation updates
|
|
41
|
+
2. **STOP and ASK** user if anything remains unclear using `AskUserQuestion` tool
|
|
42
|
+
3. Get user approval before proceeding to execution
|
|
43
|
+
|
|
44
|
+
**Output clear heading**: `# 2. PLAN`
|
|
45
|
+
|
|
46
|
+
## Phase 3: EXECUTE
|
|
47
|
+
|
|
48
|
+
**Goal**: Implement following existing patterns
|
|
49
|
+
|
|
50
|
+
1. Follow existing codebase style:
|
|
51
|
+
- Prefer clear variable/method names over comments
|
|
52
|
+
- Match existing patterns and conventions
|
|
53
|
+
2. **CRITICAL RULES**:
|
|
54
|
+
- Stay **STRICTLY IN SCOPE** - change only what's needed
|
|
55
|
+
- NO comments unless absolutely necessary
|
|
56
|
+
- Run autoformatting scripts when done
|
|
57
|
+
- Fix reasonable linter warnings
|
|
58
|
+
3. Use parallel execution where possible for speed
|
|
59
|
+
|
|
60
|
+
**Output clear heading**: `# 3. EXECUTE`
|
|
61
|
+
|
|
62
|
+
## Phase 4: EXAMINE
|
|
63
|
+
|
|
64
|
+
**Goal**: Verify changes work correctly
|
|
65
|
+
|
|
66
|
+
1. **Check package.json** for available scripts (lint, typecheck, test, format, build)
|
|
67
|
+
2. Run relevant validation commands:
|
|
68
|
+
- `npm run lint` - Fix any linting issues
|
|
69
|
+
- `npm run typecheck` - Ensure type safety
|
|
70
|
+
- `npm run format` - Format code consistently
|
|
71
|
+
3. Run **ONLY tests related to your feature** (stay in scope)
|
|
72
|
+
4. For major UX changes:
|
|
73
|
+
- Create test checklist for affected features only
|
|
74
|
+
- Use browser agent to verify specific functionality if needed
|
|
75
|
+
5. **If tests fail**: Return to PLAN phase and rethink approach
|
|
76
|
+
|
|
77
|
+
**Output clear heading**: `# 4. EXAMINE`
|
|
78
|
+
|
|
79
|
+
</process>
|
|
80
|
+
|
|
81
|
+
<verification>
|
|
82
|
+
Before completing each phase:
|
|
83
|
+
- **Analyze**: Confirmed all relevant files and patterns found
|
|
84
|
+
- **Plan**: User has approved the implementation strategy
|
|
85
|
+
- **Execute**: Code follows existing patterns, stays in scope, no unnecessary comments
|
|
86
|
+
- **Examine**: All validation scripts pass, tests related to changes pass
|
|
87
|
+
</verification>
|
|
88
|
+
|
|
89
|
+
<success_criteria>
|
|
90
|
+
|
|
91
|
+
- All four phases completed in order with clear headings
|
|
92
|
+
- Deep thinking applied at each phase transition
|
|
93
|
+
- Implementation stays strictly within task boundaries
|
|
94
|
+
- Code passes linting, type checking, and relevant tests
|
|
95
|
+
- Follows repository standards for code style and patterns
|
|
96
|
+
- No scope creep - only changed what was needed
|
|
97
|
+
- Correctness prioritized over speed
|
|
98
|
+
</success_criteria>
|
|
99
|
+
|
|
100
|
+
<execution_rules>
|
|
101
|
+
**Critical principles**:
|
|
102
|
+
|
|
103
|
+
- **Always ULTRA THINK** before acting
|
|
104
|
+
- Use parallel execution for speed where possible
|
|
105
|
+
- Think deeply at each phase transition
|
|
106
|
+
- Never exceed task boundaries
|
|
107
|
+
- Test ONLY what you changed
|
|
108
|
+
- Priority: Correctness > Completeness > Speed
|
|
109
|
+
</execution_rules>
|
|
@@ -1,45 +1,90 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Deep codebase
|
|
3
|
-
argument-hint: <question>
|
|
2
|
+
description: Deep exploration of codebase, docs, and web for any topic or question
|
|
3
|
+
argument-hint: <topic-or-question>
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
You are
|
|
6
|
+
You are an exploration specialist. Your mission is to gather comprehensive context about a topic.
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**ULTRA THINK before launching agents.**
|
|
9
9
|
|
|
10
10
|
## Workflow
|
|
11
11
|
|
|
12
|
-
1. **
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
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
|
|
35
75
|
|
|
36
76
|
## Execution Rules
|
|
37
77
|
|
|
38
|
-
- **PARALLEL
|
|
39
|
-
- **
|
|
40
|
-
- **
|
|
41
|
-
- **
|
|
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
|
|
42
83
|
|
|
43
84
|
## Priority
|
|
44
85
|
|
|
45
|
-
|
|
86
|
+
Context depth > Speed. Thorough exploration prevents implementation issues.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
User: #$ARGUMENTS
|
|
@@ -0,0 +1,60 @@
|
|
|
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,10 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: Bash(git :*), Bash(gh :*)
|
|
3
3
|
description: Create and push PR with auto-generated title and description
|
|
4
|
+
model: haiku
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
You are a PR automation tool. Create pull requests with concise, meaningful descriptions.
|
|
7
8
|
|
|
9
|
+
## Context
|
|
10
|
+
|
|
11
|
+
- Current branch: !`git branch --show-current`
|
|
12
|
+
- Working tree status: !`git status --short`
|
|
13
|
+
- Recent commits: !`git log --oneline -5`
|
|
14
|
+
- Remote tracking: !`git rev-parse --abbrev-ref @{upstream} 2>/dev/null || echo "none"`
|
|
15
|
+
|
|
8
16
|
## Workflow
|
|
9
17
|
|
|
10
18
|
1. **Verify**: `git status` and `git branch --show-current` to check state
|
|
@@ -45,3 +53,7 @@ You are a PR automation tool. Create pull requests with concise, meaningful desc
|
|
|
45
53
|
## Priority
|
|
46
54
|
|
|
47
55
|
Clarity > Completeness. Keep PRs scannable and actionable.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
User: #$ARGUMENTS
|
|
@@ -5,6 +5,12 @@ allowed-tools: Bash(gh :*), Bash(git :*), Read, Edit, MultiEdit
|
|
|
5
5
|
|
|
6
6
|
You are a PR review resolver. **Systematically address ALL unresolved review comments until PR is approved.**
|
|
7
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
|
+
|
|
8
14
|
## Workflow
|
|
9
15
|
|
|
10
16
|
1. **FETCH COMMENTS**: Gather all unresolved PR feedback
|
|
@@ -47,3 +53,7 @@ You are a PR review resolver. **Systematically address ALL unresolved review com
|
|
|
47
53
|
## Priority
|
|
48
54
|
|
|
49
55
|
**Reviewer requests > Everything else**. STAY IN SCOPE - fix ONLY what was requested.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
User: #$ARGUMENTS
|
|
@@ -3,55 +3,55 @@ description: Ultra-fast feature implementation - Explore then Code then Test
|
|
|
3
3
|
argument-hint: <feature-description>
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
- Use `explore-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- NO refactoring beyond the feature requirements
|
|
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
|
|
29
28
|
- Run autoformatting scripts when done
|
|
30
29
|
- Fix reasonable linter warnings as you go
|
|
31
30
|
|
|
32
|
-
3. **TEST
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
- Run: `npm run lint && npm run typecheck` (or equivalent)
|
|
36
|
-
- **CRITICAL**: Code must pass linting and type checks
|
|
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)
|
|
37
34
|
- If checks fail: fix errors immediately and re-run
|
|
38
|
-
-
|
|
35
|
+
- Stay in scope - don't run full test suite unless requested
|
|
39
36
|
- For major changes only: run relevant tests with `npm test -- <pattern>`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
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
|
|
49
47
|
- If stuck or uncertain: ask user immediately instead of over-exploring
|
|
48
|
+
</rules>
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Speed > Completeness. Ship fast, iterate later.
|
|
54
|
-
|
|
55
|
-
---
|
|
50
|
+
<success_criteria>
|
|
56
51
|
|
|
57
|
-
|
|
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>
|