Token导航 LogoToken导航

Agent Skill · 研究检索

code-planning(代码规划)

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

code-planning 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 59,221。

总安装 392周安装 16GitHub Stars 2下载 127核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

code-planning 建立高质量实施计划的系统化方法论,涵盖权衡分析、工作分解与风险识别。适用于复杂功能开发、跨团队交付或技术迁移等需严谨规划的任务。提供 EARS 验收标准模板、CI/CD 门禁设置与文档溯源指引。强调计划先行,拒绝边写边改,确保资源分配与里程碑清晰可控。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/code-planning

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tgautier/dotfiles --skill code-planning;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

code-planning 怎么安装?

在终端执行 npx skills add https://github.com/tgautier/dotfiles --skill code-planning。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

code-planning 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

code-planning 需要什么权限?

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

code-planning 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

code-planning 用的人多吗?

公开数据是累计安装 392 次,近一周安装 16 次,下载 127 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

code-planning 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
code-planning

代码规划 · 本页

3922需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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.

平台分布

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