一键导入
ln-plan
Break a feature or project area into frontier items and update `memory/PLAN.md`. Re-run to retire completed work, reorder priorities, or add new items.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Break a feature or project area into frontier items and update `memory/PLAN.md`. Re-run to retire completed work, reorder priorities, or add new items.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Author a completed-spec fixture — a seeded intent graph plus a believable four-phase interview transcript — for a brunch feature, so it can feed any downstream tooling that consumes a completed spec or dogfood the UI. Use when you need a real completed specification in .brunch/brunch.db for testing or demo: pick a feature from memory/SPEC.md (or a free description), choose a stress profile (coverage|clean), and produce a registered scenario seed + an interview-questions doc that match exactly.
Review someone else's PR through an architectural/strategic lens — does it shift design, raise complexity, or quietly change precedent? Drives a brief reflective discussion with the user, then posts a concise review comment via `gh`. Defers line-level and bug-hunting concerns to AI review bots and the PR author.
Crystallize shared understanding into a reviewable spec, or update an existing one. Use when the problem needs a written specification, when assumptions or decisions have changed, or when the user says 'write a spec'.
Lightweight triage for the ln-* skill set. Use when unsure which ln skill to use next, starting work on something new, or when the user asks for guidance on their development process.
Explore radically different module shapes before committing to one. Use when choosing an API surface, deciding what a module hides vs exposes, or when the user says 'design it twice'.
Collapse meaningful ambiguity with contrastive examples. Use when a plan/design has several plausible meanings, requirements feel vague, examples would clarify intent faster than grilling, or the user asks to disambiguate, find ambiguity, use behavioral kernels, or ask contrastive questions.
基于 SOC 职业分类
| name | ln-plan |
| description | Break a feature or project area into frontier items and update `memory/PLAN.md`. Re-run to retire completed work, reorder priorities, or add new items. |
| argument-hint | [feature or project area to plan] |
Plan the rolling frontier, not the whole historical timeline.
memory/PLAN.md is the canonical record of what's next. docs/archive/PLAN_HISTORY.md is the only sanctioned archive for retired plan history. memory/CARDS.md is the sanctioned derivative queue for multiple prepared scope cards inside one frontier item; it is not canonical planning state. Do not invent other sidecar plan docs, milestone ledgers, or alternate memory locations without explicit permission.
Use frontier item for a named canonical work item in memory/PLAN.md. Frontier items are the unit of Linear issue / Graphite branch work and should be vertical enough to establish or unlock a meaningful product or architecture step.
Use slice for the buildable scope card produced by ln-scope and implemented by ln-build. A slice is often a sub-unit of one frontier item. Several slices may land on the same frontier branch. Do not turn slices into separate PLAN entries unless the frontier itself changes shape, ownership, or dependency ordering.
The vertical-slicing instinct still applies at planning time: frontier items should cut through the relevant concerns of memory/SPEC.md instead of becoming layer-by-layer chores. The term "frontier" names their canonical/branch role; the term "slice" remains reserved for scoped execution.
Prefer the conflict-resistant mature shape:
Context — short rolling narrative for re-entrySequencing — small, frequently edited ordering/status references by stable frontier idFrontier Definitions — relatively stable per-frontier definitions keyed by stable idRecently Completed — last 2-3 completed frontier items onlyDependencies — active / next blocking relationships by stable id onlyWithin Sequencing, use:
Active — ordered frontier items open nowNext — near-horizon frontier items, loosely orderedParallel / Low-conflict — useful work that can proceed without disturbing the main stackHorizon — future work, lightly shapedArchive deeper history to docs/archive/PLAN_HISTORY.md instead of keeping it live in memory/PLAN.md.
Treat frontier items as branch-sized work, not commit-sized work. If one frontier item will unfold as several consecutive verified slices, keep that execution queue in memory/CARDS.md or in session context instead of fragmenting memory/PLAN.md into a commit ledger. memory/PLAN.md may carry at most a lightweight pointer such as current card queue: memory/CARDS.md; detailed discretionary sub-slicing belongs in memory/CARDS.md.
The feature or project area: $ARGUMENTS
If context is thin, run a brief interview — not a full ln-grill.
If this is a fresh thread or the frontier rationale is unclear, read HANDOFF.md if present before planning.
Every frontier definition should have a stable lowercase id / slug. Good ids are short and semantic, e.g. agent-fixture-substrate, intent-graph-semantics, changeset-ledger.
Rules:
Sequencing references frontier ids; it does not duplicate definition blocks.Frontier Definitions are keyed by frontier id and should not move just because ordering changes.Classify each frontier item before deciding how much planning weight it needs.
| Work type | Planning weight |
|---|---|
| Structural | full frontier definition with memory/SPEC.md traceability |
| Bounded feature | objective + acceptance + verification; add memory/SPEC.md links only if durable boundaries change |
| Hardening | task-level objective + acceptance |
| Bugfix | usually do not add to memory/PLAN.md unless it changes frontier priority |
| Refactor | route through ln-refactor unless it is itself frontier work |
Create a new frontier item only when it introduces at least one of:
Do not fragment the plan for minor action/status variants or ordinary follow-through inside a settled seam.
Do not split one frontier item into several new PLAN entries just because execution will require several scope cards or commits. Only split when the frontier itself changes shape, ownership, or dependency ordering.
When priorities change, edit Sequencing first. Do not move or rewrite frontier definitions merely to reorder work.
When the meaning, acceptance, verification, traceability, or design-doc references of a frontier changes, edit its Frontier Definitions entry.
When a frontier completes, remove it from Sequencing, add a terse Recently Completed entry, and archive older completion history if needed. Keep the definition only if it still carries live rationale for nearby work; otherwise archive/retire it.
If live low-confidence assumptions block downstream work, stop the plan at that boundary. Plan spikes or thinner proving frontier items, not fantasy certainty.
memory/PLAN.md if it exists. Identify existing frontier ids and retire/archive stale completed material into docs/archive/PLAN_HISTORY.md.memory/SPEC.md if it exists. Pull only the live requirements, assumptions, decisions, and invariants that still constrain forward work.Sequencing (Active, Next, Parallel / Low-conflict, Horizon) by stable frontier id.Frontier Definitions only for new or substantively changed frontier items.Why now / unlocks in a frontier definition when ordering would otherwise be opaque to a fresh thread.Recently Completed to 2-3 terse items max. Move older history to docs/archive/PLAN_HISTORY.md, not to handoff files or ad hoc notes.Dependencies to reflect only active / next items, by frontier id.memory/PLAN.md; they belong in memory/CARDS.md or in the active thread as derivative execution detail.Traceability is conditional on structural significance.
memory/SPEC.md.ln-scope discovers a durable change that must promote back into SPEC/PLAN.Write or update memory/PLAN.md using the plan template.
After writing the plan, present these options to the user (use tool-ask-question):
| # | Label | Target | Why |
|---|---|---|---|
| 1 | Scope next slice | ln-scope | The frontier is clear and ready to scope |
| 2 | Design oracles | ln-oracles | Verification design needs explicit work |
| 3 | Grill it more | ln-grill | Planning surfaced unresolved product questions |
| 4 | Back to triage | ln-consult | Direction needs reassessment |
Recommended: 1