Agent Skillsrcarmo/piclaw › reload

reload

GitHub

在代码变更后重新安装 piclaw 并优雅重启服务。包含 Agent 工作流与手动命令,强调构建验证、会话检查及安全重启机制。

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

Trigger Scenarios

用户修改了 piclaw 源码后需要更新服务 需要重新部署本地构建的 piclaw 版本

Install

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

Non-standard path

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

Use without installing

npx skills use rcarmo/piclaw@reload

指定 Agent (Claude Code)

npx skills add rcarmo/piclaw --skill reload -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": "reload",
    "description": "Reinstall piclaw from workspace source, then gracefully restart the managed process. Use after making code changes to piclaw.",
    "distribution": "public"
}

Reload Piclaw

Install the workspace build, then let the active service manager start a new process after graceful shutdown.

⚠️ In the container runtime, install to /usr/local/lib/bun/install/global/node_modules/piclaw. Do not deploy to /home/agent/.bun/...; the service may keep running another installation.

Agent-driven workflow

  1. Build, pack, and install without restarting:

    cd /workspace/piclaw && make local-install
    

    A non-zero exit stops the workflow. Report the install failure and do not restart. Verify the installed source artifact under /usr/local/lib/bun/install/global/node_modules/piclaw; piclaw --version alone is insufficient because a release and local build can share a version.

  2. Use session_status to check for other active sessions.

  3. If another session is working, report it and wait for approval. A restart interrupts that work.

  4. Finish all build, verification, and reporting work.

  5. Call exit_process with a concise, non-empty reason as the last tool action. It posts a visible restart notice to the active chat, then schedules graceful shutdown. Optionally include resume_message to show a labelled agent self-resume after startup and start a new inbound turn from it. Supervisor restarts supervised containers; other installs need their service manager to start the process again.

make restart is an intentional no-op guard. It prevents an active agent turn from killing its own response.

Manual shell workflow

Outside an agent turn, install and restart as separate commands:

cd /workspace/piclaw && make local-install
systemctl --user restart piclaw.service

Use the service manager configured for that host. Container installs commonly use Supervisor; host-native installs commonly use systemd --user.

Build commands

Build Piclaw without installing:

cd /workspace/piclaw && make build-piclaw

Build only the vendor bundle:

cd /workspace/piclaw && make vendor

Notes

  • make local-install is install-only and ignores an ambient portable-runtime BUN_INSTALL.
  • A failed local install must never be followed by exit_process.
  • Compare an installed source-file checksum or resolved entrypoint with the workspace before restart.
  • exit_process requires a non-empty reason; optional resume_message must also be non-empty when supplied. It has no delay parameter.
  • Bun and Piclaw are installed globally under /usr/local/lib/bun in the container layout.

Version History

  • ae927fb Current 2026-08-20 04:41

    新增安装后验证步骤(检查源工件和版本),增加对其他活跃会话的检查与等待批准逻辑,明确 exit_process 的使用规范。

  • 5fa0ce5 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/debug/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/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
1c838d67
Indexed
2026-07-25 10:25

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 12:24
浙ICP备14020137号-1 $Гость$