Planning 标志

Planning

社区
citypaul
planning

将工作规划为垂直切片,或规划为明确选定的机制缩减方案,并拆分成小型、已知可靠的增量;可采用相互独立的拉取请求,也可选择跨一个或多个有序切片的堆叠 PR 拓扑。适用于启动重要工作、将已拆分的用户故事转化为实施计划、规划 PR 或安排复杂任务的执行顺序。对于机制缩减方案,请先使用 reduce-system-complexity 定义需保持不变的契约、最终机制移除状态,以及行为/机制关卡;然后再进行规划和排序。如果输入是仍需进行产品切片的宽泛用户故事、史诗、功能构想或待办事项,请先使用 story-splitting;如果某个切片需要评审层,或后续切片需要基于不断演进的基线先行启动、无需等待较低层级的 PR 合并,请同时使用 stack-pull-requests。

Add to TypingMind

概览

发布者citypaul
代码仓库.dotfiles
技能名称planning
星标数
740
复刻数
96
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 citypaul 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Planning AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/citypaul/.dotfiles/tree/main/claude/.claude/skills/planning
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/citypaul/.dotfiles.git /tmp/.dotfiles
mkdir -p .claude/skills
cp -r /tmp/.dotfiles/claude/.claude/skills/planning .claude/skills/planning
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Planning,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Planning。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Planning 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Planning in Vertical Slices

Plan by vertical slices wherever possible. Each slice delivers the smallest end-to-end behavior a real actor can observe, while leaving the codebase in a known-good state where all tests pass.

Horizontal work is allowed only when it explicitly unblocks the next vertical slice and is independently verifiable, or when it belongs to an explicitly selected reduction program whose terminal state retires one complete mechanism while conserving behavior.

In Claude Code environments where they exist, use /plan to create plans and /continue after a merged independent PR or to advance and sync an active stack. Otherwise, create or update the plan artifact directly and resume through the active harness or repository workflow.

Relationship To Story Splitting

story-splitting decides what small user-value stories exist. planning decides how to implement selected stories safely.

Use story-splitting before this skill when the request is still an epic, large story, feature idea, roadmap item, or backlog item with multiple possible customer outcomes. Once a child story or narrow capability has been selected, use this skill to create or update the repository's planning artifact with implementation slices, acceptance criteria, evidence routes, and a delivery shape for each slice.

Keep three units distinct:

UnitMeaningDefault relationship
Backlog storyFixed product capability and acceptance scope from story-splittingA plan may advance one selected story
Implementation sliceSmallest vertical increment or explicit reduction transition/terminal state that can merge and release safely once declared prerequisites landOne PR by default
PR boundaryReview package that owns a whole slice or, exceptionally, a dependent layer inside one sliceExists independently or inside a deliberate stack

A sequence is work order; a stack is branch topology. Default each slice to a trunk-based PR. Keep slice PRs independent when they can merge in any order without blocking or duplicating work, or when the next branch starts only after its predecessor lands. Load stack-pull-requests when one slice needs review layers or when later slices should start on the same evolving baseline before earlier PRs merge. Hard dependency is sufficient but not required; deliberate flow lineage may justify a stack. Speculative backtracking alone does not.

If a plan starts producing database-only, API-only, UI-only, or "do all plumbing first" slices, pause and return to story-splitting unless the horizontal work explicitly unlocks the next vertical slice with independent verification or advances an explicitly selected reduction program toward its named terminal mechanism-removal state.

Use grill-me where installed before planning when the selected story still contains unresolved product or design decisions. Otherwise, ask one focused question at a time, with a recommended answer and its trade-off. Use find-gaps before or after drafting the plan when acceptance criteria, failure modes, roles, states, or release constraints are missing or unverifiable.

Before freezing slices that introduce a material generic mechanism or durable new dependency, run the proportionate evaluate-existing-solutions preflight, due diligence, or full comparison. Link a decision-owner-accepted result when a choice was unresolved. Planning sequences the chosen solution; it does not silently turn the first plausible library or a bespoke sketch into the plan.

Input stateUseOutput
Fuzzy decision treegrill-me where installed; otherwise a one-question-at-a-time interviewResolved decisions or named open questions
Broad requirement with multiple outcomesstory-splittingChild stories
Existing story/plan/AC/mocks with holesfind-gapsConfirmed artifact updates
Selected child story ready for delivery sequencingplanningImplementation slices with a delivery shape
One slice may need review layers, or later slices may start before lower PRs mergestack-pull-requests + planningIndependent PRs or an explicit hard-/flow-lineage stack

