Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

plan-crafting计划制作

Agent Skill

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

总安装

737

周安装

31

GitHub Stars

75

下载量

258
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tmdgusya/engineering-discipline --skill plan-crafting

简介

用于在任务前查找、检索和筛选相关信息。

  • 适合根据关键词、任务场景或来源线索快速定位候选结果,支持多宿主环境协作。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,使用前需确认权限和维护状态。
  • 建议检查是否会触发联网、命令执行或文件读写操作,确保符合安全策略。
  • 可结合来源仓库和原始 README 进一步核验具体用法和适用边界。

SKILL.md

Plan Crafting

Writes an executable plan document from a clearly defined work scope. Designed so tasks can be spawned as "worker-validator" pairs in parallel.

Core Principle

A plan document must be executable by a worker with zero codebase context, without any additional questions. All ambiguity must be resolved at the planning stage.

Hard Gates

  1. Every step must be executable. Placeholders (TBD, TODO, "implement later") are never allowed.
  2. Task conflicts must be prevented. Tasks modifying the same file must not run in parallel. Tasks with dependencies must wait for predecessor completion.
  3. Self-Review is mandatory. After writing the plan, verify its completeness yourself.
  4. Tasks decompose to minimal feature units. One task produces one clear deliverable.

When To Use

  • After the clarification skill completes and a Context Brief file has been generated
  • When the user explicitly requests plan creation with a clear prompt
  • When multi-step implementation is needed and task ordering with dependencies must be defined

Input

This skill takes a Context Brief file as input. The Context Brief generated by the clarification skill is used to populate the plan header:

Context Brief FieldPlan Header Mapping
GoalGoal
Scope (In/Out)Work Scope (included/excluded)
Technical ContextArchitecture + Tech Stack + basis for file structure mapping
ConstraintsReflected as constraints during task decomposition
Success CriteriaUsed as Self-Review criteria
Open QuestionsReflected as assumptions in the plan, then confirmed with the user

If no Context Brief file exists (user directly requests a plan): confirm essential information (goal, work scope, tech stack) with the user before writing the plan.

When NOT To Use

  • When work scope is still ambiguous (return to the clarification skill)
  • Single-file edits, simple bug fixes, or other single-step tasks
  • When the user explicitly says "skip the plan, just do it"

Plan Document Structure

Save Location

docs/engineering-discipline/plans/YYYY-MM-DD-<feature-name>.md

(User preferences for plan location override this default.)

Header

# [Feature Name] Implementation Plan

> **Worker note:** Execute this plan task-by-task using the run-plan skill or subagents. Each step uses checkbox (`- [ ]`) syntax for progress tracking.

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

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

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

**Work Scope:**
- **In scope:** [What will be implemented]
- **Out of scope:** [What is explicitly excluded]

---

File Structure Mapping

Before defining tasks, map out which files will be created or modified. Decomposition decisions are locked in at this stage.

  • Each file should have one clear responsibility.
  • Files that change together should live together. Split by responsibility, not by technical layer.
  • Follow existing codebase patterns. If the codebase uses large files, don't unilaterally restructure — but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
  • File structure informs task decomposition. Each task should produce a self-contained change that makes sense independently.

Verification Discovery

Before decomposing tasks, discover the project's highest-level verification capability. This determines the Final Verification Task that closes every plan.

Discovery order (use the first match):

  1. Existing e2e tests — search for e2e/, tests/e2e/, cypress/, playwright/, test:e2e in package.json, e2e targets in Makefile/Taskfile
  2. Integration tests — search for tests/integration/, integration_test, test:integration scripts
  3. Verification skill or agent — check .claude/skills/, .claude/agents/, and installed plugins for anything named verify, validate, e2e, or test
  4. Project test suite — any test runner (pytest, jest, go test, cargo test, etc.) with broad coverage
  5. Build + lint — if no tests exist, the highest available verification is a successful build + lint pass

If no meaningful verification exists (level 5 only): Add a Task 0: Create Verification Infrastructure that sets up the minimal verification needed for this plan:

  • Identify the project's tech stack and appropriate test framework
  • Create an e2e or integration test that exercises the plan's core success criteria
  • This test should fail before implementation and pass after all tasks complete

Record the discovery result in the plan header:

**Verification Strategy:**
- **Level:** [e2e | integration | skill/agent | test-suite | build-only]
- **Command:** [exact command to run the verification]
- **What it validates:** [what passing this verification proves]

Project Capability Discovery

Before decomposing tasks, also discover project-level agents and skills that workers can leverage:

  1. Project agents — check .claude/agents/ for agents relevant to the task domain (e.g., a test-runner agent, a db-migration agent)
  2. Plugin agents — check installed plugins for specialized agents (e.g., build-validator, lint-fixer)
  3. Project skills — check .claude/skills/ for skills that match task operations

If useful agents/skills are found, reference them in task steps where applicable:

- [ ] **Step N: Run migration**

Use the project's `db-migration` agent for this step if available.
Run: `<migration command>`

Workers are not required to use discovered agents — they are hints for efficiency. The worker may execute steps directly if the agent is unavailable or unsuitable.

Task Decomposition

When decomposing tasks, consider the following:

1. Parallelism and Dependencies

Tasks should be designed for maximum parallel execution. However, the following cases require waiting for a predecessor task to complete:

  • Tasks modifying the same file (prevents file conflicts)
  • Tasks where one task's output is referenced by another (interface dependency)
  • Tasks that modify shared state (database schema, config files, etc.)

