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 ページを確認してインストールできます。
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.
SOC 職業分類に基づく
| 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)');