Plans Directory

Use the repository-declared planning workflow and location. A repository may own plans in documentation, issues, or another named system. When no owner is declared and a file-backed plan is appropriate, use plans/ at the project root with a descriptive filename (for example, plans/gift-tracking.md).

Discover active plans through that workflow. For the fallback layout, use ls plans/.

Multiple plans can coexist — each is independent and won't conflict across branches or worktrees because they have unique filenames.

When a plan is complete: follow the repository's lifecycle rule. For the fallback layout, delete the plan file and remove plans/ when empty.

Prefer Small Reviewable PRs

Default to the smallest known-good vertical units, with one trunk-based PR per slice. Use a cross-slice stack when upper slices have hard dependency or deliberate flow lineage, will be in flight before lower merge, and review, lead-time, or correction-routing benefits earn the cascade cost. Use an intra-slice stack when one fixed slice still needs focused dependent review layers.

Why this matters: Small PRs are easier to review, easier to revert, and easier to reason about. When something breaks, the cause is obvious. When a PR sits in review, it doesn't block unrelated work. The goal is to stay as close to main as possible at all times.

A PR is too big when the reviewer needs to hold multiple unrelated concepts in their head to understand it, or when you'd struggle to write a clear 1-3 sentence summary of what it does.

There will be exceptions. Use judgement: first define honest vertical slices, then decide whether they stay independent, share a cross-slice hard/flow stack, or one slice needs intra-slice review layers.

What Makes a Vertical Slice

A vertical slice is not "small because it touches one layer." It is small because it delivers one observable behavior through the real production path.

Each slice MUST name:

  • Actor: who receives the value (user, admin, API client, scheduled job, support operator)
  • Trigger: what starts the behavior (click, request, event, command, timer)
  • Observable outcome: what proves the behavior happened
  • Production path: the real surfaces, use case, domain logic, persistence, and external adapters involved
  • Smallest deployable value: the narrowest useful version that can ship safely

Good slices are often thin but complete:

  • A form submits one valid field through the real API and persists it
  • A background job handles one event type and emits the expected audit result
  • A CLI command supports one input shape and returns stable stdout/stderr
  • A read-only screen shows one real state using production data loading

Choosing Slices

Before writing plan slices:

  1. Name the outcome — describe the user- or system-visible result in one sentence.
  2. Map the path — list the real entry point, business path, state change, output, and observability.
  3. Pick the walking skeleton — choose the thinnest end-to-end version that proves the path works.
  4. Add one behavior or state at a time — validation, permissions, error states, empty states, retries, analytics, and polish become later slices.
  5. Check reversibility — each slice should be easy to revert or disable without undoing unrelated work.

Ask "what is the smallest real behavior we can ship?" before asking "what files need to change?" If the answer still contains multiple customer outcomes, roles, workflow branches, or quality levels, load story-splitting and split the parent before writing the plan.

Horizontal Work Exceptions

Avoid plans that do all database, API, UI, or infrastructure work up front. Horizontal work may be its own slice only when all applicable conditions are true:

  • It names the next vertical slice it unlocks, or belongs to an explicitly selected reduction program with a terminal mechanism-removal outcome
  • It leaves the codebase deployable
  • It has observable verification (test, command output, migration dry-run, or runtime check)
  • It is smaller than doing it inside the vertical slice
  • It does not introduce unused abstractions or speculative flexibility

Valid horizontal exceptions include dependency upgrades, migrations, test harness setup, infrastructure wiring, mechanical refactors, safety fixes, and a selected reduce-system-complexity program whose terminal state conserves behavior while retiring one complete mechanism. Keep them rare and explicit. An intermediate reduction transition may temporarily add a bridge when it is independently verifiable and the same plan names the terminal slice and behavior/mechanism gates; record an owner, removal condition, and bounded lifetime for any bridge, or N/A when none exists.

What Makes a Known-Good Slice

Each slice MUST:

  • Leave all tests passing
  • Be independently deployable
  • Have clear done criteria
  • Fit in a single PR by default, or have an approved stack-pull-requests delivery map
  • Be describable in one sentence
  • Deliver or directly unblock observable behavior, or safely advance an explicitly selected reduction program toward its terminal behavior/mechanism gates

