opencode-kit: Command for Claude Code

.opencode/commands/plan.md

plan is a command for Claude Code, OpenCode from felipeslo/opencode-kit. It costs 18 tokens per session (526 once invoked), scanned A, original, MIT.

A planning command that creates a task plan file without writing application code.

In plain words
What is it for?
Use it to plan a coding task, choose a technical approach, list the work, and record the plan in a project document.
Why use it?
It turns a request into a structured breakdown with questions, assignments, and checks before implementation begins.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: mentions OpenCode.

This is felipeslo/opencode-kit's own configuration. It tells Claude Code and OpenCode how to work on opencode-kit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opencode-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to felipeslo/opencode-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/felipeslo/opencode-kit/main/.opencode/commands/plan.md
Clone the repo
git clone --depth 1 https://github.com/felipeslo/opencode-kit

Made for: Claude Code, OpenCode.

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/commands/felipeslo/opencode-kit/plan/github.svg)](https://agentmods.dev/commands/felipeslo/opencode-kit/plan)
Your own site
<a href="https://agentmods.dev/commands/felipeslo/opencode-kit/plan"><img src="https://agentmods.dev/badge/commands/felipeslo/opencode-kit/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/commands/felipeslo/opencode-kit/plan"><img src="https://agentmods.dev/badge/commands/felipeslo/opencode-kit/plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 526 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.00018 $0.00526
Opus 5.5 $0.00007 $0.00210
Sonnet 5.5 $0.00004 $0.00105
Haiku 4.5 $0.00002 $0.00053

Measured 1mo ago against content hash c50bb2e46949, 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.

.opencode/commands/plan.md · 90 lines

What it actually says

/plan - Project Planning Mode

$ARGUMENTS


🔴 CRITICAL RULES

  1. NO CODE WRITING - This command creates plan file only
  2. Use project-planner agent - NOT OpenCode's native Plan mode
  3. Socratic Gate - Ask clarifying questions before planning
  4. Dynamic Naming - Plan file named based on task

Task

Use the project-planner agent with this context:

CONTEXT:
- User Request: $ARGUMENTS
- Mode: PLANNING ONLY (no code)
- Output: docs/PLAN-{task-slug}.md (dynamic naming)

NAMING RULES:
1. Extract 2-3 key words from request
2. Lowercase, hyphen-separated
3. Max 30 characters
4. Example: "e-commerce cart" → PLAN-ecommerce-cart.md

RULES:
1. Follow project-planner.md Phase -1 (Context Check)
2. Follow project-planner.md Phase 0 (Socratic Gate)
3. Create PLAN-{slug}.md with task breakdown
4. DO NOT write any code files
5. REPORT the exact file name created

Expected Output

Deliverable Location
Project Plan docs/PLAN-{task-slug}.md
Task Breakdown Inside plan file
Agent Assignments Inside plan file
Verification Checklist Phase X in plan file

After Planning

Tell user:

[OK] Plan created: docs/PLAN-{slug}.md

Next steps:
- Review the plan
- Run `/create` to start implementation
- Or modify plan manually

Naming Examples

Request Plan File
/plan e-commerce site with cart docs/PLAN-ecommerce-cart.md
/plan mobile app for fitness docs/PLAN-fitness-app.md
/plan add dark mode feature docs/PLAN-dark-mode.md
/plan fix authentication bug docs/PLAN-auth-fix.md
/plan SaaS dashboard docs/PLAN-saas-dashboard.md

Usage

/plan e-commerce site with cart
/plan mobile app for fitness tracking
/plan SaaS dashboard with analytics
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 · 90 lines · 18 tokens per session scan A c50bb2e46949

Subscribe to this mod's changes

plan is a command published in the GitHub repository felipeslo/opencode-kit (2 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 526 once invoked, about $0.0001 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.