bug-check
CommandRun automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
Gather phase context through adaptive questioning before planning.
> /plugin marketplace add yeaight7/agent-powerups
name: discuss-phase description: Gather phase context through adaptive questioning before planning. argument-hint: "<phase> [--all] [--auto]" allowed-tools: - Read - Write - Bash - Glob - Grep - AskUserQuestion - Task
Extract implementation decisions that downstream agents need — the `phase-planner` and `phase-researcher` will consume CONTEXT.md to know what to investigate and what choices are locked.
**How it works:** 1. Load prior context (PROJECT.md, REQUIREMENTS.md, STATE.md, prior CONTEXT.md files) 2. Scout codebase for reusable assets and patterns 3. Analyze phase — skip gray areas already decided in prior phases 4. Present remaining gray areas — user selects which to discuss 5. Deep-dive each selected area until satisfied 6. Create CONTEXT.md with decisions that guide research and planning
**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
Phase number: $ARGUMENTS (required)
**Step 1 — Load Context**
Read the following if they exist:
**Step 2 — Scout Codebase**
Scan the codebase for patterns relevant to this phase:
**Step 3 — Identify Gray Areas**
For the target phase, identify implementation decisions that are:
Skip areas already decided in prior CONTEXT.md files.
**Step 4 — Present and Discuss**
If `--all` flag: present all gray areas. Otherwise: ask the user which areas they want to discuss. Present them as a numbered list.
For each selected area:
**Step 5 — Handle Scope Creep**
If the user introduces ideas beyond the current phase scope:
**Step 6 — Write CONTEXT.md**
Create `.planning/phases/{padded_phase}-{slug}/{phase_num}-CONTEXT.md` (create directory if needed):
# Phase [X]: [Name] — Context **Discussed:** [date] ## Decisions - **D-01: [Decision area]** — [What was decided]. Rationale: [why] - **D-02: [Decision area]** — [What was decided]. Rationale: [why] ## Claude's Discretion Areas where Claude has freedom to choose the best approach: - [Area]: [Guidance or constraints] ## Deferred Ideas Ideas mentioned but out of scope for this phase: - [Idea]: [Why deferred, which phase it belongs to]
**Step 7 — Confirm Next Steps**
Tell the user: > "Context captured. Run `/plan-phase {phase}` to create the implementation plan."
Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more
Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
Use when a build, type check, or test suite is failing and needs to be unblocked with a minimal change.
Use when a bug needs systematic diagnosis before a fix is attempted.
Use to diagnose environment, tooling, and Agent Powerups setup problems.
Use to turn a spec or user request into working, tested code.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.