repl-development
Expert skill for building interactive REPLs with rich editing and evaluation features
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
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" }
}
}
}
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!