|
| 1 | +{ |
| 2 | + "beforeStart": [ |
| 3 | + { |
| 4 | + "tag": "MANDATORY-FIRST-RESPONSE", |
| 5 | + "header": "🚨 STOP - YOUR FIRST TOOL CALL MUST BE TodoWrite", |
| 6 | + "instructions": [ |
| 7 | + "DO NOT analyze the task yet. DO NOT read files. DO NOT edit anything. DO NOT load skills yet.", |
| 8 | + "YOUR FIRST ACTION: Call TodoWrite with the todo below, marking it as in_progress", |
| 9 | + "Check if the todo's condition applies - if NO, mark completed immediately and proceed with normal work", |
| 10 | + "If condition applies: work through all steps → mark completed → proceed with normal work", |
| 11 | + "If you skip TodoWrite or jump straight to file operations, you have FAILED to follow instructions" |
| 12 | + ], |
| 13 | + "todos": [ |
| 14 | + "Skill analysis (SKIP if message contains 'quick'): (1) Check if rationalizing with thoughts like 'simple question', 'just checking files', 'don't need formal skill', 'overkill', 'might be relevant' - if YES to ANY, stop rationalizing; (2) List ALL available skills from context; (3) For EACH skill: Read its description and check for 'always load first' or foundational patterns - mark these ✓ IMMEDIATELY. Then ask 'Does this task involve [skill topic]?' If YES or MIGHT or MAYBE = mark ✓. Only mark ✗ if DEFINITELY not related; (4) Use Skill tool to load ALL marked ✓ IN ONE PARALLEL CALL - do NOT load one skill then wait to see if it tells you to load others. Load ALL potentially relevant skills upfront; (5) Output '[Skills checked: X available, Y loaded: name1, name2, ...]'. CRITICAL: 'Might be relevant' = MUST load. 'Could apply' = MUST load. '1% chance' = MUST load. Do NOT depend on one skill to tell you to load another." |
| 15 | + ] |
| 16 | + } |
| 17 | + ], |
| 18 | + "beforeComplete": [ |
| 19 | + { |
| 20 | + "tag": "VERIFICATION-CHECKLIST", |
| 21 | + "header": "Before claiming work is complete, fixed, or passing - NO completion claims without FRESH verification evidence:", |
| 22 | + "instructions": [ |
| 23 | + "Create TodoWrite with ALL todos below (each has its own condition)", |
| 24 | + "For EACH todo: Check if its condition applies - if NO, mark completed immediately and skip to next", |
| 25 | + "If condition applies: mark in_progress → complete the check → mark completed", |
| 26 | + "Work through every todo even if some don't apply (conditions are per-todo, not global)", |
| 27 | + "We manually start session with `npm run logs && npm run typecheck:watch` as Background Bash Shell - read output when checking errors", |
| 28 | + "Run `npm run typecheck` only when Background Bash Shells are not visible/running", |
| 29 | + "NEVER make git commits unless user explicitly asked", |
| 30 | + "NEVER run `npm run dev` or `npm run build` unless explicitly asked" |
| 31 | + ], |
| 32 | + "todos": [ |
| 33 | + "TypeScript check (ONLY if updated ts files): Verify no `any` used (pause and ask user if `any` seems required)", |
| 34 | + "Typecheck (ONLY if updated ts files): Read typecheck:watch output OR run `npm run typecheck` - verify passes", |
| 35 | + "Lint: Run `npm run lint:fix` - verify passes" |
| 36 | + ] |
| 37 | + } |
| 38 | + ], |
| 39 | + "afterCompact": [ |
| 40 | + { |
| 41 | + "tag": "POST-COMPACT-RECOVERY", |
| 42 | + "header": "🚨 CONTEXT WIPED - MANDATORY SKILL RELOAD REQUIRED", |
| 43 | + "instructions": [ |
| 44 | + "STOP. Context compaction has DELETED all previously loaded skills. You have FORGOTTEN everything.", |
| 45 | + "DO NOT proceed with any task until you complete skill reloading below", |
| 46 | + "DO NOT assume you remember any skills - they are ALL gone from memory", |
| 47 | + "YOUR IMMEDIATE ACTION: Complete the mandatory reload checklist below", |
| 48 | + "Skipping this = GUARANTEED FAILURE because you lost all behavioral patterns" |
| 49 | + ], |
| 50 | + "todos": [ |
| 51 | + "Skill reload after compaction: (1) Check TodoWrite to identify what task you were working on; (2) List ALL available skills from context; (3) For EACH skill: Read its description and check for 'always load first' or foundational patterns - mark these ✓ IMMEDIATELY. Then ask 'Does this apply to my current task?' If YES or MIGHT or MAYBE = mark ✓. Only mark ✗ if DEFINITELY not related; (4) Use Skill tool to load ALL marked ✓ IN ONE PARALLEL CALL (REQUIRED - they were wiped) - do NOT load one skill then wait to see if it tells you to load others. Load ALL potentially relevant skills upfront; (5) ONLY after reloading skills, resume the task. CRITICAL: All previously loaded skills are GONE and MUST be reloaded. 'Might apply' = MUST load." |
| 52 | + ] |
| 53 | + } |
| 54 | + ] |
| 55 | +} |
0 commit comments