Back to Blog

research

writing-plans: Stop Guessing, Start Structuring Agent Work

Learn how the writing-plans skill helps AI agents break down complex tasks into actionable, risk-aware plans before writing code.

OpenAgentSkillPublished:

Where this fits

You ask your agent to refactor a service into microservices or add a new auth flow across five files. It dives straight into code, produces a tangled mess, and you spend an hour untangling it. The writing-plans skill forces the agent to pause, outline a structured plan, and surface risks before touching a single line. It fits any workflow where a task is too large to implement in one shot and where a little upfront structure saves hours of debugging.

Why agents benefit

  • Decomposes multi-step tasks into ordered, actionable steps the agent can execute without losing context.
  • Surfaces risks early — the agent explicitly lists what could break, so you can veto or adjust before code is written.
  • Captures alternatives — the agent documents what it considered and why it chose one path, making its reasoning auditable.
  • Prevents over-engineering — the skill's anti-patterns (planning trivial tasks) keep the agent from burning tokens on needless ceremony.
  • Accelerates review — a plan with goal, approach, steps, and risks lets you approve or redirect in seconds, not after code review.

Practical scenarios

Refactoring a legacy module

Your agent needs to split a 2,000-line controller into smaller services. The plan lists the new module boundaries, the order of extraction, and the risk of breaking existing imports. You spot a missing dependency in the risk section and correct it before the agent starts.

Implementing a new API endpoint with auth

Task spans routes, middleware, database schema, and tests. The agent's plan includes a goal (add JWT-based auth), steps (update schema, add middleware, write tests), and alternatives (session vs. JWT). You approve the JWT choice, and the agent executes without drift.

Migrating from one database to another

This touches config, connection pools, queries, and rollback. The plan flags risks like downtime and data loss, and proposes a phased migration. You catch a missing rollback step, add it, and the agent proceeds with confidence.

Add it to your agent workflow

Install the skill with one command:

npx skills add peintune/runjam --skill writing-plans

Then, in your agent prompt, ask for a plan before implementation:

Use the writing-plans skill. I need to add a payment webhook handler that updates orders and sends notifications. Plan first, then implement.

The agent will output a structured plan with goal, approach, steps, risks, and alternatives. Review it, adjust if needed, and say "go" — the agent then executes step by step.

Compare before adopting

Before you commit, evaluate the skill on a few axes:

  • Quality signals — check the README for clear structure, anti-patterns, and real-world examples. The plan template is concise and actionable.
  • Maintenance freshness — verify the GitHub repo (127 stars) has recent commits. A stale skill may not align with current agent frameworks.
  • Alternatives — other planning skills exist, but writing-plans is lightweight and protocol-agnostic. Compare it with heavier spec-driven tools if you need formal validation.
  • Workflow fit — does your agent already have a planning step? If so, this skill may be redundant; if not, it's a low-cost addition.

Why it is worth tracking

writing-plans is young but shows solid community momentum (127 stars, active author). Its value is in enforcing a discipline that many agents lack — structured thinking before action. The skill's anti-patterns show the author understands real agent failure modes, not just theory. Track it if you frequently ask your agent to handle multi-file changes or architectural decisions. When your tasks grow beyond one file, this skill becomes a practical guardrail. For a curated list of such skills, check out OpenAgentSkill — it's a good reference point for comparing agent skills before you adopt them.

Featured Skill

writing-plans

Skill by peintune