superkit-mcp-server 1.1.3 → 1.2.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.
- package/SUPERKIT.md +4 -4
- package/build/index.js +30 -19
- package/commands/README.md +122 -0
- package/commands/ask.toml +72 -0
- package/commands/brainstorm.toml +120 -0
- package/commands/chat.toml +73 -0
- package/commands/code-preview.toml +38 -0
- package/commands/code.toml +29 -0
- package/commands/content.toml +201 -0
- package/commands/cook.toml +78 -0
- package/commands/copywrite.toml +132 -0
- package/commands/db.toml +193 -0
- package/commands/debug.toml +167 -0
- package/commands/design.toml +159 -0
- package/commands/dev-rules.toml +14 -0
- package/commands/do.toml +117 -0
- package/commands/doc-rules.toml +14 -0
- package/commands/docs.toml +148 -0
- package/commands/fix.toml +440 -0
- package/commands/fullstack.toml +176 -0
- package/commands/git.toml +236 -0
- package/commands/help.toml +84 -0
- package/commands/integrate.toml +127 -0
- package/commands/journal.toml +137 -0
- package/commands/kit-setup.toml +41 -0
- package/commands/mcp.toml +183 -0
- package/commands/orchestration.toml +15 -0
- package/commands/plan.toml +172 -0
- package/commands/pm.toml +149 -0
- package/commands/pr.toml +51 -0
- package/commands/project.toml +33 -0
- package/commands/research.toml +118 -0
- package/commands/review-pr.toml +64 -0
- package/commands/review.toml +191 -0
- package/commands/scout-ext.toml +97 -0
- package/commands/scout.toml +80 -0
- package/commands/screenshot.toml +65 -0
- package/commands/session.toml +98 -0
- package/commands/skill.toml +385 -0
- package/commands/status.toml +23 -0
- package/commands/team.toml +56 -0
- package/commands/test.toml +165 -0
- package/commands/ticket.toml +71 -0
- package/commands/use.toml +106 -0
- package/commands/video.toml +84 -0
- package/commands/watzup.toml +71 -0
- package/commands/workflow.toml +14 -0
- package/package.json +4 -2
- package/{workflows → skills/workflows}/README.md +3 -3
- package/{workflows → skills/workflows}/development-rules.md +5 -0
- package/{workflows → skills/workflows}/documentation-management.md +5 -0
- package/{workflows → skills/workflows}/orchestration-protocol.md +5 -0
- package/{workflows → skills/workflows}/primary-workflow.md +5 -0
- /package/{workflows → skills/workflows}/adr.md +0 -0
- /package/{workflows → skills/workflows}/changelog.md +0 -0
- /package/{workflows → skills/workflows}/compound.md +0 -0
- /package/{workflows → skills/workflows}/compound_health.md +0 -0
- /package/{workflows → skills/workflows}/create-agent-skill.md +0 -0
- /package/{workflows → skills/workflows}/cycle.md +0 -0
- /package/{workflows → skills/workflows}/deploy-docs.md +0 -0
- /package/{workflows → skills/workflows}/doc.md +0 -0
- /package/{workflows → skills/workflows}/explore.md +0 -0
- /package/{workflows → skills/workflows}/generate_command.md +0 -0
- /package/{workflows → skills/workflows}/heal-skill.md +0 -0
- /package/{workflows → skills/workflows}/housekeeping.md +0 -0
- /package/{workflows → skills/workflows}/kit-setup.md +0 -0
- /package/{workflows → skills/workflows}/map-codebase.md +0 -0
- /package/{workflows → skills/workflows}/plan-compound.md +0 -0
- /package/{workflows → skills/workflows}/plan_review.md +0 -0
- /package/{workflows → skills/workflows}/promote_pattern.md +0 -0
- /package/{workflows → skills/workflows}/release-docs.md +0 -0
- /package/{workflows → skills/workflows}/report-bug.md +0 -0
- /package/{workflows → skills/workflows}/reproduce-bug.md +0 -0
- /package/{workflows → skills/workflows}/resolve_pr.md +0 -0
- /package/{workflows → skills/workflows}/resolve_todo.md +0 -0
- /package/{workflows → skills/workflows}/review-compound.md +0 -0
- /package/{workflows → skills/workflows}/skill-review.md +0 -0
- /package/{workflows → skills/workflows}/specs.md +0 -0
- /package/{workflows → skills/workflows}/triage-sprint.md +0 -0
- /package/{workflows → skills/workflows}/triage.md +0 -0
- /package/{workflows → skills/workflows}/work.md +0 -0
- /package/{workflows → skills/workflows}/xcode-test.md +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
description = "Review a Pull Request from GitHub"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 🔍 PR Review Agent
|
|
5
|
+
|
|
6
|
+
Review the specified Pull Request.
|
|
7
|
+
|
|
8
|
+
**PR:** {{args}}
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
### Step 1: Get PR Details
|
|
15
|
+
Use the `kit_github_get_pr` tool to get PR information:
|
|
16
|
+
- Title, description
|
|
17
|
+
- Changed files
|
|
18
|
+
- Diff content
|
|
19
|
+
|
|
20
|
+
### Step 2: Analyze Code
|
|
21
|
+
Review code in the PR:
|
|
22
|
+
- **Bugs**: Find logic errors, edge cases
|
|
23
|
+
- **Security**: Check for security issues
|
|
24
|
+
- **Performance**: Identify performance problems
|
|
25
|
+
- **Style**: Code style and best practices
|
|
26
|
+
|
|
27
|
+
### Step 3: Generate Review
|
|
28
|
+
Create review with:
|
|
29
|
+
- **Summary**: PR summary
|
|
30
|
+
- **Issues**: Issues found (if any)
|
|
31
|
+
- **Suggestions**: Improvement suggestions
|
|
32
|
+
- **Verdict**: APPROVE / REQUEST_CHANGES / COMMENT
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Output Format
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
## 🔍 PR Review
|
|
40
|
+
|
|
41
|
+
### Summary
|
|
42
|
+
[Summary of changes]
|
|
43
|
+
|
|
44
|
+
### ✅ Good
|
|
45
|
+
- [Good point 1]
|
|
46
|
+
- [Good point 2]
|
|
47
|
+
|
|
48
|
+
### ⚠️ Issues
|
|
49
|
+
- [Issue 1]
|
|
50
|
+
- [Issue 2]
|
|
51
|
+
|
|
52
|
+
### 💡 Suggestions
|
|
53
|
+
- [Suggestion 1]
|
|
54
|
+
|
|
55
|
+
### Verdict: [APPROVE/REQUEST_CHANGES/COMMENT]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Guidelines
|
|
61
|
+
- Objective, constructive review
|
|
62
|
+
- Explain the reason for each comment
|
|
63
|
+
- Propose specific fix if there is an issue
|
|
64
|
+
"""
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
description = "Review code quality with severity categories (Code Reviewer Agent)"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 👁️ CODE REVIEWER AGENT
|
|
5
|
+
|
|
6
|
+
Review request:
|
|
7
|
+
|
|
8
|
+
**Scope:** {{args}}
|
|
9
|
+
|
|
10
|
+
## SCOPE DETECTION
|
|
11
|
+
|
|
12
|
+
| Scope | Trigger | Mode |
|
|
13
|
+
|-------|---------|------|
|
|
14
|
+
| **Codebase** | "codebase", "full", "all" | Full codebase review |
|
|
15
|
+
| **Directory** | path ends with `/` | Review all files in dir |
|
|
16
|
+
| **Feature** | feature name | Review related files |
|
|
17
|
+
| **Security** | "security", "audit" | OWASP compliance |
|
|
18
|
+
| **Types** | "types", "any" | TypeScript audit |
|
|
19
|
+
| **Performance** | "performance", "slow" | N+1, indexes |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## CODEBASE MODE (Full Review)
|
|
24
|
+
|
|
25
|
+
When triggered with "codebase"/"full"/"all":
|
|
26
|
+
|
|
27
|
+
### 1. Research Phase
|
|
28
|
+
- Scan entire project structure
|
|
29
|
+
- Identify key files and patterns
|
|
30
|
+
- Detect frameworks and dependencies
|
|
31
|
+
|
|
32
|
+
### 2. Code Review Phase
|
|
33
|
+
- Check all source files
|
|
34
|
+
- Identify issues, duplicates, vulnerabilities
|
|
35
|
+
- Generate severity-categorized findings
|
|
36
|
+
|
|
37
|
+
### 3. Planning Phase
|
|
38
|
+
Create improvement plan:
|
|
39
|
+
```
|
|
40
|
+
plans/YYYYMMDD-review/
|
|
41
|
+
├── plan.md # Overview
|
|
42
|
+
└── phase-XX-name.md # Detailed fixes
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 4. Final Report
|
|
46
|
+
- Summary of all findings
|
|
47
|
+
- Prioritized fix recommendations
|
|
48
|
+
- Next steps with commands
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## REVIEW OUTPUT FORMAT
|
|
53
|
+
|
|
54
|
+
### 📊 Summary
|
|
55
|
+
| Category | Count |
|
|
56
|
+
|----------|-------|
|
|
57
|
+
| 🔴 Critical | X |
|
|
58
|
+
| 🟠 High | X |
|
|
59
|
+
| 🟡 Medium | X |
|
|
60
|
+
| 🟢 Low | X |
|
|
61
|
+
|
|
62
|
+
**Verdict:** ❌ Block merge / ⚠️ Fix recommended / ✅ Ready
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### 🔴 CRITICAL (Must Fix Before Merge)
|
|
67
|
+
Issues that can cause security breaches or data loss.
|
|
68
|
+
|
|
69
|
+
#### Issue 1: [Title]
|
|
70
|
+
- **File:** `path/to/file.ts:42`
|
|
71
|
+
- **Problem:** [Description]
|
|
72
|
+
- **Risk:** [What can go wrong]
|
|
73
|
+
- **Fix:**
|
|
74
|
+
```typescript
|
|
75
|
+
// Before
|
|
76
|
+
[problematic code]
|
|
77
|
+
|
|
78
|
+
// After
|
|
79
|
+
[fixed code]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### 🟠 HIGH (Should Fix)
|
|
85
|
+
Performance, type safety, reliability issues.
|
|
86
|
+
|
|
87
|
+
#### Issue 1: [Title]
|
|
88
|
+
- **File:** `path/to/file.ts:15`
|
|
89
|
+
- **Problem:** [Description]
|
|
90
|
+
- **Fix:** [Recommendation]
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### 🟡 MEDIUM (Recommended)
|
|
95
|
+
Maintainability, code smells, patterns.
|
|
96
|
+
|
|
97
|
+
#### Issue 1: [Title]
|
|
98
|
+
- **Suggestion:** [Improvement]
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### 🟢 LOW (Optional)
|
|
103
|
+
Style, minor improvements.
|
|
104
|
+
|
|
105
|
+
- [Item 1]
|
|
106
|
+
- [Item 2]
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## SECURITY AUDIT (OWASP)
|
|
111
|
+
|
|
112
|
+
| Check | Status | Details |
|
|
113
|
+
|-------|--------|---------|
|
|
114
|
+
| Injection (SQL/NoSQL) | ✅/❌ | [Details] |
|
|
115
|
+
| Broken Auth | ✅/❌ | [Details] |
|
|
116
|
+
| Sensitive Data Exposure | ✅/❌ | [Details] |
|
|
117
|
+
| XSS | ✅/❌ | [Details] |
|
|
118
|
+
| Insecure Deserialization | ✅/❌ | [Details] |
|
|
119
|
+
| Using Vulnerable Components | ✅/❌ | [Details] |
|
|
120
|
+
| Logging & Monitoring | ✅/❌ | [Details] |
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## TYPE SAFETY AUDIT
|
|
125
|
+
|
|
126
|
+
### `any` Type Locations
|
|
127
|
+
| File | Line | Variable | Suggested Type |
|
|
128
|
+
|------|------|----------|----------------|
|
|
129
|
+
| `file.ts` | 42 | `data` | `UserResponse` |
|
|
130
|
+
|
|
131
|
+
### Strict Mode Violations
|
|
132
|
+
- [ ] `noImplicitAny`
|
|
133
|
+
- [ ] `strictNullChecks`
|
|
134
|
+
- [ ] `strictFunctionTypes`
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## PERFORMANCE ANALYSIS
|
|
139
|
+
|
|
140
|
+
### N+1 Query Detection
|
|
141
|
+
```typescript
|
|
142
|
+
// Problem: N+1 in loop
|
|
143
|
+
for (const user of users) {
|
|
144
|
+
const posts = await getPosts(user.id); // ❌ Query in loop
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Fix: Batch query
|
|
148
|
+
const posts = await getPostsByUserIds(users.map(u => u.id));
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Missing Indexes
|
|
152
|
+
- Table `users`: Add index on `email`
|
|
153
|
+
- Table `orders`: Add composite index on `(user_id, created_at)`
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## QUALITY GATES
|
|
158
|
+
|
|
159
|
+
| Gate | Status | Target |
|
|
160
|
+
|------|--------|--------|
|
|
161
|
+
| Test Coverage | X% | 80% |
|
|
162
|
+
| Zero `any` Types | X found | 0 |
|
|
163
|
+
| Security Scan | ✅/❌ | Pass |
|
|
164
|
+
| No Critical Issues | X found | 0 |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## NEXT STEPS
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
# Fix critical issues
|
|
172
|
+
/fix [critical security issues]
|
|
173
|
+
|
|
174
|
+
# Run tests
|
|
175
|
+
/test
|
|
176
|
+
|
|
177
|
+
# Re-review
|
|
178
|
+
/review [same scope]
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
> **Key Takeaway:** Code reviewer prevents production incidents by catching security vulnerabilities, type safety violations, and performance issues before merge.
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
# ---
|
|
185
|
+
# USAGE:
|
|
186
|
+
# /review src/auth/ - Review directory
|
|
187
|
+
# /review user authentication - Review feature
|
|
188
|
+
# /review security audit - OWASP compliance
|
|
189
|
+
# /review types check - Find any types
|
|
190
|
+
# /review performance - N+1, indexes
|
|
191
|
+
# ---
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
description = "Parallel external search cho large codebases (Scout External Agent)"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 🔍 SCOUT EXTERNAL AGENT
|
|
5
|
+
|
|
6
|
+
Large-scale parallel search:
|
|
7
|
+
|
|
8
|
+
**Query:** {{args}}
|
|
9
|
+
|
|
10
|
+
## WHEN TO USE
|
|
11
|
+
- Codebase **500+ files**
|
|
12
|
+
- Feature work **spanning multiple directories**
|
|
13
|
+
- Need **3-5x faster** than internal Scout
|
|
14
|
+
- **Semantic search** beyond pattern matching
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## PARALLEL EXECUTION STRATEGY
|
|
19
|
+
|
|
20
|
+
### Tool Selection
|
|
21
|
+
| Directories | Strategy |
|
|
22
|
+
|-------------|----------|
|
|
23
|
+
| ≤3 | Gemini only |
|
|
24
|
+
| >3 | Gemini + parallel agents |
|
|
25
|
+
|
|
26
|
+
### Execution Plan
|
|
27
|
+
1. **Identify target directories** - List all relevant dirs
|
|
28
|
+
2. **Launch parallel searches** - One per major area
|
|
29
|
+
3. **Set timeout** - 3 min per search
|
|
30
|
+
4. **Synthesize results** - Merge findings
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## OUTPUT FORMAT
|
|
35
|
+
|
|
36
|
+
### 📊 Execution Summary
|
|
37
|
+
| Area | Status | Files Found | Time |
|
|
38
|
+
|------|--------|-------------|------|
|
|
39
|
+
| `lib/` | ✅ Complete | 12 | 45s |
|
|
40
|
+
| `app/api/` | ✅ Complete | 8 | 32s |
|
|
41
|
+
| `components/` | ⚠️ Partial | 5 | 180s (timeout) |
|
|
42
|
+
|
|
43
|
+
**Total:** X files in Y seconds
|
|
44
|
+
**Coverage:** ~85%
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### 📂 Consolidated Findings
|
|
49
|
+
|
|
50
|
+
#### 🔷 Core Logic
|
|
51
|
+
- `lib/auth/...` - Authentication logic
|
|
52
|
+
- `lib/payment/...` - Payment processing
|
|
53
|
+
|
|
54
|
+
#### 🔷 API Layer
|
|
55
|
+
- `app/api/auth/...` - Auth endpoints
|
|
56
|
+
- `app/api/payment/...` - Payment routes
|
|
57
|
+
|
|
58
|
+
#### 🔷 UI Components
|
|
59
|
+
- `components/auth/...` - Login forms
|
|
60
|
+
|
|
61
|
+
#### 🔷 Configuration
|
|
62
|
+
- `config/...` - Environment settings
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### ⚠️ Coverage Gaps
|
|
67
|
+
Files/areas NOT searched (timeout or exclusion):
|
|
68
|
+
- `node_modules/` (excluded)
|
|
69
|
+
- `components/legacy/` (partial - timeout)
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### 💡 Large File Strategy
|
|
74
|
+
For files >25K tokens:
|
|
75
|
+
```bash
|
|
76
|
+
# Summarize large file
|
|
77
|
+
echo "Summarize auth logic in app/middleware/auth.ts" | gemini
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## PRO TIPS
|
|
83
|
+
- **Parallel = speed** - Launch all searches together
|
|
84
|
+
- **Timeout OK** - Partial results still useful
|
|
85
|
+
- **Quality > Quantity** - 2-5 directories optimal
|
|
86
|
+
- **Chain with /plan** - After discovery, plan implementation
|
|
87
|
+
|
|
88
|
+
> **Key Takeaway:** Scout External parallelizes search for 3-5x speed. Use for large codebases when internal Scout is too slow.
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
# ---
|
|
92
|
+
# USAGE:
|
|
93
|
+
# /scout-ext "Find all auth files across lib, api, components"
|
|
94
|
+
# /scout-ext "Locate payment processing in frontend + backend"
|
|
95
|
+
# /scout-ext "Search for all files importing @/lib/old-api"
|
|
96
|
+
# /scout-ext "Analyze API routes >500 lines for bottlenecks"
|
|
97
|
+
# ---
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
description = "Explore codebase with Structure Analysis & Scale (Scout Agent)"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 🔍 SCOUT AGENT
|
|
5
|
+
|
|
6
|
+
Exploration task:
|
|
7
|
+
|
|
8
|
+
**Query:** {{args}}
|
|
9
|
+
|
|
10
|
+
## SCALE & SCOPE
|
|
11
|
+
Default scale: 5 (Medium)
|
|
12
|
+
|
|
13
|
+
| Scale | Files | Use Case |
|
|
14
|
+
|-------|-------|----------|
|
|
15
|
+
| **1-3** | <100 | Targeted search, small feature |
|
|
16
|
+
| **4-6** | 100-500 | Feature discovery, debugging |
|
|
17
|
+
| **7-10** | 500+ | Full architecture map, monorepo |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## OUTPUT REPORT FORMAT
|
|
22
|
+
|
|
23
|
+
### 🗺️ Landscape Overview
|
|
24
|
+
- **Domain:** [Affected business domain]
|
|
25
|
+
- **Tech Stack:** [Languages/Frameworks detected]
|
|
26
|
+
- **Scale:** [Number of files found]
|
|
27
|
+
|
|
28
|
+
### 📂 Categorized Findings
|
|
29
|
+
Organize files by role:
|
|
30
|
+
|
|
31
|
+
#### 🏗️ Core Services / Logic
|
|
32
|
+
- `src/services/...`
|
|
33
|
+
- `src/lib/...`
|
|
34
|
+
|
|
35
|
+
#### 🛣️ Middleware & Routes
|
|
36
|
+
- `src/api/...`
|
|
37
|
+
- `src/middleware/...`
|
|
38
|
+
|
|
39
|
+
#### 💾 Data Layer
|
|
40
|
+
- `src/models/...`
|
|
41
|
+
- `src/db/...`
|
|
42
|
+
|
|
43
|
+
#### ⚙️ Configuration
|
|
44
|
+
- `config/...`
|
|
45
|
+
- `package.json`
|
|
46
|
+
|
|
47
|
+
#### 🧪 Tests
|
|
48
|
+
- `tests/...`
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### 🔗 Integration Points
|
|
53
|
+
Identify files that connect different parts:
|
|
54
|
+
- [File A] imports [File B]
|
|
55
|
+
- [Service X] uses [Model Y]
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### 💡 Pro Tips for this Context
|
|
60
|
+
- **Reading Order:** Start with [File A], then [File B].
|
|
61
|
+
- **Key Patterns:** [Observed patterns e.g. Repository pattern, Adapter pattern]
|
|
62
|
+
- **Dependencies:** [Key external libs used]
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## USAGE TIPS
|
|
67
|
+
- **Specific:** "auth middleware and JWT" (Better than "auth")
|
|
68
|
+
- **Scale:** Append number 1-10 to control depth
|
|
69
|
+
- **Constraint:** "only in src/api" to narrow down
|
|
70
|
+
|
|
71
|
+
> **Key Takeaway:** Scout maps the terrain so you don't get lost. 5 minutes of scouting saves hours of debugging.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
# ---
|
|
75
|
+
# USAGE:
|
|
76
|
+
# /scout "locate all auth files" 5
|
|
77
|
+
# /scout "find Stripe webhook handling" 4
|
|
78
|
+
# /scout "data models and migrations" 3
|
|
79
|
+
# /scout "security related files" 8
|
|
80
|
+
# ---
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Screenshot to Code
|
|
2
|
+
# Usage: /screenshot <image-path> [framework]
|
|
3
|
+
# Convert UI screenshot to HTML/CSS code
|
|
4
|
+
|
|
5
|
+
description = "Take screenshot for visual debugging"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
prompt = """
|
|
10
|
+
{{#if args}}
|
|
11
|
+
# 📸 Screenshot to Code
|
|
12
|
+
|
|
13
|
+
Convert this UI screenshot to code:
|
|
14
|
+
|
|
15
|
+
**Image:** {{args}}
|
|
16
|
+
|
|
17
|
+
## Instructions:
|
|
18
|
+
|
|
19
|
+
1. FIRST, read the image file using your vision capabilities
|
|
20
|
+
2. Analyze the UI elements, layout, colors, spacing
|
|
21
|
+
3. Generate clean, responsive code
|
|
22
|
+
|
|
23
|
+
## Requirements:
|
|
24
|
+
- Framework: HTML + Tailwind CSS (default)
|
|
25
|
+
- Make it responsive (mobile-first)
|
|
26
|
+
- Use semantic HTML5 elements
|
|
27
|
+
- Match colors, fonts, spacing as closely as possible
|
|
28
|
+
- Include all visible elements (buttons, text, images, etc.)
|
|
29
|
+
|
|
30
|
+
## Output Format:
|
|
31
|
+
1. Brief description of what you see
|
|
32
|
+
2. Complete HTML code with inline Tailwind classes
|
|
33
|
+
3. Save to `generated/<filename>.html`
|
|
34
|
+
|
|
35
|
+
Start by analyzing the image, then generate the complete code.
|
|
36
|
+
{{else}}
|
|
37
|
+
# 📸 Screenshot to Code
|
|
38
|
+
|
|
39
|
+
Convert any UI screenshot to HTML/CSS code.
|
|
40
|
+
|
|
41
|
+
## Usage:
|
|
42
|
+
```
|
|
43
|
+
/screenshot <image-path> [framework]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Examples:
|
|
47
|
+
```
|
|
48
|
+
/screenshot landing-page.png
|
|
49
|
+
/screenshot mockup.jpg react
|
|
50
|
+
/screenshot ~/Desktop/design.png vue
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Supported Frameworks:
|
|
54
|
+
- `html` (default) - HTML + Tailwind CSS
|
|
55
|
+
- `react` - React + Tailwind
|
|
56
|
+
- `vue` - Vue 3 + Tailwind
|
|
57
|
+
|
|
58
|
+
## Tips:
|
|
59
|
+
- Use clear, high-resolution screenshots
|
|
60
|
+
- Crop to just the UI you want to convert
|
|
61
|
+
- Simpler UIs convert better
|
|
62
|
+
|
|
63
|
+
Provide an image path to get started!
|
|
64
|
+
{{/if}}
|
|
65
|
+
"""
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Session - Session Management
|
|
2
|
+
# Usage: /session [action] [name/id]
|
|
3
|
+
# Save, load, and manage work sessions
|
|
4
|
+
|
|
5
|
+
description = "Save, load, and manage work sessions"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
prompt = """
|
|
10
|
+
{{#if args}}
|
|
11
|
+
# 💾 Session Management
|
|
12
|
+
|
|
13
|
+
**Action:** {{args}}
|
|
14
|
+
|
|
15
|
+
## Parse Action:
|
|
16
|
+
|
|
17
|
+
Check the first word of "{{args}}":
|
|
18
|
+
|
|
19
|
+
### If "save" or "s":
|
|
20
|
+
Save current session:
|
|
21
|
+
1. Capture current context:
|
|
22
|
+
- Current task/goal
|
|
23
|
+
- Files being worked on
|
|
24
|
+
- Recent changes
|
|
25
|
+
- Conversation context
|
|
26
|
+
2. Generate session ID
|
|
27
|
+
3. Save to `.gemini-kit/sessions/`
|
|
28
|
+
4. Report success with session ID
|
|
29
|
+
|
|
30
|
+
### If "load" or "l":
|
|
31
|
+
Load a saved session:
|
|
32
|
+
1. Find session by ID or name (second word)
|
|
33
|
+
2. If no ID given, show list to choose
|
|
34
|
+
3. Load and display session context
|
|
35
|
+
4. Resume from where left off
|
|
36
|
+
|
|
37
|
+
### If "list" or "ls":
|
|
38
|
+
List all saved sessions:
|
|
39
|
+
1. Read `.gemini-kit/sessions/`
|
|
40
|
+
2. Display each session with:
|
|
41
|
+
- ID
|
|
42
|
+
- Name/Task
|
|
43
|
+
- Date
|
|
44
|
+
- Summary
|
|
45
|
+
|
|
46
|
+
### If "info" or "i":
|
|
47
|
+
Show current session info:
|
|
48
|
+
1. Current task
|
|
49
|
+
2. Files in context
|
|
50
|
+
3. Progress
|
|
51
|
+
4. Time elapsed
|
|
52
|
+
|
|
53
|
+
### If "delete" or "rm":
|
|
54
|
+
Delete a session:
|
|
55
|
+
1. Find session by ID (second word)
|
|
56
|
+
2. Confirm deletion
|
|
57
|
+
3. Remove from storage
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
Now process: "{{args}}"
|
|
62
|
+
{{else}}
|
|
63
|
+
# 💾 Session Management
|
|
64
|
+
|
|
65
|
+
Save and resume your work sessions.
|
|
66
|
+
|
|
67
|
+
## Usage:
|
|
68
|
+
```
|
|
69
|
+
/session <action> [name/id]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Actions:
|
|
73
|
+
|
|
74
|
+
| Action | Description |
|
|
75
|
+
|--------|-------------|
|
|
76
|
+
| `/session` | Show current session info |
|
|
77
|
+
| `/session save [name]` | Save current session |
|
|
78
|
+
| `/session list` | List all saved sessions |
|
|
79
|
+
| `/session load [id]` | Load a session |
|
|
80
|
+
| `/session delete <id>` | Delete a session |
|
|
81
|
+
|
|
82
|
+
## Examples:
|
|
83
|
+
```
|
|
84
|
+
/session save "Working on auth"
|
|
85
|
+
/session list
|
|
86
|
+
/session load abc123
|
|
87
|
+
/session info
|
|
88
|
+
/session delete abc123
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Use Cases:
|
|
92
|
+
- Switching between tasks
|
|
93
|
+
- Resuming work next day
|
|
94
|
+
- Sharing context with team
|
|
95
|
+
|
|
96
|
+
What would you like to do?
|
|
97
|
+
{{/if}}
|
|
98
|
+
"""
|