forinda/kick-fullstack-netlify/write-controller-test
Claude Code and agent skill by forinda/kick-fullstack-netlify
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when adding a Vitest test that exercises an HTTP route or DI graph.
Install
npx vskill@latest install forinda/kick-fullstack-netlify/write-controller-testSKILL.md
The same SKILL.md was published earlier as forinda/kick-fullstack-netlify/write-controller-test.
Template (copy/paste, adjust):
Typed handler signature — pair with kick typegen so ctx.body / params / query are typed by the route's Zod schema:
Red flags:
new Container()— wrong; useContainer.reset()inbeforeEachorContainer.create()for fully isolated graphs.Container.getInstance().reset()— wrong; same fix.- Sharing a container instance across
it()blocks — leaks registrations between tests. - Injecting a
Scope.REQUESTservice into aSINGLETON— container throws at resolve. Singletons must resolve request-scoped services explicitly per call. - Calling
getRequestValue<string>('traceId')— the generic slot is the key type, not the value type; widens key and bypasses typed lookup. - Asserting on
res.body.requestIdwhenrequestId()middleware isn't mounted in the test app — value will beundefined. - Using
Scope.REQUESTservices in a test without mountingrequestScopeMiddleware()—getRequestValuesilently returnsundefined;getRequestStorethrows.
Nuances:
@Injectand@Autowiredare interchangeable — same runtime, same types; pick by readability.@Value('MISSING_KEY')with no default throws on property access, not at construction — tests that exercise the getter will surface the missing-env issue.
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 repositoryCheckingserver/.agents/skills/write-controller-test/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/kick-fullstack-netlify/write-controller-test)