一键导入
extension-troubleshoot
Diagnose and fix piclaw extension issues (imports, DB init errors, watcher perms), update skel, and restart safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and fix piclaw extension issues (imports, DB init errors, watcher perms), update skel, and restart safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ARCHIVED — project work items are tracked in GitHub Issues and GitHub Projects. Use the github-issues skill when installed, or use gh directly.
Search the web via SearXNG (or DuckDuckGo fallback) and optionally fetch result pages as raw Markdown content.
Search via SearXNG (or DuckDuckGo fallback), fetch top results, and return sentence-level summaries plus optional converted page content.
Fetch a user's recent tweets (tweets, replies, retweets) using Playwright + Nitter fallbacks and produce compact JSON/Markdown summaries.
Write and review concise technical documentation using a plain-English voice guide and anti-trope filter. Use for READMEs, design notes, runbooks, API documentation, release notes, and pull-request text.
Situate yourself by generating a 1-page situation report and maintaining Obsidian-style daily summary notes.
| name | extension-troubleshoot |
| description | Diagnose and fix piclaw extension issues (imports, DB init errors, watcher perms), update skel, and restart safely. |
| distribution | public |
Use this when piclaw web chats only show thinking or extensions throw errors.
Check extension errors:
tail -n 80 /var/log/piclaw/piclaw.stderr.log
Inspect the current extension file:
readlink -f /workspace/.pi/extensions/context-mode.ts
sed -n '1,120p' /workspace/.pi/extensions/context-mode.ts
Ensure imports reference installed Piclaw, not workspace source.
/usr/local/lib/bun/install/global/node_modules/piclaw/runtime/..../workspace/piclaw or workspace-local node_modules; those paths can drift after reloads.Harden the extension.
try/catch.saveToolOutput with try/catch.Update the matching skel extension:
cp /workspace/.pi/extensions/context-mode.ts /workspace/piclaw/skel/.pi/extensions/context-mode.ts
Fix workspace watcher permissions if fs.watch warns on tailscale:
sudo chown -R agent:agent /workspace/.piclaw/tailscale
Restart Piclaw only with explicit user permission.
For an agent-driven restart, run session_status first. If another session is active, report it and wait. Otherwise send the final response, then call exit_process as the last tool action.
For a manual shell restart, identify the host's active service manager and use it directly:
# Supervisor-managed container
supervisorctl restart piclaw
# systemd user unit, including LXC or host-native installs
systemctl --user restart piclaw.service
Verify:
tail -n 40 /var/log/piclaw/piclaw.stderr.log