- 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>
42 lines
1.1 KiB
Plaintext
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
|
|
}
|