Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

planning-patterns规划模式

Agent Skill

planning-patterns 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,028

周安装

42

GitHub Stars

141

下载量

329
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:planning-patterns(规划模式)
来源仓库:https://github.com/romiluz13/cc10x
仓库路径:skills/planning-patterns
安装命令:
npx skills add https://github.com/romiluz13/cc10x --skill planning-patterns
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/romiluz13/cc10x --skill planning-patterns

简介

用于查找、检索和筛选相关信息,支持快速定位候选结果。

  • 适合在关键词搜索、任务场景或来源线索下使用,提升信息获取效率。
  • 可结合来源仓库和原始 README 核验具体用法,确保准确性。
  • 安装前应确认权限范围、维护状态及是否触发联网或文件读写。
  • 建议在使用前评估技能是否会执行命令或访问敏感数据。planning-patterns 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Writing Plans

Overview

Write comprehensive implementation plans assuming the engineer has zero context for the codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.

Assume they are a skilled developer, but know almost nothing about the toolset or problem domain. Assume they don't know good test design very well.

Core principle: Plans must be executable without asking questions.

The Iron Law

NO VAGUE STEPS - EVERY STEP IS A SPECIFIC ACTION

"Add validation" is not a step. "Write test for empty email, run it, implement check, run it, commit" - that's 5 steps.

Bite-Sized Task Granularity

Each step is one action (2-5 minutes):

  • "Write the failing test" - step
  • "Run it to make sure it fails" - step
  • "Implement the minimal code to make the test pass" - step
  • "Run the tests and make sure they pass" - step
  • "Commit" - step

Not a step:

  • "Add authentication" (too vague)
  • "Implement the feature" (multiple actions)
  • "Test it" (which tests? how?)

Plan Document Header

Every plan MUST start with this header:

# [Feature Name] Implementation Plan

> **For Claude:** REQUIRED: Follow this plan task-by-task using TDD.
> **Design:** See `docs/plans/YYYY-MM-DD-<feature>-design.md` for full specification.

**Goal:** [One sentence describing what this builds]

**Architecture:** [2-3 sentences about approach]

**Tech Stack:** [Key technologies/libraries]

**Prerequisites:** [What must exist before starting]

---

If a design document exists, always reference it in the header.

Task Structure

### Task N: [Component Name]

**Files:**
- Create: `exact/path/to/file.ts`
- Modify: `exact/path/to/existing.ts:123-145`
- Test: `tests/exact/path/to/test.ts`

**Step 1: Write the failing test**

test('specific behavior being tested', () => { const result = functionName(input); expect(result).toBe(expected); });


**Step 2: Run test to verify it fails**

Run: `npm test tests/path/test.ts -- --grep "specific behavior"` Expected: FAIL with "functionName is not defined"

**Step 3: Write minimal implementation**

function functionName(input: InputType): OutputType { return expected; }


**Step 4: Run test to verify it passes**

Run: `npm test tests/path/test.ts -- --grep "specific behavior"` Expected: PASS

**Step 5: Commit**

git add tests/path/test.ts src/path/file.ts git commit -m "feat: add specific feature"

Context is King (Cole Medin Principle)

The plan must contain ALL information for a single-pass implementation.

A developer with zero codebase context should be able to execute the plan WITHOUT asking any questions.

Context References Section (MUST READ!)

Every plan MUST include a Context References section:

## Relevant Codebase Files

### Patterns to Follow
- `src/components/Button.tsx` (lines 15-45) - Component structure pattern
- `src/services/api.ts` (lines 23-67) - API service pattern

### Configuration Files
- `tsconfig.json` - TypeScript settings
- `.env.example` - Environment variables needed

### Related Documentation
- `docs/architecture.md#authentication` - Auth flow overview
- `README.md#running-tests` - Test commands

Why: Claude forgets context. External docs get stale. File:line references are always accurate.

Validation Levels

Match validation depth to plan complexity:

LevelNameCommandsWhen
1Syntax & Stylenpm run lint, tsc --noEmitEvery task
2Unit Testsnpm testLow-Medium risk
3Integration Testsnpm run test:integrationMedium-High risk
4Manual ValidationUser flow walkthroughHigh-Critical risk

Include specific validation commands in each task step.

Requirements Checklist

