create-library
스타15
포크2
업데이트2026년 1월 21일 23:14
A guide for creating new Scheme libraries (R7RS) in the project.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SKILL.md
readonly메뉴
A guide for creating new Scheme libraries (R7RS) in the project.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
A guide for updating project documentation (CHANGES.md, Roadmap, etc.).
A guide for implementing new JavaScript primitives and exposing them to Scheme.
Guidelines for moving logic from JavaScript to Scheme (Schemification).
| name | Create Library |
| description | A guide for creating new Scheme libraries (R7RS) in the project. |
This skill guides you through adding a new Scheme environment/library to the project. This is the standard way to organize Scheme code.
src/core/scheme/ (for fundamental language features)src/extras/scheme/ (for extended functionality, interop, tools).sld)Create a .sld file (e.g., feature.sld) in the appropriate directory.
;; src/extras/scheme/feature.sld
(define-library (scheme-js feature)
(export
my-procedure
my-macro)
(import (scheme base))
;; Option A: Include implementation file (Preferred for larger logic)
(include "feature.scm")
;; Option B: Inline implementation (OK for very small libraries or simple re-exports)
;; (begin
;; (define (my-procedure x) ...))
)
.scm)If using (include "feature.scm"), create the corresponding .scm file in the same directory.
;; src/extras/scheme/feature.scm
;; Note: No (library ...) wrapper here, this code is included directly into the library body.
(define (my-procedure x)
(+ x 1))
(define-syntax my-macro
...)
tests/ mirroring the source structure (e.g., tests/extras/scheme/feature_tests.scm).(import (scheme base)
(scheme-js feature) ;; Import your new library
(scheme-js test)) ;; Import test framework
(test-group "Feature Tests"
(test "Description" expected-value expression)
;; ...
)
tests/tests.js (or test_manifest.js if applicable) so it runs with the suite.node run_tests_node.js