plugin-planning
Turns an accepted plugin or component concept into a concrete component inventory — which skills, agents, commands, and hooks to build, how many, and how much content depth each needs (Minimal/Standard/Rich, reusing this plugin's own 80% Rule and skill-category vocabulary rather than a new rubric). Use when the user asks to "plan the architecture", "decide what components I need", "plan this plugin's structure", or has an accepted plugin-ideation Concept Card ready for the next step. Produces a component inventory and depth plan, not designed components — see the matching Design skill (skill-development, agent-development, command-development, hook-development, rule-development) for that.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- plugin-planning
- description
- Turns an accepted plugin or component concept into a concrete component inventory — which skills, agents, commands, and hooks to build, how many, and how much content depth each needs (Minimal/Standard/Rich, reusing this plugin's own 80% Rule and skill-category vocabulary rather than a new rubric). Use when the user asks to "plan the architecture", "decide what components I need", "plan this plugin's structure", or has an accepted plugin-ideation Concept Card ready for the next step. Produces a component inventory and depth plan, not designed components — see the matching Design skill (skill-development, agent-development, command-development, hook-development, rule-development) for that.
- allowed-tools
- Read Glob Grep Write Bash(date:*) Skill
- argument-hint
- [path to Concept Card, or a direct description]
02 资源文件 1
- 参考文档references/plan-template.md1.3 KB
03 SKILL.md 正文
Plugin Planning
Turns an accepted concept into a concrete build list: which components, how many, and how much content depth each one needs — before any single component is designed. Second step of the upstream lifecycle, after plugin-ideation and before per-component Design.
Quick Start
- Load the concept — read the Concept Card, or take a direct description if the user skipped ideation (Step 1)
- Decide component types — skills vs. agents vs. commands vs. hooks, and how many of each (Step 2)
- Allocate content depth — Minimal / Standard / Rich per planned skill (Step 3)
- Map to functional groups — cluster related components so Design work stays coherent (Step 4)
- Write the plan —
.Codex/output/plugin-planning/<slug>-<timestamp>.md(Step 5)
When to Use
- Right after
plugin-ideationproduces an accepted Concept Card - The user already knows roughly what they want but hasn't decided component types/counts/depth yet
- Deciding how much
references//examples//scripts/content a planned skill will need, before writing any of it
When NOT to Use
- No concept yet — run
plugin-ideationfirst - A single, already-well-understood component — skip straight to the matching Design skill; planning overhead isn't worth it for one obvious skill
- Reviewing or scoring an existing plugin — use
plugin-graderinstead - Actually designing a component's procedure/frontmatter/body — that's
skill-development/agent-development/command-development/hook-development/rule-development's job, not this skill's - Wanting the full guided Ideate→Plan→Design→Build pipeline rather than just this step — use
plugin-lifecycle-upstreaminstead (it dispatches here automatically)
Step 1: Load the Concept
Take $ARGUMENTS as either a Concept Card path or a direct description. If it resolves to an existing file under .Codex/output/plugin-ideation/, Read it in full. Otherwise treat $ARGUMENTS as the problem statement directly (user skipped plugin-ideation) and proceed — note in the plan that ideation was skipped, so a reader knows the overlap check wasn't run.
Step 2: Decide Component Types and Counts
For each distinct capability the concept implies, decide the component type using this decision matrix (extends plugin-development's own Component Overview table with the multi-signal criteria that table doesn't itself spell out):
| Signal | Component type |
|---|---|
| User-invoked action or specialized knowledge, single coherent domain | Skill |
| Isolated, autonomous decision-making with restricted tools, invoked by another component | Agent |
| Simple, single-file user-invoked action, no supporting content needed | Command (legacy format — prefer a Skill unless the plugin already uses commands/) |
| Event-driven automation triggered by tool use or session lifecycle | Hook |
List each planned component: name candidate, type, one-line purpose, and rough trigger phrases.
Code smell check: if the plan proposes more than 4 agents, or more skills than can be summarized in one paragraph each, flag this explicitly and use AskUserQuestion — question: "This plan is large — should the concept be split into two plugins?", options: "Split into two" / "Keep as one" — cheaper to catch here than after Design.
Step 3: Allocate Content Depth (Skills Only)
For each planned skill, assign a depth tier — reusing this plugin's own existing 80% Rule and category vocabulary (skill-development/references/skill-workflow.md Part 1, skill-development/references/skill-categories.md), not a new rubric:
| Tier | Structure | When |
|---|---|---|
| Minimal | SKILL.md only |
Core procedural content fits comfortably under ~300 lines; no content is genuinely supplementary (the 80% Rule's "everything stays" case) |
| Standard | SKILL.md + references/ |
Some content is supplementary (edge cases, advanced config, background) per the 80% Rule's "moves to references/" case |
| Rich | SKILL.md + references/ + scripts/ and/or assets/ and/or examples/ |
The skill needs executable utilities, output templates, or worked examples beyond prose reference content |
This is a planning estimate, not a binding decision — the actual Design skill (skill-development) makes the final call per-file using the real 80% Rule during Step 2 (design), since only the actual content reveals what's truly supplementary. Agents and commands don't get a depth tier (single-file components).
Step 4: Map to Functional Groups
Cluster the planned components into small functional groups (2-5 components each) that share a domain — this keeps the Design phase coherent (design related components together) without inventing a rigid "movement" numbering scheme. Name each group by its domain, not a lifecycle stage (e.g. "Validation reporting," not "Group 3").
Step 5: Write the Plan
- Get a timestamp:
date -u +%Y-%m-%dT%H-%M-%SZ - Write to
.Codex/output/plugin-planning/<slug>-<timestamp>.mdperreferences/plan-template.md - Confirm the written path to the user
Suggested Next Step
Ask with AskUserQuestion: "Proceed to Design for the first functional group, or hand off to plugin-lifecycle-upstream to run Design + Build for the whole plan?" — options "Design the first group now" / "Hand off to plugin-lifecycle-upstream" / "Stop here". If the user picks the orchestrator, invoke plugin-lifecycle-upstream (via Skill) with the written plan path (cycle prevented by plugin-lifecycle-upstream's own Auto-Detection Logic, which skips re-running Phases 1-2 when a Plan path is already given — see that skill's SKILL.md for the guard). Never invoke it without asking first.
Testing & Validation
- Concept Card input — confirm Step 1 reads the full card, not just the name/overlap section
- Direct-description input (ideation skipped) — confirm the written plan notes ideation was skipped
- Depth allocation — construct a concept implying 3 skills of obviously different complexity; confirm each gets a distinct, justified tier, not a uniform default
- Code-smell trigger — construct a concept implying 6 agents; confirm the flow stops and asks about splitting rather than silently proceeding
Quality gates:
- [ ] Every planned skill gets an explicit depth tier with a one-clause reason — never left unstated
- [ ] The >4-agent / too-many-skills code-smell check always runs before the plan is written
- [ ] The written plan path is always under
.Codex/output/plugin-planning/ - [ ] The Step 5 handoff offer uses
AskUserQuestion, never auto-invoked without asking - [ ] Depth-tier vocabulary matches
skill-workflow.md's 80% Rule terms — never introduces a new parallel rubric
Reference Guide
| Resource | Purpose |
|---|---|
references/plan-template.md |
The component-inventory + depth-plan document template used in Step 5 |
plugin-ideation skill |
Prior step — produces the Concept Card this skill consumes |
plugin-lifecycle-upstream skill |
Next step — orchestrates Design + Build across the planned components |
skill-development/references/skill-workflow.md |
The authoritative 80% Rule this skill's depth tiers are built on |
skill-development/references/skill-categories.md |
9 category templates used when deciding a skill's shape |
04 同仓库更多 Skills
demo
Fixture skill used by scripts.marketplace_ci sync tests.
export-demo
Fixture skill used by scripts.marketplace_ci export tests.
work-to-development
Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate/existing artifacts) and request governed branch/worktree creation through git-kit:starting-work — recording work-started Git/GitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.
work-linking
Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect/repair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken/stale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.
status-and-learning
Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome/learning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.
repository-gates
Discover, delegate, record, and invalidate this repository's actual Git/GitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a "Review Changes" gate exists).