new-module
Installation
SKILL.md
new-module — scaffold a Grimoire backend domain module
Grimoire's backend is one package per domain module under
backend/src/grimoire/, with tests mirrored under backend/tests/. New modules
follow a consistent shape and must be registered in the DI container and the
ownership tables. This skill walks that scaffold.
$ARGUMENTS is the module name in snake_case (e.g. quest_log). If absent,
ask for it. Derive a PascalCase service name from it (QuestLog).
Steps
- Confirm scope. Restate what the module owns in one sentence and which existing modules it must talk to. Cross-module communication is via Protocol interfaces (sync reads) or the event bus (fan-out) — never direct imports of another leaf module's implementation. If the module doesn't fit the module map cleanly, stop and discuss before scaffolding.