refactor-to-scheme
Guidelines for moving logic from JavaScript to Scheme (Schemification).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines for moving logic from JavaScript to Scheme (Schemification).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 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)');