refactor-to-scheme
Guidelines for moving logic from JavaScript to Scheme (Schemification).
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Guidelines for moving logic from JavaScript to Scheme (Schemification).
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A guide for updating project documentation (CHANGES.md, Roadmap, etc.).
A guide for creating new Scheme libraries (R7RS) in the project.
A guide for implementing new JavaScript primitives and exposing them to Scheme.
Based on SOC occupation classification
| name | Refactor to Scheme |
| description | Guidelines for moving logic from JavaScript to Scheme (Schemification). |
This skill guides you through refactoring existing JavaScript logic into Scheme. The project philosophy is Scheme over JS: implement as much as possible in Scheme, using JS only for the bare minimum (primitives, IO, DOM).
(define-library ...) is executed when loaded.If the new Scheme code needs access to specific JS features it didn't have before, create new primitives (see Implement Primitive skill).
interop or the interpreter instance.Before (JS):
function init() {
setupWorkspace();
loadBlocks();
}
After (Scheme):
;; src/scheme/init.scm
(define (init)
(setup-workspace)
(load-blocks))
After (JS):
interpreter.eval('(init)');