Agent Skillsrcarmo/piclaw › debug

debug

GitHub

用于诊断和修复 Pibox 容器环境问题,检查系统基础、工具可用性、配置及进程状态,并提供修复建议。

skel/.pi/skills/debug/SKILL.md rcarmo/piclaw

Trigger Scenarios

容器环境异常 工具缺失或路径错误 权限或挂载问题

Install

npx skills add rcarmo/piclaw --skill debug -g -y
More Options

Non-standard path

npx skills add https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/debug -g -y

Use without installing

npx skills use rcarmo/piclaw@debug

指定 Agent (Claude Code)

npx skills add rcarmo/piclaw --skill debug -a claude-code -g -y

安装 repo 全部 skill

npx skills add rcarmo/piclaw --all -g -y

预览 repo 内 skill

npx skills add rcarmo/piclaw --list

SKILL.md

Frontmatter
{
    "name": "debug",
    "description": "Diagnose and fix issues with the Pibox container environment — tools, paths, mounts, pi configuration.",
    "distribution": "public"
}

Debug

Use this skill to diagnose and fix Pibox container issues.

Steps

  1. Check system basics:

    uname -a && cat /etc/os-release | head -3
    whoami && id
    df -h / /workspace /home/agent 2>/dev/null
    free -h
    
  2. Check tool availability:

    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
    
  3. Check pi configuration:

    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"
    
  4. Check piclaw (if running):

    echo "=== Piclaw ===" && pgrep -af "bun.*piclaw" || echo "not running"
    ls -la data/ipc/ 2>/dev/null || echo "no IPC directory"
    
  5. Report the findings and suggest fixes.

Common Issues

  • bun not found: source ~/.bashrc or check ~/.bun/bin is in PATH
  • brew not found: eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
  • pi not found: bun add -g @earendil-works/pi-coding-agent
  • Permission denied: sudo chown -R agent:agent /workspace
  • Config not persisting: Check /config volume is mounted and ~/.pi is symlinked

Version History

  • 5fa0ce5 Current 2026-07-25 10:25

Same Skill Collection

runtime/skills/builtin/reload/SKILL.md
runtime/skills/builtin/remote-peer/SKILL.md
runtime/skills/builtin/schedule/SKILL.md
runtime/skills/builtin/script-discovery-annotation/SKILL.md
runtime/skills/builtin/send-message/SKILL.md
runtime/skills/integrations/playwright/SKILL.md
runtime/skills/operator/graphite-power-chart/SKILL.md
runtime/skills/operator/token-chart/SKILL.md
skel/.pi/skills/adaptive-cards-authoring/SKILL.md
skel/.pi/skills/bootstrap-container/SKILL.md
skel/.pi/skills/export-timeline-pdf/SKILL.md
skel/.pi/skills/extension-design/SKILL.md
skel/.pi/skills/extension-troubleshoot/SKILL.md
skel/.pi/skills/feature-refinement-flow/SKILL.md
skel/.pi/skills/feed-digest/SKILL.md
skel/.pi/skills/graph-design/SKILL.md
skel/.pi/skills/graphite-power-chart/SKILL.md
skel/.pi/skills/kanban-management/SKILL.md
skel/.pi/skills/mcp-adapter/SKILL.md
skel/.pi/skills/playwright/SKILL.md
skel/.pi/skills/reload/SKILL.md
skel/.pi/skills/remote-peer/SKILL.md
skel/.pi/skills/schedule/SKILL.md
skel/.pi/skills/script-discovery-annotation/SKILL.md
skel/.pi/skills/send-message/SKILL.md
skel/.pi/skills/setup/SKILL.md
skel/.pi/skills/situate-daily-notes/SKILL.md
skel/.pi/skills/technical-docs/SKILL.md
skel/.pi/skills/timeline-cleanup/SKILL.md
skel/.pi/skills/token-chart/SKILL.md
skel/.pi/skills/twitter-summary/SKILL.md
skel/.pi/skills/web-search-summary/SKILL.md
skel/.pi/skills/web-search/SKILL.md

Metadata

Files
0
Version
ae927fb
Hash
2d1adb3b
Indexed
2026-07-25 10:25

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 02:01
浙ICP备14020137号-1 $방문자$