Pi Tool Error Recovery

SKILLAI 工具
AI 工具 未标注权限 许可证不明确
安装这个技能

当 Pi/Codex/AI Agent 的工具调用、Shell 命令、MCP、浏览器桥接、npm/Node、Git、Playwright 或外部集成失败时使用;优先检索本地 verified recipes,执行安全修复,无法匹配时按降级流程询问用户并在验证成功后沉淀新 recipe。Use when a tool, command, MCP server, browser bridge, package manager, or integration fails; search verified local recipes first, apply safe fixes, and save only verified fixes.

一句话选型结论

按资料字段整理

Pi Tool Error Recovery是AI 工具类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类AI 工具 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_173b32ba/pi-tool-error-recovery
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

AI 工具
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_173b32ba仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791656014
正文体量9.8 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
组合多个 AI 能力

把写作、检索、总结串成一条流程。

搭工作流

把固定流程做成可重复调用的步骤。

做提示词与评测

整理提示词并对比输出效果。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在AI 工具场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Pi Tool Error Recovery当前 未标注权限 未标注 未标注 未标注 有
执行计划 只读 GitHub 仓库 151.5 万 Codex、Claude、Cursor 有
Playwright MCP 测试 浏览器控制 ClawHub 市场 136.5 万 OpenClaw 有
完成前的验证 未标注权限 GitHub 仓库 131.9 万 Codex、Claude、Cursor 有
子 Agent 驱动开发 只读 GitHub 仓库 131.2 万 Codex、Claude、Cursor 有
前端设计 执行命令 GitHub 仓库 125.6 万 Codex、Claude、Cursor 有

SKILL.md 全文

9.8 KB
模型实际读到的说明书原文,来自技能仓库

Pi Tool Error Recovery Skill

> 中文:这是一个给 Pi / Codex / AI Agent 使用的工具错误恢复 Skill。它不会替你“瞎重试”,而是先识别错误、检索本地已验证方案、执行安全修复、验证结果,并把成功经验沉淀为可复用的 Markdown recipe。
> English: This skill helps Pi/Codex/AI agents recover from failed tools by searching local verified recipes, applying safe fixes, verifying the result, and saving only confirmed fixes.

1. When to Use / 什么时候触发

Use this skill when any of these happens:

  • A tool call fails.
  • A shell command exits with a non-zero code.
  • A Pi extension command fails or is treated as normal chat.
  • An MCP server fails to start, lists no tools, or reports invalid config.
  • A browser bridge, Chrome extension, CDP, or Playwright workflow fails.
  • npm / pnpm / node / package manager behavior fails.
  • Git / GitHub / API integration fails.
  • The agent is about to use a tool that has known setup issues.

中文触发条件:

  • 工具调用失败。
  • Shell 命令失败。
  • Pi 扩展命令没有被正确识别。
  • MCP server 无法启动、无工具、配置错误。
  • 浏览器桥接、Chrome 扩展、CDP、Playwright 报错。
  • npm / pnpm / node / 包管理器报错。
  • Git / GitHub / API 集成报错。
  • 即将使用一个已知容易出问题的工具。

Do not use this skill for normal chatting, ordinary reasoning, general writing, or tasks unrelated to tool execution.


2. Core Principle / 核心原则

Do not guess -> search recipes -> match carefully -> apply safe fix -> verify -> save only verified fixes
不要猜 -> 先查 recipe -> 谨慎匹配 -> 只做安全修复 -> 验证成功 -> 只沉淀已验证方案

The agent must avoid blind retries. A retry is allowed only when there is a clear reason, such as a changed command, fixed environment variable, reloaded extension, installed missing dependency, or user-approved action.


3. Recipe Store / Recipe 存储位置

Default local recipe directory:

~/.pi/agent/tool-recipes/

If it does not exist, create it:

mkdir -p ~/.pi/agent/tool-recipes

Windows PowerShell equivalent:

New-Item -ItemType Directory -Force "$HOME\.pi\agent\tool-recipes"

All recipes are Markdown files. No network service is required. No foreign service is required. This is friendly to domestic / offline environments.


4. Recovery Workflow / 恢复流程

When a tool or command fails, follow this exact flow:

Step 1 — Extract Context / 提取上下文

Collect only information needed for debugging:

  • Tool name
  • Command or action
  • Error message
  • Exit code
  • OS / shell if visible
  • Package / extension / integration name
  • Recent command changes if relevant

Never collect or store secrets.

Step 2 — Build Search Keywords / 生成检索关键词

Create a compact search string from stable identifiers:

<tool>|<command>|<package>|<main error phrase>|<exit code>|<OS>

Examples:

rg -i "npm|missing script|package.json|dev" ~/.pi/agent/tool-recipes/
rg -i "mcp|server|ENOENT|command not found" ~/.pi/agent/tool-recipes/
rg -i "playwright|browser|install|chromium" ~/.pi/agent/tool-recipes/

Step 3 — Search Recipes / 检索 Recipe

Preferred search command:

rg -i "<keywords>" ~/.pi/agent/tool-recipes/

If rg is not installed, use fallback commands:

# macOS / Linux fallback
grep -RniE "<keywords>" ~/.pi/agent/tool-recipes/

# Windows PowerShell fallback
Get-ChildItem "$HOME\.pi\agent\tool-recipes" -Recurse -Filter *.md | Select-String -Pattern "<keywords>"

Step 4 — Handle Edge Cases / 边界情况降级

If the recipe directory is missing:

  1. Create the directory.
  2. Continue with safe diagnosis.
  3. Do not claim that a recipe exists.