Before writing a plan:

  • Problem statement clear
  • Users identified
  • Functional requirements listed
  • Non-functional requirements listed (performance, security, scale)
  • Constraints documented
  • Success criteria defined
  • Existing code patterns understood
  • Context References section prepared with file:line references

Risk Assessment Table

For each identified risk:

RiskProbability (1-5)Impact (1-5)ScoreMitigation
API timeout3412Retry with backoff
Invalid input428Validation layer
Auth bypass2510Security review

Score = Probability × Impact. Address risks with score > 8 first.

Risk-Based Testing Matrix

Match testing depth to task risk:

Task RiskExampleTests Required
TrivialTypo fix, docs updateNone
LowSingle file change, utility functionUnit tests only
MediumMulti-file feature, new componentUnit + Integration tests
HighCross-service, auth, state managementUnit + Integration + E2E tests
CriticalPayments, security, data migrationsAll tests + Security audit

How to assess risk:

  • How many files touched? (1 = low, 3+ = medium, cross-service = high)
  • Is it auth/payments/security? (always high or critical)
  • Is it user-facing? (medium minimum)
  • Can it cause data loss? (high or critical)

Use this matrix when planning test steps. Don't over-test trivial changes. Don't under-test critical ones.

Functionality Flow Mapping

Before planning, document all flows:

User Flow:

1. User clicks [button]
2. System shows [form]
3. User enters [data]
4. System validates [input]
5. System saves [data]
6. System shows [confirmation]

Admin Flow:

1. Admin opens [dashboard]
2. Admin selects [item]
3. System shows [details]
4. Admin changes [setting]
5. System applies [change]

System Flow:

1. Request arrives at [endpoint]
2. Middleware validates [auth]
3. Controller calls [service]
4. Service queries [database]
5. Response returns [data]

Architecture Decision Records (ADR)

When comparing approaches, document the decision formally:

Use this format when a plan involves choosing between multiple valid approaches:

## ADR: [Decision Title]

**Context:** What situation or requirement prompted this decision?

**Decision:** What approach did we choose?