A slice is the unit of planning and known-good value. By default it is also one review PR against trunk. In a cross-slice stack, each PR may own a complete slice and that slice completes when its PR lands bottom-up. In an intra-slice stack, dependent PR layers are focused review boundaries and the slice completes when its top lands. Within each behavior-changing PR boundary, fast RED-GREEN-REFACTOR increments may produce multiple commits; mutation testing or alternate evidence runs once when that boundary is otherwise PR-ready, not after each increment.

If you can't describe a slice in one sentence, break it down further.

Slice Size Heuristics

Too big if:

  • Takes more than one session
  • Has multiple "and"s in description
  • You're unsure how to test it
  • Needs many unrelated fixtures, mocks, screens, or endpoints
  • Builds a layer without proving an outcome

Right size if:

  • One clear behavior
  • One primary test case plus focused edge cases
  • Can explain to someone quickly
  • Obvious when done
  • Touches only the path needed for the behavior
  • Leaves a useful checkpoint even if later slices never happen

TDD Integration

Every behavior-changing slice uses fast RED-GREEN-REFACTOR increments, followed by one end-of-phase mutation or alternate-evidence gate when the slice is otherwise ready for its PR. Before implementation, load tdd, testing, and applicable refactoring guidance. Use the mutation-testing mutator rules for cheap test-design guidance, but defer the automated harness until PR readiness. A true behavior-preserving refactor or reduce-system-complexity slice starts from passing proportionate preservation evidence and uses the same end-of-phase gate. Never fabricate a failing mechanism-count test or structural mutant. This section is a routing contract, not a replacement for those skills.

For any stack, apply that cadence to every PR against its parent review boundary. Put tests in the PR that first owns the behavior, run the mutation-or-alternate-evidence gate once when each boundary is PR-ready, and require the top to prove every included slice's cumulative acceptance criteria or reduction gates. Do not defer tests or evidence upstack.

FOR EACH BEHAVIOR-CHANGING SLICE OR PR BOUNDARY:
    │
    ├─► LOAD: Required implementation skills
    │   - `tdd` for RED-GREEN-REFACTOR
    │   - `testing` for behavior-driven tests and factories
    │   - `refactoring` when restructuring is applicable; otherwise `N/A`
    │
    ├─► CONFIRM: Present acceptance criteria for this slice
    │   - Human must approve criteria before any code is written
    │   - Criteria must be specific and observable
    │   - Do NOT proceed until human confirms
    │
    ├─► RED: Write failing test FIRST
    │   - Test describes expected behavior
    │   - Test fails for the right reason
    │   - Run only the exact test/test name needed to prove RED
    │   - Test plan accounts for likely mutants from the `mutation-testing` skill's `resources/mutator-rules.md` resource
    │
    ├─► GREEN: Write MINIMUM code to pass
    │   - No extra features
    │   - No premature optimization
    │   - Just make the test pass
    │   - Follow the `tdd` skill's canonical watcher selection, lifecycle, cleanup, and live-proof policy
    │   - Prefer a proven repository-owned watcher; use diff-selected Vitest watch only under the canonical version/configuration proof
    │   - Use the affected one-shot when watch is unreliable; do not hand-pick GREEN test files
    │   - Keep watcher discovery live for new tests, or rerun the affected one-shot after creation; reject zero-test/`--passWithNoTests` results
    │   - In monorepos, run through the root project/task graph so shared-package consumers remain eligible
    │
    ├─► REFACTOR: Assess improvements
    │   - See `refactoring` skill
    │   - Only if it adds value
    │   - Focused and affected tests stay green; do not rerun the full suite after every edit
    │
    ├─► REPEAT: Continue RED-GREEN-REFACTOR as needed
    │   - Do not run the automated mutation harness after each increment, refactor, or commit
    │
    └─► STOP: Present the work and wait for commit approval
         - Show what was implemented and the ordinary verification
         - Human reviews and approves before commit

WHEN THE CURRENT REVIEW BOUNDARY IS OTHERWISE READY FOR ITS PR:
    ├─► LOAD: `mutation-testing`
    ├─► MUTATE OR ALTERNATE EVIDENCE: Run once for the focused boundary scope, or record explicit `N/A` plus proportionate alternate evidence
    ├─► KILL MUTANTS: Address valuable survivors and re-run focused/diff mutations within the same gate
    └─► COMPLETE: Finish the remaining PR checks and present the final report

