Agent skill
librepl
librepl - Interactive REPL utilities. Repl class creates command-line interfaces with custom commands, state persistence, and terminal formatting. Supports dependency injection for testability. Use for building CLI tools, interactive debugging interfaces, and developer utilities.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/librepl
SKILL.md
librepl Skill
When to Use
- Building interactive CLI tools
- Creating debug and exploration interfaces
- Adding REPL functionality to applications
- Prototyping with persistent state
Key Concepts
Repl: Interactive command-line interface with custom commands, history, and state management.
Usage Patterns
Pattern 1: Create custom REPL
import { Repl } from "@copilot-ld/librepl";
const repl = new Repl({
prompt: "agent> ",
commands: {
search: async (query) => {
const results = await searchIndex(query);
return JSON.stringify(results, null, 2);
},
help: () => "Commands: search <query>, help, exit",
},
});
await repl.start();
Pattern 2: State persistence
const repl = new Repl({
prompt: "> ",
storage: storage,
stateKey: "repl-state",
});
// State persists across sessions
Integration
Used by CLI tools like cli-chat and cli-search. Integrates with libformat for terminal output.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?