Debug

From rcarmo/piclaw · View interactive version

Debug is an AI agent skill from the GitHub repository rcarmo/piclaw. Diagnose and fix issues with the Pibox container environment — tools, paths, mounts, pi configuration.

How to use this skill

Skill file

Debug

Use this skill to diagnose and fix Pibox container issues.

Steps

  1. Check system basics:

```bash

uname -a && cat /etc/os-release | head -3

whoami && id

df -h / /workspace /home/agent 2>/dev/null

free -h

```

  1. Check tool availability:

```bash

for cmd in bun brew git rg make pi vim tmux htop jq curl; do

printf "%-8s " "$cmd"; which "$cmd" 2>/dev/null && "$cmd" --version 2>/dev/null | head -1 || echo "NOT FOUND"

done

```

  1. Check pi configuration:

```bash

echo "=== Global skills ===" && ls ~/.pi/agent/skills/ 2>/dev/null || echo "none"

echo "=== Global settings ===" && cat ~/.pi/agent/settings.json 2>/dev/null || echo "none"

echo "=== Project AGENTS.md ===" && head -5 AGENTS.md 2>/dev/null || echo "none"

echo "=== Project skills ===" && ls .pi/skills/ 2>/dev/null || echo "none"

```

  1. Check piclaw (if running):

```bash

echo "=== Piclaw ===" && pgrep -af "bun.*piclaw" || echo "not running"

ls -la data/ipc/ 2>/dev/null || echo "no IPC directory"

```

  1. Report the findings and suggest fixes.

Common Issues

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.