Skip to content
Back to skills

Writing Plans

ASecurity

Convert test scenarios into ordered implementation plans for TDD

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsrefactoring

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add PedroMosquera/squadai --skill writing-plans --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Plans?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Writing Plans
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pedromosquera-writing-plans/badge)](https://www.skillsdirectory.com/skills/pedromosquera-writing-plans)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: writing-plans
description: Convert test scenarios into ordered implementation plans for TDD
methodology: tdd
---

# Writing Plans Skill

Convert a list of test scenarios into an ordered implementation plan. This
skill is used by the Planner after the Brainstormer produces scenarios.

## Steps

1. **Review scenarios**: Read the brainstorming output carefully.
   - Identify all test scenarios that need coverage
   - Note dependencies between scenarios (some tests require others to pass first)
   - Identify which scenarios share setup/teardown

2. **Group into test suites**: Organize scenarios by the code unit they test.
   - Group tests for the same function/method together
   - Identify shared fixtures that should be extracted
   - Note where table-driven tests are appropriate (multiple inputs → same function)

3. **Order the tests**: Sequence tests from simplest to most complex.
   - Start with happy path tests (positive cases)
   - Follow with edge cases
   - End with error scenarios
   - Ensure each test builds on knowledge from previous tests

4. **Write the test plan**: For each test, specify:
   - Test name (format: `TestFunctionName_Scenario_ExpectedResult`)
   - Setup required (fixtures, mocks, temp dirs)
   - The specific action to invoke
   - The assertion to make (exact values, not just "no error")
   - Teardown needed (if any)

5. **Identify implementation dependencies**: List what code must be written.
   - New functions or methods needed
   - Interface changes required
   - New types or structs
   - Dependency injection points for testability

6. **Estimate complexity**: Flag high-effort items.
   - Simple (< 30 min): straightforward logic, no external dependencies
   - Medium (30 min to 2 hrs): requires new abstraction or refactoring
   - Complex (> 2 hrs): involves multiple components or tricky concurrency

## Output Format

```
## Test Plan

### Suite: <FunctionName>
- [ ] Test: TestFunctionName_HappyPath_ReturnsResult
  Setup: <what to prepare>
  Action: call FunctionName with <inputs>
  Assert: result equals <expected>

- [ ] Test: TestFunctionName_EmptyInput_ReturnsError
  ...

## Implementation Dependencies
1. <what needs to be implemented>
2. ...

## Complexity Estimates
- TestFunctionName_HappyPath: Simple
- ...
```

Hand this plan to the Implementer. Do NOT write implementation code.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…