Files
clawdbot-memory/claude-config/settings.json.snapshot.20260426
pp 8915fa2898 config(claude): 角色路由 hook (dev/test/pm) + role-router 单测
- claude-config/hooks/role-router.mjs
  按 user prompt 关键词检测当前角色,注入推荐 agent hint
  - dev: 开发/实现/重构/修(复|bug)/dev/implement/refactor/fix/feature → executor/debugger
  - test: 测试/单测/回归/QA/test/regression/spec → qa-tester/test-engineer/verifier
  - pm: 产品/需求/排期/规划/PM/product/PRD/roadmap → planner/analyst/scientist
  支持多角色同时命中
- claude-config/hooks/role-router.test.mjs
  10 fixture 单测 (含 subprocess pipe integration), 10/10 PASS
- claude-config/settings.json.snapshot.20260426
  全局 settings.json 快照, hooks.UserPromptSubmit 接 keyword-detector + role-router
- claude-config/README.md
  设计/安装/测试 文档

来源: ralph US-3, a+b 融合方案 (211 中文 agents + 关键词 hook)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 21:36:34 +08:00

42 lines
1.1 KiB
Plaintext

{
"model": "opus[1m]",
"hooks": {
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "sh ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hooks/find-node.sh ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hooks/keyword-detector.mjs"
},
{
"type": "command",
"command": "sh ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hooks/find-node.sh ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hooks/role-router.mjs"
}
]
}
],
"SessionStart": [],
"PreToolUse": [],
"PostToolUse": [],
"PostToolUseFailure": [],
"Stop": []
},
"statusLine": {
"type": "command",
"command": "sh ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hud/find-node.sh ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hud/omc-hud.mjs"
},
"enabledPlugins": {
"codex@openai-codex": true
},
"extraKnownMarketplaces": {
"openai-codex": {
"source": {
"source": "github",
"repo": "openai/codex-plugin-cc"
}
}
},
"skipDangerousModePermissionPrompt": true
}