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
package/.cursor/commands/do.md
CHANGED
|
@@ -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
|
|
22
|
-
|
|
23
|
-
| **Simple** (typo, rename)
|
|
24
|
-
| **Medium** (feature, fix)
|
|
25
|
-
| **Complex** (architecture)
|
|
26
|
-
| **Large codebase** (>200 files) | Gemini 3 Flash
|
|
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
|
|
57
|
+
β [1] Active Memory Load (Context-Aware) β
|
|
57
58
|
β [2] Scout codebase (/scout) β
|
|
58
|
-
β [3] Plan if needed
|
|
59
|
-
β [4]
|
|
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
|
|
74
|
-
|
|
75
|
-
| `--fast`
|
|
76
|
-
| `--careful`
|
|
77
|
-
| `--plan-only`
|
|
78
|
-
| `--no-commit`
|
|
79
|
-
| `--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
|
|
95
|
-
|
|
96
|
-
| fix, bug, error, broken, issue
|
|
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
|
|
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
|
-
|
|
109
|
+
By default, use **Selective Transparency**. Show key roles and decisions, but hide verbose technical steps.
|
|
113
110
|
|
|
114
|
-
|
|
115
|
-
β
Found previous session
|
|
111
|
+
### β
Success Case
|
|
116
112
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
124
|
+
### β οΈ Risk/Approval Case
|
|
133
125
|
|
|
134
|
-
|
|
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
|
-
|
|
137
|
-
β’ Created: 3 files
|
|
138
|
-
β’ Modified: 2 files
|
|
139
|
-
β’ Lines: +250, -30
|
|
140
|
-
β’ Time: 8 minutes
|
|
133
|
+
### β Failure Case
|
|
141
134
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
|
187
|
-
|
|
188
|
-
| Rapid
|
|
189
|
-
| Professional | Standard + tests
|
|
190
|
-
| Enterprise
|
|
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
|
|
199
|
-
|
|
200
|
-
| **Feature**
|
|
201
|
-
| **Fix/Debug** | `debugger.md`
|
|
202
|
-
| **Refactor**
|
|
203
|
-
| **UI Work**
|
|
204
|
-
| **API Work**
|
|
205
|
-
| **Complex**
|
|
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
|
|
213
|
-
| Prisma/DB
|
|
214
|
-
| Tailwind
|
|
215
|
-
| TypeScript
|
|
216
|
-
| DDD Pattern
|
|
217
|
-
| Testing
|
|
218
|
-
| AI/ML
|
|
219
|
-
| Mobile
|
|
220
|
-
| 3D/Three.js
|
|
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
|
|
244
|
-
|
|
245
|
-
| `--careful`
|
|
246
|
-
| `--fast`
|
|
247
|
-
| `--plan-only` | `planner.md`, `researcher.md`
|
|
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
|
|
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
|
package/.cursor/commands/help.md
CHANGED
|
@@ -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:
|
|
@@ -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:
|
|
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 .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)
|