Claude-skill-registry librc
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/librc" ~/.claude/skills/majiayu000-claude-skill-registry-librc && rm -rf "$T"
manifest:
skills/data/librc/SKILL.mdsource content
librc Skill
When to Use
- Starting and stopping Copilot-LD services
- Managing service lifecycle programmatically
- Communicating with the supervision daemon
- Orchestrating service startup order
Key Concepts
ServiceManager: Connects to svscan daemon via Unix socket to control service processes.
Supervision: Services run under svscan for automatic restart and logging.
Usage Patterns
Pattern 1: Manage single service
import { ServiceManager } from "@copilot-ld/librc"; const manager = new ServiceManager("/var/run/svscan.sock"); await manager.start("agent"); await manager.status("agent"); // Returns running/stopped await manager.stop("agent");
Pattern 2: Manage multiple services
import { startServices, stopServices } from "@copilot-ld/librc"; await startServices(["agent", "llm", "memory"]); await stopServices(["agent", "llm", "memory"]);
Integration
Used by
make rc-start and make rc-stop. Works with libsupervision daemon.