pensieve
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePensieve
Pensieve
Route user requests to the correct tool. When uncertain, confirm first.
将用户请求路由到正确的工具。存在不确定性时请先确认。
Intent Routing
意图路由
- Explicit intent takes priority: if the user explicitly names a tool or trigger word, route directly.
- Infer from session stage (when no explicit command is given):
- New project or blank context → | Version uncertainty →
init| Migration/residue uncertainty →upgrademigrate - Exploring codebase or locating issues → check first, then use
<USER_DATA_ROOT>/knowledge/to write findingsself-improve - Development complete or retrospective signals → | Complex task needing decomposition →
self-improveloop
- New project or blank context →
- When uncertain, confirm first.
- 显式意图优先:如果用户明确指定了工具或触发词,直接路由。
- 根据会话阶段推断(无显式命令时):
- 新项目或空白上下文 → | 版本不确定 →
init| 迁移/遗留问题不确定 →upgrademigrate - 探索代码库或定位问题 → 首先检查 ,然后使用
<USER_DATA_ROOT>/knowledge/写入发现内容self-improve - 开发完成或出现复盘信号 → | 需要拆解的复杂任务 →
self-improveloop
- 新项目或空白上下文 →
- 存在不确定性时先确认。
Global Rules (Summary)
全局规则(摘要)
- Boundary priority: version/compatibility issues go through ; migration/residue cleanup goes through
upgrade.migrate - Confirm before executing: when the user has not explicitly issued a command, confirm first.
- Keep links connected: must have at least one
decision/pipelinelink.[[...]] - Read spec before writing data: read the corresponding README before creating/checking user data.
Full rules inreferences/shared-rules.md
- 边界优先:版本/兼容性问题走 ;迁移/遗留清理走
upgrade。migrate - 执行前确认:用户未明确下达命令时,先进行确认。
- 保持链接连通:必须至少包含一个
decision/pipeline链接。[[...]] - 写数据前先读规范:创建/检查用户数据前请先阅读对应的README。
完整规则见references/shared-rules.md
Tool Execution Protocol
工具执行协议
Before executing any tool, read its section to confirm applicability. For tool boundaries and redirect rules, see .
### Use whenreferences/tool-boundaries.md执行任何工具前,请先阅读其「### Use when」部分确认适用性。工具边界和重定向规则请参考 。
references/tool-boundaries.mdRouting Table
路由表
| Intent | Tool spec (read first) | Trigger words |
|---|---|---|
| Initialize | | init, initialize |
| Version update | | upgrade, version |
| Structure migration | | migrate, migration, clean old paths |
| Health check | | doctor, check, format check |
| Archive experience | | self-improve, archive, reflect |
| Iterative execution | | loop, iterative execution, execute pipeline |
| 意图 | 工具规范(请先阅读) | 触发词 |
|---|---|---|
| 初始化 | | init, initialize |
| 版本更新 | | upgrade, version |
| 结构迁移 | | migrate, migration, clean old paths |
| 健康检查 | | doctor, check, format check |
| 经验归档 | | self-improve, archive, reflect |
| 迭代执行 | | loop, iterative execution, execute pipeline |
Routing Failure Fallback
路由失败降级方案
- Ambiguous intent: return candidate routes and ask the user to confirm.
- Tool entry unreadable: stop and report the missing path.
- Incomplete input: collect missing information before executing.
<SYSTEM_SKILL_ROOT><project>/.claude/skills/pensieve/- 意图模糊:返回候选路由请用户确认。
- 工具入口不可读:停止执行并报告缺失路径。
- 输入不完整:执行前收集缺失的信息。
<SYSTEM_SKILL_ROOT><project>/.claude/skills/pensieve/