@neyugn/agent-kits 0.2.6 → 0.2.8

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/README.md CHANGED
@@ -163,7 +163,7 @@ The **Filter Skill** solves the "skill overload" problem by automatically detect
163
163
  | **1. Detection** | Scans for config files (`package.json`, `pubspec.yaml`, `Dockerfile`, etc.) |
164
164
  | **2. Recommendation** | Maps detected techstack to required skills |
165
165
  | **3. Confirmation** | Presents changes and asks about future techstack plans |
166
- | **4. Persistence** | Saves profile to `.agent/workspace-profile.json` |
166
+ | **4. Persistence** | Saves profile to `.agent/profile.json` |
167
167
 
168
168
  ### Example
169
169
 
package/README.vi.md CHANGED
@@ -155,7 +155,7 @@ Hoạt động trên **Windows**, **macOS**, và **Linux** với đường dẫn
155
155
  | **1. Phát hiện** | Quét các file config (`package.json`, `pubspec.yaml`, `Dockerfile`, etc.) |
156
156
  | **2. Đề xuất** | Map techstack đã phát hiện với các skills cần thiết |
157
157
  | **3. Xác nhận** | Hiển thị thay đổi và hỏi về kế hoạch techstack tương lai |
158
- | **4. Lưu trữ** | Lưu profile vào `.agent/workspace-profile.json` |
158
+ | **4. Lưu trữ** | Lưu profile vào `.agent/profile.json` |
159
159
 
160
160
  ### Ví dụ
161
161
 
package/README.zh.md CHANGED
@@ -155,7 +155,7 @@ npx @neyugn/agent-kits
155
155
  | **1. 检测** | 扫描配置文件(`package.json`、`pubspec.yaml`、`Dockerfile` 等) |
156
156
  | **2. 推荐** | 将检测到的技术栈映射到所需技能 |
157
157
  | **3. 确认** | 显示更改并询问未来的技术栈计划 |
158
- | **4. 持久化** | 将配置保存到 `.agent/workspace-profile.json` |
158
+ | **4. 持久化** | 将配置保存到 `.agent/profile.json` |
159
159
 
160
160
  ### 示例
161
161
 
package/common/COMMON.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  ## 🎯 Purpose
8
8
 
9
- Common Skills một layer đặc biệt chứa các skill được chia sẻ giữa **tất cả các kits**. Những skill này:
9
+ The Common Skills Layer contains special skills that are shared across **all kits**. These skills:
10
10
 
11
- 1. **Được cài đặt cùng với mọi kit** - Khi user cài một kit bất kỳ (coder, writer, etc.), common skills cũng được cài theo
12
- 2. **Được đề cập trong ARCHITECTURE.md** của mỗi kit
13
- 3. ** workflow riêng** - Chỉ được gọi khi user sử dụng slash command tương ứng
11
+ 1. **Installed with every kit** - When a user installs any kit (coder, writer, etc.), common skills are installed automatically
12
+ 2. **Referenced in ARCHITECTURE.md** - Each kit's architecture document mentions these skills
13
+ 3. **Have dedicated workflows** - Invoked only when user calls the corresponding slash command
14
14
 
15
15
  ---
16
16
 
@@ -18,23 +18,31 @@ Common Skills là một layer đặc biệt chứa các skill được chia sẻ
18
18
 
19
19
  ```plaintext
20
20
  common/
21
- ├── COMMON.md # This file - documentation
22
- ├── skills/ # Common skills
23
- └── filter-skill/ # Workspace filtering skill
24
- ├── SKILL.md
25
- └── scripts/
26
- └── workspace_analyzer.py
27
- └── workflows/ # Common workflows
28
- └── filter.md # /filter command
21
+ ├── COMMON.md # This file - documentation
22
+ ├── skills/ # Common skills
23
+ ├── scan-techstack/ # Techstack detection skill
24
+ ├── SKILL.md
25
+ └── scripts/
26
+ └── techstack_scanner.py
27
+ │ ├── filter-skill/ # Skill filtering skill
28
+ │ │ ├── SKILL.md
29
+ │ │ └── scripts/
30
+ │ │ └── workspace_analyzer.py
31
+ │ └── filter-agent/ # Agent filtering skill
32
+ │ └── SKILL.md
33
+ └── workflows/ # Common workflows
34
+ └── filter.md # /filter command
29
35
  ```
30
36
 
31
37
  ---
32
38
 
33
39
  ## 🧩 Common Skills
34
40
 
