Agent skill
REPL Development
Expert skill for building interactive REPLs with rich editing and evaluation features
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/repl-development
SKILL.md
REPL Development Skill
Overview
Expert skill for building interactive REPLs with rich editing and evaluation features.
Capabilities
- Implement readline integration with history
- Handle multi-line input detection
- Implement tab completion for identifiers
- Design incremental compilation for REPL
- Handle top-level expression evaluation
- Implement persistent REPL state
- Design pretty-printing for values
- Support special REPL commands (:help, :type, etc.)
Target Processes
- repl-development.js
- interpreter-implementation.js
- lsp-server-implementation.js
Dependencies
- rustyline
- readline libraries
- linenoise
Usage Guidelines
- Line Editing: Use established readline libraries for robust line editing
- Multi-line: Detect incomplete expressions for multi-line input
- Completion: Implement context-aware tab completion
- History: Persist history across sessions
- Commands: Provide useful meta-commands (:help, :type, :quit, etc.)
Output Schema
{
"type": "object",
"properties": {
"lineLibrary": {
"type": "string",
"enum": ["readline", "rustyline", "linenoise", "custom"]
},
"features": {
"type": "array",
"items": { "type": "string" }
},
"commands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"description": { "type": "string" }
}
}
},
"generatedFiles": {
"type": "array",
"items": { "type": "string" }
}
}
}
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?