plan-before-code

plan-before-code is a skill for Claude Code, Codex from andreaswasita/copilot-agents-dojo. It costs 12 tokens per session (1,312 once invoked), scanned A, original, MIT.

A written planning step for work that involves several files or actions before code is changed. The plan records the problem, scope, and intended steps in a task file.

In plain words
What is it for?
Use it for features, refactors across modules, and changes involving at least three files or steps. Skip it for typos, formatting, comment-only edits, and single-line fixes.
Why use it?
It reduces missed requirements and unfocused edits on unfamiliar or architectural work. It also creates a shared reference when the scope is ambiguous or an earlier approach failed.

Skill for Claude CodeCodex

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

Good fit Use it for features, refactors across modules, and changes involving at least three files or steps. Skip it for typos, formatting, comment-only edits, and single-line fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andreaswasita/copilot-agents-dojo/plan-before-code
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 andreaswasita/copilot-agents-dojo --skill plan-before-code
Clone the repo
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo

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 plan-before-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/andreaswasita/copilot-agents-dojo/plan-before-code/github.svg)](https://agentmods.dev/skills/andreaswasita/copilot-agents-dojo/plan-before-code)
Your own site
<a href="https://agentmods.dev/skills/andreaswasita/copilot-agents-dojo/plan-before-code"><img src="https://agentmods.dev/badge/skills/andreaswasita/copilot-agents-dojo/plan-before-code/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 plan-before-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/andreaswasita/copilot-agents-dojo/plan-before-code"><img src="https://agentmods.dev/badge/skills/andreaswasita/copilot-agents-dojo/plan-before-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,312 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00012 $0.01312
Opus 5.5 $0.00005 $0.00525
Sonnet 5.5 $0.00002 $0.00262
Haiku 4.5 $0.00001 $0.00131

Measured 1mo ago against content hash 7fd1c558d34d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan-before-code 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 1mo 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.

skills/plan-before-code/SKILL.md · 133 lines

How it starts

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

Plan Before Code Skill

Forces an explicit written plan in tasks/todo.md before the agent edits any file for non-trivial work. Does NOT apply to one-line fixes, typo corrections, or any task the agent can finish in a single edit — over-planning trivial work is its own failure mode.

When to Use

  • Any task that will touch 3+ files or require 3+ steps.
  • Before implementing unfamiliar features or architectural changes.
  • After a previous approach failed and a re-plan is needed.
  • When scope or requirements are ambiguous.
  • Before refactoring that crosses module boundaries.
  • NOT for: typos, comment-only edits, single-line bug fixes, formatting.

Prerequisites

  • A writable tasks/todo.md (created by scripts/init.sh if missing).
  • An approved problem statement from the user or brainstorming skill.
  • The repo cloned and the working tree clean enough to start (use powershell with git status).

How to Run

0. Recall prior memory for the topic (memory_recall MCP tool or scripts/memory-recall.sh) and fold it into Context.
1. Assess complexity (the 4 questions in Procedure §1).
2. If non-trivial → write plan to tasks/todo.md using the canonical block.
3. Validate the plan against the gap checklist.
4. Execute one step at a time, checking items off as you go.

Quick Reference

Situation Action Tool
Before writing a plan Recall prior memory memory_recall MCP tool, or powershell → scripts/memory-recall.sh
Touch ≥3 files Enter plan mode view tasks/todo.md then edit
Re-plan after wall hit Append a ## Revision N block edit tasks/todo.md
Check existing plan Read current state view tasks/todo.md
Mark step done Flip - [ ] to - [x] edit tasks/todo.md
Resume across sessions Re-read the plan first view tasks/todo.md

Procedure

Step 0: Recall Prior Memory

Before assessing complexity, surface what the dojo already knows so the plan compounds past knowledge instead of re-deriving it. Use the memory_recall MCP tool with the work's topic (and language/fileType when known). If that tool is unavailable, use powershell to run scripts/memory-recall.sh --topic "<topic>".

Read the full file on GitHub · 133 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. 1mo ago First seen · 133 lines · 12 tokens per session scan A 7fd1c558d34d

Subscribe to this mod's changes

plan-before-code is a skill published in the GitHub repository andreaswasita/copilot-agents-dojo (54 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 1,312 once invoked, about $0.0000 per session on Opus 5.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-30.