35
- | Skill | Description | Workflow |
36
- | -------------- | -------------------------------------------------------------------------- | --------- |
37
- | `filter-skill` | Tự động phân tích workspace bật/tắt skills/agents phù hợp với techstack | `/filter` |
41
+ | Skill | Description | Trigger |
42
+ | ---------------- | ------------------------------------------------------- | ---------------------- |
43
+ | `scan-techstack` | Analyze workspace to detect technologies and frameworks | Part of `/filter` flow |
44
+ | `filter-skill` | Recommend enable/disable skills based on techstack | Part of `/filter` flow |
45
+ | `filter-agent` | Recommend disable agents based on techstack | Part of `/filter` flow |
38
46
 
39
47
  ---
40
48
 
@@ -42,61 +50,117 @@ common/
42
50
 
43
51
  ### Installation
44
52
 
45
- Khi user chạy `npx @neyugn/agent-kits`:
53
+ When user runs `npx @neyugn/agent-kits`:
46
54
 
47
- 1. User chọn kit (e.g., `coder`)
48
- 2. Installer copy kit vào workspace
49
- 3. Installer copy `common/` skills vào cùng vị trí
50
- 4. Common skills được merge vào architecture của kit
55
+ 1. User selects a kit (e.g., `coder`)
56
+ 2. Installer copies kit to workspace
57
+ 3. Installer copies `common/` skills to the same location
58
+ 4. Common skills are merged into the kit's architecture
51
59
 
52
60
  ### Usage
53
61
 
54
62
  ```bash
55
- # User gọi workflow để filter skills
63
+ # User invokes workflow to filter skills and agents
56
64
  /filter
57
65
 
58
- # AI sẽ:
59
- # 1. Phân tích workspace (package.json, pubspec.yaml, etc.)
60
- # 2. Xác định techstack
61
- # 3. Đề xuất enable/disable skills
62
- # 4. Hỏi user xác nhận + techstack tương lai
63
- # 5. Lưu kết quả vào .agent/workspace-profile.json
66
+ # The workflow will:
67
+ # 1. scan-techstack: Analyze workspace (package.json, pubspec.yaml, etc.)
68
+ # 2. filter-skill: Recommend skill enable/disable based on techstack
69
+ # 3. filter-agent: Recommend agent disable based on techstack
70
+ # 4. Ask user confirmation + future techstack plans
71
+ # 5. Save results to .agent/profile.json
72
+ ```
73
+
74
+ ### Workflow Flow
75
+
76
+ ```
77
+ /filter
78
+
79
+ ├── Step 1: scan-techstack
80
+ │ └── Output: TechstackProfile (languages, frameworks, categories)
81
+
82
+ ├── Step 2: filter-skill
83
+ │ └── Output: SkillRecommendations (enable/disable lists)
84
+
85
+ ├── Step 3: filter-agent
86
+ │ └── Output: AgentRecommendations (disable list)
87
+
88
+ ├── Step 4: User Confirmation
89
+ │ └── Ask about future techstack plans
90
+
91
+ └── Step 5: Save to profile.json
64
92
  ```
65
93
 
66
94
  ---
67
95
 
68
96
  ## 📊 Integration with Kits
69
97
 
70
- Mỗi kit's `ARCHITECTURE.md` PHẢI đề cập:
98
+ Each kit's `ARCHITECTURE.md` MUST mention:
71
99
 
72
100
  ```markdown
73
101
  ## 🔗 Common Skills
74
102
 
75
103
  This kit inherits from the **Common Skills Layer**. See `common/COMMON.md` for:
76
104
 
77
- - `/filter` - Workspace-aware skill filtering
78
- - [Future common skills...]
105
+ - `/filter` - Workspace-aware skill and agent filtering
106
+ - `scan-techstack` - Techstack detection
107
+ - `filter-skill` - Skill recommendations
108
+ - `filter-agent` - Agent recommendations
79
109
 
80
110
  Common skills are automatically installed and available in all kits.
81
111
  ```
82
112
 
83
113
  ---
84
114
 
115
+ ## 📄 Profile Format
116
+
117
+ The `/filter` workflow saves results to `.agent/profile.json`:
118
+
119
+ ```json
120
+ {
121
+ "version": "1.0",
122
+ "generatedAt": "2026-02-05T12:00:00Z",
123
+ "analyzedBy": "filter-workflow v1.0",
124
+ "techstack": {
125
+ "languages": ["typescript", "python"],
126
+ "frameworks": ["nextjs", "tailwindcss"],
127
+ "databases": ["postgresql"],
128
+ "tools": ["docker", "github-actions"]
129
+ },
130
+ "skills": {
131
+ "enabled": ["react-patterns", "tailwind-patterns", "postgres-patterns"],
132
+ "disabled": ["flutter-patterns", "mobile-design", "queue-patterns"],
133
+ "userOverrides": {
134
+ "force-enabled": ["ai-rag-patterns"],
135
+ "force-disabled": []
136
+ }
137
+ },
138
+ "agents": {
139
+ "disabled": ["mobile-developer", "queue-specialist", "realtime-specialist"]
140
+ },
141
+ "futureTechstack": ["react-native", "kubernetes"]
142
+ }
143
+ ```
144
+
145
+ ---
146
+
85
147
  ## 🚀 Future Common Skills (Planned)
