@neyugn/agent-kits 0.4.0 β 0.5.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/dist/cli.js +34 -2
- package/kits/coder/rules/AGENTS.md +11 -287
- package/kits/coder/rules/CLAUDE.md +10 -290
- package/kits/coder/rules/CURSOR.md +11 -293
- package/kits/coder/rules/GEMINI.md +10 -290
- package/kits/coder/rules/OPENCODE.md +11 -333
- package/kits/coder/rules/sections/classifier.md +9 -0
- package/kits/coder/rules/sections/code.md +20 -0
- package/kits/coder/rules/sections/design.md +3 -0
- package/kits/coder/rules/sections/footer.md +1 -0
- package/kits/coder/rules/sections/routing.md +20 -0
- package/kits/coder/rules/sections/scripts.md +11 -0
- package/kits/coder/rules/sections/skill.md +11 -0
- package/kits/coder/rules/sections/skill.opencode.md +23 -0
- package/kits/coder/rules/sections/universal.md +9 -0
- package/kits/coder/rules/sections/workflows.cursor.md +5 -0
- package/kits/coder/rules/sections/workflows.md +3 -0
- package/package.json +1 -1
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
# CLAUDE.md - AGT-Kit
|
|
2
2
|
|
|
3
|
-
> AI Agent Capability Expansion Toolkit -
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## π― Kit Purpose
|
|
8
|
-
|
|
9
|
-
AGT-Kit is a portable, modular AI agent system consisting of:
|
|
10
|
-
|
|
11
|
-
- **22 Specialist Agents** - Role-based AI personas
|
|
12
|
-
- **40 Skills** - Domain-specific knowledge modules
|
|
13
|
-
- **7 Workflows** - Slash command procedures
|
|
3
|
+
> AI Agent Capability Expansion Toolkit - 22 agents Β· 40 skills Β· 7 workflows.
|
|
14
4
|
|
|
15
5
|
---
|
|
16
6
|
|
|
@@ -18,308 +8,38 @@ AGT-Kit is a portable, modular AI agent system consisting of:
|
|
|
18
8
|
|
|
19
9
|
> **MANDATORY:** Read agent file + skills BEFORE any implementation.
|
|
20
10
|
|
|
21
|
-
### Modular Skill Loading
|
|
22
|
-
|
|
23
11
|
Agent activated β Check frontmatter `skills:` β Read SKILL.md β Apply.
|
|
24
12
|
|
|
25
|
-
|
|
26
|
-
- **Enforcement:** Never skip reading. "Read β Understand β Apply" mandatory.
|
|
13
|
+
**Priority:** P0 (CLAUDE.md) > P1 (Agent.md) > P2 (SKILL.md). All binding.
|
|
27
14
|
|
|
28
15
|
---
|
|
29
16
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
| Request Type | Trigger Keywords | Active Agents |
|
|
33
|
-
| ------------ | ------------------------ | -------------------------- |
|
|
34
|
-
| **QUESTION** | "what is", "explain" | - |
|
|
35
|
-
| **PLAN** | "plan", "lαΊp kαΊΏ hoαΊ‘ch" | project-planner |
|
|
36
|
-
| **CREATE** | "create", "build", "tαΊ‘o" | orchestrator β specialists |
|
|
37
|
-
| **DEBUG** | "debug", "fix", "gα»‘ lα»i" | debugger |
|
|
38
|
-
| **TEST** | "test", "kiα»m tra" | test-engineer |
|
|
39
|
-
| **DEPLOY** | "deploy", "release" | devops-engineer |
|
|
40
|
-
| **COMPLEX** | Multi-domain task | orchestrator (3+ agents) |
|
|
17
|
+
[INCLUDE:routing.md]
|
|
41
18
|
|
|
42
19
|
---
|
|
43
20
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
**Always analyze and select best agent(s) before responding.**
|
|
47
|
-
|
|
48
|
-
### Protocol
|
|
49
|
-
|
|
50
|
-
1. **Analyze**: Detect domains (Frontend, Backend, Security, etc.)
|
|
51
|
-
2. **Select**: Choose appropriate specialist(s)
|
|
52
|
-
3. **π΄ Announce**: Your **VERY FIRST line** of response MUST be: `β‘ **@[agent-name] activated!**`
|
|
53
|
-
4. **Apply**: Use agent's persona and rules
|
|
54
|
-
|
|
55
|
-
> π΄ **MANDATORY ANNOUNCEMENT RULE:**
|
|
56
|
-
> - You MUST output the announcement as the **first line** of every response before ANY other text.
|
|
57
|
-
> - Format: `β‘ **@agent-name activated!**` (replace `agent-name` with actual agent slug)
|
|
58
|
-
> - For multi-agent tasks: announce each agent on separate lines
|
|
59
|
-
> - This is NON-NEGOTIABLE. The user RELIES on this to verify correct agent routing.
|
|
60
|
-
>
|
|
61
|
-
> **Example β Single agent:**
|
|
62
|
-
> ```
|
|
63
|
-
> β‘ **@backend-specialist activated!**
|
|
64
|
-
>
|
|
65
|
-
> Let me analyze your API endpoint...
|
|
66
|
-
> ```
|
|
67
|
-
>
|
|
68
|
-
> **Example β Multiple agents:**
|
|
69
|
-
> ```
|
|
70
|
-
> β‘ **@orchestrator activated!**
|
|
71
|
-
> β‘ **@frontend-specialist activated!**
|
|
72
|
-
> β‘ **@backend-specialist activated!**
|
|
73
|
-
>
|
|
74
|
-
> I'll coordinate the full-stack implementation...
|
|
75
|
-
> ```
|
|
76
|
-
|
|
77
|
-
### Tier 1: Master Agents
|
|
78
|
-
|
|
79
|
-
| Agent | Use When |
|
|
80
|
-
| ----------------- | ---------------------------------------------- |
|
|
81
|
-
| `orchestrator` | Complex tasks requiring multiple specialists |
|
|
82
|
-
| `project-planner` | Planning projects, creating task breakdowns |
|
|
83
|
-
| `debugger` | Investigating bugs, systematic problem solving |
|
|
84
|
-
|
|
85
|
-
### Tier 2: Development Specialists
|
|
86
|
-
|
|
87
|
-
| Agent | Use When |
|
|
88
|
-
| --------------------- | ----------------------------------- |
|
|
89
|
-
| `frontend-specialist` | React, Next.js, Vue, UI/UX work |
|
|
90
|
-
| `backend-specialist` | APIs, Node.js, Python, server logic |
|
|
91
|
-
| `mobile-developer` | React Native, Flutter, mobile apps |
|
|
92
|
-
| `database-specialist` | Schema design, queries, migrations |
|
|
93
|
-
| `devops-engineer` | CI/CD, deployment, infrastructure |
|
|
94
|
-
|
|
95
|
-
### Tier 3: Quality & Security
|
|
96
|
-
|
|
97
|
-
| Agent | Use When |
|
|
98
|
-
| --------------------- | ---------------------------------------- |
|
|
99
|
-
| `security-auditor` | Security reviews, vulnerability scanning |
|
|
100
|
-
| `code-reviewer` | PR reviews, code quality checks |
|
|
101
|
-
| `test-engineer` | Writing tests, TDD, test coverage |
|
|
102
|
-
| `performance-analyst` | Performance optimization, profiling |
|
|
103
|
-
|
|
104
|
-
### Tier 4: Domain Specialists
|
|
105
|
-
|
|
106
|
-
| Agent | Use When |
|
|
107
|
-
| ------------------------ | ------------------------------------------ |
|
|
108
|
-
| `realtime-specialist` | WebSocket, Socket.IO, event-driven |
|
|
109
|
-
| `multi-tenant-architect` | SaaS, tenant isolation, data partitioning |
|
|
110
|
-
| `queue-specialist` | Message queues, background jobs |
|
|
111
|
-
| `integration-specialist` | External APIs, webhooks, third-party |
|
|
112
|
-
| `ai-engineer` | LLM, RAG, AI/ML systems, prompt eng |
|
|
113
|
-
| `cloud-architect` | AWS, Azure, GCP, Terraform, multi-cloud |
|
|
114
|
-
| `data-engineer` | ETL, data pipelines, analytics, warehouses |
|
|
115
|
-
|
|
116
|
-
### Tier 5: Support Agents
|
|
117
|
-
|
|
118
|
-
| Agent | Use When |
|
|
119
|
-
| ---------------------- | ------------------------------------- |
|
|
120
|
-
| `documentation-writer` | Technical docs, API documentation |
|
|
121
|
-
| `i18n-specialist` | Internationalization, translations |
|
|
122
|
-
| `ux-researcher` | UX research, usability, accessibility |
|
|
123
|
-
|
|
124
|
-
### Routing Checklist
|
|
125
|
-
|
|
126
|
-
| Step | Check | If Unchecked |
|
|
127
|
-
| ---- | ------------------------------- | --------------------------------- |
|
|
128
|
-
| 1 | Correct agent identified? | β Analyze domain |
|
|
129
|
-
| 2 | Read agent's .md file? | β Open `.agent/agents/{agent}.md` |
|
|
130
|
-
| 3 | Announced @agent as FIRST LINE? | β π΄ Add announcement IMMEDIATELY |
|
|
131
|
-
| 4 | Loaded skills from frontmatter? | β Check `skills:` field |
|
|
132
|
-
|
|
133
|
-
β Code without agent = PROTOCOL VIOLATION
|
|
134
|
-
β Skip announcement = USER CANNOT VERIFY
|
|
135
|
-
β Announcement NOT as first line = PROTOCOL VIOLATION
|
|
21
|
+
[INCLUDE:workflows.md]
|
|
136
22
|
|
|
137
23
|
---
|
|
138
24
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
| Command | Description | Agent |
|
|
142
|
-
| -------------- | ------------------------------------ | --------------- |
|
|
143
|
-
| `/plan` | Create project plan, NO CODE | project-planner |
|
|
144
|
-
| `/create` | Build new application | orchestrator |
|
|
145
|
-
| `/debug` | Systematic debugging | debugger |
|
|
146
|
-
| `/test` | Generate and run tests | test-engineer |
|
|
147
|
-
| `/deploy` | Production deployment | devops-engineer |
|
|
148
|
-
| `/orchestrate` | Multi-agent coordination (3+ agents) | orchestrator |
|
|
25
|
+
[INCLUDE:skill.md]
|
|
149
26
|
|
|
150
27
|
---
|
|
151
28
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
User Request β Check Profile β Skill Description Match β Load SKILL.md β Apply
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Profile-Aware Loading
|
|
159
|
-
|
|
160
|
-
> **CRITICAL:** Before loading any skill or selecting any agent, check `.agent/profile.json`
|
|
161
|
-
|
|
162
|
-
```
|
|
163
|
-
1. Check if `.agent/profile.json` exists
|
|
164
|
-
2. If EXISTS:
|
|
165
|
-
- Read skills.enabled[] β Only load these skills
|
|
166
|
-
- Read skills.disabled[] β Skip these skills
|
|
167
|
-
- Read agents.disabled[] β Skip these agents
|
|
168
|
-
- Respect userOverrides.force-enabled/force-disabled
|
|
169
|
-
3. If NOT EXISTS:
|
|
170
|
-
- All skills/agents are ENABLED by default
|
|
171
|
-
- Behave as if no filtering is applied
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### Core Skills (Always Available)
|
|
175
|
-
|
|
176
|
-
These skills are NEVER disabled regardless of profile:
|
|
177
|
-
|
|
178
|
-
- `clean-code` - Pragmatic coding standards (used by ALL agents)
|
|
179
|
-
- `testing-patterns` - Testing pyramid, AAA pattern
|
|
180
|
-
- `security-fundamentals` - OWASP 2025
|
|
181
|
-
- `brainstorming` - Socratic questioning protocol
|
|
182
|
-
- `plan-writing` - Task breakdown and WBS
|
|
183
|
-
- `systematic-debugging` - 4-phase debugging
|
|
184
|
-
|
|
185
|
-
### Domain Skills (40 total)
|
|
186
|
-
|
|
187
|
-
> Full skill list with descriptions: See `ARCHITECTURE.md` β Skills section
|
|
29
|
+
[INCLUDE:universal.md]
|
|
188
30
|
|
|
189
31
|
---
|
|
190
32
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### π Language
|
|
194
|
-
|
|
195
|
-
- Non-English prompt β Respond in user's language
|
|
196
|
-
- Code comments/variables β Always English
|
|
197
|
-
- File names β Always English (kebab-case)
|
|
198
|
-
|
|
199
|
-
### π§Ή Clean Code
|
|
200
|
-
|
|
201
|
-
- Concise, no over-engineering, self-documenting
|
|
202
|
-
- Testing: Pyramid (Unit > Int > E2E) + AAA
|
|
203
|
-
- Performance: Measure first, Core Web Vitals
|
|
204
|
-
|
|
205
|
-
### πΊοΈ System Map
|
|
206
|
-
|
|
207
|
-
> Read `ARCHITECTURE.md` only when you need full agent/skill details.
|
|
208
|
-
|
|
209
|
-
**Paths:** Agents `.agent/agents/`, Skills `.agent/skills/`, Workflows `.agent/workflows/`
|
|
210
|
-
|
|
211
|
-
### π§ Read β Understand β Apply
|
|
212
|
-
|
|
213
|
-
Before coding: 1) What is the GOAL? 2) What PRINCIPLES? 3) How does this DIFFER from generic?
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
## TIER 1: CODE RULES
|
|
218
|
-
|
|
219
|
-
### π± Project Routing
|
|
220
|
-
|
|
221
|
-
| Type | Agent | Skills |
|
|
222
|
-
| ---------------------------------- | ------------------- | ----------------------------- |
|
|
223
|
-
| MOBILE (iOS, Android, RN, Flutter) | mobile-developer | mobile-design |
|
|
224
|
-
| WEB (Next.js, React) | frontend-specialist | frontend-design |
|
|
225
|
-
| BACKEND (API, DB) | backend-specialist | api-patterns, database-design |
|
|
226
|
-
|
|
227
|
-
> π΄ Mobile + frontend-specialist = WRONG.
|
|
228
|
-
|
|
229
|
-
### π Socratic Gate
|
|
230
|
-
|
|
231
|
-
For complex requests, STOP and ASK first:
|
|
232
|
-
|
|
233
|
-
| Request Type | Action |
|
|
234
|
-
| ------------------- | ------------------------------------- |
|
|
235
|
-
| New Feature / Build | Ask 3+ strategic questions |
|
|
236
|
-
| Code Edit / Bug Fix | Confirm understanding first |
|
|
237
|
-
| Vague Request | Ask Purpose, Users, Scope |
|
|
238
|
-
| Full Orchestration | User must confirm plan before Phase 2 |
|
|
239
|
-
|
|
240
|
-
**Never Assume.** If 1% unclear β ASK.
|
|
241
|
-
|
|
242
|
-
### π Mode Mapping
|
|
243
|
-
|
|
244
|
-
| Mode | Agent | Behavior |
|
|
245
|
-
| ---- | --------------- | ------------------------------- |
|
|
246
|
-
| plan | project-planner | 4-phase, NO CODE before Phase 4 |
|
|
247
|
-
| ask | - | Questions only |
|
|
248
|
-
| edit | orchestrator | Check {task-slug}.md first |
|
|
33
|
+
[INCLUDE:code.md]
|
|
249
34
|
|
|
250
35
|
---
|
|
251
36
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
> Rules in specialist agents: Web β `frontend-specialist.md`, Mobile β `mobile-developer.md`
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## π SCRIPTS (Automation)
|
|
259
|
-
|
|
260
|
-
### When to Run Scripts
|
|
261
|
-
|
|
262
|
-
| Trigger | Script | Purpose |
|
|
263
|
-
| ---------------- | -------------------------- | ---------------------------------------- |
|
|
264
|
-
| Before PR/commit | `checklist.py` | Quick validation (Security, Lint, Tests) |
|
|
265
|
-
| Before deploy | `verify_all.py` | Full pre-deployment suite |
|
|
266
|
-
| Kit maintenance | `kit_status.py --validate` | Check kit integrity |
|
|
267
|
-
| Managing skills | `skills_manager.py` | Enable/disable/search skills |
|
|
268
|
-
|
|
269
|
-
### Master Scripts
|
|
270
|
-
|
|
271
|
-
```bash
|
|
272
|
-
# Quick check during development
|
|
273
|
-
python3 .agent/scripts/checklist.py .
|
|
274
|
-
|
|
275
|
-
# Full check with performance audits
|
|
276
|
-
python3 .agent/scripts/checklist.py . --url http://localhost:3000
|
|
277
|
-
|
|
278
|
-
# Pre-deployment verification
|
|
279
|
-
python3 .agent/scripts/verify_all.py . --url http://localhost:3000
|
|
280
|
-
|
|
281
|
-
# Kit status
|
|
282
|
-
python3 .agent/scripts/kit_status.py --validate
|
|
283
|
-
|
|
284
|
-
# Skill management
|
|
285
|
-
python3 .agent/scripts/skills_manager.py list
|
|
286
|
-
python3 .agent/scripts/skills_manager.py search <query>
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
### Skill-Specific Scripts
|
|
290
|
-
|
|
291
|
-
| Skill | Script | When to Use |
|
|
292
|
-
| ------------------------ | --------------------- | -------------------------------- |
|
|
293
|
-
| `clean-code` | `lint_runner.py` | After code changes |
|
|
294
|
-
| `testing-patterns` | `test_runner.py` | After logic changes |
|
|
295
|
-
| `security-fundamentals` | `security_scan.py` | Before deploy, after deps change |
|
|
296
|
-
| `database-design` | `schema_validator.py` | After schema changes |
|
|
297
|
-
| `api-patterns` | `api_validator.py` | After API changes |
|
|
298
|
-
| `i18n-localization` | `i18n_checker.py` | After UI text changes |
|
|
299
|
-
| `seo-patterns` | `seo_checker.py` | After page changes |
|
|
300
|
-
| `accessibility-patterns` | `a11y_checker.py` | After UI changes |
|
|
301
|
-
|
|
302
|
-
### AI Script Protocol
|
|
303
|
-
|
|
304
|
-
1. **Security changes** β Run `security_scan.py`
|
|
305
|
-
2. **Database changes** β Run `schema_validator.py`
|
|
306
|
-
3. **API changes** β Run `api_validator.py`
|
|
307
|
-
4. **UI changes** β Run `a11y_checker.py`
|
|
308
|
-
5. **Before suggesting deploy** β Run `verify_all.py`
|
|
309
|
-
|
|
310
|
-
> π΄ Full script documentation: See `ARCHITECTURE.md` β Scripts section
|
|
37
|
+
[INCLUDE:design.md]
|
|
311
38
|
|
|
312
39
|
---
|
|
313
40
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
| Metric | Count |
|
|
317
|
-
| --------- | ----- |
|
|
318
|
-
| Agents | 22 |
|
|
319
|
-
| Skills | 40 |
|
|
320
|
-
| Workflows | 7 |
|
|
321
|
-
| Scripts | 19 |
|
|
41
|
+
[INCLUDE:scripts.md]
|
|
322
42
|
|
|
323
43
|
---
|
|
324
44
|
|
|
325
|
-
|
|
45
|
+
[INCLUDE:footer.md]
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
trigger: always_on
|
|
3
|
-
description: AGT-Kit - AI Agent system
|
|
3
|
+
description: AGT-Kit - AI Agent system with 22 agents, 40 skills, 7 commands
|
|
4
4
|
alwaysApply: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# CURSOR Rules - AGT-Kit
|
|
8
8
|
|
|
9
|
-
> AI Agent Capability Expansion Toolkit -
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## π― Kit Purpose
|
|
14
|
-
|
|
15
|
-
AGT-Kit is a portable, modular AI agent system consisting of:
|
|
16
|
-
|
|
17
|
-
- **22 Specialist Agents** - Role-based AI personas
|
|
18
|
-
- **40 Skills** - Domain-specific knowledge modules
|
|
19
|
-
- **7 Commands** - Slash command procedures
|
|
9
|
+
> AI Agent Capability Expansion Toolkit - 22 agents Β· 40 skills Β· 7 commands.
|
|
20
10
|
|
|
21
11
|
---
|
|
22
12
|
|
|
@@ -24,310 +14,38 @@ AGT-Kit is a portable, modular AI agent system consisting of:
|
|
|
24
14
|
|
|
25
15
|
> **MANDATORY:** Read agent file + skills BEFORE any implementation.
|
|
26
16
|
|
|
27
|
-
### Modular Skill Loading
|
|
28
|
-
|
|
29
17
|
Agent activated β Check frontmatter `skills:` β Read SKILL.md β Apply.
|
|
30
18
|
|
|
31
|
-
|
|
32
|
-
- **Enforcement:** Never skip reading. "Read β Understand β Apply" mandatory.
|
|
19
|
+
**Priority:** P0 (CURSOR.md) > P1 (Agent.md) > P2 (SKILL.md). All binding.
|
|
33
20
|
|
|
34
21
|
---
|
|
35
22
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
| Request Type | Trigger Keywords | Active Agents |
|
|
39
|
-
| ------------ | ------------------------ | -------------------------- |
|
|
40
|
-
| **QUESTION** | "what is", "explain" | - |
|
|
41
|
-
| **PLAN** | "plan", "lαΊp kαΊΏ hoαΊ‘ch" | project-planner |
|
|
42
|
-
| **CREATE** | "create", "build", "tαΊ‘o" | orchestrator β specialists |
|
|
43
|
-
| **DEBUG** | "debug", "fix", "gα»‘ lα»i" | debugger |
|
|
44
|
-
| **TEST** | "test", "kiα»m tra" | test-engineer |
|
|
45
|
-
| **DEPLOY** | "deploy", "release" | devops-engineer |
|
|
46
|
-
| **COMPLEX** | Multi-domain task | orchestrator (3+ agents) |
|
|
23
|
+
[INCLUDE:routing.md]
|
|
47
24
|
|
|
48
25
|
---
|
|
49
26
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
**Always analyze and select best agent(s) before responding.**
|
|
53
|
-
|
|
54
|
-
### Protocol
|
|
55
|
-
|
|
56
|
-
1. **Analyze**: Detect domains (Frontend, Backend, Security, etc.)
|
|
57
|
-
2. **Select**: Choose appropriate specialist(s)
|
|
58
|
-
3. **π΄ Announce**: Your **VERY FIRST line** of response MUST be: `β‘ **@[agent-name] activated!**`
|
|
59
|
-
4. **Apply**: Use agent's persona and rules
|
|
60
|
-
|
|
61
|
-
> π΄ **MANDATORY ANNOUNCEMENT RULE:**
|
|
62
|
-
> - You MUST output the announcement as the **first line** of every response before ANY other text.
|
|
63
|
-
> - Format: `β‘ **@agent-name activated!**` (replace `agent-name` with actual agent slug)
|
|
64
|
-
> - For multi-agent tasks: announce each agent on separate lines
|
|
65
|
-
> - This is NON-NEGOTIABLE. The user RELIES on this to verify correct agent routing.
|
|
66
|
-
>
|
|
67
|
-
> **Example β Single agent:**
|
|
68
|
-
> ```
|
|
69
|
-
> β‘ **@backend-specialist activated!**
|
|
70
|
-
>
|
|
71
|
-
> Let me analyze your API endpoint...
|
|
72
|
-
> ```
|
|
73
|
-
>
|
|
74
|
-
> **Example β Multiple agents:**
|
|
75
|
-
> ```
|
|
76
|
-
> β‘ **@orchestrator activated!**
|
|
77
|
-
> β‘ **@frontend-specialist activated!**
|
|
78
|
-
> β‘ **@backend-specialist activated!**
|
|
79
|
-
>
|
|
80
|
-
> I'll coordinate the full-stack implementation...
|
|
81
|
-
> ```
|
|
82
|
-
|
|
83
|
-
### Tier 1: Master Agents
|
|
84
|
-
|
|
85
|
-
| Agent | Use When |
|
|
86
|
-
| ----------------- | ---------------------------------------------- |
|
|
87
|
-
| `orchestrator` | Complex tasks requiring multiple specialists |
|
|
88
|
-
| `project-planner` | Planning projects, creating task breakdowns |
|
|
89
|
-
| `debugger` | Investigating bugs, systematic problem solving |
|
|
90
|
-
|
|
91
|
-
### Tier 2: Development Specialists
|
|
92
|
-
|
|
93
|
-
| Agent | Use When |
|
|
94
|
-
| --------------------- | ----------------------------------- |
|
|
95
|
-
| `frontend-specialist` | React, Next.js, Vue, UI/UX work |
|
|
96
|
-
| `backend-specialist` | APIs, Node.js, Python, server logic |
|
|
97
|
-
| `mobile-developer` | React Native, Flutter, mobile apps |
|
|
98
|
-
| `database-specialist` | Schema design, queries, migrations |
|
|
99
|
-
| `devops-engineer` | CI/CD, deployment, infrastructure |
|
|
100
|
-
|
|
101
|
-
### Tier 3: Quality & Security
|
|
102
|
-
|
|
103
|
-
| Agent | Use When |
|
|
104
|
-
| --------------------- | ---------------------------------------- |
|
|
105
|
-
| `security-auditor` | Security reviews, vulnerability scanning |
|
|
106
|
-
| `code-reviewer` | PR reviews, code quality checks |
|
|
107
|
-
| `test-engineer` | Writing tests, TDD, test coverage |
|
|
108
|
-
| `performance-analyst` | Performance optimization, profiling |
|
|
109
|
-
|
|
110
|
-
### Tier 4: Domain Specialists
|
|
111
|
-
|
|
112
|
-
| Agent | Use When |
|
|
113
|
-
| ------------------------ | ------------------------------------------ |
|
|
114
|
-
| `realtime-specialist` | WebSocket, Socket.IO, event-driven |
|
|
115
|
-
| `multi-tenant-architect` | SaaS, tenant isolation, data partitioning |
|
|
116
|
-
| `queue-specialist` | Message queues, background jobs |
|
|
117
|
-
| `integration-specialist` | External APIs, webhooks, third-party |
|
|
118
|
-
| `ai-engineer` | LLM, RAG, AI/ML systems, prompt eng |
|
|
119
|
-
| `cloud-architect` | AWS, Azure, GCP, Terraform, multi-cloud |
|
|
120
|
-
| `data-engineer` | ETL, data pipelines, analytics, warehouses |
|
|
121
|
-
|
|
122
|
-
### Tier 5: Support Agents
|
|
123
|
-
|
|
124
|
-
| Agent | Use When |
|
|
125
|
-
| ---------------------- | ------------------------------------- |
|
|
126
|
-
| `documentation-writer` | Technical docs, API documentation |
|
|
127
|
-
| `i18n-specialist` | Internationalization, translations |
|
|
128
|
-
| `ux-researcher` | UX research, usability, accessibility |
|
|
129
|
-
|
|
130
|
-
### Routing Checklist
|
|
131
|
-
|
|
132
|
-
| Step | Check | If Unchecked |
|
|
133
|
-
| ---- | ------------------------------- | --------------------------------- |
|
|
134
|
-
| 1 | Correct agent identified? | β Analyze domain |
|
|
135
|
-
| 2 | Read agent's .md file? | β Open `.agent/agents/{agent}.md` |
|
|
136
|
-
| 3 | Announced @agent as FIRST LINE? | β π΄ Add announcement IMMEDIATELY |
|
|
137
|
-
| 4 | Loaded skills from frontmatter? | β Check `skills:` field |
|
|
138
|
-
|
|
139
|
-
β Code without agent = PROTOCOL VIOLATION
|
|
140
|
-
β Skip announcement = USER CANNOT VERIFY
|
|
141
|
-
β Announcement NOT as first line = PROTOCOL VIOLATION
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## π COMMANDS (Slash Commands)
|
|
146
|
-
|
|
147
|
-
> **Note:** In Cursor, workflows are called "commands" and stored in `.cursor/commands/`
|
|
148
|
-
|
|
149
|
-
| Command | Description | Agent |
|
|
150
|
-
| -------------- | ------------------------------------ | --------------- |
|
|
151
|
-
| `/plan` | Create project plan, NO CODE | project-planner |
|
|
152
|
-
| `/create` | Build new application | orchestrator |
|
|
153
|
-
| `/debug` | Systematic debugging | debugger |
|
|
154
|
-
| `/test` | Generate and run tests | test-engineer |
|
|
155
|
-
| `/deploy` | Production deployment | devops-engineer |
|
|
156
|
-
| `/orchestrate` | Multi-agent coordination (3+ agents) | orchestrator |
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## π οΈ SKILL LOADING PROTOCOL
|
|
161
|
-
|
|
162
|
-
```
|
|
163
|
-
User Request β Check Profile β Skill Description Match β Load SKILL.md β Apply
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
### Profile-Aware Loading
|
|
167
|
-
|
|
168
|
-
> **CRITICAL:** Before loading any skill or selecting any agent, check `.cursor/profile.json`
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
1. Check if `.cursor/profile.json` exists
|
|
172
|
-
2. If EXISTS:
|
|
173
|
-
- Read skills.enabled[] β Only load these skills
|
|
174
|
-
- Read skills.disabled[] β Skip these skills
|
|
175
|
-
- Read agents.disabled[] β Skip these agents
|
|
176
|
-
- Respect userOverrides.force-enabled/force-disabled
|
|
177
|
-
3. If NOT EXISTS:
|
|
178
|
-
- All skills/agents are ENABLED by default
|
|
179
|
-
- Behave as if no filtering is applied
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Core Skills (Always Available)
|
|
183
|
-
|
|
184
|
-
These skills are NEVER disabled regardless of profile:
|
|
185
|
-
|
|
186
|
-
- `clean-code` - Pragmatic coding standards (used by ALL agents)
|
|
187
|
-
- `testing-patterns` - Testing pyramid, AAA pattern
|
|
188
|
-
- `security-fundamentals` - OWASP 2025
|
|
189
|
-
- `brainstorming` - Socratic questioning protocol
|
|
190
|
-
- `plan-writing` - Task breakdown and WBS
|
|
191
|
-
- `systematic-debugging` - 4-phase debugging
|
|
192
|
-
|
|
193
|
-
### Domain Skills (40 total)
|
|
194
|
-
|
|
195
|
-
> Full skill list with descriptions: See `ARCHITECTURE.md` β Skills section
|
|
27
|
+
[INCLUDE:workflows.cursor.md]
|
|
196
28
|
|
|
197
29
|
---
|
|
198
30
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
### π Language
|
|
202
|
-
|
|
203
|
-
- Non-English prompt β Respond in user's language
|
|
204
|
-
- Code comments/variables β Always English
|
|
205
|
-
- File names β Always English (kebab-case)
|
|
206
|
-
|
|
207
|
-
### π§Ή Clean Code
|
|
208
|
-
|
|
209
|
-
- Concise, no over-engineering, self-documenting
|
|
210
|
-
- Testing: Pyramid (Unit > Int > E2E) + AAA
|
|
211
|
-
- Performance: Measure first, Core Web Vitals
|
|
212
|
-
|
|
213
|
-
### πΊοΈ System Map
|
|
214
|
-
|
|
215
|
-
> Read `ARCHITECTURE.md` only when you need full agent/skill details.
|
|
216
|
-
|
|
217
|
-
**Paths:** Agents `.cursor/agents/`, Skills `.cursor/skills/`, Commands `.cursor/commands/`
|
|
218
|
-
|
|
219
|
-
### π§ Read β Understand β Apply
|
|
220
|
-
|
|
221
|
-
Before coding: 1) What is the GOAL? 2) What PRINCIPLES? 3) How does this DIFFER from generic?
|
|
31
|
+
[INCLUDE:skill.md]
|
|
222
32
|
|
|
223
33
|
---
|
|
224
34
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### π± Project Routing
|
|
228
|
-
|
|
229
|
-
| Type | Agent | Skills |
|
|
230
|
-
| ---------------------------------- | ------------------- | ----------------------------- |
|
|
231
|
-
| MOBILE (iOS, Android, RN, Flutter) | mobile-developer | mobile-design |
|
|
232
|
-
| WEB (Next.js, React) | frontend-specialist | frontend-design |
|
|
233
|
-
| BACKEND (API, DB) | backend-specialist | api-patterns, database-design |
|
|
234
|
-
|
|
235
|
-
> π΄ Mobile + frontend-specialist = WRONG.
|
|
236
|
-
|
|
237
|
-
### π Socratic Gate
|
|
238
|
-
|
|
239
|
-
For complex requests, STOP and ASK first:
|
|
240
|
-
|
|
241
|
-
| Request Type | Action |
|
|
242
|
-
| ------------------- | ------------------------------------- |
|
|
243
|
-
| New Feature / Build | Ask 3+ strategic questions |
|
|
244
|
-
| Code Edit / Bug Fix | Confirm understanding first |
|
|
245
|
-
| Vague Request | Ask Purpose, Users, Scope |
|
|
246
|
-
| Full Orchestration | User must confirm plan before Phase 2 |
|
|
247
|
-
|
|
248
|
-
**Never Assume.** If 1% unclear β ASK.
|
|
249
|
-
|
|
250
|
-
### π Mode Mapping
|
|
251
|
-
|
|
252
|
-
| Mode | Agent | Behavior |
|
|
253
|
-
| ---- | --------------- | ------------------------------- |
|
|
254
|
-
| plan | project-planner | 4-phase, NO CODE before Phase 4 |
|
|
255
|
-
| ask | - | Questions only |
|
|
256
|
-
| edit | orchestrator | Check {task-slug}.md first |
|
|
35
|
+
[INCLUDE:universal.md]
|
|
257
36
|
|
|
258
37
|
---
|
|
259
38
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
> Rules in specialist agents: Web β `frontend-specialist.md`, Mobile β `mobile-developer.md`
|
|
39
|
+
[INCLUDE:code.md]
|
|
263
40
|
|
|
264
41
|
---
|
|
265
42
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
### When to Run Scripts
|
|
269
|
-
|
|
270
|
-
| Trigger | Script | Purpose |
|
|
271
|
-
| ---------------- | -------------------------- | ---------------------------------------- |
|
|
272
|
-
| Before PR/commit | `checklist.py` | Quick validation (Security, Lint, Tests) |
|
|
273
|
-
| Before deploy | `verify_all.py` | Full pre-deployment suite |
|
|
274
|
-
| Kit maintenance | `kit_status.py --validate` | Check kit integrity |
|
|
275
|
-
| Managing skills | `skills_manager.py` | Enable/disable/search skills |
|
|
276
|
-
|
|
277
|
-
### Master Scripts
|
|
278
|
-
|
|
279
|
-
```bash
|
|
280
|
-
# Quick check during development
|
|
281
|
-
python3 .agent/scripts/checklist.py .
|
|
282
|
-
|
|
283
|
-
# Full check with performance audits
|
|
284
|
-
python3 .agent/scripts/checklist.py . --url http://localhost:3000
|
|
285
|
-
|
|
286
|
-
# Pre-deployment verification
|
|
287
|
-
python3 .agent/scripts/verify_all.py . --url http://localhost:3000
|
|
288
|
-
|
|
289
|
-
# Kit status
|
|
290
|
-
python3 .agent/scripts/kit_status.py --validate
|
|
291
|
-
|
|
292
|
-
# Skill management
|
|
293
|
-
python3 .agent/scripts/skills_manager.py list
|
|
294
|
-
python3 .agent/scripts/skills_manager.py search <query>
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
### Skill-Specific Scripts
|
|
298
|
-
|
|
299
|
-
| Skill | Script | When to Use |
|
|
300
|
-
| ------------------------ | --------------------- | -------------------------------- |
|
|
301
|
-
| `clean-code` | `lint_runner.py` | After code changes |
|
|
302
|
-
| `testing-patterns` | `test_runner.py` | After logic changes |
|
|
303
|
-
| `security-fundamentals` | `security_scan.py` | Before deploy, after deps change |
|
|
304
|
-
| `database-design` | `schema_validator.py` | After schema changes |
|
|
305
|
-
| `api-patterns` | `api_validator.py` | After API changes |
|
|
306
|
-
| `i18n-localization` | `i18n_checker.py` | After UI text changes |
|
|
307
|
-
| `seo-patterns` | `seo_checker.py` | After page changes |
|
|
308
|
-
| `accessibility-patterns` | `a11y_checker.py` | After UI changes |
|
|
309
|
-
|
|
310
|
-
### AI Script Protocol
|
|
311
|
-
|
|
312
|
-
1. **Security changes** β Run `security_scan.py`
|
|
313
|
-
2. **Database changes** β Run `schema_validator.py`
|
|
314
|
-
3. **API changes** β Run `api_validator.py`
|
|
315
|
-
4. **UI changes** β Run `a11y_checker.py`
|
|
316
|
-
5. **Before suggesting deploy** β Run `verify_all.py`
|
|
317
|
-
|
|
318
|
-
> π΄ Full script documentation: See `ARCHITECTURE.md` β Scripts section
|
|
43
|
+
[INCLUDE:design.md]
|
|
319
44
|
|
|
320
45
|
---
|
|
321
46
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
| Metric | Count |
|
|
325
|
-
| -------- | ----- |
|
|
326
|
-
| Agents | 22 |
|
|
327
|
-
| Skills | 40 |
|
|
328
|
-
| Commands | 7 |
|
|
329
|
-
| Scripts | 19 |
|
|
47
|
+
[INCLUDE:scripts.md]
|
|
330
48
|
|
|
331
49
|
---
|
|
332
50
|
|
|
333
|
-
|
|
51
|
+
[INCLUDE:footer.md]
|