<< All versions
Skill v1.0.0
currentLLM-judged scan90/100forinda/kickjs-examples-archive/deny-list
──Details
PublishedOctober 22, 2026 at 01:25 PM
Content Hashsha256:e7a5c89ce6e169db...
Git SHAd5a740413da7
──Files
Files (1 file, 3.1 KB)
SKILL.md3.1 KBactive
SKILL.md · 48 lines · 3.1 KB
version: "1.0.0" name: kickjs-deny-list description: Patterns to refuse outright when the user asks for them — they break v4 invariants.
<!-- Generated by kick g agents for fullstack-app-server. Edits are overwritten on the next refresh; keep customisation in a SKILL.local.md alongside. -->
Module / adapter / plugin shape:
class implements AppAdapter→ usedefineAdapter().class implements KickPlugin/ function returningKickPlugin→ usedefinePlugin().class implements AppModulefor new code → usedefineModule().bootstrap({ adapters: [MyAdapter] })(factory) →MyAdapter()(instance, with parens).@Controller('/path')with a path argument →@Controller(), with the prefix inroutes().path.- Module file named
<name>.ts(no.modulesuffix) → rename to<name>.module.ts. Vite HMR's glob doesn't pick up the unsuffixed form.
DI:
new Container()orContainer.getInstance().reset()in tests → useContainer.reset()inbeforeEach(orContainer.create()for fully isolated graphs).- DI tokens with
:separator ('app:db:url') or in PascalCase → use slash-delimited lower-case ('app/db/url'). First-party uses reserved'kick/'prefix. Symbol.for(...)for DI tokens — globally interned, collides across files. UsecreateToken<T>('name').- Raw string tokens (
@Inject('config')) — silent collisions; widens tounknown. UsecreateToken<T>. - Injecting a
Scope.REQUESTservice into aSINGLETON— container throws at resolve time.
Bootstrap / entry file:
bootstrap({ ... })withoutexport const app = ...→ always export. HMR degrades to full restart andcreateTestApploses the handle.bootstrap({ register: ... })— that option doesn't exist. Use an inline plugin inplugins.
Middleware:
- Using
(ctx, next)for global middleware inbootstrap({ middlewares })— global middleware uses raw Express(req, res, next). Wrong signature throws "Cannot read properties of undefined". - Using
(req, res, next)for an@Middleware()decorator — those use(ctx, next). @Middleware()whose only output isctx.set('x', v)— should be a context decorator (typed, ordered, testable).
Context contributors:
ctx.tenant = xfrom a contributor — only sticks to oneRequestContextinstance. Return the value so the runner writes it viactx.set(key, value).- Omitting the
declare module '@forinda/kickjs'block — without itctx.get('tenant')isunknown. getRequestValue<string>('traceId')— generic is the key type, not value type.
Env / config:
@Value('NEW_KEY')without the key in the Zod schema — silent fallback to rawprocess.env, no coercion.resetEnvCache()outside tests — drops the registered schema.
List endpoints:
- Reading
req.query.statusdirectly — bypasses the allow-list. Usectx.qs({ filterable }). - Returning a bare array from a list endpoint — breaks the
PaginatedResponse<T>contract. Usectx.paginate().
Assets:
- Hand-rolled
__dirnamearithmetic for template paths — useassets.<ns>.<key>()and add the namespace tokick.config.ts assetMap.