86
148
 
87
- | Skill | Description | Status |
88
- | ----------------- | ----------------------------------------------- | ------- |
89
- | `context-manager` | Quản context length, tự động tóm tắt history | Planned |
90
- | `memory-skill` | Lưu trữ recall thông tin quan trọng | Planned |
91
- | `preference-sync` | Đồng bộ preferences của user giữa các sessions | Planned |
149
+ | Skill | Description | Status |
150
+ | ----------------- | --------------------------------------------- | ------- |
151
+ | `context-manager` | Manage context length, auto-summarize history | Planned |
152
+ | `memory-skill` | Store and recall important information | Planned |
153
+ | `preference-sync` | Sync user preferences between sessions | Planned |
92
154
 
93
155
  ---
94
156
 
95
157
  ## 📝 Adding Common Skills
96
158
 
97
159
  1. Create skill folder in `common/skills/`
98
- 2. Create workflow in `common/workflows/`
99
- 3. Update this file's Skills table
100
- 4. Update all kits' ARCHITECTURE.md to reference
160
+ 2. Create SKILL.md with proper frontmatter
161
+ 3. (Optional) Create scripts/ for automation
162
+ 4. Update workflow in `common/workflows/` if needed
163
+ 5. Update this file's Skills table
164
+ 6. Update all kits' ARCHITECTURE.md to reference
101
165
 
102
166
  ---
