Protocol: Read Logic Index
You MUST execute the following steps strictly in order. Do not skip steps.
Step 1: Verification
Check if the file .claude/logic_tree.md exists in the current working directory.
- Use
ls .claude/logic_tree.mdorGlobto verify existence.
Step 2: Branching Logic
Case A: File Exists
- Execute
Readtool on.claude/logic_tree.md. - Output the content directly to the user.
- Terminate.
Case B: File Missing
- Use
AskUserQuestionto ask the user if they want to generate it now.- Question: "Logic index not found. Generate it now?"
- Options: ["Yes (Run /update-logic-index)", "No (Cancel)"]
- If "Yes":
- Execute
/update-logic-index. - Upon completion, recurse to Step 1 (Verification).
- Execute
- If "No":
- Terminate.
