Agent skill

extension-troubleshoot

Diagnose and fix piclaw extension issues (imports, DB init errors, watcher perms), update skel, and restart safely.

Stars 469
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/extension-troubleshoot

SKILL.md

Extension Troubleshoot (piclaw)

Use this when piclaw web chats only show thinking or extensions throw errors.

Steps

  1. Check extension errors
bash
tail -n 80 /var/log/piclaw/piclaw.stderr.log
  1. Inspect current extension file(s)
bash
readlink -f /workspace/.pi/extensions/context-mode.ts
sed -n '1,120p' /workspace/.pi/extensions/context-mode.ts
  1. Ensure imports reference installed piclaw (not workspace src)
  • Use installed path: /home/agent/.bun/install/global/node_modules/piclaw/dist/...
  • Avoid /workspace/piclaw or node_modules symlinked to workspace.
  1. Harden extension
  • Remove/avoid startup cleanup that touches DB before init.
  • Wrap tool executes with try/catch to prevent crashes.
  • Guard saveToolOutput with try/catch.
  1. Update skel extension too
bash
cp /workspace/.pi/extensions/context-mode.ts /workspace/piclaw/skel/.pi/extensions/context-mode.ts
  1. Fix workspace watcher permissions (if fs.watch warns on tailscale)
bash
sudo chown -R agent:agent /workspace/.piclaw/tailscale
  1. Restart piclaw
bash
supervisorctl restart piclaw
  1. Verify
bash
tail -n 40 /var/log/piclaw/piclaw.stderr.log

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results