forinda/kickjs-examples-archive/add-module
Claude Code and agent skill by forinda/kickjs-examples-archive
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks to add a new feature module (controller + service + repo + DTOs).
Install
npx vskill@latest install forinda/kickjs-examples-archive/add-moduleSKILL.md
The same SKILL.md was published earlier as forinda/kickjs-examples-archive/add-module.
Trigger phrases: "add a users module", "scaffold tasks", "new feature for X".
Steps:
- Run
kick g module <name>(use plural form if the project pluralizes — checkkick.config.ts). - Verify the new folder under
src/modules/<name>/contains<name>.module.ts(filename suffix is mandatory for Vite HMR). - Confirm the module appears in
src/modules/index.tsexports — generator does this automatically; verify if you bypassed it. - Open
<name>.dto.tsand tighten the Zod schemas to real fields (the generator emits placeholders). - Run
kick typecheckandpnpm run testbefore claiming done.
Canonical module shape — defineModule factory, never class implements AppModule:
The module file MUST include import.meta.glob([...], { eager: true }) for every @Controller / @Service / @Repository / @Component class — without it, decorators never fire and DI silently resolves to undefined (or routes vanish). Use recursive patterns (./**/*.controller.ts) so the glob keeps working when you nest files into sub-folders (controllers/, presentation/, …). If you reorganise and a class stops loading, kick typegen flags it as orphaned and kick typegen --fix patches the glob for you.
Multiple route sets / versioning — routes() may return an array with per-entry version override:
Conditional / per-tenant mounting — use bootstrap({ setup(registry) { registry.mount(...) } }), not the static modules array.
Composition — defineModules().mount(TodosModule()).mount(UsersModule()) (fluent) or AppModuleEntry[] (array form).
Red flags (stop and ask):
- File created as
<name>.tsinstead of<name>.module.ts— Vite plugin's*.module.[tj]sx?glob doesn't pick it up; every save becomes a full restart. @Controller('/path')with a path argument —@Controller()takes no arguments; the prefix goes in the module'sroutes().path.TodosModuleinstead ofTodosModule()for a module that takes config — refused, since the bare name would silently select the defaults. A module with no config accepts either, but prefer the invoked form for consistency.routes()returningrouter: …when acontroller:would do — controller form is required for OpenAPI/Swagger introspection.- Module not registered in
src/modules/index.ts.
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 repositoryCheckingws-chat/.agents/skills/add-module/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/forinda/kickjs-examples-archive/add-module)