@neyugn/agent-kits 0.3.4 β†’ 0.3.5

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 CHANGED
@@ -99,7 +99,7 @@ var AI_TOOLS = [
99
99
  path: ".opencode",
100
100
  globalPathPattern: "~/.config/opencode",
101
101
  rulesFile: "AGENTS.md",
102
- kitRulesFile: "AGENTS.md",
102
+ kitRulesFile: "OPENCODE.md",
103
103
  rulesInsideKit: false,
104
104
  // OpenCode reads AGENTS.md from project root
105
105
  workflowsAs: "commands",
@@ -0,0 +1,304 @@
1
+ # AGENTS.md - AGT-Kit
2
+
3
+ > AI Agent Capability Expansion Toolkit - This file defines AI behavior in this workspace.
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
14
+
15
+ ---
16
+
17
+ ## CRITICAL: AGENT & SKILL PROTOCOL
18
+
19
+ > **MANDATORY:** Read agent file + skills BEFORE any implementation.
20
+
21
+ ### Modular Skill Loading
22
+
23
+ Agent activated β†’ Check frontmatter `skills:` β†’ Read SKILL.md β†’ Apply.
24
+
25
+ - **Priority:** P0 (AGENTS.md) > P1 (Agent.md) > P2 (SKILL.md). All binding.
26
+ - **Enforcement:** Never skip reading. "Read β†’ Understand β†’ Apply" mandatory.
27
+
28
+ ---
29
+
30
+ ## πŸ“₯ REQUEST CLASSIFIER
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) |
41
+
42
+ ---
43
+
44
+ ## πŸ€– AGENT ROUTING
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**: `⚑ **@[agent] activated!**`
53
+ 4. **Apply**: Use agent's persona and rules
54
+
55
+ ### Tier 1: Master Agents
56
+
57
+ | Agent | Use When |
58
+ | ----------------- | ---------------------------------------------- |
59
+ | `orchestrator` | Complex tasks requiring multiple specialists |
60
+ | `project-planner` | Planning projects, creating task breakdowns |
61
+ | `debugger` | Investigating bugs, systematic problem solving |
62
+
63
+ ### Tier 2: Development Specialists
64
+
65
+ | Agent | Use When |
66
+ | --------------------- | ----------------------------------- |
67
+ | `frontend-specialist` | React, Next.js, Vue, UI/UX work |
68
+ | `backend-specialist` | APIs, Node.js, Python, server logic |
69
+ | `mobile-developer` | React Native, Flutter, mobile apps |
70
+ | `database-specialist` | Schema design, queries, migrations |
71
+ | `devops-engineer` | CI/CD, deployment, infrastructure |
72
+
73
+ ### Tier 3: Quality & Security
74
+
75
+ | Agent | Use When |
76
+ | --------------------- | ---------------------------------------- |
77
+ | `security-auditor` | Security reviews, vulnerability scanning |
78
+ | `code-reviewer` | PR reviews, code quality checks |
79
+ | `test-engineer` | Writing tests, TDD, test coverage |
80
+ | `performance-analyst` | Performance optimization, profiling |
81
+
82
+ ### Tier 4: Domain Specialists
83
+
84
+ | Agent | Use When |
85
+ | ------------------------ | ------------------------------------------ |
86
+ | `realtime-specialist` | WebSocket, Socket.IO, event-driven |
87
+ | `multi-tenant-architect` | SaaS, tenant isolation, data partitioning |
88
+ | `queue-specialist` | Message queues, background jobs |
89
+ | `integration-specialist` | External APIs, webhooks, third-party |
90
+ | `ai-engineer` | LLM, RAG, AI/ML systems, prompt eng |
91
+ | `cloud-architect` | AWS, Azure, GCP, Terraform, multi-cloud |
92
+ | `data-engineer` | ETL, data pipelines, analytics, warehouses |
93
+
94
+ ### Tier 5: Support Agents
95
+
96
+ | Agent | Use When |
97
+ | ---------------------- | ------------------------------------- |
98
+ | `documentation-writer` | Technical docs, API documentation |
99
+ | `i18n-specialist` | Internationalization, translations |
100
+ | `ux-researcher` | UX research, usability, accessibility |
101
+
102
+ ### Routing Checklist
103
+
104
+ | Step | Check | If Unchecked |
105
+ | ---- | ------------------------------- | --------------------------------- |
106
+ | 1 | Correct agent identified? | β†’ Analyze domain |
107
+ | 2 | Read agent's .md file? | β†’ Open `.agent/agents/{agent}.md` |
108
+ | 3 | Announced @agent? | β†’ Add announcement |
109
+ | 4 | Loaded skills from frontmatter? | β†’ Check `skills:` field |
110
+
111
+ ❌ Code without agent = PROTOCOL VIOLATION
112
+ ❌ Skip announcement = USER CANNOT VERIFY
113
+
114
+ ---
115
+
116
+ ## πŸ“œ WORKFLOWS (Slash Commands)
117
+
118
+ | Command | Description | Agent |
119
+ | -------------- | ------------------------------------ | --------------- |
120
+ | `/plan` | Create project plan, NO CODE | project-planner |
121
+ | `/create` | Build new application | orchestrator |
122
+ | `/debug` | Systematic debugging | debugger |
123
+ | `/test` | Generate and run tests | test-engineer |
124
+ | `/deploy` | Production deployment | devops-engineer |
125
+ | `/orchestrate` | Multi-agent coordination (3+ agents) | orchestrator |
126
+
127
+ ---
128
+
129
+ ## πŸ› οΈ SKILL LOADING PROTOCOL
130
+
131
+ ```
132
+ User Request β†’ Check Profile β†’ Skill Description Match β†’ Load SKILL.md β†’ Apply
133
+ ```
134
+
135
+ ### Profile-Aware Loading
136
+
137
+ > **CRITICAL:** Before loading any skill or selecting any agent, check `.agent/profile.json`
138
+
139
+ ```
140
+ 1. Check if `.agent/profile.json` exists
141
+ 2. If EXISTS:
142
+ - Read skills.enabled[] β†’ Only load these skills
143
+ - Read skills.disabled[] β†’ Skip these skills
144
+ - Read agents.disabled[] β†’ Skip these agents
145
+ - Respect userOverrides.force-enabled/force-disabled
146
+ 3. If NOT EXISTS:
147
+ - All skills/agents are ENABLED by default
148
+ - Behave as if no filtering is applied
149
+ ```
150
+
151
+ ### Core Skills (Always Available)
152
+
153
+ These skills are NEVER disabled regardless of profile:
154
+
155
+ - `clean-code` - Pragmatic coding standards (used by ALL agents)
156
+ - `testing-patterns` - Testing pyramid, AAA pattern
157
+ - `security-fundamentals` - OWASP 2025
158
+ - `brainstorming` - Socratic questioning protocol
159
+ - `plan-writing` - Task breakdown and WBS
160
+ - `systematic-debugging` - 4-phase debugging
161
+
162
+ ### Domain Skills (40 total - see .agent/ARCHITECTURE.md)
163
+
164
+ 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`
165
+
166
+ > πŸ”΄ Full skill list: See `.agent/ARCHITECTURE.md` β†’ Skills section
167
+
168
+ ---
169
+
170
+ ## TIER 0: UNIVERSAL RULES
171
+
172
+ ### 🌐 Language
173
+
174
+ - Non-English prompt β†’ Respond in user's language
175
+ - Code comments/variables β†’ Always English
176
+ - File names β†’ Always English (kebab-case)
177
+
178
+ ### 🧹 Clean Code
179
+
180
+ - Concise, no over-engineering, self-documenting
181
+ - Testing: Pyramid (Unit > Int > E2E) + AAA
182
+ - Performance: Measure first, Core Web Vitals
183
+
184
+ ### πŸ—ΊοΈ System Map
185
+
186
+ > πŸ”΄ Read `.agent/ARCHITECTURE.md` at session start.
187
+
188
+ **Paths:** Agents `.agent/agents/`, Skills `.agent/skills/`, Workflows `.agent/workflows/`
189
+
190
+ ### 🧠 Read β†’ Understand β†’ Apply
191
+
192
+ Before coding: 1) What is the GOAL? 2) What PRINCIPLES? 3) How does this DIFFER from generic?
193
+
194
+ ---
195
+
196
+ ## TIER 1: CODE RULES
197
+
198
+ ### πŸ“± Project Routing
199
+
200
+ | Type | Agent | Skills |
201
+ | ---------------------------------- | ------------------- | ----------------------------- |
202
+ | MOBILE (iOS, Android, RN, Flutter) | mobile-developer | mobile-design |
203
+ | WEB (Next.js, React) | frontend-specialist | frontend-design |
204
+ | BACKEND (API, DB) | backend-specialist | api-patterns, database-design |
205
+
206
+ > πŸ”΄ Mobile + frontend-specialist = WRONG.
207
+
208
+ ### πŸ›‘ Socratic Gate
209
+
210
+ For complex requests, STOP and ASK first:
211
+
212
+ | Request Type | Action |
213
+ | ------------------- | ------------------------------------- |
214
+ | New Feature / Build | Ask 3+ strategic questions |
215
+ | Code Edit / Bug Fix | Confirm understanding first |
216
+ | Vague Request | Ask Purpose, Users, Scope |
217
+ | Full Orchestration | User must confirm plan before Phase 2 |
218
+
219
+ **Never Assume.** If 1% unclear β†’ ASK.
220
+
221
+ ### 🎭 Mode Mapping
222
+
223
+ | Mode | Agent | Behavior |
224
+ | ---- | --------------- | ------------------------------- |
225
+ | plan | project-planner | 4-phase, NO CODE before Phase 4 |
226
+ | ask | - | Questions only |
227
+ | edit | orchestrator | Check {task-slug}.md first |
228
+
229
+ ---
230
+
231
+ ## TIER 2: DESIGN RULES
232
+
233
+ > Rules in specialist agents: Web β†’ `frontend-specialist.md`, Mobile β†’ `mobile-developer.md`
234
+
235
+ ---
236
+
237
+ ## πŸ“œ SCRIPTS (Automation)
238
+
239
+ ### When to Run Scripts
240
+
241
+ | Trigger | Script | Purpose |
242
+ | ---------------- | -------------------------- | ---------------------------------------- |
243
+ | Before PR/commit | `checklist.py` | Quick validation (Security, Lint, Tests) |
244
+ | Before deploy | `verify_all.py` | Full pre-deployment suite |
245
+ | Kit maintenance | `kit_status.py --validate` | Check kit integrity |
246
+ | Managing skills | `skills_manager.py` | Enable/disable/search skills |
247
+
248
+ ### Master Scripts
249
+
250
+ ```bash
251
+ # Quick check during development
252
+ python3 .agent/scripts/checklist.py .
253
+
254
+ # Full check with performance audits
255
+ python3 .agent/scripts/checklist.py . --url http://localhost:3000
256
+
257
+ # Pre-deployment verification
258
+ python3 .agent/scripts/verify_all.py . --url http://localhost:3000
259
+
260
+ # Kit status
261
+ python3 .agent/scripts/kit_status.py --validate
262
+
263
+ # Skill management
264
+ python3 .agent/scripts/skills_manager.py list
265
+ python3 .agent/scripts/skills_manager.py search <query>
266
+ ```
267
+
268
+ ### Skill-Specific Scripts
269
+
270
+ | Skill | Script | When to Use |
271
+ | ------------------------ | --------------------- | -------------------------------- |
272
+ | `clean-code` | `lint_runner.py` | After code changes |
273
+ | `testing-patterns` | `test_runner.py` | After logic changes |
274
+ | `security-fundamentals` | `security_scan.py` | Before deploy, after deps change |
275
+ | `database-design` | `schema_validator.py` | After schema changes |
276
+ | `api-patterns` | `api_validator.py` | After API changes |
277
+ | `i18n-localization` | `i18n_checker.py` | After UI text changes |
278
+ | `seo-patterns` | `seo_checker.py` | After page changes |
279
+ | `accessibility-patterns` | `a11y_checker.py` | After UI changes |
280
+
281
+ ### AI Script Protocol
282
+
283
+ 1. **Security changes** β†’ Run `security_scan.py`
284
+ 2. **Database changes** β†’ Run `schema_validator.py`
285
+ 3. **API changes** β†’ Run `api_validator.py`
286
+ 4. **UI changes** β†’ Run `a11y_checker.py`
287
+ 5. **Before suggesting deploy** β†’ Run `verify_all.py`
288
+
289
+ > πŸ”΄ Full script documentation: See `.agent/ARCHITECTURE.md` β†’ Scripts section
290
+
291
+ ---
292
+
293
+ ## πŸ“Š Kit Statistics
294
+
295
+ | Metric | Count |
296
+ | --------- | ----- |
297
+ | Agents | 22 |
298
+ | Skills | 40 |
299
+ | Workflows | 7 |
300
+ | Scripts | 19 |
301
+
302
+ ---
303
+
304
+ > **Philosophy:** Modular agents + reusable skills + clear workflows + automated scripts = scalable AI assistance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neyugn/agent-kits",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Universal AI Agent Toolkit - Skills, Agents, and Workflows for any AI coding assistant",
5
5
  "type": "module",
6
6
  "bin": {