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.
Files changed (56) hide show
  1. package/.ai-audit/README.md +53 -0
  2. package/.ai-memory/README.md +137 -0
  3. package/.ai-memory/context.json +26 -0
  4. package/.ai-memory/decisions.json +3 -0
  5. package/.antigravity/agent-skill-index.yaml +24 -0
  6. package/.antigravity/anchi-toolkit.config.yaml +12 -0
  7. package/.antigravity/docs/README.md +9 -0
  8. package/.antigravity/skills/_template.md +30 -0
  9. package/.antigravity/team.yaml +154 -0
  10. package/.antigravity/workflows/config.md +144 -0
  11. package/.antigravity/workflows/demo.md +50 -0
  12. package/.antigravity/workflows/help.md +11 -4
  13. package/.antigravity/workflows/skill-learn.md +48 -0
  14. package/.antigravity/workflows/start.md +38 -117
  15. package/.antigravity/workflows/status.md +8 -8
  16. package/.antigravity/workflows/undo.md +7 -7
  17. package/.cursor/agent-skill-index.yaml +39 -0
  18. package/.cursor/agents/graph-architect.md +30 -0
  19. package/.cursor/agents/trend-watcher.md +24 -0
  20. package/.cursor/commands/config.md +144 -0
  21. package/.cursor/commands/demo.md +50 -0
  22. package/.cursor/commands/do.md +127 -90
  23. package/.cursor/commands/help.md +23 -16
  24. package/.cursor/commands/skill-learn.md +48 -0
  25. package/.cursor/commands/start.md +38 -117
  26. package/.cursor/commands/status.md +19 -19
  27. package/.cursor/commands/undo.md +19 -19
  28. package/.cursor/orchestration.yaml +18 -0
  29. package/.cursor/skills/_template.md +30 -0
  30. package/ANTIGRAVITY.md +84 -0
  31. package/CURSOR.md +50 -157
  32. package/LICENSE +17 -14
  33. package/README.md +64 -89
  34. package/docs/ALL_COMMANDS.md +31 -73
  35. package/docs/CI_CD.md +44 -0
  36. package/docs/COMPARISON.md +65 -0
  37. package/docs/ROADMAP.md +45 -161
  38. package/docs/WORKFLOW.md +56 -317
  39. package/package.json +9 -2
  40. package/presets/ci-cd/ai-review.yml +49 -0
  41. package/scripts/install-hooks.ps1 +21 -7
  42. package/scripts/install-hooks.sh +18 -3
  43. package/src/cli.js +111 -59
  44. package/src/commands/clean.js +87 -0
  45. package/src/commands/doctor.js +88 -21
  46. package/src/commands/init.js +22 -2
  47. package/src/commands/uninstall.js +17 -2
  48. package/src/lib/configManager.js +20 -5
  49. package/src/lib/memoryManager.js +7 -4
  50. package/docs/CODEBASE.md +0 -178
  51. package/docs/COMMAND_MAPPING.md +0 -217
  52. package/docs/FAQ.md +0 -174
  53. package/docs/ONBOARDING.md +0 -111
  54. package/docs/ORCHESTRATION_RUNTIME.md +0 -173
  55. package/docs/WALKTHROUGH.md +0 -192
  56. /package/.cursor/{anchi-kit.config.yaml β†’ anchi-toolkit.config.yaml} +0 -0
@@ -8,6 +8,7 @@ argument-hint: [what you want to do]
8
8
  **What:** One command for everything. AI automatically decides the best approach.
9
9
 
10
10
  ## Usage