A pure refactor substitutes: confirm the preserved consumer contract → run the applicable passing baseline → restructure while staying green → verify the preserved surface → at PR readiness, run mutation testing once for the accumulated scope or review proportionate alternate evidence.

A reduction transition substitutes: link the reducer program/ledger and terminal slice → confirm the conserved contract → run the applicable baseline → make the independently verifiable transition → pass the behavior gate → record any bridge ownership/removal/bounded lifetime (N/A when none) → keep mechanism gate: pending — no net-reduction claim → apply the mutation/alternate-evidence gate once at PR readiness.

A terminal reduction substitutes: link the program/ledger (or authorized single-slice N/A) → run the applicable baseline → remove superseded machinery and expired bridges → discharge transition obligations → pass both behavior and mechanism gates → apply the mutation/alternate-evidence gate once at PR readiness.

No untested behavior changes. No "I'll add tests later."

Commit Discipline

NEVER commit without user approval.

After completing an implementation increment:

  1. Verify applicable tests pass and/or the approved preservation evidence still holds

  2. Verify static analysis passes

  3. Present class-specific evidence: RED/GREEN for behavior change; preserved contract for pure refactor; passing behavior gate plus independent verification and pending mechanism gate/no net claim for a transition; or linked program/ledger, discharged obligations, both passing gates, and retired machinery for a terminal reduction

  4. Do not require a mutation report for every commit. When the current PR boundary is otherwise ready, run the end-of-phase mutation gate once and present its final report (or the reviewed alternate-evidence record and N/A rationale).

  5. STOP and ask: "Ready to commit [description]. Approve?"

Only proceed with commit after explicit approval.

Why Wait for Approval?

  • User maintains control of git history
  • Opportunity to review before commit
  • Prevents accidental commits of incomplete work
  • Creates natural checkpoint for discussion

Plan File Structure

Each file-backed plan follows this structure:

markdown
# Plan: [Feature Name]

**Branch**: feat/feature-name
**Status**: Active

## Goal

[One sentence describing the outcome]

## Acceptance Criteria

[For a behavior-change delivery plan, use behavior-driven criteria that describe observable business outcomes, not implementation details. Test at the lowest level that gives confidence: prefer unit tests for logic/domain behavior, browser tests for UI interaction, and end-to-end tests only for end-to-end flows.

For a reduction program, define the conserved observable contract, terminal same-scope mechanism delta, retirement of superseded machinery and expired bridges, passing behavior/mechanism gates, and mutation results or explicit mutation `N/A` with proportionate alternate evidence. Do not invent new product behavior or tests for mechanism shape.]

- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3

## Slices

Classify every slice as **behavior change**, **pure refactor**, **reduction transition**, or **terminal reduction**. Behavior-changing slices use RED-GREEN-REFACTOR increments and all classes use one end-of-phase mutation or alternate-evidence gate at PR readiness. Pure refactors start from passing preservation evidence. Every reduction transition and terminal reduction loads `reduce-system-complexity` and references the plan-level reduction program. A transition may add a bounded bridge but never claims net reduction: its mechanism gate remains explicitly pending until the terminal slice removes the old mechanism and expired bridges. Only the terminal reduction may claim net removal after both behavior and mechanism gates pass.
Read the repository's governing instructions and testing rules before writing slices.

## Reduction Program (include only when applicable)

**Ledger/report**: [Link to the `reduce-system-complexity` diagnosis and conservation ledger.]
**Conserved contract**: [Behavior and guarantees that every transition and the terminal state preserve.]
**Superseded mechanism**: [The complete mechanism the terminal slice will retire.]
**Terminal slice**: [Slice name/number that removes the old mechanism and expired bridges.]
**Owner and removal condition**: [For each temporary bridge: accountable owner, objective removal condition, and latest acceptable removal point; otherwise `N/A — no temporary bridge`.]
**Behavior gate**: [Required evidence and fidelity.]
**Mechanism gate**: [Like-for-like whole-mechanism accounting required at the terminal slice.]

### Slice 1: [One sentence observable behaviour]