If the recipe directory is empty:

  1. Say: No verified local recipe found yet.
  2. Use the fallback diagnosis checklist.
  3. Ask for user approval before risky actions.
  4. Save a new recipe only after the fix is verified.

If recipe search fails:

  1. Try the fallback search command.
  2. If search still fails, list the directory.
  3. Continue with manual diagnosis and report that recipe search failed.

If multiple recipes match:

  1. Prefer the recipe with the same tool + same stable error signature.
  2. If still ambiguous, use the safest read-only verification first.
  3. Do not apply destructive fixes automatically.

Step 5 — Match Strictly / 严格匹配

A recipe matches only if at least two of these are true:

  • Same tool or integration.
  • Same stable error phrase.
  • Same failed command family.
  • Same environment class, such as Windows PowerShell, WSL, macOS, browser bridge, Node package manager.
  • Same symptom pattern.

If only one condition matches, treat it as a hint, not as a verified fix.

Step 6 — Apply Safe Fix / 执行安全修复

Safe fixes can be applied without extra confirmation when they are local and reversible, such as:

  • Reading documentation files.
  • Running doctor / status / version commands.
  • Creating a missing local recipe directory.
  • Installing non-sensitive local project dependencies after user context is clear.
  • Restarting the local tool process.

Ask before risky actions listed in the safety section.

Step 7 — Verify / 验证

Verification must be observable. Examples:

command exits with code 0
/tool doctor passes
MCP server lists tools
npm run dev starts successfully
pnpm test passes
browser bridge connects
Git push succeeds after correct branch selection

A recipe is not verified if it is only a guess.

Step 8 — Save Recipe / 沉淀 Recipe

Save or append a recipe only when:

  1. The original failure was observed.
  2. A fix was tried.
  3. The fix worked.
  4. Verification is clear.
  5. No secrets or private data are included.

Use lowercase hyphenated file names:

npm-node.md
mcp-server.md
browser-cdp.md
playwright.md
git.md
windows-powershell.md
misc.md

5. Fallback Diagnosis Checklist / 通用降级排查清单

When no recipe matches, diagnose in this order:

  1. Read the exact error: identify stable phrases, not the whole noisy log.
  2. Check location: confirm current working directory and project root.
  3. Check command availability: command -v, where, Get-Command.
  4. Check versions: node -v, npm -v, python --version, java -version, etc.
  5. Check config files: package.json, mcp config, extension config, env examples.
  6. Check permissions: read/write permission, execution policy, browser permission.
  7. Try a minimal doctor/status command.
  8. Ask before modifying system state.
  9. Verify after every fix.
  10. Save a recipe only after success.

中文速记:先看错误原文,再看目录,再看命令是否存在,再看版本,再看配置,再看权限,最后才修改环境。


6. Safety Rules / 安全规则

Never save:

  • Passwords / 密码
  • API keys / API 密钥
  • Tokens / 令牌
  • Cookies / Cookie
  • Private credentials / 私密凭据
  • Payment data / 支付信息
  • Private account data / 私人账号数据
  • One-time personal information / 一次性个人信息

Always ask before:

  • deleting files
  • running sudo
  • running rm -rf
  • modifying system directories
  • changing shell startup files such as .zshrc, .bashrc, PowerShell profile
  • git commit / git push
  • deployment
  • publishing packages
  • external account changes
  • submitting forms through logged-in browser sessions
  • changing browser security flags

Redaction rule:

Replace secrets with <REDACTED_SECRET> before saving any recipe.

7. Output Format / 输出格式

When using this skill, respond in this structure:

## Tool Error Recovery

### Error Detected
- Tool:
- Command / Action:
- Error Signature:
- Environment:

### Recipe Search
- Query:
- Result:

### Matched Recipe
- Recipe:
- Match confidence:
- Why it matches:

### Action Taken
- Steps:
- Safety notes:

### Verification
- Verification method:
- Result:

### Saved Recipe
- Status:
- Path:

### Next Time
- Reuse trigger:
- One-line fix:

If no recipe is saved:

Saved Recipe: Not saved because the fix was not verified.

If no recipe exists:

Recipe Search: No verified local recipe found yet. I will use the fallback diagnosis checklist and save a recipe only after the fix is verified.

8. Anti-patterns / 反模式

Do not:

  • Retry the same failing command repeatedly without changing anything.
  • Save guessed fixes as verified recipes.
  • Store secrets in recipes.
  • Apply a recipe just because one keyword matches.
  • Delete lockfiles, caches, or config files without explaining why.
  • Run destructive commands without user approval.
  • Treat web search results as verified local recipes.
  • Hide partial failure from the user.

9. Built-in Recipe Categories / 内置 Recipe 类别

This package includes common verified recipe templates for:

  • Pi / Chrome extension command routing
  • Recipe store missing or empty
  • npm missing script
  • npm EBADENGINE / Node version mismatch
  • pnpm workspace filter issues
  • MCP server command not found / wrong cwd
  • Playwright browser not installed
  • Browser CDP port connection issues
  • Git src refspec main does not match any
  • Windows PowerShell execution policy and PATH issues
  • WSL command location mismatch

More project-specific recipes should be added after real verified fixes.

常见问题

5 问
答案由本站依据条目字段整理
Pi Tool Error Recovery怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_173b32ba/pi-tool-error-recovery。安装方式为未标注。装完刷新技能列表或重开客户端。

Pi Tool Error Recovery支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Pi Tool Error Recovery权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Pi Tool Error Recovery收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Pi Tool Error Recovery用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。