with one click
refine-plan
// Iteratively refine development plans using TDD methodology. Ensures plans are clear, actionable, and include red-green-refactor cycles with proper test coverage.
// Iteratively refine development plans using TDD methodology. Ensures plans are clear, actionable, and include red-green-refactor cycles with proper test coverage.
Run a Coder PR dogfood instance: inspect PR context, check out the right branch or stack, start Coder with scripts/develop.sh using agent-safe dev-instance practices, validate the changed functionality with UI evidence when needed, and report findings.
Guide for creating, updating, and following up on pull requests in the Coder repository. Use when asked to open a PR, update a PR, rewrite a PR description, or follow up on CI/check failures.
Use this skill when a repository already has an open pull request and you need to run the Coder Agents Review loop: request review with `/coder-agents-review` when needed, wait for feedback from the `coder-agents-review` GitHub app, fix issues, and repeat until the app comments `approved`.
Multi-reviewer code review. Spawns domain-specific reviewers in parallel, cross-checks findings, posts a single structured GitHub review.
Reviews code changes for bugs, security issues, and quality problems
Checks if code changes require documentation updates
| name | refine-plan |
| description | Iteratively refine development plans using TDD methodology. Ensures plans are clear, actionable, and include red-green-refactor cycles with proper test coverage. |
Good plans eliminate ambiguity through clear requirements, break work into clear phases, and always include refactoring to capture implementation insights.
| Symptom | Example |
|---|---|
| Unclear acceptance criteria | No definition of "done" |
| Vague implementation | Missing concrete steps or file changes |
| Missing/undefined tests | Tests mentioned only as afterthought |
| Absent refactor phase | No plan to improve code after it works |
| Ambiguous requirements | Multiple interpretations possible |
| Missing verification | No way to confirm the change works |
Every step should be concrete enough that another agent could execute it without guessing.
NEVER include thinking output or other stream-of-consciousness prose mid-plan.
When requirements are ambiguous, ask questions before proceeding.
Writing test cases forces disambiguation. Use test definition as a requirements clarification tool.
All plans follow: Red → Green → Refactor. The refactor phase is MANDATORY.
Purpose: Define success criteria through concrete test cases.
What to test:
Test types:
Write descriptive test cases:
If you can't write the test, you don't understand the requirement and MUST ask for clarification.
Purpose: Implement minimal working solution.
Focus on correctness first. Hardcode if needed. Add just enough logic. Resist urge to "improve" code. Run tests frequently.
Purpose: Apply insights gained during implementation.
This phase is MANDATORY. During implementation you'll discover better structure, repeated patterns, and simplification opportunities.
When to Extract vs Keep Duplication:
This is highly subjective, so use the following rules of thumb combined with good judgement:
Common refactorings:
Constraints:
Look for missing tests, vague steps, no refactor phase, ambiguous requirements, missing verification.
If you can't write the plan without this information, ask the user. Otherwise, make reasonable assumptions and note them in the plan.
For each requirement, write concrete test cases. If you struggle to write test cases, you need more clarification.
Organize the plan into three explicit phases.
Specify how to confirm the change works (automated tests + manual checks).
Remember: A good plan makes implementation straightforward. A vague plan leads to confusion, rework, and bugs.