How majiayu000/spellbook works
Spellbook is a cross-runtime catalog of reusable agent skills. The documented user workflow is to choose a skill or job-shaped bundle, install it for a supported agent, then invoke it in that agent; the README also describes an advanced installer for Claude Code agents. The tree and excerpts show representative skill scripts and project templates, not the full catalog or installer implementation. The graph preserves the documented capability branches and sampled template modules; some internal routes and runtime behavior are therefore left unconnected.
Main entry points: main.py Python API template · skills Skill catalog · user.py User service · llm.adapter.ts LLM adapter
Components 27
Skill catalog
- Skill catalog
skills - Workflow bundles
skills
Project templates
- Python API template
skills/python-project/templates/api/src/myapp/main.py - User API route
skills/python-project/templates/api/src/myapp/api/routes/user.py - API middleware
skills/python-project/templates/api/src/myapp/api/middleware.py - API configuration
skills/python-project/templates/api/src/myapp/config.py - API exceptions
skills/python-project/templates/api/src/myapp/core/exceptions.py - API logging
skills/python-project/templates/api/src/myapp/core/logging.py - User models
skills/python-project/templates/api/src/myapp/models/user.py - User service
skills/python-project/templates/api/src/myapp/services/user.py - Rust CLI
skills/rust-project/templates/cli/src/main.rs - CLI commands
skills/rust-project/templates/cli/src/commands/process.rs - Rust web router
skills/rust-project/templates/web-service/src/router.rs - Web handlers
skills/rust-project/templates/web-service/src/handlers/user.rs - Web user model
skills/rust-project/templates/web-service/src/models/user.rs - Example service
skills/typescript-project/templates/project/src/services/example.service.ts - Memory repository
skills/typescript-project/templates/project/src/adapters/in-memory.repository.ts - LLM adapter
skills/typescript-project/templates/project/src/adapters/llm.adapter.ts - App configuration
skills/typescript-project/templates/project/src/lib/config.ts - App logger
skills/typescript-project/templates/project/src/lib/logger.ts - App errors
skills/typescript-project/templates/project/src/lib/errors.ts
Media workflow
- Scene renderer
skills/motion-stack/kit/render.mjs - FFmpeg discovery
skills/motion-stack/kit/env.mjs
Agent workflows
- Luna worker
skills/sol-luna-router/scripts/run_luna_worker.py - Worker events
skills/sol-luna-router/scripts/worker_events.py
Other components
- Agent user
- Claude Code / Codex
Connections 16
- Agent user → Workflow bundles: chooses workflow
README.md - Agent user → Skill catalog: selects skills
README.md - Skill catalog → Claude Code / Codex: installs into
README.md - Workflow bundles → Skill catalog: bundles skills
README.md - Python API template → API middleware: registers handlers
skills/python-project/templates/api/src/myapp/main.py - Python API template → API configuration: reads settings
skills/python-project/templates/api/src/myapp/main.py - Python API template → API logging: sets up logging
skills/python-project/templates/api/src/myapp/main.py - User service → API exceptions: raises errors
skills/python-project/templates/api/src/myapp/services/user.py - User service → User models: creates models
skills/python-project/templates/api/src/myapp/services/user.py - Rust CLI → CLI commands: executes command
skills/rust-project/templates/cli/src/main.rs - Rust web router → Web handlers: routes requests
skills/rust-project/templates/web-service/src/router.rs - Scene renderer → FFmpeg discovery: finds FFmpeg
skills/motion-stack/kit/render.mjs - Example service → Memory repository: uses repository
skills/typescript-project/templates/project/src/services/example.service.ts - LLM adapter → App configuration: reads settings
skills/typescript-project/templates/project/src/adapters/llm.adapter.ts - LLM adapter → App logger: logs requests
skills/typescript-project/templates/project/src/adapters/llm.adapter.ts - Luna worker → Worker events: uses events
skills/sol-luna-router/scripts/run_luna_worker.py