lutherwaves/spellcasting/casting-a-feature
Claude Code and agent skill by lutherwaves/spellcasting
- community
Checking that the SKILL.md file is still in the repository.
Use when adding a complete resource to an existing magic-based service — emits migration, types, service layer, and route layer in one pass
Install
npx vskill@latest install lutherwaves/spellcasting/casting-a-featureSKILL.md
The same SKILL.md was published earlier as lutherwaves/spellcasting/casting-a-feature.
casting-a-feature
Full vertical slice for a new resource: migration → types → service → routes, plus validation and tests, in a single cast.
Prerequisites
A magic-based service exists at the cwd (identified by cmd/server.go importing github.com/tink3rlabs/magic/middlewares). If not, abort and suggest casting-a-new-service.
Inputs
| Input | Type | Example | |
|---|---|---|---|
RESOURCE | lowercase singular | todo |
Derived tokens used in template substitution:
Resource— capitalized singular:TodoRESOURCES— lowercase plural:todosResources— capitalized plural:TodosRESOURCETABLE— snake_case plural:todos
Procedure
1. Emit migration
Pick the next migration id:
Copy and substitute. The migration ID comes only from the filename prefix — the YAML body has no id: field. The template's real fields are description: and migrations: [{migrate: ..., rollback: ...}]. The NNNN token in the template filename is a placeholder; only the filename matters for ordering.
Note: the s/NNNN/${NEXT_PAD}/g substitution is intentionally omitted — NNNN does not appear in the YAML body, only in the source template's filename. The destination filename already has the correct prefix.
2. Emit service layer
Cascade into casting-a-service-layer (invoke via Skill tool) to produce pkg/types/RESOURCE.go and pkg/features/RESOURCE/.
3. Emit route layer
Cascade into casting-a-route to produce pkg/routes/RESOURCE/ and append the mount line to cmd/server.go.
4. Smoke + test
5. Commit
Capability boundary
Stay inside magic/storage, magic/middlewares, magic/mql, magic/errors. No project-specific common libraries. See magic-capabilities for the in-bounds list.
Doc references
- Migration shape: see
magic/storagemigration runner — https://pkg.go.dev/github.com/tink3rlabs/magic@v0.17.3/storage#NewDatabaseMigration - Migration YAML schema:
description:+migrations: [{migrate: ..., rollback: ...}]; noid:field — ID is the filename prefix only - Route shape: https://github.com/tink3rlabs/todo-service (
pkg/routes/<resource>/) - Cursor pagination via
storage.Search(Lucene passthrough): https://pkg.go.dev/github.com/tink3rlabs/magic@v0.17.3/storage#StorageAdapter - In-process Lucene parsing (rarely needed):
mql.NewParser(input).Parse()— https://pkg.go.dev/github.com/tink3rlabs/magic@v0.17.3/mql#NewParser
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/casting-a-feature/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lutherwaves/spellcasting/casting-a-feature)