@kurokeita/add-skill 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +56 -20
  2. package/dist/agents/backend-specialist.md +277 -0
  3. package/dist/agents/code-archaeologist.md +114 -0
  4. package/dist/agents/database-architect.md +238 -0
  5. package/dist/agents/debugger.md +231 -0
  6. package/dist/agents/devops-engineer.md +242 -0
  7. package/dist/agents/documentation-writer.md +104 -0
  8. package/dist/agents/explorer-agent.md +79 -0
  9. package/dist/agents/frontend-specialist.md +594 -0
  10. package/dist/agents/game-developer.md +162 -0
  11. package/dist/agents/mobile-developer.md +383 -0
  12. package/dist/agents/orchestrator.md +435 -0
  13. package/dist/agents/penetration-tester.md +188 -0
  14. package/dist/agents/performance-optimizer.md +191 -0
  15. package/dist/agents/product-manager.md +122 -0
  16. package/dist/agents/product-owner.md +106 -0
  17. package/dist/agents/project-planner.md +408 -0
  18. package/dist/agents/qa-automation-engineer.md +109 -0
  19. package/dist/agents/security-auditor.md +171 -0
  20. package/dist/agents/test-engineer.md +158 -0
  21. package/dist/bin/cli.js +29 -0
  22. package/dist/src/commands/add.js +115 -77
  23. package/dist/src/commands/import.js +73 -23
  24. package/dist/src/commands/list.js +84 -23
  25. package/dist/src/commands/remove.js +118 -0
  26. package/dist/src/utils/github.js +22 -11
  27. package/dist/src/utils/paths.js +45 -0
  28. package/dist/workflows/brainstorm.md +113 -0
  29. package/dist/workflows/create.md +60 -0
  30. package/dist/workflows/debug.md +107 -0
  31. package/dist/workflows/deploy.md +178 -0
  32. package/dist/workflows/enhance.md +64 -0
  33. package/dist/workflows/orchestrate.md +246 -0
  34. package/dist/workflows/plan.md +90 -0
  35. package/dist/workflows/preview.md +83 -0
  36. package/dist/workflows/status.md +87 -0
  37. package/dist/workflows/test.md +144 -0
  38. package/dist/workflows/ui-ux-pro-max.md +315 -0
  39. package/package.json +4 -4
  40. package/dist/bin/skills.js +0 -17
