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

code-planning代码规划

Agent Skill

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

总安装

392

周安装

16

GitHub Stars

2

下载量

127
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tgautier/dotfiles --skill code-planning

简介

code-planning 建立高质量实施计划的系统化方法论,涵盖权衡分析、工作分解与风险识别。

  • 适用于复杂功能开发、跨团队交付或技术迁移等需严谨规划的任务。
  • 提供 EARS 验收标准模板、CI/CD 门禁设置与文档溯源指引。
  • 强调计划先行,拒绝边写边改,确保资源分配与里程碑清晰可控。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Planning

Methodology for structuring high-quality implementation plans. This skill governs *how to plan well* — evaluating trade-offs, decomposing work, managing scope, and identifying risks. A good plan eliminates ambiguity before code is written.

Scope boundary: This skill covers plan *quality* — what makes a plan good. For related concerns: - Pre-implementation requirements (EARS notation, acceptance criteria) → Requirements skill (/requirements) - Planning *process*, execution discipline, and verification → task lifecycle rule (claude/rules/task-lifecycle.md) - Source evaluation for research that informs plans → Code Research skill (/code-research) - Domain-specific decisions are delegated to the relevant skill (see Trade-off Evaluation below)

1. Planning Philosophy

A plan is a contract between research and implementation. It translates findings into actionable tasks with clear verification criteria.

Quality dimensions — evaluate every plan against these, in priority order:

  1. Correctness — does it solve the right problem? Does it address the root cause, not a symptom?
  2. Coherence — is the solution internally consistent? Does every part serve the stated goal, with nothing extraneous and nothing missing?
  3. Robustness — does it handle failure? What happens when inputs are invalid, services are down, or data is missing?
  4. Maintainability — can it evolve? Will the next person understand the changes six months from now?

2. Trade-off Evaluation

When multiple approaches exist, structure the comparison rather than picking intuitively.

Constraints identification

Before comparing approaches, identify what's non-negotiable:

  • Standards compliance (RFCs, language specs, framework contracts)
  • Existing patterns in the codebase (consistency beats novelty)
  • Performance requirements (latency budgets, throughput targets)
  • Team capability (patterns the team can maintain)

Decision matrix

Compare approaches against these dimensions:

DimensionQuestion
CorrectnessDoes it fully solve the problem? Any edge cases it misses?
ComplexityHow many moving parts? Are they all necessary?
PerformanceDoes it meet latency/throughput requirements?
OperabilityCan it be monitored, debugged, and rolled back?
ReversibilityHow hard is it to undo if the approach is wrong?

Domain delegation

Defer domain-specific decisions to the relevant skill:

  • API contract decisions → API Design skill (/api-design)
  • Domain modeling (aggregates, bounded contexts, data modeling) → Domain Design skill (/domain-design)
  • Rust implementation patterns → Rust skill (/rust)
  • TypeScript/React patterns → TypeScript skill (/typescript)
  • Security posture → Web Security skill (/web-security)
  • Source evaluation → Code Research skill (/code-research)

Decision heuristics

  • Bias toward boring technology — proven, well-understood approaches over novel ones unless the problem demands novelty
  • Reversibility as tiebreaker — when two approaches are otherwise equal, pick the one that's easier to undo
  • Consistency over perfection — match existing codebase patterns even if a "better" pattern exists elsewhere

3. Task Decomposition

How to break work into plan tasks.

Atomic tasks

Each task changes one concern. A task that says "add endpoint and update frontend" is two tasks. Test: can you describe the task in one sentence without "and"?

Dependency ordering

Structure tasks so each builds on the previous:

  1. Data model / schema changes
  2. Backend handlers / business logic
  3. Frontend components / UI
  4. Integration wiring
  5. Tests alongside each layer (not batched at the end)

Vertical slices over horizontal layers

Prefer "add asset creation end-to-end" over "add all models, then all handlers, then all frontend." Vertical slices are independently verifiable and shippable.

File manifest per task