11
+
11
12
  ```
12
13
  /do "Add user login with Google OAuth"
13
14
  /do "Fix the checkout bug"
@@ -18,12 +19,12 @@ argument-hint: [what you want to do]
18
19
 
19
20
  ## πŸ’° Model Selection (Cost Optimization)
20
21
 
21
- | Task Type | Recommended Model | Cost | When |
22
- |-----------|-------------------|------|------|
23
- | **Simple** (typo, rename) | GPT-5.1 Codex Mini | πŸ’š Low | Quick fixes |
24
- | **Medium** (feature, fix) | Sonnet 4.5 | πŸ’› Medium | Standard dev |
25
- | **Complex** (architecture) | Opus 4.5 | πŸ”΄ High | Deep reasoning |
26
- | **Large codebase** (>200 files) | Gemini 3 Flash | πŸ’š Low | Big context |
22
+ | Task Type | Recommended Model | Cost | When |
23
+ | ------------------------------- | ------------------ | --------- | -------------- |
24
+ | **Simple** (typo, rename) | GPT-5.1 Codex Mini | πŸ’š Low | Quick fixes |
25
+ | **Medium** (feature, fix) | Sonnet 4.5 | πŸ’› Medium | Standard dev |
26
+ | **Complex** (architecture) | Opus 4.5 | πŸ”΄ High | Deep reasoning |
27
+ | **Large codebase** (>200 files) | Gemini 3 Flash | πŸ’š Low | Big context |
27
28
 
28
29
  ### Auto-Detection Logic
29
30
 
@@ -53,13 +54,14 @@ argument-hint: [what you want to do]
53
54
  β”‚ └── Is it COMPLEX? β†’ Multi-phase with reviews β”‚
54
55
  β”‚ ↓ β”‚
55
56
  β”‚ AUTO WORKFLOW: β”‚
56
- β”‚ [1] Load context (/memory:load) β”‚
57
+ β”‚ [1] Active Memory Load (Context-Aware) β”‚
57
58
  β”‚ [2] Scout codebase (/scout) β”‚
58
- β”‚ [3] Plan if needed β”‚
59
- β”‚ [4] Generate boilerplate β”‚
59
+ β”‚ [3] Plan (Parallel Workstreams if needed) β”‚
60
+ β”‚ [4] Interactive Check (if --interactive) β”‚
60
61
  β”‚ [5] Implement β”‚
61
- β”‚ [6] Fix errors β”‚
62
+ β”‚ [6] Fix errors (Interactive Probing) β”‚
62
63
  β”‚ [7] Save context (/memory:save) β”‚
64
+ β”‚ [8] Post-Mortem (if failure) β”‚
63
65
  β”‚ ↓ β”‚
64
66
  β”‚ βœ… DONE! β”‚
65
67
  β”‚ β”‚
@@ -70,15 +72,17 @@ argument-hint: [what you want to do]
70
72
 
71
73
  ## Flags (Optional)
72
74
 
73
- | Flag | Effect |
74
- |------|--------|
75
- | `--fast` | Skip reviews, quick implementation |
76
- | `--careful` | Extra validation, more reviews |
77
- | `--plan-only` | Just create plan, don't implement |
78
- | `--no-commit` | Don't auto-commit |
79
- | `--parallel` | Run phases in parallel |
75
+ | Flag | Effect |
76
+ | --------------- | ---------------------------------------------------- |
77
+ | `--fast` | Skip reviews, quick implementation |
78
+ | `--careful` | Extra validation, more reviews |
79
+ | `--plan-only` | Just create plan, don't implement |
80
+ | `--no-commit` | Don't auto-commit |
81
+ | `--parallel` | Run phases in parallel |
82
+ | `--interactive` | Pause for user input key steps ([C]ontinue/[M]odify) |
80
83
 
81
84
  **Examples:**
85
+
82
86
  ```
83
87
  /do "quick fix typo" --fast
84
88
  /do "payment integration" --careful
@@ -91,58 +95,48 @@ argument-hint: [what you want to do]
91
95
 
92
96
  AI detects mode from your description:
93
97
 
94
- | Keywords | Mode |
95
- |----------|------|
96
- | fix, bug, error, broken, issue | πŸ”§ Fix Mode |
97
- | add, create, new, implement, build | ✨ Feature Mode |
98
+ | Keywords | Mode |
99
+ | ---------------------------------- | ---------------- |
100
+ | fix, bug, error, broken, issue | πŸ”§ Fix Mode |
101
+ | add, create, new, implement, build | ✨ Feature Mode |
98
102
  | refactor, optimize, improve, clean | ♻️ Refactor Mode |
99
- | update, change, modify | πŸ“ Update Mode |
103
+ | update, change, modify | πŸ“ Update Mode |
100
104
 
101
105
  ---
102
106
 
103
- ## Output
104
-
105
- ```
106
- 🎯 /do analyzing...
107
-
108
- πŸ“‹ Detected: NEW FEATURE
109
- πŸ“Š Complexity: Medium
110
- 🎯 Approach: Plan β†’ Implement β†’ Test
107
+ ## Output Format (Professional Reporting)
111
108
 
112
- ═══════════ WORKFLOW ═══════════
109
+ By default, use **Selective Transparency**. Show key roles and decisions, but hide verbose technical steps.
113
110
 
114
- [1/6] 🧠 Loading context...
115
- βœ… Found previous session
111
+ ### βœ… Success Case
116
112
 
117
- [2/6] πŸ” Scouting codebase...
118
- βœ… Found 5 related files
119
-
120
- [3/6] πŸ“‹ Creating plan...
121
- βœ… Plan: 3 files to create, 2 to modify
122
-
123
- [4/6] πŸ“ Generating boilerplate...
124
- βœ… Created: LoginPage, AuthAPI, AuthService
125
-
126
- [5/6] πŸ’» Implementing...
127
- βœ… Completed: Google OAuth flow
128
-
129
- [6/6] πŸ”§ Fixing issues...
130
- βœ… Fixed: 2 TypeScript errors
113
+ ```
114
+ 🎯 Goal: Implement Google OAuth
115
+ πŸ€– Orchestration:
116
+ β€’ Agent: `Fullstack Dev` (+ `Security Auditor` for auth check)
117
+ β€’ Risk: πŸ›‘οΈ High (Auth modification) - Approved via policy.
118
+ πŸ“ Execution:
119
+ β€’ Created `src/services/auth.service.ts`
120
+ β€’ Updated `src/pages/login.tsx`
121
+ βœ… Result: Authentication flow implemented and verified.
122
+ ```
131
123
 
132
- ═══════════ RESULT ═══════════
124
+ ### ⚠️ Risk/Approval Case
133
125
 
134
- βœ… /do completed!
126
+ ```
127
+ 🎯 Task: Delete user database table
128
+ ⚠️ RISK: Critical (Data Loss)
129
+ ❓ Approval Required: This will wipe production data.
130
+ πŸ‘‰ [Y]es / [N]o ?
131
+ ```
135
132
 
136
- πŸ“Š Summary:
137
- β€’ Created: 3 files
138
- β€’ Modified: 2 files
139
- β€’ Lines: +250, -30
140
- β€’ Time: 8 minutes
133
+ ### ❌ Failure Case
141
134
 
142
- πŸ“Œ Next:
143
- β€’ /test - Run tests
144
- β€’ /commit - Save changes
145
- β€’ /do "next feature" - Continue
135
+ ```
136
+ 🎯 Task: Fix login bug
137
+ ❌ Failed: Could not resolve dependency `better-auth`.
138
+ πŸ” Analysis: Package version mismatch.
139
+ πŸ’‘ Suggestion: Run `npm install better-auth@latest`
146
140
  ```
147
141
 
148
142
  ---
@@ -150,6 +144,7 @@ AI detects mode from your description:
150
144
  ## Modes
151
145
 
152
146
  ### πŸ”§ Fix Mode
147
+
153
148
  ```
154
149
  /do "Fix the login button not working"
155
150
 
@@ -160,6 +155,7 @@ AI detects mode from your description:
160
155
  ```
161
156
 
162
157
  ### ✨ Feature Mode
158
+
163
159
  ```
164
160
  /do "Add user dashboard"
165
161
 
@@ -170,6 +166,7 @@ AI detects mode from your description:
170
166
  ```
171
167
 
172
168
  ### ♻️ Refactor Mode
169
+
173
170
  ```
174
171
  /do "Refactor API error handling"
175
172
 
@@ -183,11 +180,11 @@ AI detects mode from your description:
183
180
 
184
181
  ## Preset Integration
185
182
 
186
- | Preset | Default Behavior |
187
- |--------|------------------|
188
- | Rapid | --fast (skip reviews) |
189
- | Professional | Standard + tests |
190
- | Enterprise | --careful (full reviews) |
183
+ | Preset | Default Behavior |
184
+ | ------------ | ------------------------ |
185
+ | Rapid | --fast (skip reviews) |
186
+ | Professional | Standard + tests |
187
+ | Enterprise | --careful (full reviews) |
191
188
 
192
189
  ---
193
190
 
@@ -195,29 +192,29 @@ AI detects mode from your description:
195
192
 
196
193
  ### Agents (Auto-Selected Based on Task)
197
194
 
198
- | Task Type | Primary Agent | Support Agents |
199
- |-----------|---------------|----------------|
200
- | **Feature** | `fullstack-developer.md` | `planner.md`, `brainstormer.md` |
201
- | **Fix/Debug** | `debugger.md` | `code-reviewer.md` |
202
- | **Refactor** | `code-reviewer.md` | `fullstack-developer.md` |
203
- | **UI Work** | `ui-ux-designer.md` | `design-system-architect.md` |
204
- | **API Work** | `fullstack-developer.md` | `database-admin.md` |
205
- | **Complex** | `planner.md` | `researcher.md`, `brainstormer.md` |
195
+ | Task Type | Primary Agent | Support Agents |
196
+ | ------------- | ------------------------ | ---------------------------------- |
197
+ | **Feature** | `fullstack-developer.md` | `planner.md`, `brainstormer.md` |
198
+ | **Fix/Debug** | `debugger.md` | `code-reviewer.md` |
199
+ | **Refactor** | `code-reviewer.md` | `fullstack-developer.md` |
200
+ | **UI Work** | `ui-ux-designer.md` | `design-system-architect.md` |
201
+ | **API Work** | `fullstack-developer.md` | `database-admin.md` |
202
+ | **Complex** | `planner.md` | `researcher.md`, `brainstormer.md` |
206
203
 
207
204
  ### Skills (Auto-Activated Based on Tech Detection)
208
205
 
209
- | Detected Tech | Skills Activated |
210
- |---------------|------------------|
211
- | React/Next.js | `frontend-development/`, `web-frameworks/` |
212
- | Node/Express | `backend-development/`, `web-frameworks/` |
213
- | Prisma/DB | `databases/`, `backend-development/` |
214
- | Tailwind | `ui-styling/`, `aesthetic/` |
215
- | TypeScript | `frontend-development/`, `backend-development/` |
216
- | DDD Pattern | `ddd-modular-monolith/` |
217
- | Testing | `debugging/`, `code-review/` |
218
- | AI/ML | `ai-multimodal/`, `claude-code/` |
219
- | Mobile | `mobile-development/` |
220
- | 3D/Three.js | `threejs/` |
206
+ | Detected Tech | Skills Activated |
207
+ | ------------- | ----------------------------------------------- |
208
+ | React/Next.js | `frontend-development/`, `web-frameworks/` |
209
+ | Node/Express | `backend-development/`, `web-frameworks/` |
210
+ | Prisma/DB | `databases/`, `backend-development/` |
211
+ | Tailwind | `ui-styling/`, `aesthetic/` |
212
+ | TypeScript | `frontend-development/`, `backend-development/` |
213
+ | DDD Pattern | `ddd-modular-monolith/` |
214
+ | Testing | `debugging/`, `code-review/` |
215
+ | AI/ML | `ai-multimodal/`, `claude-code/` |
216
+ | Mobile | `mobile-development/` |
217
+ | 3D/Three.js | `threejs/` |
221
218
 
222
219
  ### Auto-Activation Logic
223
220
 
@@ -230,7 +227,7 @@ AI detects mode from your description:
230
227
  β”‚
231
228
  [ACTIVATE]
232
229
  β”œβ”€β”€ Agents: fullstack-developer, planner
233
- β”œβ”€β”€ Skills:
230
+ β”œβ”€β”€ Skills:
234
231
  β”‚ β”œβ”€β”€ frontend-development/
235
232
  β”‚ β”œβ”€β”€ backend-development/
236
233
  β”‚ β”œβ”€β”€ databases/
@@ -240,11 +237,11 @@ AI detects mode from your description:
240
237
 
241
238
  ### Mode-Specific Activation
242
239
 
243
- | Flag | Additional Agents | Additional Skills |
244
- |------|-------------------|-------------------|
245
- | `--careful` | `code-reviewer.md`, `tester.md` | `code-review/`, `debugging/` |
246
- | `--fast` | (minimal) | (minimal) |
247
- | `--plan-only` | `planner.md`, `researcher.md` | `planning/`, `research/` |
240
+ | Flag | Additional Agents | Additional Skills |
241
+ | ------------- | ------------------------------- | ---------------------------- |
242
+ | `--careful` | `code-reviewer.md`, `tester.md` | `code-review/`, `debugging/` |
243
+ | `--fast` | (minimal) | (minimal) |
244
+ | `--plan-only` | `planner.md`, `researcher.md` | `planning/`, `research/` |
248
245
 
