cf-plan

cf-plan is a skill for Claude Code from dinhanhthi/coding-friend. It costs 132 tokens per session (3,164 once invoked), scanned A, original, MIT.

A planning workflow for turning a requested software change into an implementation plan. It supports normal, fast, hard, autopilot, and inline modes for different levels of complexity and automation.

In plain words
What is it for?
Use it when planning or building features, fixing multi-step problems, setting up systems, or designing architecture. It can create a plan file or keep the plan in chat, and can optionally automate later phases.
Why use it?
It helps clarify the work, discover relevant code and memory, plan rollbacks, and track progress before implementation. The modes let you choose between speed, depth, and hands-off execution.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it when planning or building features, fixing multi-step problems, setting up systems, or designing architecture. It can create a plan file or keep the plan in chat, and can optionally automate later phases.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-plan"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,164 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.00132 $0.03164
Opus 5.5 $0.00053 $0.01266
Sonnet 5.5 $0.00026 $0.00633
Haiku 4.5 $0.00013 $0.00316

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

Security

Grade A, and why

cf-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 21d 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.

plugin-antigravity/skills/cf-plan/SKILL.md · 131 lines

How it starts

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

/cf-plan

Create an implementation plan for: $ARGUMENTS

Modes

  • --fast (--quick) — skip discovery + planner; plan stays in chat (Track progress), never writes a file unless autopilot (--auto / planAuto) or 2+ phases (then normal).
  • --hard — extra discovery, deeper exploration, rollback planning.
  • --auto — after approval, run all phases (review + fix + commit, no prompts). Combines with any mode. Also on when config planAuto: true (local overrides global) unless --no-auto.
  • --no-auto — force autopilot off for this run, even if planAuto: true. Incompatible with --auto.
  • --commit-per-task / --no-commit-per-task — autopilot only: each task commits as phase N/M task i/K; review runs once per phase over its commits (no review.with* external reviewers). Also on when config planCommitPerTask: true (local overrides global) unless --no-commit-per-task.
  • --inline (--no-file) — no plan file; chat only; Track progress. Incompatible with autopilot (--auto or planAuto).
  • --gui (--human; or config disableGUIPlan: false; guiPlanFormat html|md) — overview at Step 6 when a file is written. Fast: none unless --gui.
  • --model <alias> — pin cf-planner at Step 3 (--model <alias> or --model=<alias>).
  • --add-tests (--tdd) — TDD for implementation.

