Skip to content

Commit e84ad2d

Browse files
committed
feat: align with Claude Code v2.1.173 (v0.11.0)
- Add MessageDisplay hook (display-layer secret masking, 20 events / 30 scripts) - SessionStart hook now emits sessionTitle (dir:branch) - Enforce role tool boundaries via disallowed-tools on pm/lead/designer/clarify - Document Opus 4.8 / Fable 5 model aliases in /model - Fix #4: plugin.json userConfig schema (title+type+default, drop enum/description) - Sync version/stats across docs; update validate-hooks event whitelist
1 parent 22dc3f1 commit e84ad2d

22 files changed

Lines changed: 238 additions & 42 deletions

.claude-plugin/ARCHITECTURE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CC-Best Architecture | 架构文档
22

3-
> Version: 0.10.0 | Last Updated: 2026-04-09
3+
> Version: 0.11.0 | Last Updated: 2026-06-11
44
55
本文档描述 CC-Best 插件的完整架构、组件关系和调用链路。
66

@@ -61,7 +61,7 @@
6161
│ 触发
6262
6363
┌─────────────────────────────────────────────────────────────┐
64-
│ Hooks (30 脚本 / 19 事件) │
64+
│ Hooks (30 脚本 / 20 事件) │
6565
│ SessionStart → session-check │
6666
│ UserPromptSubmit → user-prompt-submit │
6767
│ PreToolUse → validate-command, pause-before-push, │
@@ -85,6 +85,7 @@
8585
│ CwdChanged → cwd-changed (v0.10.0) │
8686
│ ConfigChange → config-change (v0.10.0) │
8787
│ TaskCompleted → task-completed (v0.10.0) │
88+
│ MessageDisplay → message-display (v0.11.0) │
8889
└─────────────────────────────────────────────────────────────┘
8990
```
9091

@@ -324,7 +325,7 @@ hooks/
324325
| `CLAUDE.md` | 头部 Version |
325326
| `CHANGELOG.md` | 最新条目 |
326327

327-
当前版本: **0.10.0**
328+
当前版本: **0.11.0**
328329

329330
---
330331

@@ -487,7 +488,7 @@ tools: Read, Grep, Glob
487488

488489
## 13. 官方特性兼容性 | Official Feature Compatibility
489490

490-
> 基于 Claude Code v2.1.97 评估(2026-04-09 更新)
491+
> 基于 Claude Code v2.1.173 评估(2026-06-11 更新)
491492
492493
### 已采用特性 | Adopted Features
493494

@@ -516,6 +517,9 @@ tools: Read, Grep, Glob
516517
| CwdChanged 事件 | hooks 配置 (v0.10.0) ||
517518
| ConfigChange 事件 | hooks 配置 (v0.10.0) ||
518519
| TaskCompleted 事件 | hooks 配置 (v0.10.0) ||
520+
| MessageDisplay 事件 | hooks 配置 (v0.11.0) ||
521+
| SessionStart sessionTitle| session-check.js (v0.11.0) ||
522+
| disallowed-tools (命令) | pm/lead/designer/clarify (v0.11.0) ||
519523
| Agent `background` | code-reviewer 等 (v0.9.0) ||
520524
| Agent `isolation` | architect (v0.9.0) ||
521525
| Agent `memory` | 5 agents (v0.9.0) ||

.claude-plugin/COMMANDS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CC-Best Commands Reference | 命令参考
22

3-
> Version: 0.10.0 | 44 Commands
3+
> Version: 0.11.0 | 44 Commands
44
55
快速查阅所有命令的参数和用法。
66

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"plugins": [
88
{
99
"name": "cc-best",
10-
"version": "0.10.0",
10+
"version": "0.11.0",
1111
"source": "./",
12-
"description": "Complete development environment with role-based workflows (PM→Lead→Designer→Dev→QA), 30 hook scripts across 19 events with 3-tier profiles, 44 commands, 19 skills, 8 agents, 43 rules, auto-learning pipeline, and multi-language coding standards",
12+
"description": "Complete development environment with role-based workflows (PM→Lead→Designer→Dev→QA), 30 hook scripts across 20 events with 3-tier profiles, 44 commands, 19 skills, 8 agents, 43 rules, auto-learning pipeline, and multi-language coding standards",
1313
"author": {
1414
"name": "xiaobei930"
1515
}

.claude-plugin/plugin.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cc-best",
3-
"version": "0.10.0",
4-
"description": "Production-ready Claude Code configuration with role-based workflows (PM→Lead→Designer→Dev→QA), safety hooks, 44 commands, 19 skills, 8 agents, 43 rules, 30 hook scripts across 19 events, auto-learning pipeline, hook profiles, and multi-language coding standards",
3+
"version": "0.11.0",
4+
"description": "Production-ready Claude Code configuration with role-based workflows (PM→Lead→Designer→Dev→QA), safety hooks, 44 commands, 19 skills, 8 agents, 43 rules, 30 hook scripts across 20 events, auto-learning pipeline, hook profiles, and multi-language coding standards",
55
"author": {
66
"name": "xiaobei930",
77
"url": "https://github.com/xiaobei930"
@@ -34,10 +34,9 @@
3434
"bin": ["./bin/"],
3535
"userConfig": {
3636
"hookProfile": {
37+
"title": "Hook execution tier: minimal (safety only), standard (safety + quality), full (all hooks)",
3738
"type": "string",
38-
"enum": ["minimal", "standard", "full"],
39-
"default": "full",
40-
"description": "Hook execution tier: minimal (safety only), standard (safety + quality), full (all hooks)"
39+
"default": "full"
4140
}
4241
},
4342
"commands": ["./commands/"],

CHANGELOG.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7474
- [x] **组件按需安装清单** - 15 个组件家族 + 3 个预设 (v0.9.0)
7575
- [x] **plugin settings.json** - Agent 默认配置 (v0.9.0)
7676

77-
### v0.10.x (Current) - 对齐 Claude Code v2.1.97
77+
### v0.10.x ✅ (Released 2026-04-09) - 对齐 Claude Code v2.1.97
7878

7979
**核心目标**: 同步 Claude Code v2.1.97 新特性 + 插件规范增强
8080

@@ -94,10 +94,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9494
- [x] **角色工具边界** - PM/Lead/Designer 明确禁止修改源代码,仅允许 .md 文档 (v0.10.0)
9595
- [x] **Token 消耗优化** - coding-standards.md -85%,common rules 总计 -35% (v0.10.0)
9696

97-
### v0.11.x (Next) - 生态扩展 + 质量闭环
97+
### v0.11.x (Current) - 对齐 Claude Code v2.1.173 + 生态扩展
9898

99-
**核心目标**: npm 分发 + 评估体系 + 持续跟进官方变更
99+
**核心目标**: 同步 Claude Code v2.1.98→v2.1.173 官方变更 + 生态扩展
100100

101+
- [x] **MessageDisplay Hook 事件** - 显示层敏感信息打码,事件总数 19→20 (v0.11.0)
102+
- [x] **SessionStart sessionTitle** - 自动以"目录:分支"命名会话 (v0.11.0)
103+
- [x] **角色命令 disallowed-tools** - pm/lead/designer/clarify 强制移除 Bash (v0.11.0)
104+
- [x] **模型别名文档更新** - Opus 4.8 默认 high effort、Fable 5 (claude-fable-5) 说明 (v0.11.0)
101105
- [ ] **npm 分发** - 发布到 npm registry,支持 `npx cc-best` 安装
102106
- [ ] **Skill 评估体系** - 参考 PluginEval,为 skill/agent 建立质量评分和基准测试
103107
- [ ] **跨会话学习增强** - Reflexion 模式,错误模式跨会话持久化和自动预防
@@ -119,6 +123,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
119123

120124
## Recent Changes / 近期变更
121125

126+
### [0.11.0] - 2026-06-11
127+
128+
#### Theme / 主题: 对齐 Claude Code v2.1.173
129+
130+
同步 Claude Code v2.1.98→v2.1.173 的官方变更:新增 MessageDisplay hook 事件、SessionStart 会话自动命名、角色命令 disallowed-tools 强制工具边界,并更新模型别名文档(Opus 4.8 / Fable 5)。
131+
132+
#### Added / 新增
133+
134+
- **MessageDisplay Hook 事件**(v2.1.152+)— 新增 `message-display.js`,在助手消息显示时打码 API 密钥、Token、JWT 等敏感信息(仅影响屏幕显示,不影响 transcript 和 Claude 上下文),Hook 事件从 19 个扩展至 20 个,脚本总数从 29 增加到 30
135+
- **SessionStart `sessionTitle`**(v2.1.152+)— `session-check.js` 自动以"目录名:分支名"命名会话(等效 /rename,仅 startup/resume 时生效)
136+
- **角色命令 `disallowed-tools`**(v2.1.152+)— pm/lead/designer/clarify 四个角色命令添加 `disallowed-tools: Bash`,强制执行角色工具边界(官方确认 skills/commands 的 `allowed-tools` 存在不限制工具的 bug,`disallowed-tools` 为有效替代)
137+
138+
#### Changed / 变更
139+
140+
- **兼容性基线** — 从 Claude Code v2.1.97 更新到 v2.1.173
141+
- **Hook Profile 注册表** — HOOK_PROFILES 新增 message-display(safety 类)
142+
- **模型别名文档**(/model 命令)— 说明 `opus` 别名当前指向 Opus 4.8(v2.1.154+ 默认 high effort);Fable 5(`claude-fable-5`,v2.1.170+,1M 上下文/128k 输出)需显式写完整模型 ID
143+
- **stop-check.js 注释** — 记录 v2.1.145+ Stop hook `additionalContext` 能力及有意不使用的原因(避免常驻未完成任务导致无限继续循环)
144+
- **文档同步** — plugin.json/marketplace.json/manifests 版本 0.11.0;ARCHITECTURE.md、hooks/README.md、llms.txt×2、docs/index.html、docs/guides/advanced.md 统计更新(20 事件/30 脚本)
145+
146+
#### Fixed / 修复
147+
148+
- **插件安装失败**#4)— `plugin.json``userConfig.hookProfile` 使用了验证器不支持的 `enum`/`description` 键且缺少必需的 `title`,导致 Claude Code 2.1.x 上 manifest 校验失败、无法安装;改为 `title` + `type` + `default` 格式
149+
150+
#### Notes / 备注(官方新能力,无需插件改动)
151+
152+
- `/reload-skills`(v2.1.152+)— 开发 skill 时免重启重扫描
153+
- `/cd`(v2.1.169+)— 切换工作目录且不打断 prompt cache
154+
- `--safe-mode` / `disableBundledSkills`(v2.1.169+)— 故障排查时禁用自定义/内置 skills
155+
- 管理设置 `requiredMinimumVersion`/`requiredMaximumVersion`(v2.1.163+)
156+
122157
### [0.10.0] - 2026-04-09
123158

124159
#### Theme / 主题: 对齐 Claude Code v2.1.97 + 插件规范增强

commands/clarify.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: 需求澄清智能体,解决 REQ 文档中的待澄清项
33
allowed-tools: Read, Write, Edit, Glob, Grep, TodoWrite, Task, WebSearch, WebFetch
4+
disallowed-tools: Bash
45
---
56

67
# /clarify - 需求澄清智能体

commands/designer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: UI 设计师智能体,负责界面设计审查和用户体验优化
33
allowed-tools: Read, Write, Edit, Glob, Grep, TodoWrite, Task, WebSearch, WebFetch, Skill, mcp__plugin_playwright_playwright__browser_navigate, mcp__plugin_playwright_playwright__browser_snapshot, mcp__plugin_playwright_playwright__browser_take_screenshot
4+
disallowed-tools: Bash
45
---
56

67
# /designer - UI 设计师智能体

commands/lead.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: 研发经理智能体,负责技术方案设计和任务分解
33
allowed-tools: Read, Write, Edit, Glob, Grep, TodoWrite, Task, Skill, WebSearch, WebFetch, mcp__plugin_playwright_playwright__browser_navigate, mcp__plugin_playwright_playwright__browser_snapshot, mcp__plugin_playwright_playwright__browser_take_screenshot
4+
disallowed-tools: Bash
45
---
56

67
# /lead - 研发经理智能体

commands/model.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ node scripts/node/model-strategy.js <strategy>
9191

9292
---
9393

94+
## 模型别名现状(2026-06,Claude Code v2.1.173)
95+
96+
- `opus` / `sonnet` / `haiku` 是别名,自动跟踪最新版本,无需手动升级
97+
- 当前 `opus`**Opus 4.8**(v2.1.154+ 默认 high effort,快速模式成本更低)
98+
- **Fable 5**`claude-fable-5`,v2.1.170+)为 Mythos 级新模型(1M 上下文/128k 输出),无别名,如需使用须在 agent frontmatter 显式写完整模型 ID;适合超长自治循环和大型架构分析
99+
- 不写 `model` 字段 = inherit(继承会话模型),用户控制层 agent 采用此策略
100+
101+
---
102+
94103
## 注意事项
95104

96105
- 策略变更直接修改 `agents/*.md` 文件的 `model:` frontmatter 字段

commands/pm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: 产品经理智能体,负责需求分析和产品规划
33
allowed-tools: Read, Write, Edit, Glob, Grep, TodoWrite, Task, WebSearch, WebFetch, mcp__plugin_playwright_playwright__browser_navigate, mcp__plugin_playwright_playwright__browser_snapshot, mcp__plugin_playwright_playwright__browser_take_screenshot
4+
disallowed-tools: Bash
45
---
56

67
# /pm - 产品经理智能体

0 commit comments

Comments
 (0)