249
246
  ---
250
247
 
@@ -268,7 +265,7 @@ Total: 40+ commands β†’ 1 command
268
265
 
269
266
  ```yaml
270
267
  do:
271
- default_mode: auto # auto, fast, careful
268
+ default_mode: auto # auto, fast, careful
272
269
  auto_commit: false
273
270
  auto_test: true
274
271
  show_plan: true
@@ -279,11 +276,43 @@ do:
279
276
 
280
277
  ---
281
278
 
279
+ ---
280
+
281
+ ## πŸš€ Advanced Capabilities (New)
282
+
283
+ ### 🧠 Active Memory
284
+
285
+ Instead of loading full context, AI now uses **Context-Aware Retrieval**:
286
+
287
+ - **/do matches keywords** β†’ Queries `context.json` specifically for related decisions.
288
+ - **Reduces noise** β†’ Faster processing, higher accuracy.
289
+
290
+ ### πŸ”„ Self-Correction Loop
291
+
292
+ If a task fails repeatedly (>2 times):
293
+
294
+ 1. **Post-Mortem Chain** activates.
295
+ 2. AI analyzes root cause.
296
+ 3. Updates `failure-modes.yaml` with a new rule.
297
+ 4. Future tasks will AVOID this same mistake.
298
+
299
+ ### πŸ•΅οΈ Interactive Debugging
300
+
301
+ Debugger agent now has **Probing** capability:
302
+
303
+ 1. Inject `console.log` probes.
304
+ 2. Run test to capture dynamic state.
305
+ 3. Analyze output.
306
+ 4. Remove probes and apply fix.
307
+
308
+ ---
309
+
282
310
  ## πŸ”„ Dynamic Orchestration (RUNTIME REQUIRED)
283
311
 
284
312
  > **AI MUST execute this logic BEFORE implementation**
285
313
 
286
314
  ### Step 1: Load Config
315
+
287
316
  ```
288
317
  READ: .cursor/agent-skill-index.yaml
289
318
  READ: .cursor/orchestration.yaml
@@ -291,6 +320,7 @@ READ: .cursor/failure-modes.yaml
291
320
  ```
292
321
 
293
322
  ### Step 2: Analyze Request
323
+
294
324
  ```
295
325
  EXTRACT keywords from user description
296
326
  IDENTIFY affected file patterns
@@ -298,6 +328,7 @@ DETERMINE complexity (simple/medium/complex)
298
328
  ```
299
329
 
300
330
  ### Step 3: Dynamic Agent Selection
331
+
301
332
  ```
302
333
  CHECK command_mapping./do:
303
334
  - default: fullstack-developer
@@ -311,6 +342,7 @@ CHECK skill.requires_security_review flags
311
342
  ```
312
343
 
313
344
  ### Step 4: Dynamic Skill Activation
345
+
314
346
  ```
315
347
  FOR EACH skill IN skills:
316
348
  IF skill.activation.keyword MATCHES request β†’ ACTIVATE
@@ -319,6 +351,7 @@ FOR EACH skill IN skills:
319
351
  ```
320
352
 
321
353
  ### Step 5: Check Failure Modes
354
+
322
355
  ```
323
356
  IF confidence < 0.5 β†’ ASK user
324
357
  IF security_concern β†’ ESCALATE to security-auditor
@@ -327,6 +360,7 @@ IF outside_expertise β†’ ESCALATE to appropriate agent
327
360
  ```
328
361
 
329
362
  ### Step 6: Determine Risk Level
363
+
330
364
  ```
331
365
  SCAN keywords against orchestration.yaml risk_levels:
332
366
  - low: ["typo", "rename"] β†’ quick_fix chain
@@ -336,6 +370,7 @@ SCAN keywords against orchestration.yaml risk_levels:
336
370
  ```
337
371
 
338
372
  ### Step 7: Build Execution Chain
373
+
339
374
  ```
340
375
  SELECT chain from orchestration.yaml based on risk
341
376
  APPLY required approvals
@@ -343,6 +378,7 @@ QUEUE agents in order
343
378
  ```
344
379
 
345
380
  ### Step 8: Log to Audit
381
+
346
382
  ```
347
383
  WRITE to .ai-audit/YYYY-MM-DD.jsonl:
348
384
  {
@@ -356,6 +392,7 @@ WRITE to .ai-audit/YYYY-MM-DD.jsonl:
356
392
  ```
357
393
 
358
394
  ### Step 9: Execute
395
+
359
396
  ```
360
397
  RUN chain with orchestrated agents and skills
361
398
  APPLY failure-modes.yaml restraints throughout
@@ -29,7 +29,7 @@ argument-hint: [optional: command name]
29
29
  ## Output
30
30
 
31
31
  ```
32
- πŸ“š anchi-kit v3.0.0 - Command Reference
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:
@@ -103,19 +110,19 @@ Examples:
103
110
 
104
111
  > Help uses minimal AI - static content lookup.
105
112
 
106
-
107
- ---
108
-
109
- ## Dynamic Orchestration
110
-
111
- > **AI MUST read orchestration config before execution**
112
-
113
- ```
114
- 1. READ .cursor/agent-skill-index.yaml
115
- 2. CHECK command_mapping for this command
116
- 3. APPLY skill activation rules
117
- 4. CHECK .cursor/failure-modes.yaml
118
- 5. LOG decision to .ai-audit/
119
- ```
120
-
113
+
114
+ ---
115
+
116
+ ## Dynamic Orchestration
117
+
118
+ > **AI MUST read orchestration config before execution**
119
+
120
+ ```
121
+ 1. READ .cursor/agent-skill-index.yaml
122
+ 2. CHECK command_mapping for this command
123
+ 3. APPLY skill activation rules
124
+ 4. CHECK .cursor/failure-modes.yaml
125
+ 5. LOG decision to .ai-audit/
126
+ ```
127
+
121
128
  [docs/ORCHESTRATION_RUNTIME.md](../docs/ORCHESTRATION_RUNTIME.md)
@@ -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: ⚑⚑⚑⚑ BαΊ―t Δ‘αΊ§u sα»­ dα»₯ng anchi-kit - Entry point cho mọi dα»± Γ‘n
2
+ description: πŸš€ Start/Resume project with Context Recall
3
+ argument-hint: [optional: new project name]
3
4
  ---
4
5
 
5
- # INSTRUCTION: Follow this workflow exactly
6
+ # /start - Project Intelligence
6
7
 
7
- > β›” **CRITICAL: PAUSE POINTS**
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
- β”‚ 1️⃣ πŸš€ RAPID MVP β”‚
72
- β”‚ SQLite | Flat structure | Skip tests OK β”‚
73
- β”‚ Best for: Prototype, demo, hackathon β”‚
74
- β”‚ ⏱️ ~5 min setup β”‚
14
+ β”‚ 🧠 /start - PROJECT RECALL β”‚
75
15
  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
76
- β”‚ 2️⃣ πŸ’Ό PROFESSIONAL β”‚
77
- β”‚ PostgreSQL | Modular | Tests required β”‚
78
- β”‚ Best for: Startup, production app β”‚
79
- β”‚ ⏱️ ~10 min setup β”‚
80
- β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
81
- β”‚ 3️⃣ 🏒 ENTERPRISE β”‚
82
- β”‚ PostgreSQL + Redis | DDD | Full compliance β”‚
83
- β”‚ Best for: Large project, regulated industry β”‚
84
- β”‚ ⏱️ ~20 min setup β”‚
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
- β›” **STOP. Wait for user to type 1, 2, or 3. Do not proceed until user responds.**
37
+ ## Setup Steps (New Project)
91
38
 
92
- ---
39
+ If folder is empty:
93
40
 
94
- ## ▢️ STEP 3: Execute Preset Setup
41
+ 1. Detect Tech Stack (Node, Python, Go...)
42
+ 2. Suggest Best Preset
43
+ 3. Run `npx anchi-toolkit init`
95
44
 
96
- After user selects preset (1/2/3):
45
+ ## Memory Schema (For Recall)
97
46
 
98
- 1. Create project folder if needed
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 .cursor/agent-skill-index.yaml
129
- 2. CHECK command_mapping for this command
130
- 3. APPLY skill activation rules
131
- 4. CHECK .cursor/failure-modes.yaml
132
- 5. LOG decision to .ai-audit/
133
- ```
134
-
135
- πŸ“– [docs/ORCHESTRATION_RUNTIME.md](../docs/ORCHESTRATION_RUNTIME.md)