Skip to content
Back to skills

planning-before-create-skill

ASecurity

创建、重构或验收 Skill 的工程设计准则(OKR / Tools / Playbook 结构、Deep-module CLI 工具下沉、Check-before-prose、Human-in-the-loop 审阅交互、旧设计退役与行为验收)。新建 Skill、下沉脚本工具、精简冲突规则或跑 lint/evals 验收时使用。

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 21, 2026
ai-agentspythongit

Works with

  • cli

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add thePlannerIvan/planning-before-create-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of planning-before-create-skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for planning-before-create-skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theplannerivan-planning-before-create-skill/badge)](https://www.skillsdirectory.com/skills/theplannerivan-planning-before-create-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: planning-before-create-skill
description: 创建、重构或验收 Skill 的工程设计准则(OKR / Tools / Playbook 结构、Deep-module CLI 工具下沉、Check-before-prose、Human-in-the-loop 审阅交互、旧设计退役与行为验收)。新建 Skill、下沉脚本工具、精简冲突规则或跑 lint/evals 验收时使用。
---

# Skill 工程设计与验收

> 来源:阿祖不看 TVC · [demyth.info](https://demyth.info) · `Lawyif@163.com`。保留 Skill 的来源识别;最终客户交付物的署名按项目约定处理。

**硬前置**:凡涉及 Skill 文档写作——`description`(Context pointer)、触发方式选型(Model-invoked vs. `disable-model-invocation: true` 的 User-invoked / Router skill)、正文与参考资料的 Information hierarchy(Progressive disclosure、Co-location)及 Pruning(Single source of truth、No-ops、Prompt the positive)——**先加载并遵循 `writing-for-agents`(及其 `SKILL-MECHANICS.md`)**。本 Skill 只管工程架构、工具边界、人机交互闭环、演进退役与验收。

> **外部前置依赖**:`writing-for-agents` 与下文引用的 `codebase-design` 来自 [Matt Pocock 的开源 Skill 集 (`mattpocock/skills`)](https://github.com/mattpocock/skills)(MIT License,Copyright (c) 2026 Matt Pocock),不在本仓库内分发;未安装时可从该仓库获取。

## 工程设计准则

- **3+1 完整性(`OKR` / `Tools` / `Playbook`)**:
  - **目标与可观察判据 (`OKR` — `O` + `KR`)**:明确解决什么真实问题、交付什么产物(`O`),以及高 Clarity 与高 Demand 的 Completion criteria、正反例与边界(`KR`)。
  - **深模块工具 (`Tools`)**:封装固定程序性工作的 CLI 与依赖清单。
  - **执行路线 (`Playbook`)**:从输入到交付的步骤与策略。简单 Skill 仅需单文件 `SKILL.md`。
- **判断与深模块分工(`Judgment vs. Deep-module CLI`)**:领域判断、策略权衡与启发式规则留给模型(辅以必要的领域知识库指针);会被重复十次以上、或模型自由发挥会产生方差的固定程序性工作(格式转换、状态装配、交互页面生成、确定性校验),按 [`codebase-design`](https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design) 封装为高内聚的 **Deep module**——以极简 CLI 作为 **Interface**(一事一令,stdout 出结果,stderr 出诊断,非零退出码表征失败),把复杂逻辑藏进 **Implementation**。在文档的工具列表中只写清每个工具的用途、调用时机(Seam)、输入与结果消费方式;参数细节留给 `--help`(Environment as truth)。
- **检查先于叮嘱(`Check-before-prose`)**:同一纠正出现第二次,先写成确定性检查(`check`),或收紧模块 Interface 直接删掉错误选项;只有无法机械判断的语义规则才留在正文里。每个项目收束为一条 `check` 命令,报清「错在哪、怎么改」。会误报又无人维护的检查直接删除。
- **非线性路线(`Non-linear playbook`)**:Playbook 必须给出清晰的步骤主线(每步有明确的 Completion criterion 及继续、返回讨论或交接的条件),同时支持**半成品重入(Mid-stream resumption)**——用户带着已有成果或从中间环节切入时,直接定位对应步骤续接,不从头重跑。
- **人机回路与审阅交互(`Human-in-the-loop` & `Review surface`)**:需要引入人的交互判断、取舍或定稿的工作,必须设计清晰的审阅交互模式并封装为 Deep-module 工具(可接入 [`planners-review-core`](https://github.com/thePlannerIvan/planners-review-core) 公共审阅接缝)。在 Playbook 中完整闭环四步路径:生成并打开审阅面 → 用户直接编辑、批注或拍板 → 反馈交回模型 → 模型更新同一产物并继续审阅。写明人机各自的操作边界。
- **对齐与实测验收(`Verify by artifact`)**:先读现有材料,只追问影响结果的缺口;已有明确授权直接执行。以真实输入跑出的产物、CLI 退出码和行为用例判定完成。

## 新建 Skill

从真实请求或样本提炼 `OKR / Tools / Playbook`,选定 Invocation 模式(需要自动发现或被其他 Skill 调用选 Model-invoked;纯手动触发设 `disable-model-invocation: true`)。先跑通一个代表性任务的最小可用版本,再按实际方差下沉 Deep-module CLI 或拆出 Disclosed reference。

## 升级 Skill

先复现当前行为与真实缺陷,区分**局部修补**与**结构重构**。局部修补只验证受影响分支;结构重构先留存旧产物基线,完成相关项目测试后再集中更新。

每次升级同步执行 **旧设计退役清扫(`Deprecation sweep`)**:当设计发生演进,在负责该能力的模块维护唯一现行规则,沿调用链清理被替代的旧说明、代码实现、默认配置与 `evals` 用例(不能因旧代码或旧测试存在就复活用户已废弃的设计;同样,清理文件前必须检索代码引用,不能仅因文档未提及就误删被 `import` 的模块)。详见 [迭代与减法](references/continuous-iteration.md)。

## 按需调用

| 当前分支 (Branch) | 动作 |
|---|---|
| 划分多个工具模块、定义 CLI Seam 或跨系统状态交接 | 读 [模块与工具设计](references/skill-architecture.md)(深模块重构同时加载 [`codebase-design`](https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design)) |
| 规则冲突、Sediment 清理、积累证据集中升级或旧设计退役 | 读 [迭代与减法](references/continuous-iteration.md) |
| 新建目录需生成最小 `SKILL.md` 入口 | 运行 `python3 scripts/scaffold_skill.py --help` |
| 静态校验 frontmatter、断链、Python 语法与 `evals` 结构 | 运行 `python3 scripts/lint_skill.py <skill目录>` |
| 修改本 Skill 后做黑盒行为回归 | 按 [行为验收](evals/runbook.md) 跑受影响的用例 |
| 追溯本 Skill 的历史架构裁决 | 查 [维护记录](references/maintenance-history.md) |

需要人工审阅界面时接入 [`planners-review-core`](https://github.com/thePlannerIvan/planners-review-core)。交付时报告改动项、实测结果与未覆盖边界;发布与多端同步遵循所在仓库的发布门禁。

Files in this skill

  • COMMERCIAL.md377 B
  • NOTICE518 B
  • SKILL.md6.4 KB
  • TRADEMARK.md547 B
  • agents/openai.yaml359 B
  • evals/evals.json4.5 KB
  • evals/runbook.md1.2 KB
  • references/continuous-iteration.md3.8 KB
  • references/maintenance-history.md6.9 KB
  • references/skill-architecture.md2.4 KB
  • requirements.txt15 B
  • scripts/lint_skill.py9.9 KB
  • scripts/scaffold_skill.py2.6 KB
  • tests/test_tools.py6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.