plan

plan is a skill for Claude Code, Codex from luohy15/y-agent. It costs 42 tokens per session (1,736 once invoked), scanned A, original, MIT.

A planning tool that reads code, investigates a coding task, and writes a structured plan note before implementation.

In plain words
What is it for?
Use it when a task needs research, an audit, or a breakdown into implementation steps.
Why use it?
It turns a broad coding request into documented requirements, assumptions, decisions, and smaller tasks without changing code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when a task needs research, an audit, or a breakdown into implementation steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luohy15/y-agent/plan
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 luohy15/y-agent --skill plan
Clone the repo
git clone --depth 1 https://github.com/luohy15/y-agent

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/luohy15/y-agent/plan/github.svg)](https://agentmods.dev/skills/luohy15/y-agent/plan)
Your own site
<a href="https://agentmods.dev/skills/luohy15/y-agent/plan"><img src="https://agentmods.dev/badge/skills/luohy15/y-agent/plan/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luohy15/y-agent/plan"><img src="https://agentmods.dev/badge/skills/luohy15/y-agent/plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,736 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
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Excessive Agency · line 109
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
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.00042 $0.01736
Opus 5.5 $0.00017 $0.00694
Sonnet 5.5 $0.00008 $0.00347
Haiku 4.5 $0.00004 $0.00174

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

Security

Grade A, and why

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

orchestration/skills/plan/SKILL.md · 119 lines

How it starts

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

Plan Skill

Leaf skill for the planning phase of dev work. Reads code, scopes the requirements, and produces a plan note. Does not open worktrees, change code, or commit.

Loaded via y chat --skill plan, usually dispatched by the dev coordinator, but it can also be invoked directly for a standalone audit.

Working mode

Runs in the project main directory (no worktree needed, since it is read-only). The caller passes --work-dir <project_path>.

Workflow

  1. y todo get <todo_id>: read the todo desc plus linked notes.
  2. y todo activate <todo_id>: mark in progress (skip if already active).
  3. Read code, understand the requirements, identify sub-tasks.
  4. Write the plan to $Y_AGENT_HOME/pages/plan-<todo_id>-<slug>.md (mandatory, absolute path: --work-dir is the project dir, but the plan file must land in the top-level pages/, not <work-dir>/pages/). Include:
    • Requirements recap
    • Design decisions
    • Assumptions: everything the plan takes for granted (input shape, library behavior, deploy target). If an assumption is load-bearing and unverified, flag it for the caller rather than picking silently.
    • Sub-task breakdown. Every sub-task gets a concrete verify step: the smallest check that proves it is done (a command, a test, an observable behavior). No "make it work" success criteria.
      ## Sub-tasks
      - [ ] Sub-task 1: brief description — verify: <command / test / observation>
      - [ ] Sub-task 2: brief description — verify: <command / test / observation>
      
    • Length budget and keep/drop rule: target 100 to 200 lines for the whole note; 250 lines is a hard cap. Within that, keep only (a) a 1 to 3 sentence scope recap, (b) binding decisions and load-bearing assumptions, (c) the current sub-task breakdown with one concise verify step each, and (d) a concise out-of-scope / follow-up list. Requirements recap, decisions, assumptions, and out-of-scope are each normally 10 bullets or fewer; each sub-task is normally one bullet plus its verify line. If genuinely independent workstreams cannot fit under 250 lines, split them into separately linked plan notes rather than making one note encyclopedic.
    • Drop aggressively: do not restate todo background; do not inventory every file or completed deliverable; do not preserve superseded options, audit chronology, status diaries, or completed-task narratives; do not paste code, config, or log excerpts; no reference-implementation tours; no surveying options after a decision is binding; no repeating rationale across sections; no speculative edge cases, defensive caveats, operational telemetry, capacity arithmetic, or rollback detail unless it changes an implementation task or is required for a hard-to-reverse step. Prefer a pointer to the durable source over copied detail. A plan is a forward-looking execution index, not a design archive, runbook, or incident record.
    • On every update, prune before adding: remove completed and superseded material, collapse settled rationale to the binding decision, and keep only current work. The budget applies to the resulting whole note, not merely the newly added section. If an existing note exceeds 250 lines, condense it as part of the planning task before the callback.
  5. Link the plan to the todo: y assoc note pages/plan-<todo_id>-<slug>.md --todo <todo_id> (this CLI takes the path relative to $Y_AGENT_HOME).
  6. Trim the todo desc: keep 1 to 3 sentences of the core requirement; do not dump plan content into desc. If the existing desc is bloated, slim it down now.
  7. Call back to the caller, then stop. No closing summary of the plan in this chat (AGENTS.md "Callback rules"): the note is the deliverable and the caller reports it to the user.
    y chat --chat-id <from_chat> -m "plan done, plan at $Y_AGENT_HOME/pages/plan-<todo_id>-<slug>.md" \
      ${Y_TOPIC:+--from-topic $Y_TOPIC} --trace-id <todo_id>
    
    Unresolved choices and blockers get one clause each in the callback ("2 open questions in the note"), not a restatement. Their full text lives in the note.

Read the full file on GitHub · 119 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 · 119 lines · 42 tokens per session scan A 703420d5ebd4

Subscribe to this mod's changes

plan is a skill published in the GitHub repository luohy15/y-agent (220 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,736 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…

vercel/next.js · 123 tokens