@yan-geroge/omg 0.1.0 → 0.1.1

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 (3) hide show
  1. package/README.md +104 -0
  2. package/package.json +2 -1
  3. package/plugin.json +1 -1
package/README.md ADDED
@@ -0,0 +1,104 @@
1
+ # oh-my-costrict (OMC)
2
+
3
+ CSC 多智能体编排插件 — 为 CoStrict CLI (CSC) 提供多智能体编排、技能路由和生命周期 Hook 注入能力。
4
+
5
+ ## 特性
6
+
7
+ - **6 个专用子代理** — planner, architect, executor, reviewer, verifier, tdd-guide,覆盖完整开发流程
8
+ - **2 个编排技能** — autopilot 自动审查流水线 + team 多智能体并行团队
9
+ - **生命周期 Hook** — SessionStart 注入工作流状态,UserPromptSubmit 关键词检测触发代理路由
10
+ - **中文优先** — 所有文档、注释、代理提示均使用中文
11
+
12
+ ## 安装
13
+
14
+ ### NPM 安装(推荐)
15
+
16
+ ```bash
17
+ npm install @yan-geroge/omg
18
+ ```
19
+
20
+ ### 本地安装
21
+
22
+ ```bash
23
+ # 克隆仓库
24
+ git clone https://github.com/y574444354/oh-my-geroge.git ~/.claude/plugins/cache/local/oh-my-costrict/
25
+
26
+ # 在 settings.json 中启用
27
+ {
28
+ "enabledPlugins": ["oh-my-costrict@local"]
29
+ }
30
+ ```
31
+
32
+ ## 可用代理
33
+
34
+ | 代理 | 用途 | 使用时机 |
35
+ |------|------|----------|
36
+ | `oh-my-costrict:planner` | 任务规划、PRD 编写 | 复杂功能、重构前 |
37
+ | `oh-my-costrict:architect` | 系统设计、架构审查 | 架构决策时 |
38
+ | `oh-my-costrict:executor` | 代码实现 | 编写或修改代码时 |
39
+ | `oh-my-costrict:reviewer` | 代码/设计/安全审查 | 代码刚写完时 |
40
+ | `oh-my-costrict:verifier` | 测试运行、覆盖率检查 | 实现完成后 |
41
+ | `oh-my-costrict:tdd-guide` | TDD 红-绿-重构循环 | 新功能、Bug 修复 |
42
+
43
+ ## 可用技能
44
+
45
+ | 技能 | 用途 | 触发方式 |
46
+ |------|------|----------|
47
+ | `/oh-my-costrict:costrict-autopilot` | 自动审查流水线(PRD → 设计审查 → 工程审查 → DX 审查 → 汇总报告) | `/costrict-autopilot <任务>` |
48
+ | `/oh-my-costrict:costrict-team` | 多智能体团队编排(规划 → 并行执行 → 审查 → 修复循环 → 验证) | `/costrict-team <任务>` |
49
+
50
+ ## 开发流程
51
+
52
+ ```
53
+ 规划 → 设计 → TDD → 实现 → 审查 → 验证
54
+ ```
55
+
56
+ 1. **规划** — 使用 `oh-my-costrict:planner` 分析需求、编写 PRD
57
+ 2. **设计** — 使用 `oh-my-costrict:architect` 审查架构方案
58
+ 3. **TDD** — 使用 `oh-my-costrict:tdd-guide` 引导测试驱动开发
59
+ 4. **实现** — 使用 `oh-my-costrict:executor` 编写代码
60
+ 5. **审查** — 使用 `oh-my-costrict:reviewer` 进行代码审查
61
+ 6. **验证** — 使用 `oh-my-costrict:verifier` 运行测试、检查覆盖率
62
+
63
+ ## 运营原则
64
+
65
+ - **委托优先** — 将专业化工作委托给最合适的代理
66
+ - **证据优先** — 验证结果后再做最终声明
67
+ - **最轻量路径** — 保持质量的前提下选择最简单的实现方式
68
+ - **不重复造轮子** — 优先搜索和复用现有实现
69
+
70
+ ## 项目结构
71
+
72
+ ```
73
+ oh-my-costrict/
74
+ ├── agents/ # 子代理定义 (markdown)
75
+ │ ├── architect.md
76
+ │ ├── executor.md
77
+ │ ├── planner.md
78
+ │ ├── reviewer.md
79
+ │ ├── tdd-guide.md
80
+ │ └── verifier.md
81
+ ├── skills/ # 编排技能
82
+ │ ├── costrict-autopilot/
83
+ │ └── costrict-team/
84
+ ├── hooks/ # 生命周期 Hook
85
+ │ ├── session-start.mjs
86
+ │ ├── keyword-detector.mjs
87
+ │ └── lib/
88
+ ├── scripts/ # 诊断与验证工具
89
+ ├── tests/ # Hook 和关键词检测测试
90
+ ├── plugin.json # CSC 插件配置
91
+ ├── package.json # NPM 包配置
92
+ └── CLAUDE.md # 项目指令文件
93
+ ```
94
+
95
+ ## 验证要求
96
+
97
+ - 所有测试通过
98
+ - 覆盖率 ≥ 80%
99
+ - 代码审查通过(无 CRITICAL/HIGH 问题)
100
+ - Lint/类型检查通过
101
+
102
+ ## License
103
+
104
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yan-geroge/omg",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CSC 多智能体编排插件 — 为 CSC 提供多智能体编排、技能路由、生命周期 Hook 注入能力",
5
5
  "main": "plugin.json",
6
6
  "files": [
@@ -11,6 +11,7 @@
11
11
  "hooks/",
12
12
  "scripts/",
13
13
  "CLAUDE.md",
14
+ "README.md",
14
15
  ".claude/",
15
16
  "!.claude/settings.local.json"
16
17
  ],
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-costrict",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CSC 多智能体编排插件 — 为 CSC 提供多智能体编排、技能路由、生命周期 Hook 注入能力",
5
5
  "skills": "./skills/",
6
6
  "hooks": {