**Value**: [Behavior change: actor and observable outcome. Pure refactor: preserved consumer surface and maintenance value. Reduction transition: why this independently verifiable increment is necessary to reach the terminal state. Terminal reduction: conserved contract plus the ownership/mechanism retired.]
**Path**: [Behavior change: entry point -> business path -> state/output -> observability. Pure refactor: preserved public surface. Either reduction class: affected trigger-to-outcome path, program/terminal link, and mechanism scope.]
**Class**: Behavior change / pure refactor / reduction transition / terminal reduction.
**Delivery**: [Independent PR against trunk (default); cross-slice stack member referencing the shared `#### Delivery Shape`; or an intra-slice `#### Delivery Shape` map.]
**Required implementation skills**: For changed behavior, load `tdd`, `testing`, and applicable refactoring guidance. For a pure refactor, load only applicable testing and refactoring skills. Every reduction transition and terminal reduction loads `reduce-system-complexity` plus applicable evidence skills. At each PR boundary's readiness, load `mutation-testing` for the focused scope where meaningful or record the alternate-evidence `N/A`. Add UI/domain/architecture skills only when relevant.
**Reduction program**: [For either reduction class: reference the plan-level program and terminal slice; otherwise `N/A`.]
**Transition/terminal evidence**: [Transition: `behavior gate: pass`, independent verification, bridge owner/removal/bounded-lifetime metadata when a bridge exists (`N/A` otherwise), and `mechanism gate: pending — no net-reduction claim`. Terminal: passing behavior gate, like-for-like mechanism gate, and removal of the superseded mechanism/expired bridges. Otherwise `N/A`.]
**Acceptance criteria**: [Behavior change: specific observable outcome. Pure refactor: conserved surface plus preservation evidence. Transition: passing behavior gate, independent verification, optional bridge metadata or `N/A`, and pending mechanism gate/no net claim. Terminal: both gates pass and superseded machinery/expired bridges are gone. **Present to the human and get confirmation before writing any code.**]
**RED or preservation baseline**: For behavior change, what failing behavior test will we write? For a pure refactor/reduction, which passing oracles and proportionate non-test evidence conserve the affected behavior and guarantees? Never assert implementation shape merely to create RED.
**GREEN or preservation change**: What minimum code makes the new behavior pass, or what smallest mechanism-only change preserves the baseline?
**REFACTOR**: Assess improvements (only if they add value).
**PRE-PR MUTATION or alternate evidence**: Once the current review boundary is otherwise PR-ready, run mutation testing once for its accumulated scope. Address valuable survivors and re-run focused/diff checks inside the same gate. Otherwise mark `N/A` and name reachability, configuration, contract, integration, or operational evidence; never invent structural mutants.
**PR-ready when**: All acceptance criteria owned by the current boundary and its end-of-phase mutation/alternate-evidence obligations are met. A transition's behavior gate and independent checks pass while its mechanism gate remains truthfully pending with no net claim; a terminal reduction passes both gates and removes old machinery/expired bridges. The human approves the commit.
**Slice complete when**: Its independent or cross-slice owning PR lands, or the top PR lands for an intra-slice stack.

### Slice 2: [One sentence observable behaviour]

Use the same adaptive fields as Slice 1. Classify the slice independently; do not inherit a behavior-change workflow when this slice only preserves behavior or removes mechanism.

## Pre-PR Quality Gate

