optim-agent/optim-plans/diagnose-before-plan
Claude Code and agent skill by optim-agent/optim-plans
- community
Checking that the SKILL.md file is still in the repository.
Diagnose failures before creating a Prime Agent plan. MUST USE for bugs, CI failures, test failures, regressions, incidents, broken behavior, root cause, RCA, or debug-why requests before deciding whether to plan; preserve language, reviewer, and criticizer settings in .git/optim-plans; exclude ordinary feature planning, direct implementation-only, factual/explanation, trivial command-only, or explicit no-plan requests.
Install
npx vskill@latest install optim-agent/optim-plans/diagnose-before-planSKILL.md
Diagnose Before Plan
Use this skill for problem or failure inputs that need diagnosis before planning.
Setup
- Read
../_shared/references/prime-planning-workflow.md,../_shared/references/state-and-config.md, and../_shared/references/plan-artifact-template.md. - Use
.git/optim-plansfor controller state anddocs/optim-plans/YYYY-MM-DD-topic/for public artifacts. - Preserve reviewer and criticizer settings for any selected planning skill.
Diagnostic Workflow
- Inspect available evidence first: repository files, logs, tests, command output, stack traces, recent diffs, CI output, environment details, and user-provided symptoms.
- Produce an in-message RCA summary before asking whether to plan. Use at most 5 Whys. Stop with
unknownwhen evidence is insufficient. - Ask one choice prompt in the configured language:
Create the scoped fix plan- recommended when evidence supports a planning path.Stop after RCA- keep the diagnosis only.Other.Auto-complete.- On opt-out, stop after the summary. Do not write
PROBLEM_ANALYSIS.mdon opt-out. - On opt-in or
Auto-complete, select the smallest fitting planning skill and continue with that skill's contract.
Level Selection
create-a-small-plan: clear root cause, obvious fix shape, few local files, limited risk.create-a-plan: multi-file fix, external API or dependency behavior, compatibility concerns, or research needed.create-a-big-plan: cross-system failure, unclear root cause, redesign pressure, or high recoverability risk.
After opt-in, write PROBLEM_ANALYSIS.md in the selected run artifact directory before PLAN_v1.md and pass the RCA summary into the selected planning skill.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/diagnose-before-plan/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/optim-agent/optim-plans/diagnose-before-plan)