plan-cards

plan-cards is a skill for Claude Code from XRenSiu/claude-code-forge. It costs 273 tokens per session (2,144 once invoked), scanned A, original, MIT.

A task-card planning workflow splits a frozen set of requirements into self-contained cards that an agent can complete without the wider conversation. Each card records its requirements, acceptance checks, allowed files, and dependencies.

In plain words
What is it for?
Use it to break a planned feature into independently executable or parallel work items before coding begins.
Why use it?
A flat task list can leave agents without context, cause two agents to edit the same files, or give one card more context than it can handle. Automated checks catch missing coverage, duplicate ownership, file conflicts, and oversized cards before implementation.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the sdlc plugin — 14 skills, 5 agents shipped together

Good fit Use it to break a planned feature into independently executable or parallel…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xrensiu/claude-code-forge/plan-cards
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 XRenSiu/claude-code-forge --skill plan-cards
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install sdlc, the plugin that ships this one along with the rest of its 14 skills, 5 agents.

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-cards

README.md
[![agentmods](https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/plan-cards.svg)](https://agentmods.dev/skills/xrensiu/claude-code-forge/plan-cards)
Your own site
<a href="https://agentmods.dev/skills/xrensiu/claude-code-forge/plan-cards"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/plan-cards.svg" alt="Measured on agentmods" height="20"></a>
Per session 273 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,144 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.00273 $0.02144
Opus 5 $0.00137 $0.01072
Sonnet 5 $0.00055 $0.00429
Haiku 4.5 $0.00027 $0.00214

Measured today against content hash e1914dbc8dc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 3 executable files (eval/fixtures/repo/scripts/render_audit.py, scripts/lint_cards.py, scripts/slice_agent_map.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/sdlc/skills/plan-cards/SKILL.md · 98 lines

How it starts

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

plan-cards — 自包含的卡,不是设计文档

产物是 cards/CARD-xx.yaml(形状:assets/card_template.yaml)。合格标准只有一条:单独丢给一个没有任何 上下文的 agent,它能干完。本文件写:卡在流水线里是什么、什么算拆对了、原语与出口、进实现前的门。 先拆哪块、拆几张是你的份额。

缺口(Judgment + Capability + Control)

deletion 测试:撤掉本 skill,引擎会写一份平铺的 tasks.md——没有文件归属、没有 AC 子集、两张卡都改 package.json、一张卡要 80k 上下文。并行实现时合并冲突,卡级验收没有对象,白名单执行器无从执行。 缺的是判据(自包含长什么样)、原语(三项 lint)、门(lint 不过不进 implement——sdlc_state.py advance implement 要求 cards.lint_passed)。

世界(Σ)

  • 卡 = 子 agent 的 prompt 载荷(SKILL.state:只给卡 + 状态摘要,不给整段历史)。卡里没写的,实现者 不知道;所以 notes 要自包含,不引用对话。
  • REQ 一卡一主:每个 REQ 只能归一张卡(重复归属 = 两个实现者改同一行为)。AC 子集从 done_when.acceptancereq 取。
  • 文件级存在性在卡里,不在契约里(C2):allowed_files 是白名单执行器(verify_commit.py --card)的输入; forbidden_files 默认继承 done_when.constraints.forbidden_paths + tests/** + 锁文件。
  • 共享文件(lockfile / 配置 / 路由表 / schema)要么归一张卡,要么全部禁改——"卡间无写冲突"必须覆盖它们。
  • 卡级验收 ≠ 需求级验收:每张卡只跑 AC 子集;所有卡完成后必须整体跑一次(/acceptance-fleet)。
  • depends_on 只表示依赖顺序(Σ 第 1 格),不是执行脚本;无依赖的卡可并行。
  • 投影与其数据源同卡:渲染 / 报告脚本与它读的数据在一张卡里,否则没人能原子地同时改数据的形状与它的 标签。跨卡是例外,例外要 reads_from + depends_on + notes 里的接缝风险三样齐全(lint 项 6)。
  • 上下文预估:卡 + 相关源码 + AC 子集 + 测试 > 40k → 必拆(lint,不是备注)。
  • 这条 40k 会反压契约:一个 REQ 的实现读集若超 40k,"REQ 一卡一主"与"≤ 40k"同时成立就无解。 G2 冻结前就要按分区把这类 REQ 拆开;G2 之后再拆要走变更提案 + 重新签锁。
  • 关于用户的 Σ:"拆细一点"= 上下文预算更小,不是更多卡;"一张卡做完"= 合法,但仍要过 lint。

判据(φ)

  • lint_cards.py 三项 + 上下文 + ac_ids 存在性 + allowed_files 非空 + 投影/数据源同卡 → 全过。
  • 残差(人 / judge):卡是否真的自包含;allowed_files 是否最小;上下文预估是否诚实。

原语(Π)

  • scripts/lint_cards.py <cards_dir> [--spec spec.md] [--done-when done_when.yaml] [--dos dos.yaml] [--max-context N] [--repo-root DIR] [--projection-pattern RE] —— exit 0 / 1 / 2。进 implement 前必须跑,过了 sdlc_state.py set cards.lint_passed=true。 给 --repo-root 时会读渲染脚本本身核验 reads_from,声明因此可核验而非自述。
  • assets/card_template.yaml —— 卡的具名字段。
  • references/splitting.md —— 拆分启发式(按观察边界 / 按 DOS 对象 / 先契约后 UI / 投影与数据源同卡)、 共享文件处置、上下文估算法、以及 L4 对契约层 REQ 粒度的反压。

仓库地图切片(v0.2.0)

Read the full file on GitHub · 98 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. today Changed · +16 lines · +34 tokens per session e1914dbc8dc5
  2. yesterday First seen · 82 lines · 239 tokens per session scan A 83d361e54fe7

Subscribe to this mod's changes

plan-cards is a skill published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed today), licensed MIT. It adds 273 tokens to every session and 2,144 once invoked, about $0.0014 per session on Opus 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-09-05.

Related

Other skills, from other repositories

recipe-create-meet-space

Create a Google Meet meeting space and share the join link.

googleworkspace/cli · 18 tokens

atmos-config

Atmos root configuration: atmos.yaml discovery, precedence, deep merging, basepath, imports, minimal bootstrap, and routing to narrower Atmos skills.

cloudposse/atmos · 31 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

story-readiness

Validate that a story file is implementation-ready. Checks for embedded GDD requirements, ADR references, engine notes, clear acceptance criteria, and no open design questions. Produces READY / NEEDS WORK / BLOCKED verdict with specific gaps. Use when user says 'is this story ready', 'can I start on this story', 'is…

Donchitos/Claude-Code-Game-Studios · 77 tokens

autotask-creator

Rules for automation CRUD from the group-chat commander. The commander does not call mutation tools and does not edit cloud/autotasks files directly. It emits one or more top-level ... containers in its final text; the bus parses and applies them after the turn.

Orkas-AI/Orkas · 5 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens