@neyugn/agent-kits 0.3.9 β 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 -289
- package/kits/coder/rules/CLAUDE.md +10 -292
- package/kits/coder/rules/CURSOR.md +11 -295
- package/kits/coder/rules/GEMINI.md +10 -292
- package/kits/coder/rules/OPENCODE.md +11 -335
- 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,310 +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
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## π WORKFLOWS (Slash Commands)
|
|
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 |
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## π οΈ SKILL LOADING PROTOCOL
|
|
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 - see ARCHITECTURE.md)
|
|
186
|
-
|
|
187
|
-
Key skills: `api-patterns`, `database-design`, `react-patterns`, `typescript-patterns`, `docker-patterns`, `kubernetes-patterns`, `terraform-patterns`, `auth-patterns`, `graphql-patterns`, `redis-patterns`, `realtime-patterns`, `queue-patterns`, `multi-tenancy`, `ai-rag-patterns`, `prompt-engineering`, `monitoring-observability`, `frontend-design`, `mobile-design`, `tailwind-patterns`, `e2e-testing`, `performance-profiling`, `github-actions`, `gitlab-ci-patterns`
|
|
188
|
-
|
|
189
|
-
> π΄ Full skill list: See `ARCHITECTURE.md` β Skills section
|
|
21
|
+
[INCLUDE:workflows.md]
|
|
190
22
|
|
|
191
23
|
---
|
|
192
24
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
### π Language
|
|
196
|
-
|
|
197
|
-
- Non-English prompt β Respond in user's language
|
|
198
|
-
- Code comments/variables β Always English
|
|
199
|
-
- File names β Always English (kebab-case)
|
|
200
|
-
|
|
201
|
-
### π§Ή Clean Code
|
|
202
|
-
|
|
203
|
-
- Concise, no over-engineering, self-documenting
|
|
204
|
-
- Testing: Pyramid (Unit > Int > E2E) + AAA
|
|
205
|
-
- Performance: Measure first, Core Web Vitals
|
|
206
|
-
|
|
207
|
-
### πΊοΈ System Map
|
|
208
|
-
|
|
209
|
-
> π΄ Read `ARCHITECTURE.md` at session start.
|
|
210
|
-
|
|
211
|
-
**Paths:** Agents `.agent/agents/`, Skills `.agent/skills/`, Workflows `.agent/workflows/`
|
|
212
|
-
|
|
213
|
-
### π§ Read β Understand β Apply
|
|
214
|
-
|
|
215
|
-
Before coding: 1) What is the GOAL? 2) What PRINCIPLES? 3) How does this DIFFER from generic?
|
|
25
|
+
[INCLUDE:skill.md]
|
|
216
26
|
|
|
217
27
|
---
|
|
218
28
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
### π± Project Routing
|
|
222
|
-
|
|
223
|
-
| Type | Agent | Skills |
|
|
224
|
-
| ---------------------------------- | ------------------- | ----------------------------- |
|
|
225
|
-
| MOBILE (iOS, Android, RN, Flutter) | mobile-developer | mobile-design |
|
|
226
|
-
| WEB (Next.js, React) | frontend-specialist | frontend-design |
|
|
227
|
-
| BACKEND (API, DB) | backend-specialist | api-patterns, database-design |
|
|
228
|
-
|
|
229
|
-
> π΄ Mobile + frontend-specialist = WRONG.
|
|
230
|
-
|
|
231
|
-
### π Socratic Gate
|
|
232
|
-
|
|
233
|
-
For complex requests, STOP and ASK first:
|
|
234
|
-
|
|
235
|
-
| Request Type | Action |
|
|
236
|
-
| ------------------- | ------------------------------------- |
|
|
237
|
-
| New Feature / Build | Ask 3+ strategic questions |
|
|
238
|
-
| Code Edit / Bug Fix | Confirm understanding first |
|
|
239
|
-
| Vague Request | Ask Purpose, Users, Scope |
|
|
240
|
-
| Full Orchestration | User must confirm plan before Phase 2 |
|
|
241
|
-
|
|
242
|
-
**Never Assume.** If 1% unclear β ASK.
|
|
243
|
-
|
|
244
|
-
### π Mode Mapping
|
|
245
|
-
|
|
246
|
-
| Mode | Agent | Behavior |
|
|
247
|
-
| ---- | --------------- | ------------------------------- |
|
|
248
|
-
| plan | project-planner | 4-phase, NO CODE before Phase 4 |
|
|
249
|
-
| ask | - | Questions only |
|
|
250
|
-
| edit | orchestrator | Check {task-slug}.md first |
|
|
29
|
+
[INCLUDE:universal.md]
|
|
251
30
|
|
|
252
31
|
---
|
|
253
32
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
> Rules in specialist agents: Web β `frontend-specialist.md`, Mobile β `mobile-developer.md`
|
|
33
|
+
[INCLUDE:code.md]
|
|
257
34
|
|
|
258
35
|
---
|
|
259
36
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
### When to Run Scripts
|
|
263
|
-
|
|
264
|
-
| Trigger | Script | Purpose |
|
|
265
|
-
| ---------------- | -------------------------- | ---------------------------------------- |
|
|
266
|
-
| Before PR/commit | `checklist.py` | Quick validation (Security, Lint, Tests) |
|
|
267
|
-
| Before deploy | `verify_all.py` | Full pre-deployment suite |
|
|
268
|
-
| Kit maintenance | `kit_status.py --validate` | Check kit integrity |
|
|
269
|
-
| Managing skills | `skills_manager.py` | Enable/disable/search skills |
|
|
270
|
-
|
|
271
|
-
### Master Scripts
|
|
272
|
-
|
|
273
|
-
```bash
|
|
274
|
-
# Quick check during development
|
|
275
|
-
python3 .agent/scripts/checklist.py .
|
|
276
|
-
|
|
277
|
-
# Full check with performance audits
|
|
278
|
-
python3 .agent/scripts/checklist.py . --url http://localhost:3000
|
|
279
|
-
|
|
280
|
-
# Pre-deployment verification
|
|
281
|
-
python3 .agent/scripts/verify_all.py . --url http://localhost:3000
|
|
282
|
-
|
|
283
|
-
# Kit status
|
|
284
|
-
python3 .agent/scripts/kit_status.py --validate
|
|
285
|
-
|
|
286
|
-
# Skill management
|
|
287
|
-
python3 .agent/scripts/skills_manager.py list
|
|
288
|
-
python3 .agent/scripts/skills_manager.py search <query>
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
### Skill-Specific Scripts
|
|
292
|
-
|
|
293
|
-
| Skill | Script | When to Use |
|
|
294
|
-
| ------------------------ | --------------------- | -------------------------------- |
|
|
295
|
-
| `clean-code` | `lint_runner.py` | After code changes |
|
|
296
|
-
| `testing-patterns` | `test_runner.py` | After logic changes |
|
|
297
|
-
| `security-fundamentals` | `security_scan.py` | Before deploy, after deps change |
|
|
298
|
-
| `database-design` | `schema_validator.py` | After schema changes |
|
|
299
|
-
| `api-patterns` | `api_validator.py` | After API changes |
|
|
300
|
-
| `i18n-localization` | `i18n_checker.py` | After UI text changes |
|
|
301
|
-
| `seo-patterns` | `seo_checker.py` | After page changes |
|
|
302
|
-
| `accessibility-patterns` | `a11y_checker.py` | After UI changes |
|
|
303
|
-
|
|
304
|
-
### AI Script Protocol
|
|
305
|
-
|
|
306
|
-
1. **Security changes** β Run `security_scan.py`
|
|
307
|
-
2. **Database changes** β Run `schema_validator.py`
|
|
308
|
-
3. **API changes** β Run `api_validator.py`
|
|
309
|
-
4. **UI changes** β Run `a11y_checker.py`
|
|
310
|
-
5. **Before suggesting deploy** β Run `verify_all.py`
|
|
311
|
-
|
|
312
|
-
> π΄ Full script documentation: See `ARCHITECTURE.md` β Scripts section
|
|
37
|
+
[INCLUDE:design.md]
|
|
313
38
|
|
|
314
39
|
---
|
|
315
40
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
| Metric | Count |
|
|
319
|
-
| --------- | ----- |
|
|
320
|
-
| Agents | 22 |
|
|
321
|
-
| Skills | 40 |
|
|
322
|
-
| Workflows | 7 |
|
|
323
|
-
| Scripts | 19 |
|
|
41
|
+
[INCLUDE:scripts.md]
|
|
324
42
|
|
|
325
43
|
---
|
|
326
44
|
|
|
327
|
-
|
|
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,312 +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
|
|
27
|
+
[INCLUDE:workflows.cursor.md]
|
|
142
28
|
|
|
143
29
|
---
|
|
144
30
|
|
|
145
|
-
|
|
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 |
|
|
31
|
+
[INCLUDE:skill.md]
|
|
157
32
|
|
|
158
33
|
---
|
|
159
34
|
|
|
160
|
-
|
|
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 - see ARCHITECTURE.md)
|
|
194
|
-
|
|
195
|
-
Key skills: `api-patterns`, `database-design`, `react-patterns`, `typescript-patterns`, `docker-patterns`, `kubernetes-patterns`, `terraform-patterns`, `auth-patterns`, `graphql-patterns`, `redis-patterns`, `realtime-patterns`, `queue-patterns`, `multi-tenancy`, `ai-rag-patterns`, `prompt-engineering`, `monitoring-observability`, `frontend-design`, `mobile-design`, `tailwind-patterns`, `e2e-testing`, `performance-profiling`, `github-actions`, `gitlab-ci-patterns`
|
|
196
|
-
|
|
197
|
-
> π΄ Full skill list: See `ARCHITECTURE.md` β Skills section
|
|
35
|
+
[INCLUDE:universal.md]
|
|
198
36
|
|
|
199
37
|
---
|
|
200
38
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### π Language
|
|
204
|
-
|
|
205
|
-
- Non-English prompt β Respond in user's language
|
|
206
|
-
- Code comments/variables β Always English
|
|
207
|
-
- File names β Always English (kebab-case)
|
|
208
|
-
|
|
209
|
-
### π§Ή Clean Code
|
|
210
|
-
|
|
211
|
-
- Concise, no over-engineering, self-documenting
|
|
212
|
-
- Testing: Pyramid (Unit > Int > E2E) + AAA
|
|
213
|
-
- Performance: Measure first, Core Web Vitals
|
|
214
|
-
|
|
215
|
-
### πΊοΈ System Map
|
|
216
|
-
|
|
217
|
-
> π΄ Read `ARCHITECTURE.md` at session start.
|
|
218
|
-
|
|
219
|
-
**Paths:** Agents `.cursor/agents/`, Skills `.cursor/skills/`, Commands `.cursor/commands/`
|
|
220
|
-
|
|
221
|
-
### π§ Read β Understand β Apply
|
|
222
|
-
|
|
223
|
-
Before coding: 1) What is the GOAL? 2) What PRINCIPLES? 3) How does this DIFFER from generic?
|
|
39
|
+
[INCLUDE:code.md]
|
|
224
40
|
|
|
225
41
|
---
|
|
226
42
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### π± Project Routing
|
|
230
|
-
|
|
231
|
-
| Type | Agent | Skills |
|
|
232
|
-
| ---------------------------------- | ------------------- | ----------------------------- |
|
|
233
|
-
| MOBILE (iOS, Android, RN, Flutter) | mobile-developer | mobile-design |
|
|
234
|
-
| WEB (Next.js, React) | frontend-specialist | frontend-design |
|
|
235
|
-
| BACKEND (API, DB) | backend-specialist | api-patterns, database-design |
|
|
236
|
-
|
|
237
|
-
> π΄ Mobile + frontend-specialist = WRONG.
|
|
238
|
-
|
|
239
|
-
### π Socratic Gate
|
|
240
|
-
|
|
241
|
-
For complex requests, STOP and ASK first:
|
|
242
|
-
|
|
243
|
-
| Request Type | Action |
|
|
244
|
-
| ------------------- | ------------------------------------- |
|
|
245
|
-
| New Feature / Build | Ask 3+ strategic questions |
|
|
246
|
-
| Code Edit / Bug Fix | Confirm understanding first |
|
|
247
|
-
| Vague Request | Ask Purpose, Users, Scope |
|
|
248
|
-
| Full Orchestration | User must confirm plan before Phase 2 |
|
|
249
|
-
|
|
250
|
-
**Never Assume.** If 1% unclear β ASK.
|
|
251
|
-
|
|
252
|
-
### π Mode Mapping
|
|
253
|
-
|
|
254
|
-
| Mode | Agent | Behavior |
|
|
255
|
-
| ---- | --------------- | ------------------------------- |
|
|
256
|
-
| plan | project-planner | 4-phase, NO CODE before Phase 4 |
|
|
257
|
-
| ask | - | Questions only |
|
|
258
|
-
| edit | orchestrator | Check {task-slug}.md first |
|
|
43
|
+
[INCLUDE:design.md]
|
|
259
44
|
|
|
260
45
|
---
|
|
261
46
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
> Rules in specialist agents: Web β `frontend-specialist.md`, Mobile β `mobile-developer.md`
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## π SCRIPTS (Automation)
|
|
269
|
-
|
|
270
|
-
### When to Run Scripts
|
|
271
|
-
|
|
272
|
-
| Trigger | Script | Purpose |
|
|
273
|
-
| ---------------- | -------------------------- | ---------------------------------------- |
|
|
274
|
-
| Before PR/commit | `checklist.py` | Quick validation (Security, Lint, Tests) |
|
|
275
|
-
| Before deploy | `verify_all.py` | Full pre-deployment suite |
|
|
276
|
-
| Kit maintenance | `kit_status.py --validate` | Check kit integrity |
|
|
277
|
-
| Managing skills | `skills_manager.py` | Enable/disable/search skills |
|
|
278
|
-
|
|
279
|
-
### Master Scripts
|
|
280
|
-
|
|
281
|
-
```bash
|
|
282
|
-
# Quick check during development
|
|
283
|
-
python3 .agent/scripts/checklist.py .
|
|
284
|
-
|
|
285
|
-
# Full check with performance audits
|
|
286
|
-
python3 .agent/scripts/checklist.py . --url http://localhost:3000
|
|
287
|
-
|
|
288
|
-
# Pre-deployment verification
|
|
289
|
-
python3 .agent/scripts/verify_all.py . --url http://localhost:3000
|
|
290
|
-
|
|
291
|
-
# Kit status
|
|
292
|
-
python3 .agent/scripts/kit_status.py --validate
|
|
293
|
-
|
|
294
|
-
# Skill management
|
|
295
|
-
python3 .agent/scripts/skills_manager.py list
|
|
296
|
-
python3 .agent/scripts/skills_manager.py search <query>
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
### Skill-Specific Scripts
|
|
300
|
-
|
|
301
|
-
| Skill | Script | When to Use |
|
|
302
|
-
| ------------------------ | --------------------- | -------------------------------- |
|
|
303
|
-
| `clean-code` | `lint_runner.py` | After code changes |
|
|
304
|
-
| `testing-patterns` | `test_runner.py` | After logic changes |
|
|
305
|
-
| `security-fundamentals` | `security_scan.py` | Before deploy, after deps change |
|
|
306
|
-
| `database-design` | `schema_validator.py` | After schema changes |
|
|
307
|
-
| `api-patterns` | `api_validator.py` | After API changes |
|
|
308
|
-
| `i18n-localization` | `i18n_checker.py` | After UI text changes |
|
|
309
|
-
| `seo-patterns` | `seo_checker.py` | After page changes |
|
|
310
|
-
| `accessibility-patterns` | `a11y_checker.py` | After UI changes |
|
|
311
|
-
|
|
312
|
-
### AI Script Protocol
|
|
313
|
-
|
|
314
|
-
1. **Security changes** β Run `security_scan.py`
|
|
315
|
-
2. **Database changes** β Run `schema_validator.py`
|
|
316
|
-
3. **API changes** β Run `api_validator.py`
|
|
317
|
-
4. **UI changes** β Run `a11y_checker.py`
|
|
318
|
-
5. **Before suggesting deploy** β Run `verify_all.py`
|
|
319
|
-
|
|
320
|
-
> π΄ Full script documentation: See `ARCHITECTURE.md` β Scripts section
|
|
321
|
-
|
|
322
|
-
---
|
|
323
|
-
|
|
324
|
-
## π Kit Statistics
|
|
325
|
-
|
|
326
|
-
| Metric | Count |
|
|
327
|
-
| -------- | ----- |
|
|
328
|
-
| Agents | 22 |
|
|
329
|
-
| Skills | 40 |
|
|
330
|
-
| Commands | 7 |
|
|
331
|
-
| Scripts | 19 |
|
|
47
|
+
[INCLUDE:scripts.md]
|
|
332
48
|
|
|
333
49
|
---
|
|
334
50
|
|
|
335
|
-
|
|
51
|
+
[INCLUDE:footer.md]
|