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)');