@@ -0,0 +1,178 @@
1
+ ---
2
+ description: Deployment command for production releases. Pre-flight checks and deployment execution.
3
+ ---
4
+
5
+ # /deploy - Production Deployment
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Purpose
12
+
13
+ This command handles production deployment with pre-flight checks, deployment execution, and verification.
14
+
15
+ ---
16
+
17
+ ## Sub-commands
18
+
19
+ ```
20
+ /deploy - Interactive deployment wizard
21
+ /deploy check - Run pre-deployment checks only
22
+ /deploy preview - Deploy to preview/staging
23
+ /deploy production - Deploy to production
24
+ /deploy rollback - Rollback to previous version
25
+ ```
26
+
27
+ ---
28
+
29
+ ## Pre-Deployment Checklist
30
+
31
+ Before any deployment:
32
+
33
+ ```markdown
34
+ ## 🚀 Pre-Deploy Checklist
35
+
36
+ ### Code Quality
37
+ - [ ] No TypeScript errors (`npx tsc --noEmit`)
38
+ - [ ] ESLint passing (`npx eslint .`)
39
+ - [ ] All tests passing (`npm test`)
40
+
41
+ ### Security
42
+ - [ ] No hardcoded secrets
43
+ - [ ] Environment variables documented
44
+ - [ ] Dependencies audited (`npm audit`)
45
+
46
+ ### Performance
47
+ - [ ] Bundle size acceptable
48
+ - [ ] No console.log statements
49
+ - [ ] Images optimized
50
+
51
+ ### Documentation
52
+ - [ ] README updated
53
+ - [ ] CHANGELOG updated
54
+ - [ ] API docs current
55
+
56
+ ### Ready to deploy? (y/n)
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Deployment Flow
62
+
63
+ ```
64
+ ┌─────────────────┐
65
+ │ /deploy │
66
+ └────────┬────────┘
67
+ │
68
+ ▼
69
+ ┌─────────────────┐
70
+ │ Pre-flight │
71
+ │ checks │
72
+ └────────┬────────┘
73
+ │
74
+ Pass? ──No──► Fix issues
75
+ │
76
+ Yes
77
+ │
78
+ ▼
79
+ ┌─────────────────┐
80
+ │ Build │
81
+ │ application │
82
+ └────────┬────────┘
83
+ │
84
+ ▼
85
+ ┌─────────────────┐
86
+ │ Deploy to │
87
+ │ platform │
88
+ └────────┬────────┘
89
+ │
90
+ ▼
91
+ ┌─────────────────┐
92
+ │ Health check │
93
+ │ & verify │
94
+ └────────┬────────┘
95
+ │
96
+ ▼
97
+ ┌─────────────────┐
98
+ │ ✅ Complete │
99
+ └─────────────────┘
100
+ ```
101
+
102
+ ---
103
+
104
+ ## Output Format
105
+
106
+ ### Successful Deploy
107
+
108
+ ```markdown
109
+ ## 🚀 Deployment Complete
110
+
111
+ ### Summary
112
+ - **Version:** v1.2.3
113
+ - **Environment:** production
114
+ - **Duration:** 47 seconds
115
+ - **Platform:** Vercel
116
+
117
+ ### URLs
118
+ - 🌐 Production: https://app.example.com
119
+ - 📊 Dashboard: https://vercel.com/project
120
+
121
+ ### What Changed
122
+ - Added user profile feature
123
+ - Fixed login bug
124
+ - Updated dependencies
125
+
126
+ ### Health Check
127
+ ✅ API responding (200 OK)
128
+ ✅ Database connected
129
+ ✅ All services healthy
130
+ ```
131
+
132
+ ### Failed Deploy
133
+
134
+ ```markdown
135
+ ## ❌ Deployment Failed
136
+
137
+ ### Error
138
+ Build failed at step: TypeScript compilation
139
+
140
+ ### Details
141
+ ```
142
+
143
+ error TS2345: Argument of type 'string' is not assignable...
144
+
145
+ ```
146
+
147
+ ### Resolution
148
+ 1. Fix TypeScript error in `src/services/user.ts:45`
149
+ 2. Run `npm run build` locally to verify
150
+ 3. Try `/deploy` again
151
+
152
+ ### Rollback Available
153
+ Previous version (v1.2.2) is still active.
154
+ Run `/deploy rollback` if needed.
155
+ ```
156
+
157
+ ---
158
+
159
+ ## Platform Support
160
+
161
+ | Platform | Command | Notes |
162
+ |----------|---------|-------|
163
+ | Vercel | `vercel --prod` | Auto-detected for Next.js |
164
+ | Railway | `railway up` | Needs Railway CLI |
165
+ | Fly.io | `fly deploy` | Needs flyctl |
166
+ | Docker | `docker compose up -d` | For self-hosted |
167
+
168
+ ---
169
+
170
+ ## Examples
171
+
172
+ ```
173
+ /deploy
174
+ /deploy check
175
+ /deploy preview
176
+ /deploy production --skip-tests
177
+ /deploy rollback
178
+ ```
@@ -0,0 +1,64 @@
1
+ ---
2
+ description: Add or update features in existing application. Used for iterative development.
3
+ ---
4
+
5
+ # /enhance - Update Application
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ This command adds features or makes updates to existing application.
14
+
15
+ ### Steps
16
+
17
+ 1. **Understand Current State**
18
+ - Load project state with `python .agent/scripts/session_manager.py info`
19
+ - Understand existing features, tech stack
20
+
21
+ 2. **Plan Changes**
22
+ - Determine what will be added/changed
23
+ - Detect affected files
24
+ - Check dependencies
25
+
26
+ 3. **Present Plan to User** (for major changes)
27
+
28
+ ```
29
+ "To add admin panel:
30
+ - I'll create 15 new files
31
+ - Update 8 files
32
+ - Takes ~10 minutes
33
+
34
+ Should I start?"
35
+ ```
36
+
37
+ 4. **Apply**
38
+ - Call relevant agents
39
+ - Make changes
40
+ - Test
41
+
42
+ 5. **Update Preview**
43
+ - Hot reload or restart
44
+
45
+ ---
46
+
47
+ ## Usage Examples
48
+
49
+ ```
50
+ /enhance add dark mode
51
+ /enhance build admin panel
52
+ /enhance integrate payment system
53
+ /enhance add search feature
54
+ /enhance edit profile page
55
+ /enhance make responsive
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Caution
61
+
62
+ - Get approval for major changes
63
+ - Warn on conflicting requests (e.g., "use Firebase" when project uses PostgreSQL)
64
+ - Commit each change with git
@@ -0,0 +1,246 @@
1
+ ---
2
+ description: Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise.
3
+ ---
4
+
5
+ # Multi-Agent Orchestration
6
+
7
+ You are now in **ORCHESTRATION MODE**. Your task: coordinate specialized agents to solve this complex problem.
8
+
9
+ ## Task to Orchestrate
10
+
11
+ $ARGUMENTS
12
+
13
+ ---
14
+
15
+ ## 🔴 CRITICAL: Minimum Agent Requirement
16
+
17
+ > ⚠️ **ORCHESTRATION = MINIMUM 3 DIFFERENT AGENTS**
18
+ >
19
+ > If you use fewer than 3 agents, you are NOT orchestrating - you're just delegating.
20
+ >
21
+ > **Validation before completion:**
22
+ >
23
+ > - Count invoked agents
24
+ > - If `agent_count < 3` → STOP and invoke more agents
25
+ > - Single agent = FAILURE of orchestration
26
+
27
+ ### Agent Selection Matrix
28
+
29
+ | Task Type | REQUIRED Agents (minimum) |
30
+ |-----------|---------------------------|
31
+ | **Web App** | frontend-specialist, backend-specialist, test-engineer |
32
+ | **API** | backend-specialist, security-auditor, test-engineer |
33
+ | **UI/Design** | frontend-specialist, seo-specialist, performance-optimizer |
34
+ | **Database** | database-architect, backend-specialist, security-auditor |
35
+ | **Full Stack** | project-planner, frontend-specialist, backend-specialist, devops-engineer |
36
+ | **Debug** | debugger, explorer-agent, test-engineer |
37
+ | **Security** | security-auditor, penetration-tester, devops-engineer |
38
+
39
+ ---
40
+
41
+ ## Pre-Flight: Mode Check
42
+
43
+ | Current Mode | Task Type | Action |
44
+ |--------------|-----------|--------|
45
+ | **plan** | Any | ✅ Proceed with planning-first approach |
46
+ | **edit** | Simple execution | ✅ Proceed directly |
47
+ | **edit** | Complex/multi-file | ⚠️ Ask: "This task requires planning. Switch to plan mode?" |
48
+ | **ask** | Any | ⚠️ Ask: "Ready to orchestrate. Switch to edit or plan mode?" |
49
+
50
+ ---
51
+
52
+ ## 🔴 STRICT 2-PHASE ORCHESTRATION
53
+
54
+ ### PHASE 1: PLANNING (Sequential - NO parallel agents)
55
+
56
+ | Step | Agent | Action |
57
+ |------|-------|--------|
58
+ | 1 | `project-planner` | Create docs/PLAN.md |
59
+ | 2 | (optional) `explorer-agent` | Codebase discovery if needed |
60
+
61
+ > 🔴 **NO OTHER AGENTS during planning!** Only project-planner and explorer-agent.
62
+
63
+ ### ⏸️ CHECKPOINT: User Approval
64
+
65
+ ```
66
+ After PLAN.md is complete, ASK:
67
+
68
+ "✅ Plan oluşturuldu: docs/PLAN.md
69
+
70
+ Onaylıyor musunuz? (Y/N)
71
+ - Y: Implementation başlatılır
72
+ - N: Planı düzeltirim"
73
+ ```
74
+
75
+ > 🔴 **DO NOT proceed to Phase 2 without explicit user approval!**
76
+
77
+ ### PHASE 2: IMPLEMENTATION (Parallel agents after approval)
78
+
79
+ | Parallel Group | Agents |
80
+ |----------------|--------|
81
+ | Foundation | `database-architect`, `security-auditor` |
82
+ | Core | `backend-specialist`, `frontend-specialist` |
83
+ | Polish | `test-engineer`, `devops-engineer` |
84
+
85
+ > ✅ After user approval, invoke multiple agents in PARALLEL.
86
+
87
+ ## Available Agents (17 total)
88
+
89
+ | Agent | Domain | Use When |
90
+ |-------|--------|----------|
91
+ | `project-planner` | Planning | Task breakdown, PLAN.md |
92
+ | `explorer-agent` | Discovery | Codebase mapping |
93
+ | `frontend-specialist` | UI/UX | React, Vue, CSS, HTML |
94
+ | `backend-specialist` | Server | API, Node.js, Python |
95
+ | `database-architect` | Data | SQL, NoSQL, Schema |
96
+ | `security-auditor` | Security | Vulnerabilities, Auth |
97
+ | `penetration-tester` | Security | Active testing |
98
+ | `test-engineer` | Testing | Unit, E2E, Coverage |
99
+ | `devops-engineer` | Ops | CI/CD, Docker, Deploy |
100
+ | `mobile-developer` | Mobile | React Native, Flutter |
101
+ | `performance-optimizer` | Speed | Lighthouse, Profiling |
102
+ | `seo-specialist` | SEO | Meta, Schema, Rankings |
103
+ | `documentation-writer` | Docs | README, API docs |
104
+ | `debugger` | Debug | Error analysis |
105
+ | `game-developer` | Games | Unity, Godot |
106
+ | `orchestrator` | Meta | Coordination |
107
+
108
+ ---
109
+
110
+ ## Orchestration Protocol
111
+
112
+ ### Step 1: Analyze Task Domains
113
+
114
+ Identify ALL domains this task touches:
115
+
116
+ ```
117
+ □ Security → security-auditor, penetration-tester
118
+ □ Backend/API → backend-specialist
119
+ □ Frontend/UI → frontend-specialist
120
+ □ Database → database-architect
121
+ □ Testing → test-engineer
122
+ □ DevOps → devops-engineer
123
+ □ Mobile → mobile-developer
124
+ □ Performance → performance-optimizer
125
+ □ SEO → seo-specialist
126
+ □ Planning → project-planner
127
+ ```
128
+
129
+ ### Step 2: Phase Detection
130
+
131
+ | If Plan Exists | Action |
132
+ |----------------|--------|
133
+ | NO `docs/PLAN.md` | → Go to PHASE 1 (planning only) |
134
+ | YES `docs/PLAN.md` + user approved | → Go to PHASE 2 (implementation) |
135
+
136
+ ### Step 3: Execute Based on Phase
137
+
138
+ **PHASE 1 (Planning):**
139
+
140
+ ```
141
+ Use the project-planner agent to create PLAN.md
142
+ → STOP after plan is created
143
+ → ASK user for approval
144
+ ```
145
+
146
+ **PHASE 2 (Implementation - after approval):**
147
+
148
+ ```
149
+ Invoke agents in PARALLEL:
150
+ Use the frontend-specialist agent to [task]
151
+ Use the backend-specialist agent to [task]
152
+ Use the test-engineer agent to [task]
153
+ ```
154
+
155
+ **🔴 CRITICAL: Context Passing (MANDATORY)**
156
+
157
+ When invoking ANY subagent, you MUST include:
158
+
159
+ 1. **Original User Request:** Full text of what user asked
160
+ 2. **Decisions Made:** All user answers to Socratic questions
161
+ 3. **Previous Agent Work:** Summary of what previous agents did
162
+ 4. **Current Plan State:** If plan files exist in workspace, include them
163
+
164
+ **Example with FULL context:**
165
+
166
+ ```
167
+ Use the project-planner agent to create PLAN.md:
168
+
169
+ **CONTEXT:**
170
+ - User Request: "Öğrenciler için sosyal platform, mock data ile"
171
+ - Decisions: Tech=Vue 3, Layout=Grid Widget, Auth=Mock, Design=Genç Dinamik
172
+ - Previous Work: Orchestrator asked 6 questions, user chose all options
173
+ - Current Plan: playful-roaming-dream.md exists in workspace with initial structure
174
+
175
+ **TASK:** Create detailed PLAN.md based on ABOVE decisions. Do NOT infer from folder name.
176
+ ```
177
+
178
+ > ⚠️ **VIOLATION:** Invoking subagent without full context = subagent will make wrong assumptions!
179
+
180
+ ### Step 4: Verification (MANDATORY)
181
+
182
+ The LAST agent must run appropriate verification scripts:
183
+
184
+ ```bash
185
+ python .agent/skills/vulnerability-scanner/scripts/security_scan.py .
186
+ python .agent/skills/lint-and-validate/scripts/lint_runner.py .
187
+ ```
188
+
189
+ ### Step 5: Synthesize Results
190
+
191
+ Combine all agent outputs into unified report.
192
+
193
+ ---
194
+
195
+ ## Output Format
196
+
197
+ ```markdown
198
+ ## 🎼 Orchestration Report
199
+
200
+ ### Task
201
+ [Original task summary]
202
+
203
+ ### Mode
204
+ [Current Antigravity Agent mode: plan/edit/ask]
205
+
206
+ ### Agents Invoked (MINIMUM 3)
207
+ | # | Agent | Focus Area | Status |
208
+ |---|-------|------------|--------|
209
+ | 1 | project-planner | Task breakdown | ✅ |
210
+ | 2 | frontend-specialist | UI implementation | ✅ |
211
+ | 3 | test-engineer | Verification scripts | ✅ |
212
+
213
+ ### Verification Scripts Executed
214
+ - [x] security_scan.py → Pass/Fail
215
+ - [x] lint_runner.py → Pass/Fail
216
+
217
+ ### Key Findings
218
+ 1. **[Agent 1]**: Finding
219
+ 2. **[Agent 2]**: Finding
220
+ 3. **[Agent 3]**: Finding
221
+
222
+ ### Deliverables
223
+ - [ ] PLAN.md created
224
+ - [ ] Code implemented
225
+ - [ ] Tests passing
226
+ - [ ] Scripts verified
227
+
228
+ ### Summary
229
+ [One paragraph synthesis of all agent work]
230
+ ```
231
+
232
+ ---
233
+
234
+ ## 🔴 EXIT GATE
235
+
236
+ Before completing orchestration, verify:
237
+
238
+ 1. ✅ **Agent Count:** `invoked_agents >= 3`
239
+ 2. ✅ **Scripts Executed:** At least `security_scan.py` ran
240
+ 3. ✅ **Report Generated:** Orchestration Report with all agents listed
241
+
242
+ > **If any check fails → DO NOT mark orchestration complete. Invoke more agents or run scripts.**
243
+
244
+ ---
245
+
246
+ **Begin orchestration now. Select 3+ agents, execute sequentially, run verification scripts, synthesize results.**
@@ -0,0 +1,90 @@
1
+ ---
2
+ description: Create project plan using project-planner agent. No code writing - only plan file generation.
3
+ ---
4
+
5
+ # /plan - Project Planning Mode
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## 🔴 CRITICAL RULES
12
+
13
+ 1. **NO CODE WRITING** - This command creates plan file only
14
+ 2. **Use project-planner agent** - NOT Antigravity Agent's native Plan mode
15
+ 3. **Socratic Gate** - Ask clarifying questions before planning
16
+ 4. **Dynamic Naming** - Plan file named based on task
17
+
18
+ ---
19
+
20
+ ## Task
21
+
22
+ Use the `project-planner` agent with this context:
23
+
24
+ ```
25
+ CONTEXT:
26
+ - User Request: $ARGUMENTS
27
+ - Mode: PLANNING ONLY (no code)
28
+ - Output: docs/PLAN-{task-slug}.md (dynamic naming)
29
+
30
+ NAMING RULES:
31
+ 1. Extract 2-3 key words from request
32
+ 2. Lowercase, hyphen-separated
33
+ 3. Max 30 characters
34
+ 4. Example: "e-commerce cart" → PLAN-ecommerce-cart.md
35
+
36
+ RULES:
37
+ 1. Follow project-planner.md Phase -1 (Context Check)
38
+ 2. Follow project-planner.md Phase 0 (Socratic Gate)
39
+ 3. Create PLAN-{slug}.md with task breakdown
40
+ 4. DO NOT write any code files
41
+ 5. REPORT the exact file name created
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Expected Output
47
+
48
+ | Deliverable | Location |
49
+ |-------------|----------|
50
+ | Project Plan | `docs/PLAN-{task-slug}.md` |
51
+ | Task Breakdown | Inside plan file |
52
+ | Agent Assignments | Inside plan file |
53
+ | Verification Checklist | Phase X in plan file |
54
+
55
+ ---
56
+
57
+ ## After Planning
58
+
59
+ Tell user:
60
+
61
+ ```
62
+ [OK] Plan created: docs/PLAN-{slug}.md
63
+
64
+ Next steps:
65
+ - Review the plan
66
+ - Run `/create` to start implementation
67
+ - Or modify plan manually
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Naming Examples
73
+
74
+ | Request | Plan File |
75
+ |---------|-----------|
76
+ | `/plan e-commerce site with cart` | `docs/PLAN-ecommerce-cart.md` |
77
+ | `/plan mobile app for fitness` | `docs/PLAN-fitness-app.md` |
78
+ | `/plan add dark mode feature` | `docs/PLAN-dark-mode.md` |
79
+ | `/plan fix authentication bug` | `docs/PLAN-auth-fix.md` |
80
+ | `/plan SaaS dashboard` | `docs/PLAN-saas-dashboard.md` |
81
+
82
+ ---
83
+
84
+ ## Usage
85
+
86
+ ```
87
+ /plan e-commerce site with cart
88
+ /plan mobile app for fitness tracking
89
+ /plan SaaS dashboard with analytics
90
+ ```
@@ -0,0 +1,83 @@
1
+ ---
2
+ description: Preview server start, stop, and status check. Local development server management.
3
+ ---
4
+
5
+ # /preview - Preview Management
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ Manage preview server: start, stop, status check.
14
+
15
+ ### Commands
16
+
17
+ ```
18
+ /preview - Show current status
19
+ /preview start - Start server
20
+ /preview stop - Stop server
21
+ /preview restart - Restart
22
+ /preview check - Health check
23
+ ```
24
+
25
+ ---
26
+
27
+ ## Usage Examples
28
+
29
+ ### Start Server
30
+
31
+ ```
32
+ /preview start
33
+
34
+ Response:
35
+ 🚀 Starting preview...
36
+ Port: 3000
37
+ Type: Next.js
38
+
39
+ ✅ Preview ready!
40
+ URL: http://localhost:3000
41
+ ```
42
+
43
+ ### Status Check
44
+
45
+ ```
46
+ /preview
47
+
48
+ Response:
49
+ === Preview Status ===
50
+
51
+ 🌐 URL: http://localhost:3000
52
+ 📁 Project: C:/projects/my-app
53
+ 🏷️ Type: nextjs
54
+ 💚 Health: OK
55
+ ```
56
+
57
+ ### Port Conflict
58
+
59
+ ```
60
+ /preview start
61
+
62
+ Response:
63
+ ⚠️ Port 3000 is in use.
64
+
65
+ Options:
66
+ 1. Start on port 3001
67
+ 2. Close app on 3000
68
+ 3. Specify different port
69
+
70
+ Which one? (default: 1)
71
+ ```
72
+
73
+ ---
74
+
75
+ ## Technical
76
+
77
+ Auto preview uses `auto_preview.py` script:
78
+
79
+ ```bash
80
+ python .agent/scripts/auto_preview.py start [port]
81
+ python .agent/scripts/auto_preview.py stop
82
+ python .agent/scripts/auto_preview.py status
83
+ ```