writing-plans

writing-plans is a skill for Claude Code, Codex from PedroMosquera/squadai. It costs 14 tokens per session (528 once invoked), scanned A, original, MIT.

A planning skill that turns test scenarios into an ordered implementation plan for test-driven development, or TDD. TDD means writing tests for expected behavior before or alongside the code that implements it.

In plain words
What is it for?
Use it to group scenarios into test suites, identify shared fixtures, and order tests from normal cases through edge cases and errors. It also defines the setup, action, assertion, and cleanup for each test.
Why use it?
A collection of test scenarios does not automatically show what to build first or how tests depend on one another. This skill organizes coverage and the required setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to group scenarios into test suites, identify shared fixtures, and order tests from normal cases through edge cases and errors. It also defines the setup, action, assertion, and cleanup for each test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedromosquera/squadai/writing-plans
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PedroMosquera/squadai --skill writing-plans
Clone the repo
git clone --depth 1 https://github.com/PedroMosquera/squadai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for writing-plans

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedromosquera/squadai/writing-plans/github.svg)](https://agentmods.dev/skills/pedromosquera/squadai/writing-plans)
Your own site
<a href="https://agentmods.dev/skills/pedromosquera/squadai/writing-plans"><img src="https://agentmods.dev/badge/skills/pedromosquera/squadai/writing-plans/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for writing-plans

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedromosquera/squadai/writing-plans"><img src="https://agentmods.dev/badge/skills/pedromosquera/squadai/writing-plans.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00528
Opus 5 $0.00007 $0.00264
Sonnet 5 $0.00003 $0.00106
Haiku 4.5 $0.00001 $0.00053

Measured 10d ago against content hash a87ec294f1ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

writing-plans scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/assets/skills/tdd/writing-plans/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 – 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
- ...

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 72 lines · 14 tokens per session scan A a87ec294f1ad

Subscribe to this mod's changes

writing-plans is a skill published in the GitHub repository PedroMosquera/squadai (8 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 528 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens

ijfw-tdd

RED-GREEN-REFACTOR enforcement. Use when implementing a feature or bugfix before writing implementation code. Trigger: tdd, test first, red green refactor, /ijfw-tdd.

FerroxLabs/ijfw · 45 tokens

tdd-cycle

Execute full TDD red-green-refactor cycle with validation gates. Use when saying "TDD cycle", "test-driven development", or "full TDD workflow".

anton-abyzov/specweave · 33 tokens

red-green-refactor

Guides the red-green-refactor TDD workflow: write a failing test first, implement the minimum code to make it pass, then refactor while keeping tests green. Use when a user asks to practice TDD, write tests first, follow red-green-refactor, do test-driven development, write failing tests before code, or phrases like…

rohitg00/skillkit · 90 tokens

atomic-tdd

Test-first discipline. Auto-triggers on "let's implement X", "add feature Y", "fix bug Z", "write a test for", "implement", "build out", and similar pre-code-change phrases. Iron rule: failing test exists before production code. Skip only for pure docs/config changes with an explicit "skipped because:" note. Explicit…

damusix/atomic-claude · 142 tokens

hotfix

Fixes an observed defect with reproducible evidence in one call: writes a short trace doc before touching code, implements the fix, and backs it with a regression test written before the fix. Production incidents are the motivating case, not a gate. When blocked, it halts by name and saves the doc for a later call to…

pe-menezes/vibeflow · 102 tokens