anchi-toolkit 1.0.0 → 1.2.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/.ai-audit/README.md +53 -0
- package/.ai-memory/README.md +137 -0
- package/.ai-memory/context.json +26 -0
- package/.ai-memory/decisions.json +3 -0
- package/.antigravity/agent-skill-index.yaml +24 -0
- package/.antigravity/anchi-toolkit.config.yaml +12 -0
- package/.antigravity/docs/README.md +9 -0
- package/.antigravity/skills/_template.md +30 -0
- package/.antigravity/team.yaml +154 -0
- package/.antigravity/workflows/config.md +144 -0
- package/.antigravity/workflows/demo.md +50 -0
- package/.antigravity/workflows/help.md +11 -4
- package/.antigravity/workflows/skill-learn.md +48 -0
- package/.antigravity/workflows/start.md +38 -117
- package/.antigravity/workflows/status.md +8 -8
- package/.antigravity/workflows/undo.md +7 -7
- package/.cursor/agent-skill-index.yaml +39 -0
- package/.cursor/agents/graph-architect.md +30 -0
- package/.cursor/agents/trend-watcher.md +24 -0
- package/.cursor/commands/config.md +144 -0
- package/.cursor/commands/demo.md +50 -0
- package/.cursor/commands/do.md +127 -90
- package/.cursor/commands/help.md +23 -16
- package/.cursor/commands/skill-learn.md +48 -0
- package/.cursor/commands/start.md +38 -117
- package/.cursor/commands/status.md +19 -19
- package/.cursor/commands/undo.md +19 -19
- package/.cursor/orchestration.yaml +18 -0
- package/.cursor/skills/_template.md +30 -0
- package/ANTIGRAVITY.md +84 -0
- package/CURSOR.md +50 -157
- package/LICENSE +17 -14
- package/README.md +64 -89
- package/docs/ALL_COMMANDS.md +31 -73
- package/docs/CI_CD.md +44 -0
- package/docs/COMPARISON.md +65 -0
- package/docs/ROADMAP.md +45 -161
- package/docs/WORKFLOW.md +56 -317
- package/package.json +9 -2
- package/presets/ci-cd/ai-review.yml +49 -0
- package/scripts/install-hooks.ps1 +21 -7
- package/scripts/install-hooks.sh +18 -3
- package/src/cli.js +111 -59
- package/src/commands/clean.js +87 -0
- package/src/commands/doctor.js +88 -21
- package/src/commands/init.js +22 -2
- package/src/commands/uninstall.js +17 -2
- package/src/lib/configManager.js +20 -5
- package/src/lib/memoryManager.js +7 -4
- package/docs/CODEBASE.md +0 -178
- package/docs/COMMAND_MAPPING.md +0 -217
- package/docs/FAQ.md +0 -174
- package/docs/ONBOARDING.md +0 -111
- package/docs/ORCHESTRATION_RUNTIME.md +0 -173
- package/docs/WALKTHROUGH.md +0 -192
- /package/.cursor/{anchi-kit.config.yaml → anchi-toolkit.config.yaml} +0 -0
|
@@ -29,7 +29,7 @@ argument-hint: [optional: command name]
|
|
|
29
29
|
## Output
|
|
30
30
|
|
|
31
31
|
```
|
|
32
|
-
📚 anchi-
|
|
32
|
+
📚 anchi-toolkit v1.0.0 - Command Reference
|
|
33
33
|
|
|
34
34
|
═══════════ ESSENTIAL (5) ═══════════
|
|
35
35
|
|
|
@@ -55,6 +55,13 @@ argument-hint: [optional: command name]
|
|
|
55
55
|
/integrate "..." Third-party integrations
|
|
56
56
|
/memory Context management
|
|
57
57
|
|
|
58
|
+
═══════════ META (4) ═══════════
|
|
59
|
+
|
|
60
|
+
/config View/edit config
|
|
61
|
+
/audit AI decision logs
|
|
62
|
+
/migrate Preset migration
|
|
63
|
+
/why Explain AI decisions
|
|
64
|
+
|
|
58
65
|
═══════════ QUICK START ═══════════
|
|
59
66
|
|
|
60
67
|
Beginner:
|
|
@@ -96,7 +103,7 @@ Examples:
|
|
|
96
103
|
## Agent & Skill Activation
|
|
97
104
|
|
|
98
105
|
**Primary Agents:**
|
|
99
|
-
- `.
|
|
106
|
+
- `.cursor/agents/docs-manager.md` - Command info
|
|
100
107
|
|
|
101
108
|
**Skills:**
|
|
102
109
|
- `document-skills/` - Help content
|
|
@@ -111,10 +118,10 @@ Examples:
|
|
|
111
118
|
> **AI MUST read orchestration config before execution**
|
|
112
119
|
|
|
113
120
|
```
|
|
114
|
-
1. READ .
|
|
121
|
+
1. READ .cursor/agent-skill-index.yaml
|
|
115
122
|
2. CHECK command_mapping for this command
|
|
116
123
|
3. APPLY skill activation rules
|
|
117
|
-
4. CHECK .
|
|
124
|
+
4. CHECK .cursor/failure-modes.yaml
|
|
118
125
|
5. LOG decision to .ai-audit/
|
|
119
126
|
```
|
|
120
127
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 🧠 Teach AI new skills from the web
|
|
3
|
+
argument-hint: [skill name / tech stack]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /skill-learn - Infinite Knowledge
|
|
7
|
+
|
|
8
|
+
**What:** Crawls documentation and creates a new Skill Module dynamically.
|
|
9
|
+
|
|
10
|
+
## Logic
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
14
|
+
│ 🧠 /skill-learn - KNOWLEDGE ACQUISITION │
|
|
15
|
+
├─────────────────────────────────────────────────────────────┤
|
|
16
|
+
│ │
|
|
17
|
+
│ [1] ANALYZE REQUEST: "Learn Rust" │
|
|
18
|
+
│ ├── Identify Tech: Rust Language │
|
|
19
|
+
│ └── Identify Goal: syntax, best practices, packaging │
|
|
20
|
+
│ │
|
|
21
|
+
│ [2] RESEARCH (Agent: Researcher): │
|
|
22
|
+
│ ├── Search Official Docs (rust-lang.org) │
|
|
23
|
+
│ ├── Search Popular Patterns (Awesome Rust) │
|
|
24
|
+
│ └── Extract: "Do's & Don'ts", "Snippet Patterns" │
|
|
25
|
+
│ │
|
|
26
|
+
│ [3] SYNTHESIZE (Agent: Docs-Manager): │
|
|
27
|
+
│ ├── Template: .cursor/skills/_template.md │
|
|
28
|
+
│ ├── Fill: Rules, File Patterns, Dependencies │
|
|
29
|
+
│ └── Create: .cursor/skills/rust-development/README.md │
|
|
30
|
+
│ │
|
|
31
|
+
│ [4] REGISTER: │
|
|
32
|
+
│ ├── Append to: .cursor/agent-skill-index.yaml │
|
|
33
|
+
│ └── Map to: fullstack-developer (or create new role) │
|
|
34
|
+
│ │
|
|
35
|
+
│ [5] OUTPUT: │
|
|
36
|
+
│ "✅ Learned Skill: Rust Development │
|
|
37
|
+
│ Activated for *.rs files." │
|
|
38
|
+
│ │
|
|
39
|
+
└─────────────────────────────────────────────────────────────┘
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
/skill-learn "Tailwind CSS"
|
|
46
|
+
/skill-learn "Go Fiber Framework"
|
|
47
|
+
/skill-learn "Solidity Smart Contracts"
|
|
48
|
+
```
|
|
@@ -1,135 +1,56 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: 🚀 Start/Resume project with Context Recall
|
|
3
|
+
argument-hint: [optional: new project name]
|
|
3
4
|
---
|
|
4
5
|
|
|
5
|
-
#
|
|
6
|
+
# /start - Project Intelligence
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
>
|
|
9
|
-
> This command has MULTIPLE decision points where you MUST STOP.
|
|
10
|
-
>
|
|
11
|
-
> At each decision point:
|
|
12
|
-
> 1. **ONLY show the question** - No other actions
|
|
13
|
-
> 2. **DO NOT call any tools** in parallel with the question
|
|
14
|
-
> 3. **WAIT for user's number input** before proceeding
|
|
15
|
-
> 4. **DO NOT assume or decide** for the user
|
|
16
|
-
>
|
|
17
|
-
> Decision points:
|
|
18
|
-
> - STEP 1: Ask "1 or 2" (existing vs new project) → STOP
|
|
19
|
-
> - STEP 2B: Ask "1, 2, or 3" (preset selection) → STOP
|
|
8
|
+
**What:** Initialize project or RESUME work with context awareness.
|
|
20
9
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## ▶️ STEP 1: Show Welcome (⛔ STOP HERE)
|
|
24
|
-
|
|
25
|
-
**Show ONLY this, then STOP:**
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
👋 Chào mừng đến với anchi-kit!
|
|
29
|
-
|
|
30
|
-
Tôi sẽ giúp bạn setup dự án. Chỉ cần trả lời 1 câu hỏi:
|
|
31
|
-
|
|
32
|
-
📂 Dự án của bạn là:
|
|
33
|
-
1️⃣ Dự án có sẵn - Đã có code
|
|
34
|
-
2️⃣ Dự án mới - Bắt đầu từ đầu
|
|
35
|
-
|
|
36
|
-
👉 Gõ 1 hoặc 2:
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
⛔ **STOP. Wait for user to type 1 or 2. Do not proceed until user responds.**
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## ▶️ STEP 2A: Existing Project (User typed "1")
|
|
44
|
-
|
|
45
|
-
If user typed 1, proceed with scanning:
|
|
46
|
-
|
|
47
|
-
### Phase 1: Deploy Scout Agents
|
|
48
|
-
Spawn scout agents to scan codebase in parallel.
|
|
49
|
-
|
|
50
|
-
### Phase 2: Activate Skills
|
|
51
|
-
Based on detected tech stack.
|
|
52
|
-
|
|
53
|
-
### Phase 3: Auto-Detect Preset
|
|
54
|
-
Analyze and suggest preset.
|
|
55
|
-
|
|
56
|
-
### Phase 4: Fill Docs
|
|
57
|
-
Generate project documentation.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## ▶️ STEP 2B: New Project (User typed "2") (⛔ STOP HERE)
|
|
62
|
-
|
|
63
|
-
If user typed 2, **show ONLY this, then STOP:**
|
|
10
|
+
## Logic (The "Brain")
|
|
64
11
|
|
|
65
12
|
```
|
|
66
|
-
📂 Bạn chọn: 2️⃣ Dự án mới
|
|
67
|
-
|
|
68
|
-
📋 Chọn Architecture Preset:
|
|
69
|
-
|
|
70
13
|
┌─────────────────────────────────────────────────────────────┐
|
|
71
|
-
│
|
|
72
|
-
│ SQLite | Flat structure | Skip tests OK │
|
|
73
|
-
│ Best for: Prototype, demo, hackathon │
|
|
74
|
-
│ ⏱️ ~5 min setup │
|
|
14
|
+
│ 🧠 /start - PROJECT RECALL │
|
|
75
15
|
├─────────────────────────────────────────────────────────────┤
|
|
76
|
-
│
|
|
77
|
-
│
|
|
78
|
-
│
|
|
79
|
-
│
|
|
80
|
-
|
|
81
|
-
│
|
|
82
|
-
│
|
|
83
|
-
│
|
|
84
|
-
│
|
|
16
|
+
│ │
|
|
17
|
+
│ [1] CHECK: Is this a new project? │
|
|
18
|
+
│ ├── YES → Show Preset Selection (Rapid/Pro/Enterprise) │
|
|
19
|
+
│ └── NO → Activate RECALL MODE │
|
|
20
|
+
│ │
|
|
21
|
+
│ [2] RECALL MODE (The "Wow" Factor): │
|
|
22
|
+
│ ├── READ: .ai-memory/feature_status.json │
|
|
23
|
+
│ ├── READ: .ai-audit/latest.jsonl │
|
|
24
|
+
│ └── ANALYZE: What was the last active task? │
|
|
25
|
+
│ │
|
|
26
|
+
│ [3] OUTPUT: │
|
|
27
|
+
│ "Welcome back! 👋 │
|
|
28
|
+
│ Last time we were working on [Task Name]. │
|
|
29
|
+
│ Status: [In Progress/Done] │
|
|
30
|
+
│ Files: [Active Files] │
|
|
31
|
+
│ │
|
|
32
|
+
│ 👉 Continue? [Y]es / [C]hange Task" │
|
|
33
|
+
│ │
|
|
85
34
|
└─────────────────────────────────────────────────────────────┘
|
|
86
|
-
|
|
87
|
-
👉 Gõ 1, 2, hoặc 3:
|
|
88
35
|
```
|
|
89
36
|
|
|
90
|
-
|
|
37
|
+
## Setup Steps (New Project)
|
|
91
38
|
|
|
92
|
-
|
|
39
|
+
If folder is empty:
|
|
93
40
|
|
|
94
|
-
|
|
41
|
+
1. Detect Tech Stack (Node, Python, Go...)
|
|
42
|
+
2. Suggest Best Preset
|
|
43
|
+
3. Run `npx anchi-toolkit init`
|
|
95
44
|
|
|
96
|
-
|
|
45
|
+
## Memory Schema (For Recall)
|
|
97
46
|
|
|
98
|
-
|
|
99
|
-
2. Initialize project with selected preset
|
|
100
|
-
3. Copy preset-specific .cursorrules
|
|
101
|
-
4. Setup documentation templates
|
|
102
|
-
5. Show completion message
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Agent & Skill Summary
|
|
107
|
-
|
|
108
|
-
| Agent | Role |
|
|
109
|
-
|-------|------|
|
|
110
|
-
| `scout` | Scan codebase |
|
|
111
|
-
| `researcher` | Deep analysis |
|
|
112
|
-
| `planner` | Preset detection |
|
|
113
|
-
| `docs-manager` | Fill templates |
|
|
114
|
-
|
|
115
|
-
| Detected Tech | Skills |
|
|
116
|
-
|---------------|--------|
|
|
117
|
-
| Next.js/React | `frontend-development/` |
|
|
118
|
-
| Prisma/DB | `databases/` |
|
|
119
|
-
| TailwindCSS | `ui-styling/` |
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## Dynamic Orchestration
|
|
124
|
-
|
|
125
|
-
> **AI MUST read orchestration config before execution**
|
|
47
|
+
AI looks for `.ai-memory/session.json`:
|
|
126
48
|
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"last_active": "2024-12-27T10:00:00Z",
|
|
52
|
+
"current_task": "Dashboard UI Implementation",
|
|
53
|
+
"active_files": ["src/dashboard.tsx", "src/api.ts"],
|
|
54
|
+
"next_step": "Implement chart component"
|
|
55
|
+
}
|
|
127
56
|
```
|
|
128
|
-
1. READ .antigravity/agent-skill-index.yaml
|
|
129
|
-
2. CHECK command_mapping for this command
|
|
130
|
-
3. APPLY skill activation rules
|
|
131
|
-
4. CHECK .antigravity/failure-modes.yaml
|
|
132
|
-
5. LOG decision to .ai-audit/
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
📖 [docs/ORCHESTRATION_RUNTIME.md](../docs/ORCHESTRATION_RUNTIME.md)
|
|
@@ -92,11 +92,11 @@ argument-hint: [optional: specific area]
|
|
|
92
92
|
2. Update 3 outdated dependencies
|
|
93
93
|
|
|
94
94
|
💡 Suggestions:
|
|
95
|
-
• /test
|
|
96
|
-
• /
|
|
97
|
-
• /
|
|
95
|
+
• /test --coverage - View coverage details
|
|
96
|
+
• /do "update dependencies"
|
|
97
|
+
• /do "payment-integration Phase 3"
|
|
98
98
|
|
|
99
|
-
📌 Next: /
|
|
99
|
+
📌 Next: /do "continue payment integration"
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
---
|
|
@@ -119,8 +119,8 @@ argument-hint: [optional: specific area]
|
|
|
119
119
|
## Agent & Skill Activation
|
|
120
120
|
|
|
121
121
|
**Agents:**
|
|
122
|
-
- `.
|
|
123
|
-
- `.
|
|
122
|
+
- `.cursor/agents/project-manager.md` - Status overview
|
|
123
|
+
- `.cursor/agents/scout.md` - Code analysis
|
|
124
124
|
|
|
125
125
|
**Skills:**
|
|
126
126
|
- `devops/` - Build and deploy
|
|
@@ -153,10 +153,10 @@ status:
|
|
|
153
153
|
> **AI MUST read orchestration config before execution**
|
|
154
154
|
|
|
155
155
|
```
|
|
156
|
-
1. READ .
|
|
156
|
+
1. READ .cursor/agent-skill-index.yaml
|
|
157
157
|
2. CHECK command_mapping for this command
|
|
158
158
|
3. APPLY skill activation rules
|
|
159
|
-
4. CHECK .
|
|
159
|
+
4. CHECK .cursor/failure-modes.yaml
|
|
160
160
|
5. LOG decision to .ai-audit/
|
|
161
161
|
```
|
|
162
162
|
|
|
@@ -61,14 +61,14 @@ argument-hint: [optional: steps to undo or commit hash]
|
|
|
61
61
|
╔═════════════════════════════════════════════════════════════╗
|
|
62
62
|
║ # │ Time │ Action │ Files Changed ║
|
|
63
63
|
╠═════════════════════════════════════════════════════════════╣
|
|
64
|
-
║ 1 │ 2 min │ /
|
|
65
|
-
║ 2 │ 10 min │ /generate
|
|
64
|
+
║ 1 │ 2 min │ /do LoginForm │ 3 files ║
|
|
65
|
+
║ 2 │ 10 min │ /generate --api │ 2 files ║
|
|
66
66
|
║ 3 │ 15 min │ /theme dark │ 2 files ║
|
|
67
|
-
║ 4 │ 30 min │ /
|
|
67
|
+
║ 4 │ 30 min │ /do "feature" │ 8 files ║
|
|
68
68
|
╚═════════════════════════════════════════════════════════════╝
|
|
69
69
|
|
|
70
70
|
📋 Latest Action Details (#1):
|
|
71
|
-
Command: /
|
|
71
|
+
Command: /do "Add LoginForm"
|
|
72
72
|
Time: 2 minutes ago
|
|
73
73
|
|
|
74
74
|
Files to restore:
|
|
@@ -132,7 +132,7 @@ argument-hint: [optional: steps to undo or commit hash]
|
|
|
132
132
|
## Agent & Skill Activation
|
|
133
133
|
|
|
134
134
|
**Agents:**
|
|
135
|
-
- `.
|
|
135
|
+
- `.cursor/agents/git-manager.md` - Git operations
|
|
136
136
|
|
|
137
137
|
**Skills:**
|
|
138
138
|
- `devops/` - Version control
|
|
@@ -156,10 +156,10 @@ undo:
|
|
|
156
156
|
> **AI MUST read orchestration config before execution**
|
|
157
157
|
|
|
158
158
|
```
|
|
159
|
-
1. READ .
|
|
159
|
+
1. READ .cursor/agent-skill-index.yaml
|
|
160
160
|
2. CHECK command_mapping for this command
|
|
161
161
|
3. APPLY skill activation rules
|
|
162
|
-
4. CHECK .
|
|
162
|
+
4. CHECK .cursor/failure-modes.yaml
|
|
163
163
|
5. LOG decision to .ai-audit/
|
|
164
164
|
```
|
|
165
165
|
|
|
@@ -38,6 +38,7 @@ agents:
|
|
|
38
38
|
- error_analysis
|
|
39
39
|
- performance_diagnosis
|
|
40
40
|
- log_analysis
|
|
41
|
+
- interactive_probing # Inject logs -> Test -> Analyze
|
|
41
42
|
boundaries:
|
|
42
43
|
- NOT: code_writing → fullstack-developer
|
|
43
44
|
primary_skills:
|
|
@@ -141,6 +142,7 @@ agents:
|
|
|
141
142
|
- devops
|
|
142
143
|
typical_commands:
|
|
143
144
|
- /do (deployment-related)
|
|
145
|
+
- /demo
|
|
144
146
|
|
|
145
147
|
git-manager:
|
|
146
148
|
capabilities:
|
|
@@ -183,6 +185,7 @@ agents:
|
|
|
183
185
|
- web-search
|
|
184
186
|
typical_commands:
|
|
185
187
|
- /scout --external
|
|
188
|
+
- /skill-learn
|
|
186
189
|
|
|
187
190
|
scout:
|
|
188
191
|
capabilities:
|
|
@@ -197,6 +200,7 @@ agents:
|
|
|
197
200
|
- task_breakdown
|
|
198
201
|
- estimation
|
|
199
202
|
- dependency_analysis
|
|
203
|
+
- parallel_workstream_planning
|
|
200
204
|
typical_commands:
|
|
201
205
|
- /do --plan-only
|
|
202
206
|
|
|
@@ -207,6 +211,36 @@ agents:
|
|
|
207
211
|
- team_coordination
|
|
208
212
|
typical_commands:
|
|
209
213
|
- /status
|
|
214
|
+
|
|
215
|
+
# ─────────────────────── Optimization ───────────────────────
|
|
216
|
+
failure-analyst:
|
|
217
|
+
capabilities:
|
|
218
|
+
- root_cause_analysis
|
|
219
|
+
- pattern_recognition
|
|
220
|
+
typical_commands:
|
|
221
|
+
- /audit
|
|
222
|
+
|
|
223
|
+
rules-architect:
|
|
224
|
+
capabilities:
|
|
225
|
+
- rule_definition
|
|
226
|
+
- failure_mode_prevention
|
|
227
|
+
escalation_from:
|
|
228
|
+
- failure-analyst
|
|
229
|
+
|
|
230
|
+
# ─────────────────────── Intelligence ───────────────────────
|
|
231
|
+
graph-architect:
|
|
232
|
+
capabilities:
|
|
233
|
+
- dependency_analysis
|
|
234
|
+
- graph_maintenance
|
|
235
|
+
typical_commands:
|
|
236
|
+
- /do (refactor)
|
|
237
|
+
|
|
238
|
+
trend-watcher:
|
|
239
|
+
capabilities:
|
|
240
|
+
- trend_monitoring
|
|
241
|
+
- skill_updates
|
|
242
|
+
typical_commands:
|
|
243
|
+
- /skill-learn --auto
|
|
210
244
|
|
|
211
245
|
# ═══════════════════════════════════════════════════════════════
|
|
212
246
|
# SKILL INDEX
|
|
@@ -385,3 +419,8 @@ command_mapping:
|
|
|
385
419
|
default: docs-manager
|
|
386
420
|
skills:
|
|
387
421
|
- document-skills
|
|
422
|
+
|
|
423
|
+
/config:
|
|
424
|
+
default: project-manager
|
|
425
|
+
skills:
|
|
426
|
+
- document-skills
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: graph-architect
|
|
3
|
+
description: Agent chuyên gia về cấu trúc đồ thị và phân tích phụ thuộc (Dependency Graph).
|
|
4
|
+
role: Knowledge Graph Manager
|
|
5
|
+
capabilities:
|
|
6
|
+
- dependency_analysis
|
|
7
|
+
- impact_assessment
|
|
8
|
+
- refactor_planning
|
|
9
|
+
- circular_dependency_detection
|
|
10
|
+
|
|
11
|
+
boundaries:
|
|
12
|
+
- condition: "Always ensure graph consistency before committing changes"
|
|
13
|
+
- condition: "Do not modify code logic, only structure analysis"
|
|
14
|
+
|
|
15
|
+
instruction: |
|
|
16
|
+
Bạn là Graph Architect. Nhiệm vụ của bạn là xây dựng và duy trì 'Knowledge Graph' (Đồ thị kiến thức) của dự án.
|
|
17
|
+
|
|
18
|
+
Khi dev muốn refactor một module lớn, bạn phải:
|
|
19
|
+
1. Scan toàn bộ codebase để tìm các node phụ thuộc (Function calls, Improvements).
|
|
20
|
+
2. Vẽ ra bản đồ tác động (Impact Map).
|
|
21
|
+
3. Cảnh báo nếu thay đổi A làm gãy B, C ở file khác.
|
|
22
|
+
|
|
23
|
+
Format báo cáo:
|
|
24
|
+
```mermaid
|
|
25
|
+
graph TD
|
|
26
|
+
A[AuthService] -->|calls| B[Database]
|
|
27
|
+
C[LoginComponent] -->|imports| A
|
|
28
|
+
D[RegisterComponent] -->|imports| A
|
|
29
|
+
```
|
|
30
|
+
---
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: trend-watcher
|
|
3
|
+
description: Agent chuyên theo dõi xu hướng công nghệ và cập nhật kiến thức cho hệ thống.
|
|
4
|
+
role: Tech Trend Scout
|
|
5
|
+
capabilities:
|
|
6
|
+
- web_scraping (release notes)
|
|
7
|
+
- skill_synthesis
|
|
8
|
+
- breaking_change_detection
|
|
9
|
+
- documentation_update
|
|
10
|
+
|
|
11
|
+
boundaries:
|
|
12
|
+
- condition: "Never update dependencies automatically if 'major version' changes without approval"
|
|
13
|
+
- condition: "Verify source credibility (Official Docs, GitHub Releases)"
|
|
14
|
+
|
|
15
|
+
instruction: |
|
|
16
|
+
Bạn là Trend Watcher. Nhiệm vụ của bạn là đảm bảo kiến thức của Anchi Toolkit không bao giờ lỗi thời.
|
|
17
|
+
|
|
18
|
+
Quy trình làm việc (Weekly):
|
|
19
|
+
1. Check version mới nhất của các thư viện core (Next.js, React, Tailwind).
|
|
20
|
+
2. Đọc Changelog/Release Notes.
|
|
21
|
+
3. Nếu có Breaking Change hoặc Feature mới hay ho -> Tạo Pull Request để update vào thư mục `.cursor/skills/`.
|
|
22
|
+
|
|
23
|
+
Ví dụ: "Next.js 15 ra mắt `run` prop mới" -> Update skill `nextjs-development`.
|
|
24
|
+
---
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: ⚡⚡ View and edit anchi-toolkit configuration
|
|
3
|
+
argument-hint: [optional: --edit | --reset | key=value]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /config - Configuration Management
|
|
7
|
+
|
|
8
|
+
**What:** View and edit anchi-toolkit.config.yaml settings.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
```
|
|
12
|
+
/config # Show current config
|
|
13
|
+
/config --edit # Open config in editor
|
|
14
|
+
/config preset=professional # Change specific setting
|
|
15
|
+
/config --reset # Reset to defaults
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 💰 Model Selection
|
|
21
|
+
|
|
22
|
+
| Action | Recommended Model | Cost |
|
|
23
|
+
|--------|-------------------|------|
|
|
24
|
+
| View config | GPT-5.1 Codex Mini | 💚 Low |
|
|
25
|
+
| Edit config | GPT-5.1 Codex Mini | 💚 Low |
|
|
26
|
+
|
|
27
|
+
> Config operations are simple - always use cheapest models.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Output
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
⚙️ /config
|
|
35
|
+
|
|
36
|
+
═══════════ ANCHI-TOOLKIT CONFIG ═══════════
|
|
37
|
+
|
|
38
|
+
📂 File: .cursor/anchi-toolkit.config.yaml
|
|
39
|
+
|
|
40
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
41
|
+
│ CURRENT SETTINGS │
|
|
42
|
+
├─────────────────────────────────────────────────────────────┤
|
|
43
|
+
│ │
|
|
44
|
+
│ 📋 Preset: professional │
|
|
45
|
+
│ 🤖 Agents: all (19 agents) │
|
|
46
|
+
│ 🛠️ Skills: all (35 skills) │
|
|
47
|
+
│ 📦 Commands: all (18 commands) │
|
|
48
|
+
│ │
|
|
49
|
+
│ ⚙️ Settings: │
|
|
50
|
+
│ ├── auto_commit: false │
|
|
51
|
+
│ ├── auto_test: true │
|
|
52
|
+
│ ├── language: vi │
|
|
53
|
+
│ └── model_preference: cost-optimized │
|
|
54
|
+
│ │
|
|
55
|
+
└─────────────────────────────────────────────────────────────┘
|
|
56
|
+
|
|
57
|
+
💡 Quick Commands:
|
|
58
|
+
/config preset=rapid # Switch preset
|
|
59
|
+
/config auto_commit=true # Enable auto-commit
|
|
60
|
+
/config --edit # Full editor mode
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Editable Settings
|
|
66
|
+
|
|
67
|
+
| Key | Values | Default |
|
|
68
|
+
|-----|--------|---------|
|
|
69
|
+
| `preset` | rapid, professional, enterprise | professional |
|
|
70
|
+
| `auto_commit` | true, false | false |
|
|
71
|
+
| `auto_test` | true, false | true |
|
|
72
|
+
| `language` | en, vi | vi |
|
|
73
|
+
| `model_preference` | cost-optimized, balanced, quality | cost-optimized |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Flags
|
|
78
|
+
|
|
79
|
+
| Flag | Action |
|
|
80
|
+
|------|--------|
|
|
81
|
+
| `--edit` | Open config file in editor |
|
|
82
|
+
| `--reset` | Reset to default settings |
|
|
83
|
+
| `--show-all` | Show all available options |
|
|
84
|
+
| `--validate` | Validate config syntax |
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Config File Location
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
.cursor/anchi-toolkit.config.yaml # Cursor AI
|
|
92
|
+
.antigravity/anchi-toolkit.config.yaml # Antigravity
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Example Config
|
|
98
|
+
|
|
99
|
+
```yaml
|
|
100
|
+
# anchi-toolkit.config.yaml
|
|
101
|
+
preset: professional
|
|
102
|
+
|
|
103
|
+
agents: all # or list: [fullstack-developer, debugger]
|
|
104
|
+
skills: all # or list: [databases, frontend-development]
|
|
105
|
+
commands: all
|
|
106
|
+
|
|
107
|
+
settings:
|
|
108
|
+
auto_commit: false
|
|
109
|
+
auto_test: true
|
|
110
|
+
language: vi
|
|
111
|
+
model_preference: cost-optimized
|
|
112
|
+
|
|
113
|
+
overrides:
|
|
114
|
+
test_coverage_threshold: 80
|
|
115
|
+
max_file_changes: 20
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Agent & Skill Activation
|
|
121
|
+
|
|
122
|
+
**Primary Agents:**
|
|
123
|
+
- `.cursor/agents/project-manager.md` - Config management
|
|
124
|
+
|
|
125
|
+
**Skills:**
|
|
126
|
+
- `document-skills/` - Config parsing
|
|
127
|
+
|
|
128
|
+
> Config uses minimal AI - mostly file operations.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 🔄 Dynamic Orchestration
|
|
133
|
+
|
|
134
|
+
> **AI MUST read orchestration config before execution**
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
1. READ .cursor/agent-skill-index.yaml
|
|
138
|
+
2. CHECK command_mapping for this command
|
|
139
|
+
3. APPLY skill activation rules
|
|
140
|
+
4. CHECK .cursor/failure-modes.yaml
|
|
141
|
+
5. LOG decision to .ai-audit/
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
📖 [docs/ORCHESTRATION_RUNTIME.md](../docs/ORCHESTRATION_RUNTIME.md)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 📺 One-Click Demo / Preview
|
|
3
|
+
argument-hint: [optional: port]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /demo - Instant Preview
|
|
7
|
+
|
|
8
|
+
**What:** Auto-detects and runs the project dev server.
|
|
9
|
+
|
|
10
|
+
## Logic
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
14
|
+
│ 📺 /demo - AUTO LAUNCHER │
|
|
15
|
+
├─────────────────────────────────────────────────────────────┤
|
|
16
|
+
│ │
|
|
17
|
+
│ [1] SCAN: package.json scripts │
|
|
18
|
+
│ ├── Look for: "dev", "start", "serve", "preview" │
|
|
19
|
+
│ └── Priority: dev > start > serve │
|
|
20
|
+
│ │
|
|
21
|
+
│ [2] CHECK PORT: │
|
|
22
|
+
│ ├── Default: 3000, 8080, 5173 │
|
|
23
|
+
│ └── Check if port is in use (kill if needed?) │
|
|
24
|
+
│ │
|
|
25
|
+
│ [3] EXECUTE: │
|
|
26
|
+
│ Run detected command (e.g., `npm run dev`) │
|
|
27
|
+
│ │
|
|
28
|
+
│ [4] VERIFY: │
|
|
29
|
+
│ Wait for "Ready" or "Listening" in stdout │
|
|
30
|
+
│ │
|
|
31
|
+
│ [5] OUTPUT: │
|
|
32
|
+
│ "🚀 Project is LIVE! │
|
|
33
|
+
│ 👉 http://localhost:3000 │
|
|
34
|
+
│ (Ctrl+C to stop)" │
|
|
35
|
+
│ │
|
|
36
|
+
└─────────────────────────────────────────────────────────────┘
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Agent Capabilities
|
|
40
|
+
|
|
41
|
+
- **Agent:** `devops-engineer` or `fullstack-developer`
|
|
42
|
+
- **Skill:** `terminal-management`
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
/demo # Auto-detect and run
|
|
48
|
+
/demo 8080 # Run on specific port (if supported)
|
|
49
|
+
/demo --prod # Run production build
|
|
50
|
+
```
|