**Consequences:**
- **Positive:** [benefits of this choice]
- **Negative:** [tradeoffs we accept]
- **Alternatives Considered:** [what we didn't choose and why]

When to use ADR:

  • Choosing between architectures (monolith vs microservices)
  • Selecting libraries/frameworks (React vs Vue)
  • Database decisions (SQL vs NoSQL)
  • Authentication approaches (JWT vs sessions)

Save ADRs to: docs/decisions/ADR-NNN-title.md

Red Flags - STOP and Revise

If you find yourself:

  • Writing "add feature" without exact file paths
  • Skipping the test step
  • Combining multiple actions into one step
  • Using "etc." or "similar" instead of explicit steps
  • Planning without understanding existing code patterns
  • Creating steps that take more than 5 minutes
  • Not including expected output for test commands

STOP. Revise the plan with more specific steps.

Rationalization Prevention

ExcuseReality
"They'll know what I mean"No they won't. Be explicit.
"Too much detail is annoying"Vague plans cause bugs.
"Testing is obvious"Write the test command.
"File paths are discoverable"Write the exact path.
"Commits are implied"Write when to commit.
"They can figure out edge cases"List every edge case.

Output Format

# [Feature Name] Implementation Plan

> **For Claude:** REQUIRED: Follow this plan task-by-task using TDD.

**Goal:** [One sentence]

**Architecture:** [2-3 sentences]

**Tech Stack:** [Technologies]

**Prerequisites:** [Requirements]

---

## Phase 1: [Demonstrable Milestone]

> **Exit Criteria:** [What must be true when this phase is complete - e.g., "User can log in and receive JWT"]

### Task 1: [First Component]

**Files:**
- Create: `src/path/file.ts`
- Test: `tests/path/file.test.ts`

**Step 1:** Write failing test
[code block with test]

**Step 2:** Run test, verify fails
Run: `[command]`
Expected: FAIL

**Step 3:** Implement
[code block with implementation]

**Step 4:** Run test, verify passes
Run: `[command]`
Expected: PASS

**Step 5:** Commit

git add [files] git commit -m "feat: [description]"


### Task 2: [Second Component]

...

---

## Risks

| Risk | P | I | Score | Mitigation |
| --- | --- | --- | --- | --- |
| ... | ... | ... | ... | ... |

---

## Success Criteria

- All tests pass
- Feature works as specified
- No regressions
- Code reviewed

Save the Plan (MANDATORY)

Two saves are required - plan file AND memory update:

Step 1: Save Plan File (Use Write tool - NO PERMISSION NEEDED)


# First create directory

Bash(command="mkdir -p docs/plans")

# Then save plan using Write tool (permission-free)

Write(file_path="docs/plans/YYYY-MM-DD--plan.md", content="[full plan content from output format above]")

# Do NOT auto-commit — let the user decide when to commit

Step 2: Update Memory (CRITICAL - Links Plan to Memory)

Use Read-Edit-Verify with stable anchors:


# Step 1: READ

Read(file_path=".claude/cc10x/v10/activeContext.md")

# Step 2: VERIFY anchors exist (## References, ## Recent Changes, ## Next Steps)

# Step 3: EDIT using stable anchors

# Add plan to References

Edit(file_path=".claude/cc10x/v10/activeContext.md", old_string="## References", new_string="## References\n- Plan: `docs/plans/YYYY-MM-DD-<feature>-plan.md`")

# Index the plan creation in Recent Changes

Edit(file_path=".claude/cc10x/v10/activeContext.md", old_string="## Recent Changes", new_string="## Recent Changes\n- Plan saved: docs/plans/YYYY-MM-DD--plan.md")

# Make execution the default next step

Edit(file_path=".claude/cc10x/v10/activeContext.md", old_string="## Next Steps", new_string="## Next Steps\n1. Execute plan: docs/plans/YYYY-MM-DD--plan.md")

# Step 4: VERIFY (do not skip)

Read(file_path=".claude/cc10x/v10/activeContext.md")

Also append to progress.md using stable anchor:


Read(file_path=".claude/cc10x/v10/progress.md")

Edit(file_path=".claude/cc10x/v10/progress.md", old_string="## Completed", new_string="## Completed\n- [x] Plan saved - docs/plans/YYYY-MM-DD--plan.md")

# VERIFY (do not skip)

Read(file_path=".claude/cc10x/v10/progress.md")

WHY BOTH: Plan files are artifacts. Memory is the index. Without memory update, next session won't know the plan exists.

This is non-negotiable. Memory is the single source of truth.

Router-Owned Task Tracking

The planner does not create execution tasks. Its job is to create the plan artifact and emit a router contract.

After planning:

  • Save the plan file.
  • Update memory with the plan reference.
  • Let the router create workflow and execution tasks from the approved plan.

Do not instruct the planner to call TaskCreate or TaskUpdate for phase tracking.

Plan-Task Linkage (Context Preservation)

The relationship between Plan Files and Tasks:


┌─────────────────────────────────────────────────────────────────────┐ │ PLAN FILE (Persistent - Source of Truth) │ │ Location: docs/plans/YYYY-MM-DD-{feature}-plan.md │ │ Contains: Full implementation details, TDD steps, file paths │ │ Survives: Session close, context compaction, conversation reset │ └─────────────────────────────────────────────────────────────────────┘ ↕ task description includes the plan file path ┌─────────────────────────────────────────────────────────────────────┐ │ TASKS (Execution Engine) │ │ Contains: Status, dependencies, progress tracking │ │ Survives: Context compaction; can be shared across sessions via │ │ task list configuration (official Claude Code) │ └─────────────────────────────────────────────────────────────────────┘

Plan path-in-description is CRITICAL: If context compacts mid-execution, the task description contains enough info to:

  1. Find the plan file
  2. Locate the exact phase/task
  3. Continue without asking questions

Phase Exit Criteria are CRITICAL: Each phase MUST have a demonstrable milestone (not arbitrary naming):

  • ❌ "Phase 1: Foundation" - Vague, when is it done?
  • ✅ "Phase 1: User can authenticate" - Demonstrable, testable

Execution Handoff

After saving the plan, offer execution choice:

"Plan complete and saved to docs/plans/<filename>.md. Two execution options:

1. Subagent-Driven (this session) - Fresh subagent per task, review between tasks, fast iteration

2. Manual Execution - Follow plan step by step, verify each step

Which approach?"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.79%
按下载量换算114

Claude

29.78%
按下载量换算98

Cursor

19.42%
按下载量换算64

Gemini CLI

9.31%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills