ARCUS Deep-First Planning & Checklist (arcus-plan)
"If you want to go fast, go deep first."
Do not write or modify production code during the planning phase. Your goal is to trace the system deeply, identify the exact root cause or architectural seam, and produce a concise, decision-complete plan with an actionable execution and verification checklist ready to be critiqued by arcus-review or driven directly by arcus-work-loop.
Workflow
- Trace to the Root Cause (No Guessing):
- If
ONBOARDING.md(orCONTEXT.md) exists in the workspace, read it first to align on domain-to-code identifier mappings, business formulas/invariants, authz boundaries, systems of record, and legacy minefields (always cross-checking cited file/schema paths against live code; if live code was refactored, trust live code and note the stale onboarding entry forarcus-onboardMode 2 update). - Read the actual implementation files, types, and call sites along the data/control flow.
- Distinguish the underlying invariant or root cause from surface symptoms.
- For web UI, HTML/CSS, or client-side JS/DOM tasks, query live web platform standards first via
npx -y modern-web-guidance@latest search "<2-5 word query>"andnpx -y modern-web-guidance@latest retrieve "<id>"(withnpx --offline -yfallback if offline) instead of designing around legacy patterns.
- If
- Map the Blast Radius & Boundaries:
- Identify every module, interface, test, and consumer affected by the proposed change.
- Prefer the smallest structural change that preserves clean boundaries over sprawling edits.
- For TypeScript, domain naming, or stateful query and mutation design, align contracts with
typescript-best-practices.md(when co-installed; inline fallback: name from verified domain meaning not UI copy, follow active repo grammar not legacy pockets, annotate boundary contracts while inferring locals, prefersatisfiesand generics over forced assertions or repeated callback types, definenull/undefined/""/0per domain, prefer immutableconsttransforms without mutableSet/Mapdefaults, and keep one owner per query or mutation). - For live database schemas, persisted queues or caches, data backfills, or rolling-deploy wire contracts, plan an Expand-Contract sequence per
safe-migration.md(when co-installed; inline fallback: never drop or rename live DB columns, run blocking DDL, or break wire contracts in one PR; ship PR A with Expand plus online/CONCURRENTLYDDL and dual-write, run a chunked idempotent throttled backfill with parity andN-1/Nrollback checks, and ship Contract in a separate follow-up PR after the bake window). - For backend services, DB queries, transactions, or outbound RPC/HTTP design, align contracts with
backend-reliability.md(when co-installed; inline fallback: bound list queries and eliminate N+1 loops, keep external I/O out of DB transactions, require timeouts and cancellation with idempotent bounded jittered retries only on transient faults, enforce rate limits or backpressure, and log structured correlation IDs without PII or secrets). - For authn/authz, billing, PII/secrets, untrusted input sinks, CI workflows, or dependency manifests, plan trust boundaries and local negative tests with
arcus-security(when co-installed; inline fallback: map tenant/object isolation, role/tier gates, taint-to-sink defenses, secret redaction, and non-blocking native dependency audit checks).
- Evaluate Trade-offs, Visual UI Proposals (
arcus-ui-propose) & Architecture Visualization (archify):- If there are multiple viable designs, compare at most 2 options with explicit pros/cons and recommend the cleanest path.
- Visual UI Tasks (
arcus-ui-proposeTrigger): For visual UI creation, layout changes, styling updates, or component redesigns (unless the user explicitly asks to skip options), invokearcus-ui-propose(when co-installed) or include a dedicated Step 1 in the checklist to capture 1 Baseline ("Before") screenshot (00-before.png) and 3 distinct proposed variant screenshots (01-option-a.png,02-option-b.png,03-option-c.png) by sequentially applying, capturing, saving patch diffs (.audit/ui-propose/<task-slug>/option-{a,b,c}.patch+files-{a,b,c}/), and reverting the working branch (git checkout HEAD -- <files>) before locking in the final UI implementation. - Diagram & Architecture Visualization Requests (
archifyPriority): When the user asks to visualize an architecture, workflow, sequence, data flow, state lifecycle, ERD, class hierarchy, tree, timeline, or waterfall (or asks for a visual 1-page plan/explainer), prioritizett-a1i/archifyperarchify-visualization.md(when co-installed). Inline fallback (whenarcus-modeis not co-installed): (1) Locatearchify/bin/archify.mjsin.agents/skillsor global agent skill folders (~/.agents/skills,~/.gemini/config/skills,~/.t3/userdata/providers/antigravity/*/config/skills,~/.claude/skills,~/.codex/skills,~/.cursor/skills,~/.config/opencode/skills), (2) if missing, auto-bootstrap non-blockingly vianpx -y skills@latest add https://archify.si --skill archify -g --copy --yes, and runnode "<archify.mjs>" finalize <type> ...outputting to<os.tmpdir()>/archify/<slug>/sogit statusremains completely clean during planning, or (3) fall back to Mermaid / declaredhtml_renderwith a 1-line note if offline. - Ask the user a concise question only if a missing product/design decision (or choosing among the 3 visual UI proposal screenshots) would materially alter the plan.
- Produce the Plan & Actionable Verification Checklist:
- Follow the exact structure in plan-template.md.
- Never write vague checklist items like
- [ ] Fix bugor- [ ] Update tests. Every checklist item (- [ ]) must pair a concrete file/module change with its exact verification condition (➔ Verify: <command or observable proof>).
- Deliver End-of-Plan Briefing via
arcus-explain:- Immediately after the checklist (and before any optional
DECISIONS.mdauthorization prompt), include a concise Plan Briefing followingarcus-explain(when co-installed). - Inline fallback & Output Hygiene: Calibrate the depth internally to a 20-something SW/CS graduate (assume standard CS fundamentals, decode repo-specific jargon into clean CS mental models, no childish analogies or fluff), never print the internal persona label (
20s CS Grad/20대 SW 학과 졸업생...) in headings or prose, and localize the heading and all 4 bullet labels into the user's conversation language (e.g., in Korean: 핵심 요약, 구조 및 동작 모델, 동작 원리 및 트레이드오프, 적용 효과 및 검증 기준; in English: Core Essence, Mental Model, Mechanism & Trade-offs, Impact & Verification).
- Immediately after the checklist (and before any optional
- Propose
DECISIONS.mdRecord (When Architectural Trade-offs Exist):- If the plan settles a significant architectural trade-off, check the workspace's 3-tier opt-out status (
git config --local --get arcus.decisions==off,<!-- arcus:decisions=off -->inAGENTS.md/CLAUDE.md, or"decisions": "off"in.agents/settings.json). - If not opted out, offer an optional checklist item or prompt asking user authorization to record
D-xxxinDECISIONS.md(or to opt out for this project via the 3-tier fallback chain). Never createDECISIONS.mdor write opt-out configs without explicit user authorization.
- If the plan settles a significant architectural trade-off, check the workspace's 3-tier opt-out status (
