autoworkflow 3.1.4 → 3.1.5
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/.claude/commands/audit.md +148 -11
- package/package.json +1 -1
|
@@ -19,10 +19,34 @@ Per `system/router.md`, audit is required for:
|
|
|
19
19
|
## Arguments
|
|
20
20
|
- `/audit` - Run standard checks (UI + cycles)
|
|
21
21
|
- `/audit project` - Full project scan (generates BLUEPRINT.md)
|
|
22
|
+
- `/audit sync` - Compare BLUEPRINT vs code, one feature at a time
|
|
22
23
|
- `/audit [feature name]` - Deep audit of specific feature
|
|
23
24
|
|
|
24
25
|
---
|
|
25
26
|
|
|
27
|
+
## Core Principle: ONE FEATURE AT A TIME
|
|
28
|
+
|
|
29
|
+
**NEVER audit multiple features simultaneously.** This prevents:
|
|
30
|
+
- Information overload
|
|
31
|
+
- Multiple incomplete features
|
|
32
|
+
- User confusion
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
❌ WRONG: "Here are 15 features with gaps across your codebase..."
|
|
36
|
+
✅ RIGHT: "Feature 1: User Auth. Here's what's missing. Fix now? → Done → Next feature..."
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Serial workflow:**
|
|
40
|
+
```
|
|
41
|
+
Feature 1 → Audit → Fix → Verify → ✅ Complete
|
|
42
|
+
↓
|
|
43
|
+
Feature 2 → Audit → Fix → Verify → ✅ Complete
|
|
44
|
+
↓
|
|
45
|
+
Feature 3 → ...
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
26
50
|
## Audit Types
|
|
27
51
|
|
|
28
52
|
### Type 1: Feature Audit (`/audit [feature]`)
|
|
@@ -207,7 +231,99 @@ Update both files with discovered information.
|
|
|
207
231
|
|
|
208
232
|
---
|
|
209
233
|
|
|
210
|
-
### Type 3:
|
|
234
|
+
### Type 3: Blueprint Sync (`/audit sync`)
|
|
235
|
+
|
|
236
|
+
Compare BLUEPRINT.md against actual code, **one feature at a time**.
|
|
237
|
+
|
|
238
|
+
#### Step 1: Parse BLUEPRINT.md
|
|
239
|
+
Extract features list from the Features section.
|
|
240
|
+
|
|
241
|
+
#### Step 2: For EACH Feature (Serial)
|
|
242
|
+
|
|
243
|
+
```
|
|
244
|
+
Feature 1: [Name]
|
|
245
|
+
↓
|
|
246
|
+
Read BLUEPRINT requirements for this feature
|
|
247
|
+
↓
|
|
248
|
+
Scan code for this feature's implementation
|
|
249
|
+
↓
|
|
250
|
+
Compare: BLUEPRINT ↔ Code
|
|
251
|
+
↓
|
|
252
|
+
Report gaps (one feature only)
|
|
253
|
+
↓
|
|
254
|
+
Offer fixes
|
|
255
|
+
↓
|
|
256
|
+
Wait for user
|
|
257
|
+
↓
|
|
258
|
+
Fix if approved
|
|
259
|
+
↓
|
|
260
|
+
THEN → Feature 2
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
#### Step 3: Report Format (Per Feature)
|
|
264
|
+
|
|
265
|
+
```
|
|
266
|
+
## Blueprint Sync: Feature 1 of 5
|
|
267
|
+
|
|
268
|
+
### 📘 User Authentication
|
|
269
|
+
|
|
270
|
+
**BLUEPRINT says:**
|
|
271
|
+
- Login with email/password
|
|
272
|
+
- OAuth (Google, GitHub)
|
|
273
|
+
- Password reset flow
|
|
274
|
+
- Session management
|
|
275
|
+
|
|
276
|
+
**Code has:**
|
|
277
|
+
- ✅ Login with email/password (`src/auth/login.ts`)
|
|
278
|
+
- ✅ OAuth Google (`src/auth/oauth.ts`)
|
|
279
|
+
- ❌ OAuth GitHub - NOT FOUND
|
|
280
|
+
- ⚠️ Password reset - Partial (no email sending)
|
|
281
|
+
- ✅ Session management (`src/auth/session.ts`)
|
|
282
|
+
|
|
283
|
+
**Sync Status:** 75% aligned
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
### Gap Analysis
|
|
288
|
+
|
|
289
|
+
| Gap | Direction | Action |
|
|
290
|
+
|-----|-----------|--------|
|
|
291
|
+
| OAuth GitHub | 📘→💻 | In BLUEPRINT, not in code |
|
|
292
|
+
| Password reset email | 📘→💻 | Incomplete implementation |
|
|
293
|
+
|
|
294
|
+
### Suggested Actions
|
|
295
|
+
|
|
296
|
+
1. **Implement OAuth GitHub** - Add GitHub provider to oauth.ts
|
|
297
|
+
2. **Complete password reset** - Add email sending to reset flow
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
**Options:**
|
|
302
|
+
- `implement` - Build missing code
|
|
303
|
+
- `remove` - Remove from BLUEPRINT (if not needed)
|
|
304
|
+
- `skip` - Move to next feature
|
|
305
|
+
- `1` - Only action 1
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
#### Step 4: After User Action
|
|
309
|
+
- If `implement`: Build the missing parts, verify, re-check
|
|
310
|
+
- If `remove`: Update BLUEPRINT.md to remove the item
|
|
311
|
+
- If `skip`: Log as skipped, move to next feature
|
|
312
|
+
|
|
313
|
+
#### Step 5: Next Feature
|
|
314
|
+
Only after current feature is resolved (fixed/skipped/removed), show next:
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
✅ Feature 1: User Authentication - SYNCED
|
|
318
|
+
|
|
319
|
+
## Blueprint Sync: Feature 2 of 5
|
|
320
|
+
|
|
321
|
+
### 📘 Dashboard...
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
### Type 4: Standard Audit (`/audit`)
|
|
211
327
|
|
|
212
328
|
Quick check for UI enforcement and circular dependencies.
|
|
213
329
|
|
|
@@ -275,21 +391,42 @@ Ready to proceed to COMMIT.
|
|
|
275
391
|
|
|
276
392
|
---
|
|
277
393
|
|
|
278
|
-
## Critical Rule:
|
|
394
|
+
## Critical Rule: Complete Cycle Per Feature
|
|
279
395
|
|
|
280
|
-
**NEVER**
|
|
396
|
+
**NEVER** move to the next feature until the current one is FULLY resolved.
|
|
281
397
|
|
|
398
|
+
**Complete cycle for ONE feature:**
|
|
399
|
+
```
|
|
400
|
+
1. AUDIT → Find issues in Feature X
|
|
401
|
+
2. REPORT → Show issues with severity
|
|
402
|
+
3. SUGGEST → Offer specific fixes
|
|
403
|
+
4. WAIT → Get user approval
|
|
404
|
+
5. IMPLEMENT → Make the approved changes
|
|
405
|
+
6. VERIFY → Run npm run verify
|
|
406
|
+
7. RE-AUDIT → Check Feature X again
|
|
407
|
+
8. CONFIRM → Feature X is now complete? ✅
|
|
408
|
+
9. THEN → Move to Feature X+1
|
|
282
409
|
```
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
410
|
+
|
|
411
|
+
**What "complete" means:**
|
|
412
|
+
- All approved fixes implemented
|
|
413
|
+
- Verification passes (no TS/ESLint errors)
|
|
414
|
+
- Re-audit shows no remaining issues
|
|
415
|
+
- User confirms ready to move on
|
|
416
|
+
|
|
417
|
+
**If user says "skip":**
|
|
418
|
+
- Log as skipped with reason
|
|
419
|
+
- Mark feature as incomplete in tracking
|
|
420
|
+
- Move to next feature
|
|
421
|
+
- DO NOT leave silently
|
|
422
|
+
|
|
290
423
|
```
|
|
424
|
+
❌ WRONG:
|
|
425
|
+
"Found 3 issues in Auth. Found 2 issues in Dashboard. Found 5 issues in Settings..."
|
|
291
426
|
|
|
292
|
-
|
|
427
|
+
✅ RIGHT:
|
|
428
|
+
"Found 3 issues in Auth. Fix? → [fixes] → Verify → Pass → Auth complete ✅ → Dashboard?"
|
|
429
|
+
```
|
|
293
430
|
|
|
294
431
|
---
|
|
295
432
|
|