Dependencies are stated in the task header:

### Task N: [Task Name]

**Dependencies:** Runs after Task K completes
**Files:**
- Create: `path/to/file`
- Modify: `path/to/existing-file:line-range`
- Test: `path/to/test-file`

Tasks with no dependencies are marked as parallelizable:

### Task N: [Task Name]

**Dependencies:** None (can run in parallel)
**Files:**
- Create: `path/to/file`
- Test: `path/to/test-file`

2. Worker-Validator Structure

Each task is designed so an independent worker (subagent) can execute it and a separate validator can verify it:

  • Worker: Executes the task's steps exactly as written. Makes no judgments beyond what the plan specifies.
  • Validator: Reviews the worker's output after completion. Checks test pass/fail, code quality, and spec compliance.

This structure enables spawning multiple tasks simultaneously, each independently verifiable.

3. Task Granularity

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

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

Task Format

### Task N: [Component Name]

**Dependencies:** [Predecessor task or "None (can run in parallel)"]
**Files:**
- Create: `exact/path/to/file`
- Modify: `exact/path/to/existing-file:123-145`
- Test: `tests/exact/path/to/test-file`

- [ ] **Step 1: Write the failing test**

def test_specific_behavior(): result = function(input) assert result == expected


- [ ] **Step 2: Run test to verify it fails**

Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"

- [ ] **Step 3: Write minimal implementation**

def function(input): return expected


- [ ] **Step 4: Run test to verify it passes**

Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS

- [ ] **Step 5: Commit**

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

Final Verification Task

Every plan must end with a Final Verification Task that runs the discovered highest-level verification. This is always the last task, depends on all other tasks, and cannot be parallelized.

### Task N (Final): End-to-End Verification

**Dependencies:** All preceding tasks
**Files:** None (read-only verification)

- [ ] **Step 1: Run highest-level verification**

Run: `[verification command from Verification Strategy]`
Expected: ALL PASS

- [ ] **Step 2: Verify plan success criteria**

Manually check each success criterion from the plan header:
- [ ] [criterion 1]
- [ ] [criterion 2]
- ...

- [ ] **Step 3: Run full test suite for regressions**

Run: `[full test suite command]`
Expected: No regressions — all pre-existing tests still pass

If the final verification fails, the plan is not complete. The worker-validator loop in run-plan will handle failure response (see run-plan's E2E Failure Response Protocol).

No Placeholders

Every step must contain the actual content a worker needs. These are plan failures — never write them:

  • "TBD", "TODO", "implement later", "fill in details"
  • "Add appropriate error handling" / "add validation" / "handle edge cases"
  • "Write tests for the above" (without actual test code)
  • "Similar to Task N" (repeat the code — the worker may be reading tasks out of order)
  • Steps that describe what to do without showing how (code blocks required for code steps)
  • References to types, functions, or methods not defined in any task

Remember

  • Exact file paths always
  • Complete code in every step — if a step changes code, show the code
  • Exact commands with expected output
  • DRY, YAGNI, TDD, frequent commits

Self-Review

After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.

1. Spec coverage: Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.

2. Placeholder scan: Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.

3. Type consistency: Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called clearLayers() in Task 3 but clearFullLayers() in Task 7 is a bug.

4. Dependency verification: Verify that parallel tasks don't modify the same file. Verify that no dependency chain is missing.

5. Verification coverage: Does the plan include a Final Verification Task? Does it reference the discovered verification command? If no verification was discovered, is there a Task 0 creating verification infrastructure?

If you find issues, fix them inline. No need to re-review — just fix and move on. If a spec requirement has no corresponding task, add the task.

Execution Handoff

After saving the plan, offer execution choice:

"Plan complete and saved to docs/engineering-discipline/plans/<filename>.md."

"How would you like to proceed?"

1. Subagent execution (recommended) — dispatch a fresh subagent per task, review between tasks, fast iteration

2. Inline execution — execute tasks in this session using the run-plan skill, batch execution with checkpoints

Anti-Patterns

Anti-PatternWhy It Fails
Marking tasks that modify the same file as parallelFile conflicts, unmergeable changes
Listing tasks without dependenciesExecution order tangles, interface mismatches
Steps that assume "the worker will figure it out"Worker's arbitrary interpretation → spec drift
Approving a plan with placeholdersBlocked at execution stage, must return to planning
Completing a plan without Self-ReviewMissing spec coverage, type mismatches, dependency errors go undetected

Minimal Checklist

Self-check when plan writing is complete:

  • Do all tasks have exact file paths?
  • Do all steps contain executable code/commands?
  • Are there no file conflicts between parallel tasks?
  • Are dependency chains accurately stated?
  • Does the plan cover all spec requirements?
  • Are there no placeholders?
  • Is there a Verification Strategy in the plan header?
  • Is the Final Verification Task the last task in the plan?

Transition

After plan approval:

  • When the plan is ready to execute → run-plan skill
  • If ambiguity is discovered in the work scope → return to the clarification skill to resolve

This skill itself does not invoke the next skill. It ends by presenting the plan document and letting the user choose the next step.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.47%
按下载量换算94

Claude

30.39%
按下载量换算78

Cursor

18.32%
按下载量换算47

Gemini CLI

10.88%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills