@pigcloud/skills 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +29 -28
  2. package/README.en.md +4 -3
  3. package/README.md +37 -35
  4. package/bin/cli.js +16 -15
  5. package/package.json +69 -69
  6. package/rules/coding/implementation.md +6 -5
  7. package/rules/product/project-context.md +6 -5
  8. package/rules/skill-profile-map.json +6 -5
  9. package/rules/skill-profile-map.md +6 -5
  10. package/scripts/ci-validator.sh +19 -19
  11. package/scripts/validate-skill-shapes.js +5 -4
  12. package/skills/{api-docs → api-contract-docs}/SKILL.md +5 -4
  13. package/skills/{extract-business-facts → business-fact-extraction}/SKILL.md +9 -8
  14. package/skills/{extract-business-facts → business-fact-extraction}/scripts/write-knowledge-base.js +4 -3
  15. package/skills/code-review/SKILL.md +7 -6
  16. package/skills/domain-modeling/SKILL.md +4 -3
  17. package/skills/feature-build/SKILL.md +10 -10
  18. package/skills/feature-build/references/comment-specification.md +1 -1
  19. package/skills/knowledge-capture/SKILL.md +1 -1
  20. package/skills/{performance-check → performance-audit}/SKILL.md +5 -4
  21. package/skills/project-bootstrap/SKILL.md +3 -2
  22. package/skills/references/business-fact-extraction.md +9 -8
  23. package/skills/references/engineering-delivery-method.md +4 -3
  24. package/skills/references/engineering-delivery-template.md +3 -2
  25. package/skills/references/golden-prompt-suite.js +44 -43
  26. package/skills/references/project-requirement-alignment.md +2 -1
  27. package/skills/references/rule-loading-map.md +4 -3
  28. package/skills/references/skill-authoring-standard.md +4 -3
  29. package/skills/references/skill-reference-matrix.md +15 -14
  30. package/skills/{security-review → security-audit}/SKILL.md +4 -2
  31. package/skills/{spec → spec-refinement}/SKILL.md +19 -18
  32. package/skills/technical-design/SKILL.md +11 -10
  33. package/skills/test-design/SKILL.md +2 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pig Skills CHANGELOG
2
2
 
3
- > 版本变更记录,遵循 Semantic Versioning
3
+ > 鐗堟湰鍙樻洿璁板綍锛岄伒寰?Semantic Versioning
4
4
 
5
5
  ---
6
6
 
@@ -8,20 +8,20 @@
8
8
 
9
9
  ### Changed
10
10
  - Made postinstall client-aware so it can auto-install into the detected client(s) from `INIT_CWD`.
11
- - Kept Codex as the only client with a real command pack so `/spec` remains the executable entry instead of a fake alias.
11
+ - Kept Codex as the only client with a real command pack so `/spec-refinement` remains the executable entry instead of a fake alias.
12
12
  - Extended `pig-skills auto` to install the matching client folders for Codex, Claude Code, Trae, Cursor, Copilot, and Windsurf.
13
- - Clarified in the README and usage docs that only Codex gets `/spec`-style command files, while other clients receive skills and rules.
13
+ - Clarified in the README and usage docs that only Codex gets `/spec-refinement`-style command files, while other clients receive skills and rules.
14
14
  - Unified the usage guides around the same client-detection and knowledge-capture model.
15
15
 
16
16
  ## [1.1.0] - 2026-06-18
17
17
 
18
18
  ### Changed
19
- - 重构 skill 体系说明,按当前 13 skill 重新梳理 README 和使用方式
20
- - 补充统一校验入口 `validate-skills.js`,并增加 Windows / macOS / Linux
21
- - 将便携 Python 纳入仓库内,避免依赖系统环境
22
- - 统一 `spec`、`knowledge-capture`、`workflow-router` 等高频 skill 的识别与门禁表达
23
- - 收缩 skill frontmatter,按官方 validator 规范保留最小字段
24
- - 将 `handover` 合并进 `knowledge-capture`,删除独立交接 skill
19
+ - 閲嶆瀯 skill 浣撶郴璇存槑锛屾寜褰撳墠 13 涓?skill 閲嶆柊姊崇悊 README 鍜屼娇鐢ㄦ柟寮?
20
+ - 琛ュ厖缁熶竴鏍¢獙鍏ュ彛 `validate-skills.js`锛屽苟澧炲姞 Windows / macOS / Linux 澹?
21
+ - 灏嗕究鎼?Python 绾冲叆浠撳簱鍐咃紝閬垮厤渚濊禆绯荤粺鐜
22
+ - 缁熶竴 `spec-refinement`銆乣knowledge-capture`銆乣workflow-router` 绛夐珮棰?skill 鐨勮瘑鍒笌闂ㄧ琛ㄨ揪
23
+ - 鏀剁缉 skill frontmatter锛屾寜瀹樻柟 validator 瑙勮寖淇濈暀鏈€灏忓瓧娈?
24
+ - 灏?`handover` 鍚堝苟杩?`knowledge-capture`锛屽垹闄ょ嫭绔嬩氦鎺?skill
25
25
 
26
26
  ### Added
27
27
  - `validate-skills.js`
@@ -33,38 +33,39 @@
33
33
  ## [1.0.0] - 2024-01-20
34
34
 
35
35
  ### Added
36
- - 初始发布,包含 12 个框架绑定技能
37
- - OpenSpec 标准化规范
38
- - 三层渐进式加载机制
39
- - 跨工具兼容支持(Trae/Cursor/Claude Code/Copilot/Windsurf
40
- - CLI 工具(pig-skills 命令)
36
+ - 鍒濆鍙戝竷锛屽寘鍚?12 涓鏋剁粦瀹氭妧鑳?
37
+ - OpenSpec 鏍囧噯鍖栬鑼?
38
+ - 涓夊眰娓愯繘寮忓姞杞芥満鍒?
39
+ - 璺ㄥ伐鍏峰吋瀹规敮鎸侊紙Trae/Cursor/Claude Code/Copilot/Windsurf锛?
40
+ - CLI 宸ュ叿锛坧ig-skills 鍛戒护锛?
41
41
 
42
42
  ### Skills
43
43
  - **Core**: workflow-router, technical-design, feature-build, code-review
44
- - **Analysis**: spec, domain-modeling
45
- - **Integration**: api-docs, test-design
44
+ - **Analysis**: spec-refinement, domain-modeling
45
+ - **Integration**: api-contract-docs, test-design
46
46
  - **Collaboration**: knowledge-capture
47
47
  - **Infrastructure**: project-bootstrap, environment-deploy
48
48
 
49
49
  ### Core Bindings
50
- - Controller Service Mapper 分层
51
- - MpRealDelEntity / MpLogicDelEntity 基类
52
- - Result<T> 统一返回
53
- - BizException 异常体系
54
- - Lambda 查询表达式
50
+ - Controller 鈫?Service 鈫?Mapper 鍒嗗眰
51
+ - MpRealDelEntity / MpLogicDelEntity 鍩虹被
52
+ - Result<T> 缁熶竴杩斿洖
53
+ - BizException 寮傚父浣撶郴
54
+ - Lambda 鏌ヨ琛ㄨ揪寮?
55
55
 
56
56
  ---
57
57
 
58
- ## 计划更新
58
+ ## 璁″垝鏇存柊
59
59
 
60
60
  ### [1.2.0] - TBD
61
- - 技能模板可视化
62
- - 技能组合编排器
63
- - 更多框架特定规则
61
+ - 鎶€鑳芥ā鏉垮彲瑙嗗寲
62
+ - 鎶€鑳界粍鍚堢紪鎺掑櫒
63
+ - 鏇村妗嗘灦鐗瑰畾瑙勫垯
64
64
 
65
65
  ### [2.0.0] - TBD
66
- - 技能发布平台
67
- - 技能订阅机制
68
- - 多框架支持
66
+ - 鎶€鑳藉彂甯冨钩鍙?
67
+ - 鎶€鑳借闃呮満鍒?
68
+ - 澶氭鏋舵敮鎸?
69
+
69
70
 
70
71
 
package/README.en.md CHANGED
@@ -18,11 +18,11 @@
18
18
 
19
19
  ## Common Entry Points
20
20
 
21
- - Spec: `spec`
21
+ - Spec: `spec-refinement`
22
22
  - Stage routing: `workflow-router`
23
23
  - Design and implementation: `technical-design` / `feature-build`
24
- - Review and validation: `code-review` / `security-review` / `performance-check`
25
- - Fact extraction: `extract-business-facts`
24
+ - Review and validation: `code-review` / `security-audit` / `performance-audit`
25
+ - Fact extraction: `business-fact-extraction`
26
26
  - Knowledge capture: `knowledge-capture`
27
27
 
28
28
  ## Install
@@ -72,3 +72,4 @@ node self-test-skills.js
72
72
  - [skills/references/skill-authoring-standard.md](skills/references/skill-authoring-standard.md)
73
73
  - [skills/references/skill-reference-matrix.md](skills/references/skill-reference-matrix.md)
74
74
  - [skills/references/rule-loading-map.md](skills/references/rule-loading-map.md)
75
+
package/README.md CHANGED
@@ -1,49 +1,49 @@
1
1
  # @pigcloud/skills
2
2
 
3
- > 一个面向产品、研发、测试协作的 AI 技能包。`skills/` 负责任务边界与交接,`rules/` 负责规则约束与校验,`workflow-router` 负责阶段路由,`CI / Test / Evidence` 负责交付闭环。
3
+ > 涓€涓潰鍚戜骇鍝併€佺爺鍙戙€佹祴璇曞崗浣滅殑 AI 鎶€鑳藉寘銆俙skills/` 璐熻矗浠诲姟杈圭晫涓庝氦鎺ワ紝`rules/` 璐熻矗瑙勫垯绾︽潫涓庢牎楠岋紝`workflow-router` 璐熻矗闃舵璺敱锛宍CI / Test / Evidence` 璐熻矗浜や粯闂幆銆?
4
4
 
5
- ## 这套系统做什么
5
+ ## 杩欏绯荤粺鍋氫粈涔?
6
6
 
7
- - 先路由,再执行
8
- - 先约束,再生成
9
- - 先复用,再改写
10
- - 先验证,再结论
7
+ - 鍏堣矾鐢憋紝鍐嶆墽琛?
8
+ - 鍏堢害鏉燂紝鍐嶇敓鎴?
9
+ - 鍏堝鐢紝鍐嶆敼鍐?
10
+ - 鍏堥獙璇侊紝鍐嶇粨璁?
11
11
 
12
- ## 核心层
12
+ ## 鏍稿績灞?
13
13
 
14
- 1. `workflow-router`:识别任务类型并选择下一阶段
15
- 2. `skills/`:可复用的能力模块
16
- 3. `rules/`:项目约束、边界和硬校验
17
- 4. `CI / Test / Evidence`:可验证的交付门禁
14
+ 1. `workflow-router`锛氳瘑鍒换鍔$被鍨嬪苟閫夋嫨涓嬩竴闃舵
15
+ 2. `skills/`锛氬彲澶嶇敤鐨勮兘鍔涙ā鍧?
16
+ 3. `rules/`锛氶」鐩害鏉熴€佽竟鐣屽拰纭牎楠?
17
+ 4. `CI / Test / Evidence`锛氬彲楠岃瘉鐨勪氦浠橀棬绂?
18
18
 
19
- ## 常用入口
19
+ ## 甯哥敤鍏ュ彛
20
20
 
21
- - 规格澄清:`spec`
22
- - 阶段路由:`workflow-router`
23
- - 设计与实现:`technical-design` / `feature-build`
24
- - 审查与验证:`code-review` / `security-review` / `performance-check`
25
- - 事实抽取:`extract-business-facts`
26
- - 知识沉淀:`knowledge-capture`
21
+ - 瑙勬牸婢勬竻锛歚spec-refinement`
22
+ - 闃舵璺敱锛歚workflow-router`
23
+ - 璁捐涓庡疄鐜帮細`technical-design` / `feature-build`
24
+ - 瀹℃煡涓庨獙璇侊細`code-review` / `security-audit` / `performance-audit`
25
+ - 浜嬪疄鎶藉彇锛歚business-fact-extraction`
26
+ - 鐭ヨ瘑娌夋穩锛歚knowledge-capture`
27
27
 
28
- ## 安装
28
+ ## 瀹夎
29
29
 
30
30
  ```bash
31
31
  npm install -g @pigcloud/skills
32
32
  ```
33
33
 
34
- ## 客户端接入
34
+ ## 瀹㈡埛绔帴鍏?
35
35
 
36
- - Codex:见 [docs/CODEX-APP-GUIDE.md](docs/CODEX-APP-GUIDE.md)
37
- - Trae:见 [docs/TRAE-GUIDE.md](docs/TRAE-GUIDE.md)
38
- - Claude Code:见 [docs/CLAUDE-CODE-GUIDE.md](docs/CLAUDE-CODE-GUIDE.md)
39
- - 统一安装指南:见 [docs/client-installation-guide.md](docs/client-installation-guide.md)
36
+ - Codex锛氳 [docs/CODEX-APP-GUIDE.md](docs/CODEX-APP-GUIDE.md)
37
+ - Trae锛氳 [docs/TRAE-GUIDE.md](docs/TRAE-GUIDE.md)
38
+ - Claude Code锛氳 [docs/CLAUDE-CODE-GUIDE.md](docs/CLAUDE-CODE-GUIDE.md)
39
+ - 缁熶竴瀹夎鎸囧崡锛氳 [docs/client-installation-guide.md](docs/client-installation-guide.md)
40
40
 
41
- ## 治理概览
41
+ ## 娌荤悊姒傝
42
42
 
43
- - 系统总览:见 [docs/agent-governance-overview.md](docs/agent-governance-overview.md)
44
- - 技能扩展指南:见 [docs/skills-extension-guide.md](docs/skills-extension-guide.md)
43
+ - 绯荤粺鎬昏锛氳 [docs/agent-governance-overview.md](docs/agent-governance-overview.md)
44
+ - 鎶€鑳芥墿灞曟寚鍗楋細瑙?[docs/skills-extension-guide.md](docs/skills-extension-guide.md)
45
45
 
46
- ## 校验
46
+ ## 鏍¢獙
47
47
 
48
48
  ```bash
49
49
  node validate-skills.js
@@ -54,15 +54,15 @@ node scripts/validate-skill-replay-signals.js
54
54
  node self-test-skills.js
55
55
  ```
56
56
 
57
- ## 目录说明
57
+ ## 鐩綍璇存槑
58
58
 
59
- - `skills/`:技能正文
60
- - `skills/references/`:编写标准、参考矩阵、加载映射
61
- - `rules/`:规则入口与规则包
62
- - `docs/`:安装、治理和工作流说明
63
- - `bin/`:CLI、自动安装、postinstall
59
+ - `skills/`锛氭妧鑳芥鏂?
60
+ - `skills/references/`锛氱紪鍐欐爣鍑嗐€佸弬鑰冪煩闃点€佸姞杞芥槧灏?
61
+ - `rules/`锛氳鍒欏叆鍙d笌瑙勫垯鍖?
62
+ - `docs/`锛氬畨瑁呫€佹不鐞嗗拰宸ヤ綔娴佽鏄?
63
+ - `bin/`锛欳LI銆佽嚜鍔ㄥ畨瑁呫€乸ostinstall
64
64
 
65
- ## 入口文档
65
+ ## 鍏ュ彛鏂囨。
66
66
 
67
67
  - [AGENTS.md](AGENTS.md)
68
68
  - [docs/README.md](docs/README.md)
@@ -72,3 +72,5 @@ node self-test-skills.js
72
72
  - [skills/references/skill-authoring-standard.md](skills/references/skill-authoring-standard.md)
73
73
  - [skills/references/skill-reference-matrix.md](skills/references/skill-reference-matrix.md)
74
74
  - [skills/references/rule-loading-map.md](skills/references/rule-loading-map.md)
75
+
76
+
package/bin/cli.js CHANGED
@@ -43,20 +43,20 @@ const chalk = {
43
43
  };
44
44
 
45
45
  const SKILLS = [
46
- { name: 'workflow-router', category: 'core', description: 'route workflow stages' },
47
- { name: 'spec', category: 'analysis', description: 'turn product input into an executable spec' },
48
- { name: 'technical-design', category: 'core', description: 'shape implementation design' },
49
- { name: 'feature-build', category: 'core', description: 'implement features safely' },
50
- { name: 'code-review', category: 'core', description: 'review code changes' },
51
- { name: 'domain-modeling', category: 'analysis', description: 'extract domain knowledge' },
52
- { name: 'extract-business-facts', category: 'analysis', description: 'extract business facts from code' },
53
- { name: 'api-docs', category: 'integration', description: 'document API contracts' },
54
- { name: 'test-design', category: 'integration', description: 'design test coverage' },
55
- { name: 'security-review', category: 'review', description: 'review security risks' },
56
- { name: 'performance-check', category: 'review', description: 'review performance risks' },
57
- { name: 'knowledge-capture', category: 'collaboration', description: 'capture reusable knowledge' },
58
- { name: 'project-bootstrap', category: 'infrastructure', description: 'bootstrap project scaffolds' },
59
- { name: 'environment-deploy', category: 'infrastructure', description: 'deploy supporting environments' }
46
+ { name: 'workflow-router', category: 'core', description: '路由工作阶段' },
47
+ { name: 'spec-refinement', category: 'analysis', description: '将需求输入整理为可执行规格' },
48
+ { name: 'technical-design', category: 'core', description: '梳理实现设计' },
49
+ { name: 'feature-build', category: 'core', description: '安全实现功能变更' },
50
+ { name: 'code-review', category: 'core', description: '审查代码变更' },
51
+ { name: 'domain-modeling', category: 'analysis', description: '提炼领域知识' },
52
+ { name: 'business-fact-extraction', category: 'analysis', description: '从代码中提取业务事实' },
53
+ { name: 'api-contract-docs', category: 'integration', description: '整理 API 契约文档' },
54
+ { name: 'test-design', category: 'integration', description: '设计测试覆盖' },
55
+ { name: 'security-audit', category: 'review', description: '审查安全风险' },
56
+ { name: 'performance-audit', category: 'review', description: '审查性能风险' },
57
+ { name: 'knowledge-capture', category: 'collaboration', description: '沉淀可复用知识' },
58
+ { name: 'project-bootstrap', category: 'infrastructure', description: '初始化项目骨架' },
59
+ { name: 'environment-deploy', category: 'infrastructure', description: '部署支撑环境' }
60
60
  ];
61
61
 
62
62
  const TOOL_CONFIGS = {
@@ -568,7 +568,7 @@ async function run() {
568
568
  if (command === 'list') {
569
569
  console.log(chalk.blue('Installed skills:'));
570
570
  SKILLS.forEach(skill => {
571
- console.log(chalk.green(` 鉁?${skill.name}`) + chalk.gray(` - ${skill.description}`));
571
+ console.log(chalk.green(` - ${skill.name}`) + chalk.gray(` - ${skill.description}`));
572
572
  });
573
573
  console.log(chalk.gray(`\nTotal: ${SKILLS.length} skills`));
574
574
  return;
@@ -686,3 +686,4 @@ run().catch(error => {
686
686
  process.exitCode = 1;
687
687
  });
688
688
 
689
+
package/package.json CHANGED
@@ -1,70 +1,70 @@
1
- {
1
+ {
2
2
  "name": "@pigcloud/skills",
3
- "version": "1.0.5",
4
- "description": "AI skills pack with client-aware installation, shared skills and rules, Codex command entries, and Pig Cloud-specific overlays for requirements, implementation, and knowledge curation.",
5
- "author": "Pig Skills Maintainers",
6
- "license": "MIT",
7
- "keywords": [
8
- "ai",
9
- "skills",
10
- "openspec",
11
- "pig-cloud",
12
- "coding",
13
- "distillation",
14
- "agent",
15
- "claude",
16
- "cursor",
17
- "copilot",
18
- "trae"
19
- ],
20
- "repository": {
21
- "type": "git",
22
- "url": "https://gitee.com/rebys/pig-skills.git"
23
- },
24
- "bugs": {
25
- "url": "https://gitee.com/rebys/pig-skills/issues"
26
- },
27
- "homepage": "https://gitee.com/rebys/pig-skills",
28
- "bin": {
29
- "pig-skills": "./bin/cli.js"
30
- },
31
- "main": "./index.js",
32
- "files": [
33
- "bin/",
34
- "install.cmd",
35
- "install.ps1",
36
- "install.sh",
37
- "pig-cloud-skills-commands/",
38
- "rules/",
39
- "skills/",
40
- "scripts/",
41
- "templates/",
42
- "index.js",
43
- "README.md",
44
- "CHANGELOG.md"
45
- ],
46
- "scripts": {
47
- "test": "node validate-skills.js && node scripts/validate-skill-shapes.js && node scripts/validate-rules.js && node scripts/validate-skill-stop-rules.js && node scripts/validate-skill-replay-signals.js && node self-test-skills.js",
48
- "test:self": "node self-test-skills.js",
49
- "replay:golden": "node scripts/run-golden-replays.js",
50
- "replay:golden:mock": "node scripts/run-golden-replays.js --provider mock",
51
- "postinstall": "node bin/postinstall.js",
52
- "validate:skills": "node validate-skills.js",
53
- "validate:shapes": "node scripts/validate-skill-shapes.js",
54
- "validate:rules": "node scripts/validate-rules.js",
55
- "validate:stop-rules": "node scripts/validate-skill-stop-rules.js",
56
- "validate:replay-signals": "node scripts/validate-skill-replay-signals.js"
57
- },
58
- "engines": {
59
- "node": ">=14.0.0"
60
- },
61
- "dependencies": {
62
- "commander": "^11.0.0",
63
- "fs-extra": "^11.0.0",
64
- "chalk": "^4.1.0",
65
- "inquirer": "^8.0.0"
66
- },
67
- "devDependencies": {
68
- "jest": "^29.0.0"
69
- }
70
- }
3
+ "version": "1.0.6",
4
+ "description": "面向 Codex、Trae Claude Code AI 技能包,提供共享技能、规则约束、工作流路由和 Pig Cloud 专属覆盖层。",
5
+ "author": "Pig Skills Maintainers",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "ai",
9
+ "skills",
10
+ "openspec",
11
+ "pig-cloud",
12
+ "coding",
13
+ "distillation",
14
+ "agent",
15
+ "claude",
16
+ "cursor",
17
+ "copilot",
18
+ "trae"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://gitee.com/rebys/pig-skills.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://gitee.com/rebys/pig-skills/issues"
26
+ },
27
+ "homepage": "https://gitee.com/rebys/pig-skills",
28
+ "bin": {
29
+ "pig-skills": "./bin/cli.js"
30
+ },
31
+ "main": "./index.js",
32
+ "files": [
33
+ "bin/",
34
+ "install.cmd",
35
+ "install.ps1",
36
+ "install.sh",
37
+ "pig-cloud-skills-commands/",
38
+ "rules/",
39
+ "skills/",
40
+ "scripts/",
41
+ "templates/",
42
+ "index.js",
43
+ "README.md",
44
+ "CHANGELOG.md"
45
+ ],
46
+ "scripts": {
47
+ "test": "node validate-skills.js && node scripts/validate-skill-shapes.js && node scripts/validate-rules.js && node scripts/validate-skill-stop-rules.js && node scripts/validate-skill-replay-signals.js && node self-test-skills.js",
48
+ "test:self": "node self-test-skills.js",
49
+ "replay:golden": "node scripts/run-golden-replays.js",
50
+ "replay:golden:mock": "node scripts/run-golden-replays.js --provider mock",
51
+ "postinstall": "node bin/postinstall.js",
52
+ "validate:skills": "node validate-skills.js",
53
+ "validate:shapes": "node scripts/validate-skill-shapes.js",
54
+ "validate:rules": "node scripts/validate-rules.js",
55
+ "validate:stop-rules": "node scripts/validate-skill-stop-rules.js",
56
+ "validate:replay-signals": "node scripts/validate-skill-replay-signals.js"
57
+ },
58
+ "engines": {
59
+ "node": ">=14.0.0"
60
+ },
61
+ "dependencies": {
62
+ "commander": "^11.0.0",
63
+ "fs-extra": "^11.0.0",
64
+ "chalk": "^4.1.0",
65
+ "inquirer": "^8.0.0"
66
+ },
67
+ "devDependencies": {
68
+ "jest": "^29.0.0"
69
+ }
70
+ }
@@ -1,30 +1,31 @@
1
1
  # Coding Implementation Rules
2
2
 
3
- ## 默认做法
3
+ ## 榛樿鍋氭硶
4
4
 
5
5
  - Implement only the confirmed scope.
6
6
  - Keep the change small, reviewable, and verifiable.
7
7
  - Preserve the agreed boundary while coding.
8
8
  - Prefer one implementation path over speculative alternatives unless the task explicitly asks for options.
9
9
 
10
- ## 禁区
10
+ ## 绂佸尯
11
11
 
12
- - Do not rewrite the spec while implementing.
12
+ - Do not rewrite the spec-refinement while implementing.
13
13
  - Do not widen the scope because implementation is difficult.
14
14
  - Do not skip validation.
15
15
  - Do not bundle unrelated cleanup into the same change unless it reduces risk.
16
16
 
17
- ## 检查
17
+ ## 妫€鏌?
18
18
 
19
19
  - Does the code stay within scope?
20
20
  - Can the result be validated locally?
21
21
  - Is the implementation easy to review in one pass?
22
22
  - Would the diff still make sense if the task title were removed?
23
23
 
24
- ## 回放信号
24
+ ## 鍥炴斁淇″彿
25
25
 
26
26
  - Trigger when the request is about delivery, refactor, or code changes.
27
27
 
28
28
  ## References
29
29
 
30
30
  - `coding/index.md`
31
+
@@ -1,29 +1,30 @@
1
1
  # Project Context Rules
2
2
 
3
- ## 默认做法
3
+ ## 榛樿鍋氭硶
4
4
 
5
5
  - Capture what the current project already guarantees before rewriting the requirement.
6
6
  - Separate product intent, existing project facts, and assumptions.
7
7
  - Prefer current repo docs, release notes, and existing behavior over memory.
8
8
  - Record conflicts when product demand does not match current project facts.
9
9
 
10
- ## 禁区
10
+ ## 绂佸尯
11
11
 
12
12
  - Do not turn implementation details into product requirements.
13
13
  - Do not ignore existing project facts when they are available.
14
14
  - Do not hide conflicts behind vague wording.
15
15
 
16
- ## 检查
16
+ ## 妫€鏌?
17
17
 
18
18
  - Are product intent and project facts separated?
19
19
  - Are conflicts and open questions explicit?
20
- - Does the output still work for spec refinement?
20
+ - Does the output still work for spec-refinement?
21
21
  - Is the project context based on current evidence?
22
22
 
23
- ## 回放信号
23
+ ## 鍥炴斁淇″彿
24
24
 
25
25
  - Trigger when the task needs product understanding aligned with the current project state.
26
26
 
27
27
  ## References
28
28
 
29
29
  - `product/index.md`
30
+
@@ -3,7 +3,7 @@
3
3
  "bundle": "workflow",
4
4
  "profile": "router"
5
5
  },
6
- "spec": {
6
+ "spec-refinement": {
7
7
  "bundle": "workflow",
8
8
  "profile": "refinement"
9
9
  },
@@ -27,19 +27,19 @@
27
27
  "bundle": "product",
28
28
  "profile": "modeling"
29
29
  },
30
- "extract-business-facts": {
30
+ "business-fact-extraction": {
31
31
  "bundle": "product",
32
32
  "profile": "modeling"
33
33
  },
34
- "api-docs": {
34
+ "api-contract-docs": {
35
35
  "bundle": "docs",
36
36
  "profile": "api"
37
37
  },
38
- "security-review": {
38
+ "security-audit": {
39
39
  "bundle": "review",
40
40
  "profile": "security"
41
41
  },
42
- "performance-check": {
42
+ "performance-audit": {
43
43
  "bundle": "review",
44
44
  "profile": "performance"
45
45
  },
@@ -56,3 +56,4 @@
56
56
  "profile": "scaffold"
57
57
  }
58
58
  }
59
+
@@ -7,16 +7,16 @@ This file explains which canonical skill loads which rules bundle and profile.
7
7
  | Skill | Bundle | Profile |
8
8
  |---|---|---|
9
9
  | `workflow-router` | `workflow` | `router` |
10
- | `spec` | `workflow` | `refinement` |
10
+ | `spec-refinement` | `workflow` | `refinement` |
11
11
  | `technical-design` | `coding` | `analysis` |
12
12
  | `feature-build` | `coding` | `implementation` |
13
13
  | `test-design` | `coding` | `testing` |
14
14
  | `code-review` | `review` | `code` |
15
15
  | `domain-modeling` | `product` | `modeling` |
16
- | `extract-business-facts` | `product` | `modeling` |
17
- | `api-docs` | `docs` | `api` |
18
- | `security-review` | `review` | `security` |
19
- | `performance-check` | `review` | `performance` |
16
+ | `business-fact-extraction` | `product` | `modeling` |
17
+ | `api-contract-docs` | `docs` | `api` |
18
+ | `security-audit` | `review` | `security` |
19
+ | `performance-audit` | `review` | `performance` |
20
20
  | `knowledge-capture` | `docs` | `capture` |
21
21
  | `project-bootstrap` | `coding` | `scaffold` |
22
22
  | `environment-deploy` | `coding` | `scaffold` |
@@ -26,3 +26,4 @@ This file explains which canonical skill loads which rules bundle and profile.
26
26
  - `rule_profile` in skill frontmatter is the source of truth.
27
27
  - `skill-profile-map.json` is kept as a validation and routing fallback.
28
28
  - `code-review` intentionally uses the generic `code` profile in this repository. Stack-specific review behavior is added by overlays.
29
+