Before each PR:
1. Implementation complete — confirm applicable refactoring/reduction assessment and ordinary verification are complete
2. Mutation or alternate evidence — run `mutation-testing` once for the accumulated PR scope where meaningful; address valuable survivors within the same gate, or review the explicit `N/A` rationale and proportionate evidence
3. Typecheck and lint pass
4. DDD glossary check — if the project uses DDD, verify all domain terms match the canonical glossary
5. Complete tests — stop watchers and run the repository-defined complete non-watch PR test gate; in a monorepo include every configured project and required integration/E2E suite, not only the affected development subset
6. Evidence freshness — apply the target repository's mutation-evidence rule after later fixes. Use this distribution's model (the `panel-review` skill's `references/pr-readiness.md`) only when the repository has no stricter invalidation policy, and keep project verification current after resulting fixes

For an intra-slice stack, nest the exact `#### Delivery Shape` and whole-stack gate under that slice. For a cross-slice stack, place one shared map before the first included slice and reference it from each included slice. Never stack an entire plan by default.

---
*Complete this plan using the repository's declared lifecycle. For the
fallback `plans/` layout, delete this file and remove the directory when
empty.*

Plan Changes Require Approval

If the plan needs to change:

  1. Explain what changed and why
  2. Propose updated slices
  3. Wait for approval before proceeding

Plans are not immutable, but changes must be explicit and approved.

End of Feature

When every slice's owning PR has landed (or the top PR has landed for each intra-slice stack):

  1. Verify completion — all owning PRs landed; all acceptance criteria met; applicable tests and mutation/alternate evidence pass; any reduction program reaches a terminal slice with both gates passed and old machinery/expired bridges gone
  2. Merge learnings — if significant insights were gained, use Claude Code's learn or adr agents where installed; otherwise use the expectations skill for project guidance and the repository's established ADR mechanism for architectural decisions
  3. Close the plan — follow the repository's declared lifecycle; for the fallback plans/ layout, delete the file and remove the directory when empty

Anti-Patterns

❌ Committing without approval

  • Always wait for explicit "yes" before committing

❌ Layer-cake plans

  • "Build database, then API, then UI" delays learning and hides broken integration

❌ Foundation work with no named slice

  • If setup is needed, name the vertical slice it unlocks and how the setup is verified

❌ Database-only, API-only, or UI-only slices by default

  • These are usually implementation tasks, not independently valuable behavior

❌ Do all plumbing first

  • Prefer a walking skeleton that proves the real path, then widen it behavior by behavior

❌ Slices that span multiple PRs without a delivery decision

  • Default each slice to one trunk-based PR. If a cross-slice flow/hard stack or intra-slice review layers materially help, load stack-pull-requests, justify the exact topology, and preserve every slice's scope and terminal obligations.

❌ Writing changed behavior before its test

  • RED comes first for behavior change; a true REFACTOR slice records passing preservation evidence instead

❌ Plans that change silently

  • All plan changes require discussion and approval

❌ Keeping plan files after feature complete

  • Follow the repository's documentation lifecycle: delete temporary plans after completion, but promote lasting decisions or guidance to the maintained artifact that owns them

Quick Reference

START FEATURE
│
├─► Create or update the repository-owned plan (get approval)
│
│   FOR EACH IMPLEMENTATION SLICE:
│   │
│   ├─► DELIVERY: Independent trunk-based PR by default; otherwise reference an approved intra- or cross-slice stack map
│   ├─► BEHAVIOR CHANGE: LOAD → CONFIRM → RED → GREEN → REFACTOR → REPEAT WITHOUT MUTATION HARNESS
│   ├─► OR PURE REFACTOR/REDUCTION: PASSING BASELINE → REFACTOR/REDUCE → VERIFY GATES
│   ├─► **PRESENT WORK, WAIT FOR COMMIT APPROVAL**
│   ├─► PRE-PR: Run mutation once for each current review boundary (or alternate evidence), handle survivors within the gate
│   └─► Verify focused and top-level criteria; create one PR or the planned stack
│
END FEATURE
│
├─► Verify all owning PRs landed and all criteria met
├─► Merge learnings if significant (installed learn/ADR workflow, or `expectations` plus the repository's ADR mechanism)
└─► Close the plan using the repository's declared lifecycle

常见问题

Planning AI 技能有什么作用?

将工作规划为垂直切片,或规划为明确选定的机制缩减方案,并拆分成小型、已知可靠的增量;可采用相互独立的拉取请求,也可选择跨一个或多个有序切片的堆叠 PR 拓扑。适用于启动重要工作、将已拆分的用户故事转化为实施计划、规划 PR 或安排复杂任务的执行顺序。对于机制缩减方案,请先使用 reduce-system-complexity 定义需保持不变的契约、最终机制移除状态,以及行为/机制关卡;然后再进行规划和排序。如果输入是仍需进行产品切片的宽泛用户故事、史诗、功能构想或待办事项,请先使用 story-splitting;如果某个切片需要评审层,或后续切片需要基于不断演进的基线先行启动、无需等待较低层级的 PR 合并,请同时使用 stack-pull-requests。

为什么在 TypingMind 中使用 Planning?

因为您只需安装一次,就能搭配任何模型使用。Planning 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Planning?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/citypaul/.dotfiles/tree/main/claude/.claude/skills/planning。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Planning?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Planning 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Planning 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Planning AI 技能免费吗?

citypaul 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