Every task lists the files it touches. If a file appears in more than 2 tasks, the decomposition is likely wrong — the tasks aren't properly separated by concern.

Verification per task

Every task has a verification step: what command, test, or check proves it works? Tasks without verification are incomplete.


4. Scope Management

Explicit exclusions

For every plan, state what's deliberately out of scope and why. Unstated scope is ambiguous scope.

Scope creep signals

Watch for these during planning:

  • "While we're here" additions
  • Yak-shaving chains (need X, which needs Y, which needs Z)
  • Premature abstractions ("let's make this configurable for later")
  • Gold-plating ("it would be nice if...")

Minimum viable change

What's the smallest set of changes that delivers the requested value? Start there. Additional scope requires explicit justification.

Future work section

Capture deferred ideas in a "Future work" section rather than expanding the current plan. This acknowledges the idea without blocking the current task.


5. Risk Identification

Breaking change detection

Does this change any:

  • Public API contract (response shape, status codes, error format)?
  • Database schema (column types, constraints, indexes)?
  • Configuration format (env vars, config files, feature flags)?
  • Cross-reference with the API Design skill for contract stability rules.

Integration risk

How many systems does this touch? More systems = more risk. A change that only touches backend code is lower risk than one spanning backend + frontend + database + CI.

Data migration risk

Does this require a schema change? If yes:

  • Is the migration reversible?
  • Can old and new code coexist during rollout?
  • What's the rollback procedure if the migration fails?

Rollback plan

Can this be reverted with a single revert commit, or does it require data migration, cache invalidation, or coordination across services?


6. Complexity Signals

When to re-scope or split:

SignalThresholdAction
Task count> 10 tasksConsider splitting into multiple PRs
Files per task> 5 filesTask is probably multiple tasks
Cross-layer changesData + API + frontend + testsPlan each layer explicitly
Unknown unknownsResearch gaps ("no Tier 1-3 sources found")Add a spike task before committing

7. Plan Structure

The artifact format for a complete plan:

# Plan: [title]

## Context
Why this change exists. Link to issue, conversation, or research.

## Approach
The chosen path. Why alternatives were rejected (brief).

## Tasks
- [ ] Task 1: [description]
  - Files: `path/to/file.rs`, `path/to/other.rs`
  - Verify: `just test`
- [ ] Task 2: [description]
  - Files: `path/to/file.ts`
  - Verify: `just check`

## Risks
[Breaking changes, migration concerns, integration points]

## Verification
[End-to-end proof it works — the final check after all tasks]

## Future work
[Deferred scope with rationale]

8. Anti-patterns

Anti-patternWhy it failsFix
Plans without verification stepsNo way to prove correctnessEvery task gets a verification command
Monolithic tasks ("implement the feature")Can't track progress, can't parallelizeDecompose into atomic tasks
Missing dependency orderingFrontend before API exists, tests before codeOrder: data model → handlers → frontend, with tests alongside each layer
Scope without exclusionsEverything is implicitly in scopeState what's out and why
Novelty over boring technologyUnproven approaches carry hidden riskJustify why proven approaches won't work
Ignoring project-local rulesPlan violates codebase conventionsRead .claude/rules/*.md and match existing patterns
Planning without reading code firstPlan based on assumptions, not realityResearch first (workflow rule)
Batching all tests to the endErrors compound, root cause is obscuredVerify after each task
Horizontal decomposition"All models, then all handlers" prevents incremental verificationUse vertical slices

9. Annotation Cycle

For non-trivial changes, iterate on the plan before implementation:

  1. Claude generates a plan (as a markdown file, in addition to plan mode)
  2. You add inline notes directly in the plan — corrections, rejections, domain knowledge
  3. Claude addresses all notes and updates the plan. No code yet.
  4. Repeat this cycle 1–6 times until the plan is right
  5. Only then: "implement it all"

Guard phrase: include "don't implement yet" when refining the plan to prevent premature code generation.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.47%
按下载量换算44

Claude

31.01%
按下载量换算39

Cursor

16.93%
按下载量换算22

Gemini CLI

9.81%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills