@neyugn/agent-kits 0.4.0 → 0.5.1
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 +66 -81
- package/README.vi.md +79 -52
- package/README.zh.md +69 -88
- package/dist/cli.js +119 -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
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
19
|
<a href="#-quick-start">Quick Start</a> •
|
|
20
|
+
<a href="#-cli-commands">CLI Commands</a> •
|
|
20
21
|
<a href="#-important-notes">Important Notes</a> •
|
|
21
22
|
<a href="#-features">Features</a> •
|
|
22
23
|
<a href="#-kits">Kits</a> •
|
|
@@ -60,6 +61,29 @@ That's it! The interactive installer will guide you through:
|
|
|
60
61
|
|
|
61
62
|
<br/>
|
|
62
63
|
|
|
64
|
+
## 🖥️ CLI Commands
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npx @neyugn/agent-kits # Start interactive setup wizard
|
|
68
|
+
npx @neyugn/agent-kits --check-updates # Check for new version
|
|
69
|
+
npx @neyugn/agent-kits --version # Show current version
|
|
70
|
+
npx @neyugn/agent-kits --help # Show help
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Example output when update is available:**
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
╭─────────────────────────╮
|
|
77
|
+
│ agent-kits v0.5.0 │
|
|
78
|
+
│ Latest: v0.6.0 │
|
|
79
|
+
╰─────────────────────────╯
|
|
80
|
+
|
|
81
|
+
⚠ Update available! Run below to update:
|
|
82
|
+
npx @neyugn/agent-kits@latest
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
<br/>
|
|
86
|
+
|
|
63
87
|
## 📌 Important Notes
|
|
64
88
|
|
|
65
89
|
### Slash commands not appearing in IDE dropdown
|
|
@@ -81,36 +105,6 @@ If `.agent/` (or `.cursor/`, `.opencode/`, etc.) is listed in `.gitignore`, some
|
|
|
81
105
|
|
|
82
106
|
<br/>
|
|
83
107
|
|
|
84
|
-
### 🎯 One Command, Any Tool
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npx @neyugn/agent-kits@latest
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
```
|
|
91
|
-
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
92
|
-
│ │
|
|
93
|
-
│ _ ____ _____ _ _ _____ _ __ ___ _____ ____ │
|
|
94
|
-
│ / \ / ___|| ____|| \ | ||_ _| | |/ /|_ _||_ _|/ ___| │
|
|
95
|
-
│ / _ \ | | _ | _| | \| | | | | ' / | | | | \___ \ │
|
|
96
|
-
│ / ___ \| |_| || |___ | |\ | | | | . \ | | | | ___) | │
|
|
97
|
-
│ /_/ \_\\____||_____||_| \_| |_| |_|\_\|___| |_| |____/ │
|
|
98
|
-
│ │
|
|
99
|
-
│ ⚡ The Universal AI Agent Toolkit ⚡ │
|
|
100
|
-
│ │
|
|
101
|
-
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
102
|
-
|
|
103
|
-
SETUP WIZARD
|
|
104
|
-
|
|
105
|
-
◆ 🤖 Which AI assistant are you using?
|
|
106
|
-
│ ● Antigravity (.agent/)
|
|
107
|
-
│ ○ Cursor (.cursor/)
|
|
108
|
-
|
|
109
|
-
◆ 📂 Where should we install?
|
|
110
|
-
│ ● Workspace (Project)
|
|
111
|
-
│ ○ Global (System)
|
|
112
|
-
```
|
|
113
|
-
|
|
114
108
|
### 🌍 Global vs Workspace Installation
|
|
115
109
|
|
|
116
110
|
| Mode | Location | Use Case |
|
|
@@ -166,78 +160,69 @@ Works on **Windows**, **macOS**, and **Linux** with automatic path adaptation:
|
|
|
166
160
|
|
|
167
161
|
<br/>
|
|
168
162
|
|
|
169
|
-
## 🔍 Filter
|
|
163
|
+
## 🔍 Smart Filter (Workspace Analysis)
|
|
170
164
|
|
|
171
|
-
The **Filter
|
|
165
|
+
The **Filter** feature is the "brain" of Agent Kits, ensuring your AI assistant stays sharp and focused. Instead of overwhelming the AI with dozens of irrelevant instructions (skills), the system automatically analyzes your workspace to enable only what’s necessary.
|
|
172
166
|
|
|
173
|
-
###
|
|
167
|
+
### Why use Filtering?
|
|
174
168
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
169
|
+
As projects grow complex, providing too many instructions (System Prompts) to an AI can lead to:
|
|
170
|
+
- **Context Bloat**: Makes AI prone to confusion and slower responses.
|
|
171
|
+
- **Lost Focus**: AI might suggest patterns from one framework for another (e.g., suggesting Tailwind v4 patterns in a project using CSS Modules).
|
|
172
|
+
- **Token Waste**: Sending redundant instructions increases API costs.
|
|
178
173
|
|
|
179
|
-
### How
|
|
174
|
+
### How `/filter` Works
|
|
180
175
|
|
|
181
|
-
|
|
182
|
-
| --------------------- | --------------------------------------------------------------------------- |
|
|
183
|
-
| **1. Detection** | Scans for config files (`package.json`, `pubspec.yaml`, `Dockerfile`, etc.) |
|
|
184
|
-
| **2. Recommendation** | Maps detected techstack to required skills |
|
|
185
|
-
| **3. Confirmation** | Presents changes and asks about future techstack plans |
|
|
186
|
-
| **4. Persistence** | Saves profile to `.agent/profile.json` |
|
|
176
|
+
The system uses a multi-layered scanning mechanism to provide the best recommendations:
|
|
187
177
|
|
|
188
|
-
|
|
178
|
+
1. **Techstack Detection**: Scans project identifiers (`package.json`, `go.mod`, `requirements.txt`, `composer.json`, `Cargo.toml`, etc.).
|
|
179
|
+
2. **Structural Analysis**: Checks for characteristic directories (`src/app` for Next.js App Router, `android/` for Mobile, etc.).
|
|
180
|
+
3. **Agent & Skill Mapping**: Matches the detected techstack against the Agent Kits library to select the most relevant Specialists (Agents) and capabilities (Skills).
|
|
181
|
+
4. **Profile Tuning**: Creates or updates a `.agent/profile.json` file to precisely configure what the AI can access.
|
|
182
|
+
|
|
183
|
+
### Example Analysis Report
|
|
189
184
|
|
|
190
185
|
```markdown
|
|
191
|
-
## 🔍 Workspace Analysis
|
|
186
|
+
## 🔍 Workspace Analysis: E-commerce Project (Next.js + NestJS)
|
|
192
187
|
|
|
193
188
|
**Detected Techstack:**
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
| Framework | Next.js 14 (App Router) |
|
|
198
|
-
| Styling | Tailwind CSS v4 |
|
|
199
|
-
| Database | PostgreSQL (Prisma) |
|
|
200
|
-
|
|
201
|
-
**Skills to ENABLE:**
|
|
202
|
-
| Skill | Reason |
|
|
203
|
-
| ----------------- | ------------------------ |
|
|
204
|
-
| react-patterns | Next.js detected |
|
|
205
|
-
| tailwind-patterns | tailwind.config.js found |
|
|
206
|
-
| postgres-patterns | Prisma + PostgreSQL |
|
|
189
|
+
- Frontend: `Next.js 14`, `Tailwind CSS`, `Zustand`
|
|
190
|
+
- Backend: `NestJS`, `PostgreSQL`, `Prisma`
|
|
191
|
+
- DevOps: `Docker`, `GitHub Actions`
|
|
207
192
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
193
|
+
**✅ Activated Agents (Specialists):**
|
|
194
|
+
- `frontend-specialist`: Optimized for Next.js and Tailwind.
|
|
195
|
+
- `backend-specialist`: Expert in NestJS architecture.
|
|
196
|
+
- `database-specialist`: Advanced Prisma query optimization.
|
|
197
|
+
- `devops-engineer`: Manages Docker and CI/CD pipelines.
|
|
213
198
|
|
|
214
|
-
|
|
199
|
+
**🧩 Loaded Skills:**
|
|
200
|
+
- `react-patterns`, `tailwind-patterns`, `nodejs-best-practices`, `postgres-patterns`, `docker-patterns`.
|
|
215
201
|
|
|
216
|
-
|
|
217
|
-
|
|
202
|
+
**🚫 Hidden Skills (To reduce noise):**
|
|
203
|
+
- `flutter-patterns`, `mobile-design`, `aws-patterns` (Not used in this project).
|
|
218
204
|
```
|
|
219
205
|
|
|
220
|
-
### Commands
|
|
206
|
+
### Control Commands
|
|
221
207
|
|
|
222
208
|
```bash
|
|
223
|
-
/filter #
|
|
224
|
-
/filter --force-enable ai-rag #
|
|
225
|
-
/filter --force-disable mobile #
|
|
226
|
-
/filter --reset # Reset to default (enable all)
|
|
209
|
+
/filter # Re-scan workspace and auto-update
|
|
210
|
+
/filter --force-enable ai-rag # Always enable RAG skill regardless of techstack
|
|
211
|
+
/filter --force-disable mobile # Always disable mobile-related skills
|
|
212
|
+
/filter --reset # Reset to default state (enable all)
|
|
227
213
|
```
|
|
228
214
|
|
|
229
|
-
### Core Skills (
|
|
215
|
+
### Core Skills (Always Ready)
|
|
230
216
|
|
|
231
|
-
|
|
217
|
+
Certain fundamental skills and core Agents are never disabled to maintain system-level reasoning:
|
|
232
218
|
|
|
233
|
-
| Skill
|
|
234
|
-
|
|
|
235
|
-
| `clean-code`
|
|
236
|
-
| `brainstorming`
|
|
237
|
-
| `plan-writing`
|
|
238
|
-
| `systematic-debugging`
|
|
239
|
-
| `
|
|
240
|
-
| `security-fundamentals` | OWASP 2025 security |
|
|
219
|
+
| Skill | Value Proposition |
|
|
220
|
+
| :--- | :--- |
|
|
221
|
+
| `clean-code` | Ensures code is clean and maintainable. |
|
|
222
|
+
| `brainstorming` | Activates Socratic reasoning for complex problem solving. |
|
|
223
|
+
| `plan-writing` | Detailed planning before any code implementation. |
|
|
224
|
+
| `systematic-debugging` | 4-step evidence-based debugging process. |
|
|
225
|
+
| `security-fundamentals` | OWASP 2025 compliant security checks. |
|
|
241
226
|
|
|
242
227
|
<br/>
|
|
243
228
|
|
package/README.vi.md
CHANGED
|
@@ -51,6 +51,29 @@ npx @neyugn/agent-kits@latest
|
|
|
51
51
|
|
|
52
52
|
<br/>
|
|
53
53
|
|
|
54
|
+
## 🖥️ Các lệnh CLI
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx @neyugn/agent-kits # Khởi động installer tương tác
|
|
58
|
+
npx @neyugn/agent-kits --check-updates # Kiểm tra phiên bản mới
|
|
59
|
+
npx @neyugn/agent-kits --version # Hiện phiên bản hiện tại
|
|
60
|
+
npx @neyugn/agent-kits --help # Hiện trợ giúp
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Ví dụ output khi có phiên bản mới:**
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
╭─────────────────────────╮
|
|
67
|
+
│ agent-kits v0.5.0 │
|
|
68
|
+
│ Latest: v0.6.0 │
|
|
69
|
+
╰─────────────────────────╯
|
|
70
|
+
|
|
71
|
+
⚠ Update available! Run below to update:
|
|
72
|
+
npx @neyugn/agent-kits@latest
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
<br/>
|
|
76
|
+
|
|
54
77
|
## 📌 Lưu ý quan trọng
|
|
55
78
|
|
|
56
79
|
### Slash commands không hiện trong dropdown của IDE
|
|
@@ -68,47 +91,17 @@ Nếu `.agent/` (hoặc `.cursor/`, `.opencode/`, v.v.) bị thêm vào `.gitign
|
|
|
68
91
|
!.agent/workflows/**
|
|
69
92
|
```
|
|
70
93
|
|
|
71
|
-
> **Khuyến nghị:** Xóa thư mục kit khỏi `.gitignore` và commit nó
|
|
94
|
+
> **Khuyến nghị:** Xóa thư mục kit khỏi `.gitignore` và commit nó cùng với code của bạn.
|
|
72
95
|
|
|
73
96
|
<br/>
|
|
74
97
|
|
|
75
98
|
## ✨ Tính năng
|
|
76
99
|
|
|
77
|
-
### 🎯 Một lệnh, mọi công cụ
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npx @neyugn/agent-kits@latest
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
85
|
-
│ │
|
|
86
|
-
│ _ ____ _____ _ _ _____ _ __ ___ _____ ____ │
|
|
87
|
-
│ / \ / ___|| ____|| \ | ||_ _| | |/ /|_ _||_ _|/ ___| │
|
|
88
|
-
│ / _ \ | | _ | _| | \| | | | | ' / | | | | \___ \ │
|
|
89
|
-
│ / ___ \| |_| || |___ | |\ | | | | . \ | | | | ___) | │
|
|
90
|
-
│ /_/ \_\\____||_____||_| \_| |_| |_|\_\|___| |_| |____/ │
|
|
91
|
-
│ │
|
|
92
|
-
│ ⚡ The Universal AI Agent Toolkit ⚡ │
|
|
93
|
-
│ │
|
|
94
|
-
╯──────────────────────────────────────────────────────────────────────────────╯
|
|
95
|
-
|
|
96
|
-
SETUP WIZARD
|
|
97
|
-
|
|
98
|
-
◆ 🤖 Bạn đang sử dụng công cụ AI nào?
|
|
99
|
-
│ ● Antigravity (.agent/)
|
|
100
|
-
│ ○ Cursor (.cursor/)
|
|
101
|
-
|
|
102
|
-
◆ 📂 Bạn muốn cài đặt ở đâu?
|
|
103
|
-
│ ● Workspace (Dự án hiện tại)
|
|
104
|
-
│ ○ Global (Tất cả dự án)
|
|
105
|
-
```
|
|
106
|
-
|
|
107
100
|
### 🌍 Global vs Workspace
|
|
108
101
|
|
|
109
102
|
| Chế độ | Vị trí | Use Case |
|
|
110
103
|
| ----------- | ------------- | ----------------------------- |
|
|
111
|
-
|
|
|
104
|
+
| 📁 Workspace | `./{{tool}}/` | Cấu hình riêng cho từng dự án |
|
|
112
105
|
| 🌍 Global | `~/{{tool}}/` | Dùng chung cho tất cả dự án |
|
|
113
106
|
|
|
114
107
|
**Đường dẫn Global theo công cụ:**
|
|
@@ -157,35 +150,69 @@ Hoạt động trên **Windows**, **macOS**, và **Linux** với đường dẫn
|
|
|
157
150
|
|
|
158
151
|
<br/>
|
|
159
152
|
|
|
160
|
-
## 🔍 Filter
|
|
153
|
+
## 🔍 Tính năng Filter thông minh (Phân tích Workspace)
|
|
161
154
|
|
|
162
|
-
**Filter
|
|
155
|
+
Tính năng **Filter** là "trái tim" giúp Agent Kits trở nên mạnh mẽ và thông minh. Thay vì bắt AI phải đọc hàng chục file hướng dẫn (skills) không liên quan, hệ thống sẽ tự động phân tích workspace của bạn để bật đúng những gì cần thiết.
|
|
163
156
|
|
|
164
|
-
###
|
|
157
|
+
### Tại sao cần Filter?
|
|
165
158
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
Khi một dự án trở nên phức tạp, việc cung cấp quá nhiều chỉ dẫn (System Prompt) cho AI sẽ dẫn đến:
|
|
160
|
+
- **Quá tải ngữ cảnh (Context Bloat)**: Khiến AI dễ bị nhầm lẫn và phản hồi chậm.
|
|
161
|
+
- **Mất tập trung**: AI có thể gợi ý các pattern của framework này cho framework khác (ví dụ gợi ý Tailwind trong dự án đang dùng CSS Modules).
|
|
162
|
+
- **Tốn token**: Gửi các instruction dư thừa làm tăng chi phí sử dụng API.
|
|
169
163
|
|
|
170
|
-
###
|
|
164
|
+
### Cơ chế hoạt động của `/filter`
|
|
171
165
|
|
|
172
|
-
|
|
173
|
-
| ---------------- | ------------------------------------------------------------------------- |
|
|
174
|
-
| **1. Phát hiện** | Quét các file config (`package.json`, `pubspec.yaml`, `Dockerfile`, etc.) |
|
|
175
|
-
| **2. Đề xuất** | Map techstack đã phát hiện với các skills cần thiết |
|
|
176
|
-
| **3. Xác nhận** | Hiển thị thay đổi và hỏi về kế hoạch techstack tương lai |
|
|
177
|
-
| **4. Lưu trữ** | Lưu profile vào `.agent/profile.json` |
|
|
166
|
+
Hệ thống sử dụng cơ chế quét đa tầng để đưa ra đề xuất tối ưu nhất:
|
|
178
167
|
|
|
179
|
-
|
|
168
|
+
1. **Phát hiện Techstack**: Quét các file định danh dự án (`package.json`, `go.mod`, `requirements.txt`, `composer.json`, `Cargo.toml`, v.v.).
|
|
169
|
+
2. **Phân tích Cấu trúc**: Kiểm tra sự hiện diện của các thư mục đặc trưng (`src/app` cho Next.js App Router, `android/` cho Mobile, v.v.).
|
|
170
|
+
3. **Lập bản đồ Agent & Skill**: Đối chiếu techstack với kho dữ liệu Agent Kits để chọn ra các chuyên gia (Agents) và kỹ năng (Skills) phù hợp nhất.
|
|
171
|
+
4. **Tinh chỉnh Profile**: Tạo hoặc cập nhật file `.agent/profile.json` để cấu hình chính xác những gì AI được phép truy cập.
|
|
172
|
+
|
|
173
|
+
### Ví dụ về báo cáo phân tích
|
|
180
174
|
|
|
181
175
|
```markdown
|
|
182
|
-
## 🔍 Phân tích Workspace
|
|
176
|
+
## 🔍 Phân tích Workspace: Dự án E-commerce (Next.js + NestJS)
|
|
177
|
+
|
|
178
|
+
**Techstack được phát hiện:**
|
|
179
|
+
- Frontend: `Next.js 14`, `Tailwind CSS`, `Zustand`
|
|
180
|
+
- Backend: `NestJS`, `PostgreSQL`, `Prisma`
|
|
181
|
+
- DevOps: `Docker`, `GitHub Actions`
|
|
182
|
+
|
|
183
|
+
**✅ Các Agent được kích hoạt (Specialists):**
|
|
184
|
+
- `frontend-specialist`: Tối ưu cho Next.js và Tailwind.
|
|
185
|
+
- `backend-specialist`: Am hiểu cấu trúc NestJS.
|
|
186
|
+
- `database-specialist`: Hỗ trợ tối ưu Prisma queries.
|
|
187
|
+
- `devops-engineer`: Quản lý Docker và CI/CD.
|
|
188
|
+
|
|
189
|
+
**🧩 Các Skill được load:**
|
|
190
|
+
- `react-patterns`, `tailwind-patterns`, `nodejs-best-practices`, `postgres-patterns`, `docker-patterns`.
|
|
191
|
+
|
|
192
|
+
**🚫 Các Skill bị ẩn (Để giảm nhiễu):**
|
|
193
|
+
- `flutter-patterns`, `mobile-design`, `aws-patterns` (Dự án không sử dụng).
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Các lệnh điều khiển
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
/filter # Quét lại workspace và tự động cập nhật
|
|
200
|
+
/filter --force-enable ai-rag # Luôn bật skill RAG bất kể techstack
|
|
201
|
+
/filter --force-disable mobile # Luôn tắt các skill liên quan đến mobile
|
|
202
|
+
/filter --reset # Quay lại trạng thái mặc định (bật tất cả)
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Core Skills (Luôn luôn sẵn sàng)
|
|
206
|
+
|
|
207
|
+
Một số kỹ năng nền tảng và Agent cốt lõi sẽ không bao giờ bị tắt để đảm bảo khả năng tư duy hệ thống:
|
|
183
208
|
|
|
184
|
-
|
|
185
|
-
|
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
|
|
|
209
|
+
| Skill | Giá trị mang lại |
|
|
210
|
+
| :--- | :--- |
|
|
211
|
+
| `clean-code` | Đảm bảo code sạch, dễ bảo trì. |
|
|
212
|
+
| `brainstorming` | Kích hoạt tư duy Socratic để giải quyết vấn đề phức tạp. |
|
|
213
|
+
| `plan-writing` | Lập kế hoạch chi tiết trước khi bắt đầu viết code. |
|
|
214
|
+
| `systematic-debugging` | Quy trình gỡ lỗi 4 bước có bằng chứng rõ ràng. |
|
|
215
|
+
| `security-fundamentals` | Kiểm tra bảo mật theo tiêu chuẩn OWASP 2025. |
|
|
189
216
|
| Styling | Tailwind CSS v4 |
|
|
190
217
|
| Database | PostgreSQL (Prisma) |
|
|
191
218
|
|
package/README.zh.md
CHANGED
|
@@ -51,6 +51,29 @@ npx @neyugn/agent-kits@latest
|
|
|
51
51
|
|
|
52
52
|
<br/>
|
|
53
53
|
|
|
54
|
+
## 🖥️ CLI 命令
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx @neyugn/agent-kits # 启动交互式安装向导
|
|
58
|
+
npx @neyugn/agent-kits --check-updates # 检查新版本
|
|
59
|
+
npx @neyugn/agent-kits --version # 显示当前版本
|
|
60
|
+
npx @neyugn/agent-kits --help # 显示帮助
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**有新版本时的输出示例:**
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
╭─────────────────────────╮
|
|
67
|
+
│ agent-kits v0.5.0 │
|
|
68
|
+
│ Latest: v0.6.0 │
|
|
69
|
+
╰─────────────────────────╯
|
|
70
|
+
|
|
71
|
+
⚠ Update available! Run below to update:
|
|
72
|
+
npx @neyugn/agent-kits@latest
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
<br/>
|
|
76
|
+
|
|
54
77
|
## 📌 重要说明
|
|
55
78
|
|
|
56
79
|
### IDE 下拉菜单中不显示斜杠命令
|
|
@@ -68,42 +91,12 @@ npx @neyugn/agent-kits@latest
|
|
|
68
91
|
!.agent/workflows/**
|
|
69
92
|
```
|
|
70
93
|
|
|
71
|
-
> **推荐:** 将 kit 文件夹从 `.gitignore`
|
|
94
|
+
> **推荐:** 将 kit 文件夹从 `.gitignore` 中完全移除并提交它。
|
|
72
95
|
|
|
73
96
|
<br/>
|
|
74
97
|
|
|
75
98
|
## ✨ 功能特性
|
|
76
99
|
|
|
77
|
-
### 🎯 一条命令,任何工具
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npx @neyugn/agent-kits@latest
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
85
|
-
│ │
|
|
86
|
-
│ _ ____ _____ _ _ _____ _ __ ___ _____ ____ │
|
|
87
|
-
│ / \ / ___|| ____|| \ | ||_ _| | |/ /|_ _||_ _|/ ___| │
|
|
88
|
-
│ / _ \ | | _ | _| | \| | | | | ' / | | | | \___ \ │
|
|
89
|
-
│ / ___ \| |_| || |___ | |\ | | | | . \ | | | | ___) | │
|
|
90
|
-
│ /_/ \_\\____||_____||_| \_| |_| |_|\_\|___| |_| |____/ │
|
|
91
|
-
│ │
|
|
92
|
-
│ ⚡ The Universal AI Agent Toolkit ⚡ │
|
|
93
|
-
│ │
|
|
94
|
-
╯──────────────────────────────────────────────────────────────────────────────╯
|
|
95
|
-
|
|
96
|
-
SETUP WIZARD
|
|
97
|
-
|
|
98
|
-
◆ 🤖 您正在使用哪个 AI 工具?
|
|
99
|
-
│ ● Antigravity (.agent/)
|
|
100
|
-
│ ○ Cursor (.cursor/)
|
|
101
|
-
|
|
102
|
-
◆ 📂 您想安装在哪里?
|
|
103
|
-
│ ● Workspace(当前项目)
|
|
104
|
-
│ ○ Global(所有项目)
|
|
105
|
-
```
|
|
106
|
-
|
|
107
100
|
### 🌍 Global vs Workspace 安装
|
|
108
101
|
|
|
109
102
|
| 模式 | 位置 | 使用场景 |
|
|
@@ -141,7 +134,6 @@ npx @neyugn/agent-kits@latest
|
|
|
141
134
|
| Claude Code | `.claude/skills/` | `~/.claude/` | 🔜 即将推出 |
|
|
142
135
|
| Gemini CLI | `.gemini/skills/` | `~/.gemini/` | 🔜 即将推出 |
|
|
143
136
|
| Codex CLI | `.codex/skills/` | `~/.codex/` | 🔜 即将推出 |
|
|
144
|
-
| 自定义 | 可配置 | `~/.ai/` | 🔜 即将推出 |
|
|
145
137
|
|
|
146
138
|
> **注意:** 标记为 🔜 即将推出的工具已纳入未来版本计划。基础架构已就绪,但这些工具需要额外的测试和配置。
|
|
147
139
|
|
|
@@ -157,78 +149,69 @@ npx @neyugn/agent-kits@latest
|
|
|
157
149
|
|
|
158
150
|
<br/>
|
|
159
151
|
|
|
160
|
-
## 🔍
|
|
152
|
+
## 🔍 智能过滤功能 (工作区分析)
|
|
161
153
|
|
|
162
|
-
**Filter
|
|
154
|
+
**Filter** 功能是 Agent Kits 的 "大脑",旨在确保您的 AI 助手始终保持敏锐和专注。系统会自动分析您的工作区,仅启用必要的技能,而不是让 AI 处理数十个无关的指令(技能)。
|
|
163
155
|
|
|
164
|
-
###
|
|
156
|
+
### 为什么需要过滤?
|
|
165
157
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
158
|
+
随着项目的复杂化,向 AI 提供过多的指令(系统提示词)会导致:
|
|
159
|
+
- **上下文膨胀 (Context Bloat)**:导致 AI 容易混淆且响应变慢。
|
|
160
|
+
- **注意力分散**:AI 可能会推荐一种框架的模式到另一种框架中(例如在正在使用 CSS Modules 的项目中推荐 Tailwind v4 模式)。
|
|
161
|
+
- **Token 浪费**:发送冗余指令会增加 API 使用成本。
|
|
162
|
+
|
|
163
|
+
### `/filter` 的工作机制
|
|
169
164
|
|
|
170
|
-
|
|
165
|
+
系统采用多层扫描机制来提供最佳建议:
|
|
171
166
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
| **3. 确认** | 显示更改并询问未来的技术栈计划 |
|
|
177
|
-
| **4. 持久化** | 将配置保存到 `.agent/profile.json` |
|
|
167
|
+
1. **技术栈检测**:扫描项目标识文件(`package.json`、`go.mod`、`requirements.txt`、`composer.json`、`Cargo.toml` 等)。
|
|
168
|
+
2. **结构分析**:检查特征目录(如 Next.js App Router 的 `src/app`、移动端的 `android/` 等)。
|
|
169
|
+
3. **代理与技能映射**:将检测到的技术栈与 Agent Kits 库进行对比,选出最相关的专家级代理 (Agents) 和核心能力 (Skills)。
|
|
170
|
+
4. **配置文件优化**:创建或更新 `.agent/profile.json` 文件,精准配置 AI 可以访问的内容。
|
|
178
171
|
|
|
179
|
-
###
|
|
172
|
+
### 分析报告示例
|
|
180
173
|
|
|
181
174
|
```markdown
|
|
182
|
-
## 🔍
|
|
175
|
+
## 🔍 工作区分析:电商项目 (Next.js + NestJS)
|
|
183
176
|
|
|
184
177
|
**检测到的技术栈:**
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
| 技能 | 原因 |
|
|
201
|
-
| ---------------- | ------------------------ |
|
|
202
|
-
| flutter-patterns | 未找到 pubspec.yaml |
|
|
203
|
-
| mobile-design | 未检测到移动端配置 |
|
|
204
|
-
|
|
205
|
-
**问题:**
|
|
206
|
-
|
|
207
|
-
1. 您是否同意上述更改?(是/否/自定义)
|
|
208
|
-
2. 您是否计划在未来添加其他技术栈?
|
|
178
|
+
- 前端:`Next.js 14`, `Tailwind CSS`, `Zustand`
|
|
179
|
+
- Backend: `NestJS`, `PostgreSQL`, `Prisma`
|
|
180
|
+
- 运维:`Docker`, `GitHub Actions`
|
|
181
|
+
|
|
182
|
+
**✅ 已启用的代理 (Specialists):**
|
|
183
|
+
- `frontend-specialist`:针对 Next.js 和 Tailwind 进行了优化。
|
|
184
|
+
- `backend-specialist`:精通 NestJS 架构。
|
|
185
|
+
- `database-specialist`:支持 Prisma 查询优化。
|
|
186
|
+
- `devops-engineer`:管理 Docker 和 CI/CD 流程。
|
|
187
|
+
|
|
188
|
+
**🧩 已加载的技能:**
|
|
189
|
+
- `react-patterns`, `tailwind-patterns`, `nodejs-best-practices`, `postgres-patterns`, `docker-patterns`
|
|
190
|
+
|
|
191
|
+
**🚫 已隐藏的技能 (减少噪音):**
|
|
192
|
+
- `flutter-patterns`, `mobile-design`, `aws-patterns` (本项目未使用)
|
|
209
193
|
```
|
|
210
194
|
|
|
211
|
-
###
|
|
195
|
+
### 控制命令
|
|
212
196
|
|
|
213
197
|
```bash
|
|
214
|
-
/filter #
|
|
215
|
-
/filter --force-enable ai-rag #
|
|
216
|
-
/filter --force-disable mobile #
|
|
217
|
-
/filter --reset #
|
|
198
|
+
/filter # 重新扫描工作区并自动更新
|
|
199
|
+
/filter --force-enable ai-rag # 强制启用 RAG 技能(无论技术栈如何)
|
|
200
|
+
/filter --force-disable mobile # 强制禁用移动端相关技能
|
|
201
|
+
/filter --reset # 重置为初始状态(启用全部)
|
|
218
202
|
```
|
|
219
203
|
|
|
220
|
-
###
|
|
204
|
+
### 核心技能 (始终就绪)
|
|
221
205
|
|
|
222
|
-
|
|
206
|
+
某些基础技能和核心代理将永远不会被禁用,以确保系统级的逻辑思考能力:
|
|
223
207
|
|
|
224
|
-
| 技能
|
|
225
|
-
|
|
|
226
|
-
| `clean-code`
|
|
227
|
-
| `brainstorming`
|
|
228
|
-
| `plan-writing`
|
|
229
|
-
| `systematic-debugging`
|
|
230
|
-
| `
|
|
231
|
-
| `security-fundamentals` | OWASP 2025 安全 |
|
|
208
|
+
| 技能 | 核心价值 |
|
|
209
|
+
| :--- | :--- |
|
|
210
|
+
| `clean-code` | 确保代码整洁且易于维护。 |
|
|
211
|
+
| `brainstorming` | 激活苏格拉底式思维以解决复杂问题。 |
|
|
212
|
+
| `plan-writing` | 在执行任何代码之前进行详细规划。 |
|
|
213
|
+
| `systematic-debugging` | 基于证据的 4 步骤系统化调试流程。 |
|
|
214
|
+
| `security-fundamentals` | 符合 OWASP 2025 标准的安全检查。 |
|
|
232
215
|
|
|
233
216
|
<br/>
|
|
234
217
|
|
|
@@ -327,8 +310,6 @@ npx @neyugn/agent-kits@latest
|
|
|
327
310
|
| `/orchestrate` | 多代理协调 |
|
|
328
311
|
| `/ui-ux-pro-max` | UI/UX 设计智能 |
|
|
329
312
|
|
|
330
|
-
> **注意:** `/filter` 命令属于 **Common Skills Layer**(见下文),在所有工具包中可用。
|
|
331
|
-
|
|
332
313
|
</details>
|
|
333
314
|
|
|
334
315
|
### 🔜 即将推出
|