locales/zh-CN/skills/skill-builder/SKILL.md
[UDS] 识别重复流程并以正确的开发深度构建 Skill
npx skillsauth add asiaostrich/universal-dev-standards skill-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Language: English | 繁體中文
引导你从「我一直在手动做这件事」走到「拥有一个正确构建的 Skill」,并在这一过程中保持适量的流程治理。
Skill 记录的是流程知识。Memory 记录的是历史事实。 当你注意到自己重复执行相同的步骤时,那就是一个 Skill 候选。
New Skill needed?
├── Modifying existing Skill?
│ → Delta path: append ## MODIFIED / ## ADDED to existing SKILL.md
│ update version field → done
│
├── Answer these 4 questions (any "yes" → Complex):
│ 1. More than 7 steps?
│ 2. Branching logic between steps (if/else)?
│ 3. Requires knowledge from 3+ separate standards/decisions?
│ 4. Output directly affects sub-project source code?
│
├── All "no" → Simple path
│ → Fill Skill Brief (templates/SKILL-BRIEF-TEMPLATE.md)
│ → Create SKILL.md directly (no XSPEC needed)
│
└── Any "yes" → Complex path
→ Create XSPEC first → run /sdd
→ Return here after XSPEC Approved
Deprecating a Skill?
→ Add to SKILL.md frontmatter:
status: deprecated
deprecated_at: YYYY-MM-DD
deprecated_reason: "..."
superseded_by: "/new-skill" (if applicable)
→ Mark archived in SKILL-CANDIDATES.md
在创建 SKILL.md 前,先决定它应该放在哪里:
| 条件 | 摆放位置 |
|-----------|-----------|
| 步骤引用项目特定路径(如 TECH-RADAR.md、DEC-*.md) | 项目:{project}/.claude/skills/ |
| 步骤为通用流程(无项目特定路径) | UDS:skills/{name}/ + zh-TW locale |
捕捉重复的步骤序列:
打开你项目的 SKILL-CANDIDATES.md(首次请从 templates/SKILL-CANDIDATES.md 复制):
回答这 4 个判断问题。确定:Simple、Complex 或 Delta。
使用 templates/SKILL-BRIEF-TEMPLATE.md:
执行 /sdd 创建 XSPEC。XSPEC Approved 之后回到 Step 5。
识别现有 SKILL.md 中哪些区段需要变更。
在文件末尾加入 ## MODIFIED Requirements 或 ## ADDED Requirements。
依据 Brief 或 XSPEC 生成 SKILL.md:
name、scope、description、allowed-tools{project}/.claude/skills/{name}/SKILL.md将候选行标记为:trigger ✅、Skill 列填写完成。
feat(skills): Add /{skill-name} skill. 新增 /{skill-name} Skill。
{English description, 1-2 lines}
{Chinese description, 1-2 lines}
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
完成所有步骤后,请确认:
SKILL-CANDIDATES.md 已更新(trigger ✅、Skill 名称已填)SKILL.md 已创建并具备完整 frontmatter(name / scope / description / allowed-tools)status: deprecateddevelopment
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.
testing
[UDS] 从 Spec 文档、OpenSpec 变更或自由文本需求生成 plan.json。 Use when: converting specifications into executable task plans for /orchestrate. Keywords: plan, spec, task plan, 计划, 规格, 任务, plan.json, DAG.