refactor-to-scheme
Guidelines for moving logic from JavaScript to Scheme (Schemification).
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Guidelines for moving logic from JavaScript to Scheme (Schemification).
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
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.
| 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)');