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,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
|
|
236
|
+
# ---
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Gemini-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
|
+
# 🧰 Gemini-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/nth5693/gemini-kit
|
|
83
|
+
{{/if}}
|
|
84
|
+
"""
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Integrate - External Service Integrations
|
|
2
|
+
# Usage: /integrate <service> [requirements]
|
|
3
|
+
# Supports: payments, auth, database, email, SMS
|
|
4
|
+
|
|
5
|
+
description = "Integration with external services"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
prompt = """
|
|
10
|
+
{{#if args}}
|
|
11
|
+
# 🔌 Integration Engineer
|
|
12
|
+
|
|
13
|
+
You are an expert at integrating third-party services.
|
|
14
|
+
|
|
15
|
+
**Request:** {{args}}
|
|
16
|
+
|
|
17
|
+
## Workflow:
|
|
18
|
+
|
|
19
|
+
### 1. Service Detection
|
|
20
|
+
Parse "{{args}}" to identify:
|
|
21
|
+
- Service name
|
|
22
|
+
- Features needed
|
|
23
|
+
- Current stack (check package.json)
|
|
24
|
+
|
|
25
|
+
### 2. Supported Services
|
|
26
|
+
|
|
27
|
+
#### 💳 Payments
|
|
28
|
+
| Service | Features |
|
|
29
|
+
|---------|----------|
|
|
30
|
+
| **stripe** | Checkout, subscriptions, webhooks |
|
|
31
|
+
| **polar** | Open-source subscriptions |
|
|
32
|
+
| **sepay** | Vietnam payments |
|
|
33
|
+
| **paypal** | Global payments |
|
|
34
|
+
|
|
35
|
+
#### 🔐 Authentication
|
|
36
|
+
| Service | Features |
|
|
37
|
+
|---------|----------|
|
|
38
|
+
| **supabase** | Auth, database, realtime |
|
|
39
|
+
| **firebase** | Auth, Firestore, Functions |
|
|
40
|
+
| **auth0** | SSO, MFA, social login |
|
|
41
|
+
| **clerk** | User management, components |
|
|
42
|
+
|
|
43
|
+
#### 📧 Communication
|
|
44
|
+
| Service | Features |
|
|
45
|
+
|---------|----------|
|
|
46
|
+
| **resend** | Transactional emails |
|
|
47
|
+
| **twilio** | SMS, voice |
|
|
48
|
+
| **nodemailer** | SMTP emails |
|
|
49
|
+
|
|
50
|
+
#### 🗄️ Database
|
|
51
|
+
| Service | Features |
|
|
52
|
+
|---------|----------|
|
|
53
|
+
| **prisma** | ORM, migrations |
|
|
54
|
+
| **drizzle** | TypeScript ORM |
|
|
55
|
+
| **mongoose** | MongoDB ODM |
|
|
56
|
+
|
|
57
|
+
### 3. Implementation
|
|
58
|
+
|
|
59
|
+
1. **Install** packages
|
|
60
|
+
2. **Configure** env vars
|
|
61
|
+
3. **Create** client/service file
|
|
62
|
+
4. **Add** API routes/webhooks
|
|
63
|
+
5. **Build** UI components
|
|
64
|
+
6. **Test** integration
|
|
65
|
+
7. **Document** setup
|
|
66
|
+
|
|
67
|
+
### 4. Output Format
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
## Integration: [Service]
|
|
71
|
+
|
|
72
|
+
### Install
|
|
73
|
+
npm install [packages]
|
|
74
|
+
|
|
75
|
+
### Environment Variables
|
|
76
|
+
SERVICE_KEY=xxx
|
|
77
|
+
|
|
78
|
+
### Files Created
|
|
79
|
+
- src/lib/[service].ts
|
|
80
|
+
- src/routes/api/[service]/
|
|
81
|
+
|
|
82
|
+
### Usage
|
|
83
|
+
[code example]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
Implement: {{args}}
|
|
89
|
+
{{else}}
|
|
90
|
+
# 🔌 Integration Helper
|
|
91
|
+
|
|
92
|
+
Integrate external services with AI assistance.
|
|
93
|
+
|
|
94
|
+
## Usage:
|
|
95
|
+
```
|
|
96
|
+
/integrate <service> [requirements]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Categories:
|
|
100
|
+
|
|
101
|
+
### 💳 Payments
|
|
102
|
+
- `/integrate stripe subscriptions`
|
|
103
|
+
- `/integrate polar billing`
|
|
104
|
+
- `/integrate sepay vn payments`
|
|
105
|
+
|
|
106
|
+
### 🔐 Auth
|
|
107
|
+
- `/integrate supabase auth`
|
|
108
|
+
- `/integrate clerk users`
|
|
109
|
+
- `/integrate auth0 sso`
|
|
110
|
+
|
|
111
|
+
### 📧 Email/SMS
|
|
112
|
+
- `/integrate resend emails`
|
|
113
|
+
- `/integrate twilio sms`
|
|
114
|
+
|
|
115
|
+
### 🗄️ Database
|
|
116
|
+
- `/integrate prisma postgres`
|
|
117
|
+
- `/integrate drizzle orm`
|
|
118
|
+
|
|
119
|
+
## Example:
|
|
120
|
+
```
|
|
121
|
+
/integrate stripe Add checkout and subscriptions
|
|
122
|
+
/integrate supabase Add auth with Google OAuth
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
What service do you want to integrate?
|
|
126
|
+
{{/if}}
|
|
127
|
+
"""
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
description = "Journal entry or incident report with institutional knowledge (Journal Writer Agent)"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 📓 JOURNAL WRITER AGENT
|
|
5
|
+
|
|
6
|
+
Write documentation for:
|
|
7
|
+
|
|
8
|
+
**Context:** {{args}}
|
|
9
|
+
|
|
10
|
+
## MODE DETECTION
|
|
11
|
+
Based on context, select appropriate mode:
|
|
12
|
+
|
|
13
|
+
### PROGRESS JOURNAL (default)
|
|
14
|
+
When tracking daily/weekly progress.
|
|
15
|
+
|
|
16
|
+
### INCIDENT REPORT
|
|
17
|
+
When keywords: "bug", "outage", "down", "crash", "failed", "error", "incident" are present.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## PROGRESS JOURNAL MODE
|
|
22
|
+
|
|
23
|
+
### Entry: [Date]
|
|
24
|
+
|
|
25
|
+
#### What Was Done
|
|
26
|
+
- [Accomplishment 1]
|
|
27
|
+
- [Accomplishment 2]
|
|
28
|
+
|
|
29
|
+
#### Challenges Encountered
|
|
30
|
+
- [Challenge] → [How solved]
|
|
31
|
+
|
|
32
|
+
#### Lessons Learned
|
|
33
|
+
- [Key takeaway]
|
|
34
|
+
|
|
35
|
+
#### Next Steps
|
|
36
|
+
- [ ] [Action item 1]
|
|
37
|
+
- [ ] [Action item 2]
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## INCIDENT REPORT MODE
|
|
42
|
+
|
|
43
|
+
### 🚨 Incident Report: [Title]
|
|
44
|
+
**Date:** [YYYY-MM-DD HH:MM]
|
|
45
|
+
**Severity:** Critical / High / Medium / Low
|
|
46
|
+
**Duration:** [X hours/minutes]
|
|
47
|
+
**Tags:** #incident #[system] #[type]
|
|
48
|
+
|
|
49
|
+
#### Timeline
|
|
50
|
+
| Time | Event | Emotion |
|
|
51
|
+
|------|-------|---------|
|
|
52
|
+
| HH:MM | [Initial symptom] | 😱 Panic |
|
|
53
|
+
| HH:MM | [Investigation started] | 🔍 Focus |
|
|
54
|
+
| HH:MM | [Root cause identified] | 💡 Aha! |
|
|
55
|
+
| HH:MM | [Fix deployed] | 🤞 Hope |
|
|
56
|
+
| HH:MM | [Resolution confirmed] | 😮💨 Relief |
|
|
57
|
+
|
|
58
|
+
#### Root Cause
|
|
59
|
+
[Technical explanation of what went wrong]
|
|
60
|
+
|
|
61
|
+
#### Failed Attempts
|
|
62
|
+
1. [Attempt 1] - Why it didn't work
|
|
63
|
+
2. [Attempt 2] - Why it didn't work
|
|
64
|
+
3. [Attempt 3] - Why it didn't work
|
|
65
|
+
|
|
66
|
+
(Learning comes from what DIDN'T work!)
|
|
67
|
+
|
|
68
|
+
#### Final Fix
|
|
69
|
+
```[language]
|
|
70
|
+
// The fix that worked
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### Impact (Be Specific!)
|
|
74
|
+
| Metric | Value |
|
|
75
|
+
|--------|-------|
|
|
76
|
+
| Downtime | X hours |
|
|
77
|
+
| Users affected | Y users |
|
|
78
|
+
| Revenue impact | $X estimated |
|
|
79
|
+
| Support tickets | Z tickets |
|
|
80
|
+
| Data loss | Yes/No |
|
|
81
|
+
|
|
82
|
+
#### Cost Breakdown
|
|
83
|
+
```
|
|
84
|
+
Revenue lost: $X
|
|
85
|
+
Engineering time: $Y (Z hours × $rate)
|
|
86
|
+
Support costs: $W
|
|
87
|
+
Total impact: $TOTAL
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Why Monitoring Didn't Catch It
|
|
91
|
+
[Explain gap - this prevents future incidents!]
|
|
92
|
+
|
|
93
|
+
#### Preventive Measures
|
|
94
|
+
- [ ] [Action 1 to prevent recurrence]
|
|
95
|
+
- [ ] [Action 2 to prevent recurrence]
|
|
96
|
+
- [ ] [New monitoring/alerting]
|
|
97
|
+
|
|
98
|
+
#### Lessons Learned
|
|
99
|
+
⚠️ **Key Takeaways:**
|
|
100
|
+
1. [Lesson 1]
|
|
101
|
+
2. [Lesson 2]
|
|
102
|
+
3. [Systemic cause, not individual blame]
|
|
103
|
+
|
|
104
|
+
#### Related Files
|
|
105
|
+
- [File 1 that was modified]
|
|
106
|
+
- [File 2 that was modified]
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 💡 PRO TIPS
|
|
111
|
+
|
|
112
|
+
1. **Write immediately** - Emotional context fades fast
|
|
113
|
+
2. **Include failed attempts** - Learning = what didn't work
|
|
114
|
+
3. **Use real language** - "We screwed up" not "encountered issue"
|
|
115
|
+
4. **Show numbers** - $cost, time, impact metrics
|
|
116
|
+
5. **Add code snippets** - Error logs, broken → fixed
|
|
117
|
+
6. **Make searchable** - Use #tags for future lookup
|
|
118
|
+
7. **Blame the system** - Focus on process failures
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## OUTPUT
|
|
123
|
+
Structured markdown, thorough but concise.
|
|
124
|
+
Blame the system, not individuals.
|
|
125
|
+
Include code snippets where relevant.
|
|
126
|
+
Make it searchable with tags.
|
|
127
|
+
|
|
128
|
+
> **Key Takeaway:** Transform expensive failures into permanent institutional knowledge. Learn once, don't fail repeatedly.
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
# ---
|
|
132
|
+
# USAGE:
|
|
133
|
+
# /journal What I accomplished today on the auth feature
|
|
134
|
+
# /journal Found race condition in payment 2hrs before release
|
|
135
|
+
# /journal Production DB outage for 6 hours
|
|
136
|
+
# /journal Weekly status update for team
|
|
137
|
+
# ---
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
description = "Interactive project setup wizard - create context files for new projects"
|
|
2
|
+
|
|
3
|
+
prompt = """
|
|
4
|
+
# 🚀 Kit Setup Wizard
|
|
5
|
+
|
|
6
|
+
Hello! This is the wizard to setup project context for Gemini-Kit.
|
|
7
|
+
|
|
8
|
+
## I will help you create 3 context files:
|
|
9
|
+
|
|
10
|
+
1. **product.md** - Product description, users, goals
|
|
11
|
+
2. **tech-stack.md** - Language, framework, database
|
|
12
|
+
3. **guidelines.md** - Code style, commit conventions
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Step 1: Product Context
|
|
17
|
+
|
|
18
|
+
Please tell me about your project:
|
|
19
|
+
|
|
20
|
+
**Questions:**
|
|
21
|
+
1. What are you building? (One-line description)
|
|
22
|
+
2. Who are the primary users? (Developers, End users, Enterprises, etc.)
|
|
23
|
+
3. What is the main goal of the product?
|
|
24
|
+
4. What are the main features?
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
When you finish answering, I will:
|
|
29
|
+
1. Create file `.gemini-kit/product.md`
|
|
30
|
+
2. Continue asking about Tech Stack
|
|
31
|
+
3. Continue asking about Guidelines
|
|
32
|
+
4. Complete setup!
|
|
33
|
+
|
|
34
|
+
**You can answer freely or following the format:**
|
|
35
|
+
```
|
|
36
|
+
Product: [description]
|
|
37
|
+
Users: [who uses it]
|
|
38
|
+
Goals: [goals]
|
|
39
|
+
Features: [main features]
|
|
40
|
+
```
|
|
41
|
+
"""
|