feat: rationalize todo skill names and optimize skills (#368)

This commit is contained in:
Trevin Chow
2026-03-24 18:35:09 -07:00
committed by GitHub
parent 54bea268f2
commit 2612ed6b3d
20 changed files with 357 additions and 640 deletions

View File

@@ -107,8 +107,8 @@ export function transformContentForPi(body: string): string {
// Claude-specific tool references
result = result.replace(/\bAskUserQuestion\b/g, "ask_user_question")
result = result.replace(/\bTodoWrite\b/g, "file-based todos (todos/ + /skill:file-todos)")
result = result.replace(/\bTodoRead\b/g, "file-based todos (todos/ + /skill:file-todos)")
result = result.replace(/\bTodoWrite\b/g, "file-based todos (todos/ + /skill:todo-create)")
result = result.replace(/\bTodoRead\b/g, "file-based todos (todos/ + /skill:todo-create)")
// /command-name or /workflows:command-name -> /workflows-command-name
const slashCommandPattern = /(?<![:\w])\/([a-z][a-z0-9_:-]*?)(?=[\s,."')\]}`]|$)/gi

View File

@@ -20,7 +20,7 @@ Tool mapping:
- WebFetch/WebSearch: use curl or Context7 for library docs
- AskUserQuestion/Question: present choices as a numbered list in chat and wait for a reply number. For multi-select (multiSelect: true), accept comma-separated numbers. Never skip or auto-configure — always wait for the user's response before proceeding.
- Task/Subagent/Parallel: run sequentially in main thread; use multi_tool_use.parallel for tool calls
- TodoWrite/TodoRead: use file-based todos in todos/ with file-todos skill
- TodoWrite/TodoRead: use file-based todos in todos/ with todo-create skill
- Skill: open the referenced SKILL.md and follow it
- ExitPlanMode: ignore
`