From 6aead079691b1fe1f92dec547a962b9b693cf981 Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 25 Mar 2026 13:43:25 +0100 Subject: [PATCH] Add explicit Plan Mode tool references and missing Agent tool to template commands - go.md: Mention EnterPlanMode explicitly in step 3 - init.md: Add Plan Mode note and specify 6 labels in 2 namespaces - plan.md: Add Plan Mode note for Discussion/Planning stages - debug.md: Add Plan Mode note for symptom analysis phase - security.md: Add Agent to allowed-tools list Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/commands/maxsim/debug.md | 2 ++ templates/commands/maxsim/go.md | 2 +- templates/commands/maxsim/init.md | 4 +++- templates/commands/maxsim/plan.md | 2 ++ templates/commands/maxsim/security.md | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/commands/maxsim/debug.md b/templates/commands/maxsim/debug.md index 6d77aa7e..85bbca52 100644 --- a/templates/commands/maxsim/debug.md +++ b/templates/commands/maxsim/debug.md @@ -18,6 +18,8 @@ GitHub is the sole source of truth. Check for open Issues labeled `debug` to det +Plan Mode: Use EnterPlanMode when presenting symptom analysis and proposed diagnosis. Call ExitPlanMode before spawning the executor Agent for the fix. + Follow @.claude/maxsim/workflows/debug.md end-to-end. Invoke the `systematic-debugging` skill at step 3 to drive the reproduce-hypothesize-isolate-verify-fix cycle. 1. Check GitHub for open Issues labeled `debug` (active sessions) diff --git a/templates/commands/maxsim/go.md b/templates/commands/maxsim/go.md index 4fdcbc69..1b0e70fc 100644 --- a/templates/commands/maxsim/go.md +++ b/templates/commands/maxsim/go.md @@ -25,7 +25,7 @@ Follow @.claude/maxsim/workflows/go.md end-to-end. 1. Read GitHub Project Board state via `gh` CLI 2. Detect what's next using the priority list above -3. Enter Plan Mode — show detection reasoning and proposed action +3. Enter Plan Mode via EnterPlanMode — show detection reasoning and proposed action 4. Wait for user approval (Ctrl+C cancels) 5. Execute approved action by spawning the appropriate Agent 6. Report the result — print a completion summary or surface the error with a recovery suggestion diff --git a/templates/commands/maxsim/init.md b/templates/commands/maxsim/init.md index 04b72caf..23fe5684 100644 --- a/templates/commands/maxsim/init.md +++ b/templates/commands/maxsim/init.md @@ -19,11 +19,13 @@ GitHub is the sole source of truth. Init creates GitHub Milestones and Issues +Plan Mode: Call EnterPlanMode before presenting setup proposals to the user. Call ExitPlanMode after user approves. + Follow @.claude/maxsim/workflows/init.md end-to-end. 1. Scan repo in parallel — spawn Research agents to analyze architecture, frameworks, CI/CD, tests, dependencies, and documentation 2. Interview user: project name, description, goals, tech stack, conventions, testing strategy, deployment, acceptance criteria, no-gos, risks -3. GitHub Setup — ensure standard labels, create Project Board (Kanban), create Milestone, offer repo creation if needed +3. GitHub Setup — ensure standard labels (6 labels in 2 namespaces: type: and maxsim:), create Project Board (Kanban), create Milestone, offer repo creation if needed 4. Write CLAUDE.md with project context and MaxsimCLI config 5. Optionally generate Roadmap as GitHub Issues (phases) 6. Confirm setup and suggest `/maxsim:go` as next step diff --git a/templates/commands/maxsim/plan.md b/templates/commands/maxsim/plan.md index 99b7fb39..1622e653 100644 --- a/templates/commands/maxsim/plan.md +++ b/templates/commands/maxsim/plan.md @@ -24,6 +24,8 @@ Re-entry: If phase is already planned, show status and offer options (view, re-p +Plan Mode: This command uses EnterPlanMode during the Discussion and Planning stages. Call ExitPlanMode before executing the approved plan. + Follow @.claude/maxsim/workflows/plan.md end-to-end. 1. Detect current stage from GitHub Issue labels on the phase Issue diff --git a/templates/commands/maxsim/security.md b/templates/commands/maxsim/security.md index fba9bc54..dc3c09b4 100644 --- a/templates/commands/maxsim/security.md +++ b/templates/commands/maxsim/security.md @@ -2,7 +2,7 @@ name: maxsim:security description: Security audit — STRIDE + OWASP Top 10 + red-team analysis (read-only) argument-hint: "[scope]" -allowed-tools: [Read, Bash, Grep, Glob, WebSearch, WebFetch] +allowed-tools: [Read, Bash, Grep, Glob, Agent, WebSearch, WebFetch] ---