superkit-mcp-server 1.2.4 → 1.2.6
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/ARCHITECTURE.md +102 -102
- package/README.md +71 -71
- package/SUPERKIT.md +168 -168
- package/agents/code-archaeologist.md +106 -106
- package/agents/coder.md +90 -90
- package/agents/data-engineer.md +28 -28
- package/agents/devops-engineer.md +242 -242
- package/agents/git-manager.md +203 -203
- package/agents/orchestrator.md +420 -420
- package/agents/penetration-tester.md +188 -188
- package/agents/performance-optimizer.md +187 -187
- package/agents/planner.md +270 -270
- package/agents/qa-automation-engineer.md +103 -103
- package/agents/quant-developer.md +32 -32
- package/agents/reviewer.md +100 -100
- package/agents/scout.md +222 -222
- package/agents/tester.md +274 -274
- package/agents/ui-designer.md +208 -208
- package/build/__tests__/test_apply_prompt_args.js +104 -0
- package/build/index.js +106 -45
- package/build/tools/todoTools.js +39 -39
- package/build/tools/validators/__tests__/apiSchema.test.js +23 -23
- package/build/tools/validators/__tests__/convertRules.test.js +5 -5
- package/build/tools/validators/__tests__/frontendDesign.test.js +12 -12
- package/build/tools/validators/__tests__/geoChecker.test.js +19 -19
- package/build/tools/validators/__tests__/mobileAudit.test.js +12 -12
- package/build/tools/validators/__tests__/reactPerformanceChecker.test.js +17 -17
- package/build/tools/validators/__tests__/securityScan.test.js +6 -6
- package/build/tools/validators/__tests__/seoChecker.test.js +16 -16
- package/build/tools/validators/__tests__/typeCoverage.test.js +14 -14
- package/commands/README.md +122 -122
- package/commands/ask.toml +72 -72
- package/commands/brainstorm.toml +119 -119
- package/commands/chat.toml +77 -77
- package/commands/code-preview.toml +37 -37
- package/commands/code.toml +28 -28
- package/commands/content.toml +200 -200
- package/commands/cook.toml +77 -77
- package/commands/copywrite.toml +131 -131
- package/commands/db.toml +192 -192
- package/commands/debug.toml +166 -166
- package/commands/design.toml +158 -158
- package/commands/dev-rules.toml +14 -14
- package/commands/do.toml +117 -117
- package/commands/doc-rules.toml +14 -14
- package/commands/docs.toml +148 -148
- package/commands/fix.toml +440 -440
- package/commands/fullstack.toml +175 -175
- package/commands/git.toml +235 -235
- package/commands/help.toml +84 -84
- package/commands/integrate.toml +127 -127
- package/commands/journal.toml +136 -136
- package/commands/kit-setup.toml +40 -40
- package/commands/mcp.toml +183 -183
- package/commands/orchestration.toml +15 -15
- package/commands/plan.toml +206 -172
- package/commands/pm.toml +148 -148
- package/commands/pr.toml +50 -50
- package/commands/project.toml +32 -32
- package/commands/research.toml +117 -117
- package/commands/review-pr.toml +63 -63
- package/commands/review.toml +190 -190
- package/commands/scout-ext.toml +97 -97
- package/commands/scout.toml +79 -79
- package/commands/screenshot.toml +65 -65
- package/commands/session.toml +102 -102
- package/commands/skill.toml +384 -384
- package/commands/status.toml +22 -22
- package/commands/team.toml +56 -56
- package/commands/test.toml +164 -164
- package/commands/ticket.toml +70 -70
- package/commands/use.toml +106 -106
- package/commands/video.toml +83 -83
- package/commands/watzup.toml +71 -71
- package/commands/workflow.toml +14 -14
- package/package.json +35 -35
- package/skills/meta/README.md +30 -30
- package/skills/meta/api-design/SKILL.md +134 -134
- package/skills/meta/code-review/SKILL.md +44 -44
- package/skills/meta/code-review/checklists/pre-merge.md +25 -25
- package/skills/meta/code-review/workflows/architecture-pass.md +26 -26
- package/skills/meta/code-review/workflows/performance-pass.md +27 -27
- package/skills/meta/code-review/workflows/security-pass.md +29 -29
- package/skills/meta/compound-docs/SKILL.md +133 -133
- package/skills/meta/debug/SKILL.md +40 -40
- package/skills/meta/debug/templates/bug-report.template.md +31 -31
- package/skills/meta/debug/workflows/reproduce-issue.md +20 -20
- package/skills/meta/docker/SKILL.md +126 -126
- package/skills/meta/examples/supabase/SKILL.md +46 -46
- package/skills/meta/examples/supabase/references/best-practices.md +319 -319
- package/skills/meta/examples/supabase/references/common-patterns.md +373 -373
- package/skills/meta/examples/supabase/templates/migration-template.sql +49 -49
- package/skills/meta/examples/supabase/templates/rls-policy-template.sql +77 -77
- package/skills/meta/examples/supabase/workflows/debugging.md +260 -260
- package/skills/meta/examples/supabase/workflows/migration-workflow.md +211 -211
- package/skills/meta/examples/supabase/workflows/rls-policies.md +244 -244
- package/skills/meta/examples/supabase/workflows/schema-design.md +321 -321
- package/skills/meta/file-todos/SKILL.md +88 -88
- package/skills/meta/mobile/SKILL.md +140 -140
- package/skills/meta/nextjs/SKILL.md +101 -101
- package/skills/meta/performance/SKILL.md +130 -130
- package/skills/meta/react-patterns/SKILL.md +83 -83
- package/skills/meta/security/SKILL.md +114 -114
- package/skills/meta/session-resume/SKILL.md +96 -96
- package/skills/meta/tailwind/SKILL.md +139 -139
- package/skills/meta/testing/SKILL.md +43 -43
- package/skills/meta/testing/references/vitest-patterns.md +45 -45
- package/skills/meta/testing/templates/component-test.template.tsx +37 -37
- package/skills/tech/alpha-vantage/SKILL.md +142 -142
- package/skills/tech/alpha-vantage/references/commodities.md +153 -153
- package/skills/tech/alpha-vantage/references/economic-indicators.md +158 -158
- package/skills/tech/alpha-vantage/references/forex-crypto.md +154 -154
- package/skills/tech/alpha-vantage/references/fundamentals.md +223 -223
- package/skills/tech/alpha-vantage/references/intelligence.md +138 -138
- package/skills/tech/alpha-vantage/references/options.md +93 -93
- package/skills/tech/alpha-vantage/references/technical-indicators.md +374 -374
- package/skills/tech/alpha-vantage/references/time-series.md +157 -157
- package/skills/tech/financial-modeling/SKILL.md +18 -18
- package/skills/tech/financial-modeling/skills/3-statements/SKILL.md +368 -368
- package/skills/tech/financial-modeling/skills/3-statements/references/formatting.md +118 -118
- package/skills/tech/financial-modeling/skills/3-statements/references/formulas.md +292 -292
- package/skills/tech/financial-modeling/skills/3-statements/references/sec-filings.md +125 -125
- package/skills/tech/financial-modeling/skills/dcf-model/SKILL.md +1210 -1210
- package/skills/tech/financial-modeling/skills/dcf-model/TROUBLESHOOTING.md +40 -40
- package/skills/tech/financial-modeling/skills/dcf-model/requirements.txt +8 -8
- package/skills/tech/financial-modeling/skills/dcf-model/scripts/validate_dcf.py +292 -292
- package/skills/tech/financial-modeling/skills/lbo-model/SKILL.md +236 -236
- package/skills/tech/financial-modeling/skills/merger-model/SKILL.md +108 -108
- package/skills/workflows/README.md +203 -203
- package/skills/workflows/adr.md +174 -174
- package/skills/workflows/changelog.md +74 -74
- package/skills/workflows/compound.md +323 -323
- package/skills/workflows/compound_health.md +74 -74
- package/skills/workflows/create-agent-skill.md +138 -138
- package/skills/workflows/cycle.md +144 -144
- package/skills/workflows/deploy-docs.md +84 -84
- package/skills/workflows/development-rules.md +42 -42
- package/skills/workflows/doc.md +95 -95
- package/skills/workflows/documentation-management.md +34 -34
- package/skills/workflows/explore.md +146 -146
- package/skills/workflows/generate_command.md +106 -106
- package/skills/workflows/heal-skill.md +97 -97
- package/skills/workflows/housekeeping.md +229 -229
- package/skills/workflows/kit-setup.md +102 -102
- package/skills/workflows/map-codebase.md +78 -78
- package/skills/workflows/orchestration-protocol.md +43 -43
- package/skills/workflows/plan-compound.md +439 -439
- package/skills/workflows/plan_review.md +269 -269
- package/skills/workflows/primary-workflow.md +37 -37
- package/skills/workflows/promote_pattern.md +86 -86
- package/skills/workflows/release-docs.md +82 -82
- package/skills/workflows/report-bug.md +135 -135
- package/skills/workflows/reproduce-bug.md +118 -118
- package/skills/workflows/resolve_pr.md +133 -133
- package/skills/workflows/resolve_todo.md +128 -128
- package/skills/workflows/review-compound.md +376 -376
- package/skills/workflows/skill-review.md +127 -127
- package/skills/workflows/specs.md +257 -257
- package/skills/workflows/triage-sprint.md +102 -102
- package/skills/workflows/triage.md +152 -152
- package/skills/workflows/work.md +399 -399
- package/skills/workflows/xcode-test.md +93 -93
package/commands/git.toml
CHANGED
|
@@ -1,236 +1,236 @@
|
|
|
1
|
-
description = "Git operations with security scan and auto-commit (Git Manager Agent)"
|
|
2
|
-
|
|
3
|
-
prompt = """
|
|
4
|
-
# 📦 GIT MANAGER AGENT
|
|
5
|
-
|
|
6
|
-
Git operation:
|
|
7
|
-
|
|
8
|
-
**Request:** {{args}}
|
|
9
|
-
|
|
10
|
-
## QUICK COMMANDS
|
|
11
|
-
|
|
12
|
-
| Command | Action | Time |
|
|
13
|
-
|---------|--------|------|
|
|
14
|
-
| `/git cm` | Commit with auto-message | 10-15s |
|
|
15
|
-
| `/git cp` | Commit + Push | 15-20s |
|
|
16
|
-
| `/git merge` | Merge branches | 10-20s |
|
|
17
|
-
| `/git status` | Review changes | 5s |
|
|
18
|
-
| `/git pr` | Generate PR summary | 30s |
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## AUTO-COMMIT MESSAGE
|
|
23
|
-
|
|
24
|
-
### From Diff Analysis
|
|
25
|
-
```bash
|
|
26
|
-
git diff --staged
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Message Format (Conventional Commits)
|
|
30
|
-
```
|
|
31
|
-
<type>(<scope>): <description>
|
|
32
|
-
|
|
33
|
-
[optional body]
|
|
34
|
-
|
|
35
|
-
[optional footer]
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Commit Types
|
|
39
|
-
| Type | Use Case |
|
|
40
|
-
|------|----------|
|
|
41
|
-
| `feat` | New feature |
|
|
42
|
-
| `fix` | Bug fix |
|
|
43
|
-
| `docs` | Documentation only |
|
|
44
|
-
| `refactor` | Code restructuring |
|
|
45
|
-
| `perf` | Performance improvement |
|
|
46
|
-
| `test` | Adding tests |
|
|
47
|
-
| `chore` | Maintenance (deps, config) |
|
|
48
|
-
| `style` | Formatting (no code change) |
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## SECURITY SCAN (Pre-commit)
|
|
53
|
-
|
|
54
|
-
### ❌ Patterns Blocked
|
|
55
|
-
```javascript
|
|
56
|
-
// API Keys
|
|
57
|
-
const API_KEY = "sk-1234567890abcdef";
|
|
58
|
-
|
|
59
|
-
// Database URLs
|
|
60
|
-
const DB_URL = "postgres://user:pass@host/db";
|
|
61
|
-
|
|
62
|
-
// OAuth Tokens
|
|
63
|
-
const TOKEN = "ghp_xxxxxxxxxxxx";
|
|
64
|
-
|
|
65
|
-
// AWS Credentials
|
|
66
|
-
const AWS_SECRET = "wJalrXUtnFEMI/K7MDENG/bPxRf";
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### ✅ Allowed Patterns
|
|
70
|
-
```javascript
|
|
71
|
-
const API_KEY = process.env.API_KEY;
|
|
72
|
-
const DB_URL = process.env.DATABASE_URL;
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Scan Result
|
|
76
|
-
| Check | Status | Details |
|
|
77
|
-
|-------|--------|---------|
|
|
78
|
-
| API Keys | ✅/❌ | `file.ts:42` |
|
|
79
|
-
| DB Credentials | ✅/❌ | - |
|
|
80
|
-
| OAuth Tokens | ✅/❌ | - |
|
|
81
|
-
| Private Keys | ✅/❌ | - |
|
|
82
|
-
|
|
83
|
-
**Block commit if secrets detected!**
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## MULTI-FILE DETECTION
|
|
88
|
-
|
|
89
|
-
For complex changes across multiple files:
|
|
90
|
-
```
|
|
91
|
-
feat(dashboard): add interactive chart component
|
|
92
|
-
|
|
93
|
-
- Add Chart.tsx with D3 integration
|
|
94
|
-
- Update Dashboard.tsx to include chart
|
|
95
|
-
- Add chart styles in styles.css
|
|
96
|
-
- Update tests for new component
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## WORKFLOW
|
|
102
|
-
|
|
103
|
-
### Standard Commit
|
|
104
|
-
```bash
|
|
105
|
-
git status # 1. Review changes
|
|
106
|
-
git add . # 2. Stage files
|
|
107
|
-
/git cm # 3. Auto-commit
|
|
108
|
-
git log -1 # 4. Verify
|
|
109
|
-
/git cp # 5. Push (optional)
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### Fix Push Failures
|
|
113
|
-
```bash
|
|
114
|
-
git pull --rebase origin main
|
|
115
|
-
# Resolve conflicts if any
|
|
116
|
-
/git cp # Retry push
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## PRE-PUSH SAFETY CHECKS (for /git cp)
|
|
122
|
-
|
|
123
|
-
### 1. Pre-Push Validation
|
|
124
|
-
Before pushing, automatically run:
|
|
125
|
-
```
|
|
126
|
-
Running pre-push checks...
|
|
127
|
-
✓ TypeScript: No errors
|
|
128
|
-
✓ Lint: Passed
|
|
129
|
-
✓ Tests: All passed (if fast)
|
|
130
|
-
✓ Security: No sensitive files
|
|
131
|
-
Safe to push.
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### 2. Conflict Detection
|
|
135
|
-
```
|
|
136
|
-
⚠ Warning: Remote has changes
|
|
137
|
-
Remote branch has X new commits.
|
|
138
|
-
Options:
|
|
139
|
-
1. Pull and rebase: git pull --rebase
|
|
140
|
-
2. Pull and merge: git pull
|
|
141
|
-
3. Cancel push
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### 3. Force Push Prevention
|
|
145
|
-
```
|
|
146
|
-
❌ Error: Would require force push
|
|
147
|
-
Your branch is behind 'origin/main' by X commits.
|
|
148
|
-
Options:
|
|
149
|
-
1. Pull and rebase: git pull --rebase
|
|
150
|
-
2. Create new branch
|
|
151
|
-
3. Cancel
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
**Never force push to main/master without explicit approval!**
|
|
155
|
-
|
|
156
|
-
### Logical Grouping
|
|
157
|
-
```bash
|
|
158
|
-
git add src/auth/*
|
|
159
|
-
/git cm # Commits only auth
|
|
160
|
-
|
|
161
|
-
git add src/components/*
|
|
162
|
-
/git cm # Separate UI changes
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### Merge Branches
|
|
166
|
-
```bash
|
|
167
|
-
/git merge feature-branch into main
|
|
168
|
-
|
|
169
|
-
# Workflow:
|
|
170
|
-
# 1. Checkout target branch
|
|
171
|
-
# 2. Merge source branch
|
|
172
|
-
# 3. Resolve conflicts if any
|
|
173
|
-
# 4. Commit merge
|
|
174
|
-
# 5. Push if requested
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## PR FORMAT (for /git pr)
|
|
180
|
-
|
|
181
|
-
### Auto-generated PR Description:
|
|
182
|
-
```markdown
|
|
183
|
-
## Summary
|
|
184
|
-
[Brief description of changes]
|
|
185
|
-
|
|
186
|
-
## Changes Made
|
|
187
|
-
- ✅ Feature: [description]
|
|
188
|
-
- 🐛 Fix: [description]
|
|
189
|
-
- ♻️ Refactor: [description]
|
|
190
|
-
|
|
191
|
-
## Files Changed
|
|
192
|
-
- `src/file1.ts` - [description]
|
|
193
|
-
- `src/file2.ts` - [description]
|
|
194
|
-
|
|
195
|
-
## Test Plan
|
|
196
|
-
- [ ] Unit tests pass
|
|
197
|
-
- [ ] Manual testing on localhost
|
|
198
|
-
- [ ] No TypeScript errors
|
|
199
|
-
- [ ] No lint warnings
|
|
200
|
-
|
|
201
|
-
## Screenshots (if UI changes)
|
|
202
|
-
[Attach screenshots]
|
|
203
|
-
|
|
204
|
-
## Checklist
|
|
205
|
-
- [ ] Code follows project conventions
|
|
206
|
-
- [ ] Documentation updated
|
|
207
|
-
- [ ] No breaking changes
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
### Usage:
|
|
211
|
-
```bash
|
|
212
|
-
/git pr # PR to main
|
|
213
|
-
/git pr develop # PR to develop
|
|
214
|
-
/git pr --draft # Draft PR
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
## SAFETY RULES
|
|
220
|
-
- ✅ Always review before commit
|
|
221
|
-
- ✅ Conventional commits format
|
|
222
|
-
- ❌ No force push to main/master
|
|
223
|
-
- ✅ Security scan before push
|
|
224
|
-
- ✅ Backup before risky ops
|
|
225
|
-
|
|
226
|
-
> **Key Takeaway:** Clean commit history with security-first automation. No leaked secrets, no AI attribution.
|
|
227
|
-
"""
|
|
228
|
-
|
|
229
|
-
# ---
|
|
230
|
-
# USAGE:
|
|
231
|
-
# /git cm - Commit with auto-message
|
|
232
|
-
# /git cp - Commit and push
|
|
233
|
-
# /git status - Check git status
|
|
234
|
-
# /git pr - Generate PR summary
|
|
235
|
-
# /git conflict - Help resolve conflicts
|
|
1
|
+
description = "Git operations with security scan and auto-commit (Git Manager Agent)"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 📦 GIT MANAGER AGENT
|
|
5
|
+
|
|
6
|
+
Git operation:
|
|
7
|
+
|
|
8
|
+
**Request:** {{args}}
|
|
9
|
+
|
|
10
|
+
## QUICK COMMANDS
|
|
11
|
+
|
|
12
|
+
| Command | Action | Time |
|
|
13
|
+
|---------|--------|------|
|
|
14
|
+
| `/git cm` | Commit with auto-message | 10-15s |
|
|
15
|
+
| `/git cp` | Commit + Push | 15-20s |
|
|
16
|
+
| `/git merge` | Merge branches | 10-20s |
|
|
17
|
+
| `/git status` | Review changes | 5s |
|
|
18
|
+
| `/git pr` | Generate PR summary | 30s |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## AUTO-COMMIT MESSAGE
|
|
23
|
+
|
|
24
|
+
### From Diff Analysis
|
|
25
|
+
```bash
|
|
26
|
+
git diff --staged
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Message Format (Conventional Commits)
|
|
30
|
+
```
|
|
31
|
+
<type>(<scope>): <description>
|
|
32
|
+
|
|
33
|
+
[optional body]
|
|
34
|
+
|
|
35
|
+
[optional footer]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Commit Types
|
|
39
|
+
| Type | Use Case |
|
|
40
|
+
|------|----------|
|
|
41
|
+
| `feat` | New feature |
|
|
42
|
+
| `fix` | Bug fix |
|
|
43
|
+
| `docs` | Documentation only |
|
|
44
|
+
| `refactor` | Code restructuring |
|
|
45
|
+
| `perf` | Performance improvement |
|
|
46
|
+
| `test` | Adding tests |
|
|
47
|
+
| `chore` | Maintenance (deps, config) |
|
|
48
|
+
| `style` | Formatting (no code change) |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## SECURITY SCAN (Pre-commit)
|
|
53
|
+
|
|
54
|
+
### ❌ Patterns Blocked
|
|
55
|
+
```javascript
|
|
56
|
+
// API Keys
|
|
57
|
+
const API_KEY = "sk-1234567890abcdef";
|
|
58
|
+
|
|
59
|
+
// Database URLs
|
|
60
|
+
const DB_URL = "postgres://user:pass@host/db";
|
|
61
|
+
|
|
62
|
+
// OAuth Tokens
|
|
63
|
+
const TOKEN = "ghp_xxxxxxxxxxxx";
|
|
64
|
+
|
|
65
|
+
// AWS Credentials
|
|
66
|
+
const AWS_SECRET = "wJalrXUtnFEMI/K7MDENG/bPxRf";
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### ✅ Allowed Patterns
|
|
70
|
+
```javascript
|
|
71
|
+
const API_KEY = process.env.API_KEY;
|
|
72
|
+
const DB_URL = process.env.DATABASE_URL;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Scan Result
|
|
76
|
+
| Check | Status | Details |
|
|
77
|
+
|-------|--------|---------|
|
|
78
|
+
| API Keys | ✅/❌ | `file.ts:42` |
|
|
79
|
+
| DB Credentials | ✅/❌ | - |
|
|
80
|
+
| OAuth Tokens | ✅/❌ | - |
|
|
81
|
+
| Private Keys | ✅/❌ | - |
|
|
82
|
+
|
|
83
|
+
**Block commit if secrets detected!**
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## MULTI-FILE DETECTION
|
|
88
|
+
|
|
89
|
+
For complex changes across multiple files:
|
|
90
|
+
```
|
|
91
|
+
feat(dashboard): add interactive chart component
|
|
92
|
+
|
|
93
|
+
- Add Chart.tsx with D3 integration
|
|
94
|
+
- Update Dashboard.tsx to include chart
|
|
95
|
+
- Add chart styles in styles.css
|
|
96
|
+
- Update tests for new component
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## WORKFLOW
|
|
102
|
+
|
|
103
|
+
### Standard Commit
|
|
104
|
+
```bash
|
|
105
|
+
git status # 1. Review changes
|
|
106
|
+
git add . # 2. Stage files
|
|
107
|
+
/git cm # 3. Auto-commit
|
|
108
|
+
git log -1 # 4. Verify
|
|
109
|
+
/git cp # 5. Push (optional)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Fix Push Failures
|
|
113
|
+
```bash
|
|
114
|
+
git pull --rebase origin main
|
|
115
|
+
# Resolve conflicts if any
|
|
116
|
+
/git cp # Retry push
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## PRE-PUSH SAFETY CHECKS (for /git cp)
|
|
122
|
+
|
|
123
|
+
### 1. Pre-Push Validation
|
|
124
|
+
Before pushing, automatically run:
|
|
125
|
+
```
|
|
126
|
+
Running pre-push checks...
|
|
127
|
+
✓ TypeScript: No errors
|
|
128
|
+
✓ Lint: Passed
|
|
129
|
+
✓ Tests: All passed (if fast)
|
|
130
|
+
✓ Security: No sensitive files
|
|
131
|
+
Safe to push.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 2. Conflict Detection
|
|
135
|
+
```
|
|
136
|
+
⚠ Warning: Remote has changes
|
|
137
|
+
Remote branch has X new commits.
|
|
138
|
+
Options:
|
|
139
|
+
1. Pull and rebase: git pull --rebase
|
|
140
|
+
2. Pull and merge: git pull
|
|
141
|
+
3. Cancel push
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### 3. Force Push Prevention
|
|
145
|
+
```
|
|
146
|
+
❌ Error: Would require force push
|
|
147
|
+
Your branch is behind 'origin/main' by X commits.
|
|
148
|
+
Options:
|
|
149
|
+
1. Pull and rebase: git pull --rebase
|
|
150
|
+
2. Create new branch
|
|
151
|
+
3. Cancel
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Never force push to main/master without explicit approval!**
|
|
155
|
+
|
|
156
|
+
### Logical Grouping
|
|
157
|
+
```bash
|
|
158
|
+
git add src/auth/*
|
|
159
|
+
/git cm # Commits only auth
|
|
160
|
+
|
|
161
|
+
git add src/components/*
|
|
162
|
+
/git cm # Separate UI changes
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Merge Branches
|
|
166
|
+
```bash
|
|
167
|
+
/git merge feature-branch into main
|
|
168
|
+
|
|
169
|
+
# Workflow:
|
|
170
|
+
# 1. Checkout target branch
|
|
171
|
+
# 2. Merge source branch
|
|
172
|
+
# 3. Resolve conflicts if any
|
|
173
|
+
# 4. Commit merge
|
|
174
|
+
# 5. Push if requested
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## PR FORMAT (for /git pr)
|
|
180
|
+
|
|
181
|
+
### Auto-generated PR Description:
|
|
182
|
+
```markdown
|
|
183
|
+
## Summary
|
|
184
|
+
[Brief description of changes]
|
|
185
|
+
|
|
186
|
+
## Changes Made
|
|
187
|
+
- ✅ Feature: [description]
|
|
188
|
+
- 🐛 Fix: [description]
|
|
189
|
+
- ♻️ Refactor: [description]
|
|
190
|
+
|
|
191
|
+
## Files Changed
|
|
192
|
+
- `src/file1.ts` - [description]
|
|
193
|
+
- `src/file2.ts` - [description]
|
|
194
|
+
|
|
195
|
+
## Test Plan
|
|
196
|
+
- [ ] Unit tests pass
|
|
197
|
+
- [ ] Manual testing on localhost
|
|
198
|
+
- [ ] No TypeScript errors
|
|
199
|
+
- [ ] No lint warnings
|
|
200
|
+
|
|
201
|
+
## Screenshots (if UI changes)
|
|
202
|
+
[Attach screenshots]
|
|
203
|
+
|
|
204
|
+
## Checklist
|
|
205
|
+
- [ ] Code follows project conventions
|
|
206
|
+
- [ ] Documentation updated
|
|
207
|
+
- [ ] No breaking changes
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Usage:
|
|
211
|
+
```bash
|
|
212
|
+
/git pr # PR to main
|
|
213
|
+
/git pr develop # PR to develop
|
|
214
|
+
/git pr --draft # Draft PR
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## SAFETY RULES
|
|
220
|
+
- ✅ Always review before commit
|
|
221
|
+
- ✅ Conventional commits format
|
|
222
|
+
- ❌ No force push to main/master
|
|
223
|
+
- ✅ Security scan before push
|
|
224
|
+
- ✅ Backup before risky ops
|
|
225
|
+
|
|
226
|
+
> **Key Takeaway:** Clean commit history with security-first automation. No leaked secrets, no AI attribution.
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
# ---
|
|
230
|
+
# USAGE:
|
|
231
|
+
# /git cm - Commit with auto-message
|
|
232
|
+
# /git cp - Commit and push
|
|
233
|
+
# /git status - Check git status
|
|
234
|
+
# /git pr - Generate PR summary
|
|
235
|
+
# /git conflict - Help resolve conflicts
|
|
236
236
|
# ---
|
package/commands/help.toml
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
# Super-Kit Help
|
|
2
|
-
# Usage: /help description = "Help and usage information"
|
|
3
|
-
# - /help → Show all commands
|
|
4
|
-
# - /help plan → Show help for /plan
|
|
5
|
-
# - /help tools → Show all MCP tools
|
|
6
|
-
|
|
7
|
-
description = "Help and usage information"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
prompt = """
|
|
13
|
-
{{#if args}}
|
|
14
|
-
Show detailed help for: {{args}}
|
|
15
|
-
|
|
16
|
-
If {{args}} is a command name (like "plan", "cook", "scout"), explain:
|
|
17
|
-
1. What the command does
|
|
18
|
-
2. When to use it
|
|
19
|
-
3. Example usage
|
|
20
|
-
4. Related commands
|
|
21
|
-
|
|
22
|
-
If {{args}} is "tools", list all 17 MCP tools with descriptions.
|
|
23
|
-
If {{args}} is "hooks", explain the 5 lifecycle hooks.
|
|
24
|
-
{{else}}
|
|
25
|
-
# 🧰 Super-Kit Help
|
|
26
|
-
|
|
27
|
-
## 📋 Available Commands (20)
|
|
28
|
-
|
|
29
|
-
### 🔧 Core Workflow
|
|
30
|
-
| Command | Description |
|
|
31
|
-
|---------|-------------|
|
|
32
|
-
| `/plan` | Create implementation plan with approval |
|
|
33
|
-
| `/cook` | Execute changes with auto-checkpoint |
|
|
34
|
-
| `/scout` | Search and analyze codebase |
|
|
35
|
-
| `/code` | Implement features |
|
|
36
|
-
| `/test` | Generate and run tests |
|
|
37
|
-
| `/debug` | Diagnose and fix bugs |
|
|
38
|
-
| `/review` | Code review |
|
|
39
|
-
|
|
40
|
-
### 🔗 Integrations
|
|
41
|
-
| Command | Description |
|
|
42
|
-
|---------|-------------|
|
|
43
|
-
| `/pr` | Create GitHub Pull Request |
|
|
44
|
-
| `/review-pr` | Review PR in detail |
|
|
45
|
-
| `/ticket` | Get Jira/GitHub issue |
|
|
46
|
-
| `/git` | Git operations |
|
|
47
|
-
|
|
48
|
-
### 📝 Content & Docs
|
|
49
|
-
| Command | Description |
|
|
50
|
-
|---------|-------------|
|
|
51
|
-
| `/docs` | Generate documentation |
|
|
52
|
-
| `/copywrite` | Content writing |
|
|
53
|
-
| `/journal` | Dev journal |
|
|
54
|
-
|
|
55
|
-
### 💡 Research & Design
|
|
56
|
-
| Command | Description |
|
|
57
|
-
|---------|-------------|
|
|
58
|
-
| `/brainstorm` | Brainstorm ideas |
|
|
59
|
-
| `/research` | Deep research |
|
|
60
|
-
| `/design` | UI/UX design |
|
|
61
|
-
| `/db` | Database operations |
|
|
62
|
-
| `/project` | Project management |
|
|
63
|
-
|
|
64
|
-
### 🛡️ Special
|
|
65
|
-
| Command | Description |
|
|
66
|
-
|---------|-------------|
|
|
67
|
-
| `/code-preview` | Dry-run mode (preview only) |
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 🛠️ MCP Tools (17)
|
|
72
|
-
Type `/kit tools` to see all tools.
|
|
73
|
-
|
|
74
|
-
## 🔗 Hooks (5)
|
|
75
|
-
Type `/kit hooks` to see lifecycle hooks.
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
**Usage:** `/kit <command>` for detailed help
|
|
80
|
-
**Example:** `/kit plan` or `/kit cook`
|
|
81
|
-
|
|
82
|
-
**GitHub:** https://github.com/dgkngk/super-kit
|
|
83
|
-
{{/if}}
|
|
84
|
-
"""
|
|
1
|
+
# Super-Kit Help
|
|
2
|
+
# Usage: /help description = "Help and usage information"
|
|
3
|
+
# - /help → Show all commands
|
|
4
|
+
# - /help plan → Show help for /plan
|
|
5
|
+
# - /help tools → Show all MCP tools
|
|
6
|
+
|
|
7
|
+
description = "Help and usage information"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
prompt = """
|
|
13
|
+
{{#if args}}
|
|
14
|
+
Show detailed help for: {{args}}
|
|
15
|
+
|
|
16
|
+
If {{args}} is a command name (like "plan", "cook", "scout"), explain:
|
|
17
|
+
1. What the command does
|
|
18
|
+
2. When to use it
|
|
19
|
+
3. Example usage
|
|
20
|
+
4. Related commands
|
|
21
|
+
|
|
22
|
+
If {{args}} is "tools", list all 17 MCP tools with descriptions.
|
|
23
|
+
If {{args}} is "hooks", explain the 5 lifecycle hooks.
|
|
24
|
+
{{else}}
|
|
25
|
+
# 🧰 Super-Kit Help
|
|
26
|
+
|
|
27
|
+
## 📋 Available Commands (20)
|
|
28
|
+
|
|
29
|
+
### 🔧 Core Workflow
|
|
30
|
+
| Command | Description |
|
|
31
|
+
|---------|-------------|
|
|
32
|
+
| `/plan` | Create implementation plan with approval |
|
|
33
|
+
| `/cook` | Execute changes with auto-checkpoint |
|
|
34
|
+
| `/scout` | Search and analyze codebase |
|
|
35
|
+
| `/code` | Implement features |
|
|
36
|
+
| `/test` | Generate and run tests |
|
|
37
|
+
| `/debug` | Diagnose and fix bugs |
|
|
38
|
+
| `/review` | Code review |
|
|
39
|
+
|
|
40
|
+
### 🔗 Integrations
|
|
41
|
+
| Command | Description |
|
|
42
|
+
|---------|-------------|
|
|
43
|
+
| `/pr` | Create GitHub Pull Request |
|
|
44
|
+
| `/review-pr` | Review PR in detail |
|
|
45
|
+
| `/ticket` | Get Jira/GitHub issue |
|
|
46
|
+
| `/git` | Git operations |
|
|
47
|
+
|
|
48
|
+
### 📝 Content & Docs
|
|
49
|
+
| Command | Description |
|
|
50
|
+
|---------|-------------|
|
|
51
|
+
| `/docs` | Generate documentation |
|
|
52
|
+
| `/copywrite` | Content writing |
|
|
53
|
+
| `/journal` | Dev journal |
|
|
54
|
+
|
|
55
|
+
### 💡 Research & Design
|
|
56
|
+
| Command | Description |
|
|
57
|
+
|---------|-------------|
|
|
58
|
+
| `/brainstorm` | Brainstorm ideas |
|
|
59
|
+
| `/research` | Deep research |
|
|
60
|
+
| `/design` | UI/UX design |
|
|
61
|
+
| `/db` | Database operations |
|
|
62
|
+
| `/project` | Project management |
|
|
63
|
+
|
|
64
|
+
### 🛡️ Special
|
|
65
|
+
| Command | Description |
|
|
66
|
+
|---------|-------------|
|
|
67
|
+
| `/code-preview` | Dry-run mode (preview only) |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 🛠️ MCP Tools (17)
|
|
72
|
+
Type `/kit tools` to see all tools.
|
|
73
|
+
|
|
74
|
+
## 🔗 Hooks (5)
|
|
75
|
+
Type `/kit hooks` to see lifecycle hooks.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
**Usage:** `/kit <command>` for detailed help
|
|
80
|
+
**Example:** `/kit plan` or `/kit cook`
|
|
81
|
+
|
|
82
|
+
**GitHub:** https://github.com/dgkngk/super-kit
|
|
83
|
+
{{/if}}
|
|
84
|
+
"""
|