Strip flags (and --model's value) before using the rest as the task. brief.md is written in native normal/hard only.

Workflow

Step 0: Custom Guide

bash "<plugin-root>/lib/load-custom-guide.sh" cf-plan

If the block above printed anything, apply only the ## Before, ## Rules, and ## After sections; if it shows the raw command instead of output, re-run that exact load-custom-guide.sh fence now.

Step 0.5: Determine Mode

Config lookup (used by 1a, 1c, 1e): merge global ~/.coding-friend/config.json + local .coding-friend/config.json (local wins).

  1. Resume — bare --resume → print > ℹ️ Resuming a plan is now \/cf-plan-resume ` (not `/cf-plan --resume`).` and stop.
  2. Explicit flag — --quick → --fast; honor --fast or --hard. 1a. Autopilot — if $ARGUMENTS contains both --auto and --no-auto → print > ⚠️ --auto cannot be combined with --no-auto. Pick one. and stop. --no-auto → false; strip. --auto → true; strip. Else config lookup: true only when planAuto is explicitly true. When true, announce: > 🤖 Autopilot enabled — phases will run end-to-end without confirmation prompts. If it came from config (not --auto), use: > 🤖 Autopilot enabled (planAuto: true) — phases will run end-to-end without confirmation prompts. /cf-plan-resume does not read planAuto — only the saved plan's auto: true + ## AUTOPILOT section. 1b. Inline — --no-file → --inline; if autopilot is on (from --auto or planAuto) refuse: > ⚠️ --inline cannot be combined with autopilot (--auto or planAuto; autopilot relies on the on-disk plan file for state). Pick one. Else announce: > 📝 Inline mode — plan will be shown in chat only; no file will be written. Track progress. 1c. Overview — --human/-gui/-human → --gui. --gui → humanDoc=true (overrides fast + config). Else if fast → false. Else config lookup: true only when disableGUIPlan is explicitly false. Format: guiPlanFormat (default html). None for --inline. 1d. --model flag Accept --model <alias> (two tokens, e.g. --model pro) AND --model=<alias> (one token, e.g. --model=flash). Strip both the flag and the value. Example: /cf-plan --model pro Add a healthz endpoint → remaining task description is exactly Add a healthz endpoint. Valid aliases: inherit, flash, pro. Do not accept Claude aliases or full model IDs. Invalid → print this exact warning then CONTINUE (do NOT stop): > ⚠️ --model <value> is not a valid Antigravity model alias (inherit|flash|pro). Ignoring it; cf-planner inherits the session model. If --fast/--quick is already in $ARGUMENTS, print this exact warning then CONTINUE: > ⚠️ --model bị bỏ qua ở fast mode (Step 3 không dispatch cf-planner). Auto-detected fast is not known yet — item 4 re-checks after mode is resolved (steps 2–3). --hard still dispatches cf-planner. When a valid alias is parsed, it is used at Step 3 unless skipped as fast. 1e. Commit per task — if $ARGUMENTS contains both --commit-per-task and --no-commit-per-task → print > ⚠️ --commit-per-task cannot be combined with --no-commit-per-task. Pick one. and stop. --no-commit-per-task → false; strip. --commit-per-task → true; strip. Else config lookup: true only when planCommitPerTask is explicitly true. If true but autopilot is off → print > ⚠️ --commit-per-task only applies under autopilot (only autopilot commits). Ignored. and treat as false. If true with autopilot, announce: > 🧩 Commit per task — each task commits as "phase N/M task i/K"; review runs once per phase over its commits.
  3. Auto-detect — 2+ signals. Fast: existing pattern, single module, additive, "just/simple/quick". Hard: multi-module, breaking/schema, security, "refactor/migrate/rewrite", public API.
  4. Confirm: 3+ → apply; 2 → ask; mixed → normal. Fast: chat only; 2+ phases → write as normal unless autopilot (always writes).
  5. --model vs resolved fast mode — after explicit --fast/--quick or auto-detect: if --model was parsed and fast is active, print > ⚠️ --model bị bỏ qua ở fast mode (Step 3 không dispatch cf-planner). (skip if 1d already warned); do not pass the model at Step 3.

Read the full file on GitHub · 131 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 21d ago Changed ec13fd449c48
  2. 1mo ago Changed 3d9de74f76f3
  3. 2mo ago Changed · +2 lines 6c03ad6ff262
  4. 2mo ago Changed · +2 lines fe3a09b98f77
  5. 2mo ago Changed 1b4464d12f8d
  6. 2mo ago Changed · +1 lines 07a932b71c3d
  7. 2mo ago Changed · -104 lines · +47 tokens per session 969fa117b613
  8. 2mo ago Changed · +5 lines 4b06cde7c9af
  9. 3mo ago First seen · 225 lines · 85 tokens per session scan A 5402c4c8ff80

Subscribe to this mod's changes

cf-plan is a skill published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed 13d ago), licensed MIT. It adds 132 tokens to every session and 3,164 once invoked, about $0.0005 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

cf-plan compared with skills from other repositories

cf-plan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cf-plandinhanhthi/coding-friendSkill413d agoMITA132Claude Code
officecli-pitch-deckiOfficeAI/OfficeCLISkill34ktodayApache-2.0A163Claude Code, Codex
morph-pptiOfficeAI/OfficeCLISkill34ktodayApache-2.0A169Claude Code, Codex
officecli-academic-paperiOfficeAI/OfficeCLISkill34ktodayApache-2.0A141Claude Code, Codex
officecli-pptxiOfficeAI/OfficeCLISkill34ktodayApache-2.0A106Claude Code, Codex
officecliiOfficeAI/OfficeCLISkill34ktodayApache-2.0A56Claude Code, Codex
morph-ppt-3diOfficeAI/OfficeCLISkill34ktodayApache-2.0A37Claude Code, Codex