@@ -0,0 +1,194 @@
1
+ ---
2
+ name: filter-agent
3
+ description: Recommend enabling/disabling agents based on detected techstack. Reduces noise from irrelevant agents in the workspace.
4
+ category: common
5
+ trigger: manual
6
+ ---
7
+
8
+ # Filter Agent Skill
9
+
10
+ > Workspace-aware agent filtering for optimal AI performance.
11
+
12
+ ---
13
+
14
+ ## 🎯 Purpose
15
+
16
+ Filter Agent analyzes the **techstack profile** (from scan-techstack) and recommends which agents to **disable** based on project needs. This:
17
+
18
+ 1. **Reduces cognitive load** - AI focuses on relevant agents only
19
+ 2. **Improves accuracy** - No confusion from unrelated agent personas
20
+ 3. **Optimizes routing** - Orchestrator routes to appropriate specialists
21
+
22
+ ---
23
+
24
+ ## 🤖 Agent Categories
25
+
26
+ ### Tier 1: Master Agents (NEVER DISABLE)
27
+
28
+ | Agent | Always Required For |
29
+ | ----------------- | -------------------------------- |
30
+ | `orchestrator` | Multi-agent coordination |
31
+ | `project-planner` | Project planning, task breakdown |
32
+ | `debugger` | Systematic problem solving |
33
+
34
+ ### Tier 2: Development Specialists
35
+
36
+ | Agent | Enable When |
37
+ | --------------------- | ------------------------------------------ |
38
+ | `frontend-specialist` | Frontend detected (React, Vue, Angular) |
39
+ | `backend-specialist` | Backend detected (Express, NestJS, API) |
40
+ | `mobile-developer` | Mobile detected (Flutter, RN, iOS/Android) |
41
+ | `database-specialist` | Database detected (Prisma, PostgreSQL) |
42
+ | `devops-engineer` | DevOps detected (Docker, K8s, CI/CD) |
43
+
44
+ ### Tier 3: Quality & Security
45
+
46
+ | Agent | Enable When |
47
+ | --------------------- | ------------------------------------------- |
48
+ | `security-auditor` | Always enabled for security reviews |
49
+ | `code-reviewer` | Always enabled for PR reviews |
50
+ | `test-engineer` | Testing detected (Jest, Vitest, Playwright) |
51
+ | `performance-analyst` | Always enabled for optimization |
52
+
53
+ ### Tier 4: Domain Specialists
54
+
55
+ | Agent | Enable When |
56
+ | ------------------------ | ------------------------------------------ |
57
+ | `realtime-specialist` | Realtime detected (Socket.IO, WS) |
58
+ | `multi-tenant-architect` | Multi-tenancy patterns detected |
59
+ | `queue-specialist` | Queue detected (BullMQ, RabbitMQ) |
60
+ | `integration-specialist` | External API integrations detected |
61
+ | `ai-engineer` | AI detected (OpenAI, LangChain) |
62
+ | `cloud-architect` | Cloud infra detected (AWS, GCP, Terraform) |
63
+ | `data-engineer` | Data pipeline patterns detected |
64
+
65
+ ### Tier 5: Support Agents
66
+
67
+ | Agent | Enable When |
68
+ | ---------------------- | -------------------------- |
69
+ | `documentation-writer` | Always enabled for docs |
70
+ | `i18n-specialist` | i18n dependencies detected |
71
+ | `ux-researcher` | Frontend/Mobile detected |
72
+
73
+ ---
74
+
75
+ ## 📋 Mapping Rules
76
+
77
+ ### Category → Agent Mapping
78
+
79
+ | Detected Category | Agents to ENABLE |
80
+ | ----------------- | ------------------------------------------------ |
81
+ | `frontend` | frontend-specialist, ux-researcher |
82
+ | `backend` | backend-specialist |
83
+ | `mobile` | mobile-developer, ux-researcher |
84
+ | `database` | database-specialist |
85
+ | `devops` | devops-engineer, cloud-architect |
86
+ | `ai` | ai-engineer |
87
+ | `realtime` | realtime-specialist |
88
+ | `queue` | queue-specialist |
89
+ | `graphql` | backend-specialist (GraphQL expertise) |
90
+ | `auth` | security-auditor (always on), backend-specialist |
91
+ | `testing` | test-engineer |
92
+
93
+ ### Never Disable (Core Agents)
94
+
95
+ These agents are ALWAYS enabled regardless of techstack:
96
+
97
+ - `orchestrator` - Master coordinator
98
+ - `project-planner` - Planning and task management
99
+ - `debugger` - Problem solving
100
+ - `security-auditor` - Security reviews
101
+ - `code-reviewer` - Code quality
102
+ - `documentation-writer` - Documentation
103
+
104
+ ---
105
+
106
+ ## 📊 Recommendation Output
107
+
108
+ ```json
109
+ {
110
+ "agents": {
111
+ "enabled": [
112
+ "orchestrator",
113
+ "project-planner",
114
+ "debugger",
115
+ "frontend-specialist",
116
+ "backend-specialist",
117
+ "database-specialist",
118
+ "devops-engineer",
119
+ "test-engineer",
120
+ "security-auditor",
121
+ "code-reviewer",
122
+ "documentation-writer"
123
+ ],
124
+ "disabled": [
125
+ "mobile-developer",
126
+ "realtime-specialist",
127
+ "queue-specialist",
128
+ "ai-engineer",
129
+ "multi-tenant-architect",
130
+ "i18n-specialist",
131
+ "data-engineer"
132
+ ],
133
+ "coreAgents": [
134
+ "orchestrator",
135
+ "project-planner",
136
+ "debugger",
137
+ "security-auditor",
138
+ "code-reviewer",
139
+ "documentation-writer"
140
+ ]
141
+ }
142
+ }
143
+ ```
144
+
145
+ ---
146
+
147
+ ## 🔗 Integration
148
+
149
+ ### Input: TechstackProfile
150
+
151
+ Receives output from `scan-techstack`:
152
+
153
+ ```json
154
+ {
155
+ "categories": {
156
+ "frontend": true,
157
+ "backend": true,
158
+ "mobile": false,
159
+ "database": true,
160
+ "devops": true,
161
+ "ai": false,
162
+ "realtime": false,
163
+ "queue": false
164
+ }
165
+ }
166
+ ```
167
+
168
+ ### Output: AgentProfile
169
+
170
+ Produces agent recommendations for `profile.json`:
171
+
172
+ ```json
173
+ {
174
+ "agents": {
175
+ "disabled": [
176
+ "mobile-developer",
177
+ "realtime-specialist",
178
+ "queue-specialist",
179
+ "ai-engineer"
180
+ ]
181
+ }
182
+ }
183
+ ```
184
+
185
+ ---
186
+
187
+ ## ⚠️ Important Notes
188
+
189
+ 1. **Conservative approach** - When in doubt, keep agent enabled
190
+ 2. **User override** - User can force enable/disable any agent
191
+ 3. **Future planning** - If user plans to add mobile, keep mobile-developer enabled
192
+ 4. **Orchestrator respects profile** - Will skip disabled agents when routing
193
+
194
+ ---