plan-gate
БесплатноБез исполняемых скриптовНе проверенUse when reviewing a plan before implementation begins. Not for autonomous plan analysis — use plan-review agent instead. Challenges scope, walks through…
от majesticlabs-dev★ 50 звёзд на GitHubОб этом скилле
Plan Gate
Audience: Engineers about to start implementation. Goal: Catch scope creep, missing coverage, and design flaws interactively before writing code.
Priority Hierarchy
If running low on context or user asks to compress: Step 0 > Test diagram > Opinionated recommendations > Everything else. Never skip Step 0 or the test diagram.
Engineering Principles
These guide all recommendations:
- DRY — flag repetition aggressively
- Well-tested — rather too many tests than too few
- Engineered enough — not under-engineered (fragile) or over-engineered (premature abstraction)
- Handle more edge cases, not fewer — thoughtfulness > speed
- Explicit over clever
- Minimal diff — achieve the goal with fewest new abstractions and files touched
- Complexity proportional to the problem
Diagrams
- Use ASCII diagrams liberally for data flow, state machines, dependency graphs, pipelines, decision trees
- When modifying code with existing ASCII diagrams nearby, verify accuracy and update in the same commit
- Stale diagrams are worse than no diagrams — they actively mislead
Step 0: Scope Challenge (Mandatory)
Before reviewing anything, answer:
- What existing code already solves each sub-problem? Can we capture outputs from existing flows rather than building parallel ones?
- What is the minimum set of changes that achieves the stated goal? Flag work that could be deferred without blocking the core objective. Be ruthless about scope creep.
- Complexity check: If plan touches >8 files or introduces >2 new classes/services, treat as a smell and challenge whether the same goal can be achieved with fewer moving parts.
Then AskUserQuestion with three tracks:
- SCOPE REDUCTION — Plan is overbuilt. Propose a minimal version that achieves the core goal, then review that.
- BIG CHANGE — Work through interactively, one section at a time (Architecture > Code Quality > Tests > Performance) with at most 4 top issues per section.
- SMALL CHANGE — Compressed review: Step 0 + one combined pass covering all 4 sections. Pick the single most important issue per section. Present as a single numbered list with lettered options + mandatory test diagram + completion summary. One AskUserQuestion round at the end.
If user does not select SCOPE REDUCTION, respect that decision fully. Raise scope concerns once in Step 0 — after that, commit to the chosen scope and optimize within it. Do not silently reduce scope, skip planned components, or re-argue for less work.
Review Sections (After Scope Is Agreed)
1. Architecture Review
Evaluate:
- System design and component boundaries
- Dependency graph and coupling concerns
- Data flow patterns and potential bottlenecks
- Scaling characteristics and single points of failure
- Security architecture (auth, data access, API boundaries)
- Whether key flows deserve ASCII diagrams in the plan or code comments
- For each new codepath or integration point: one realistic production failure scenario and whether the plan accounts for it
STOP. Call AskUserQuestion with findings. Do NOT proceed until user responds.
2. Code Quality Review
Evaluate:
- Code organization and module structure
- DRY violations — be aggressive
- Error handling patterns and missing edge cases (call out explicitly)
- Technical debt hotspots
- Over-engineered or under-engineered areas
- Existing ASCII diagrams in touched files — still accurate after this change?
STOP. Call AskUserQuestion with findings. Do NOT proceed until user responds.
3. Test Review
Make a diagram of all new UX, new data flow, new codepaths, and new branching outcomes. For each, note what is new. Then for each new item, verify a test exists.
STOP. Call AskUserQuestion with findings. Do NOT proceed until user responds.
4. Performance Review
Evaluate:
- N+1 queries and database access patterns
- Memory-usage concerns
- Caching opportunities
- Slow or high-complexity code paths
STOP. Call AskUserQuestion with findings. Do NOT proceed until user responds.
Issue Presentation Format
For every issue found:
- Describe the problem concretely with file and line references
- Present 2-3 options including "do nothing" where reasonable
- For each option: effort, risk, maintenance burden (one line)
- Lead with recommendation as directive: "Do B. Here's why:" — not "Option B might be worth considering"
- Map reasoning to a specific engineering principle above
AskUserQuestion format:
- Start: "We recommend [LETTER]: [one-line reason]"
- List:
A) ... B) ... C) ... - Label: issue NUMBER + option LETTER (e.g., "3B")
- Recommended option listed first
- One sentence max per option
Required Outputs
NOT In Scope
List work considered and explicitly deferred, with one-line rationale per item.
What Already Exists
List existing code/flows that partially solve sub-problems. Note whether plan reuses them or unnecessarily rebuilds.
TODOS.md Updates
Defe
Установить plan-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobAskUserQuestionFAQ
Что делает скилл plan-gate?
Use when reviewing a plan before implementation begins. Not for autonomous plan analysis — use plan-review agent instead. Challenges scope, walks through architecture/quality/tests/performance interactively with mandatory user checkpoints and opinionated recommendations.
Как установить скилл plan-gate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan-gate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic