CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-create-module

Use when creating a new feature module with all layers - service, adapter, types, state, components, and tests.

Quality

83%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Create a new complete feature module following docs/ARCHITECTURE.md.

Module name: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md sections 2, 3, 4 and 6.

  2. Create the module structure:

src/modules/[kebab-case-name]/
├── components/
├── hooks/
├── services/
├── adapters/
├── stores/
├── actions/
├── types/
├── __tests__/
└── index.ts
  1. Create the app route structure:
app/[kebab-case-name]/
├── page.tsx          # Server Component (async, fetches data)
├── layout.tsx        # Server Component (shared layout)
├── loading.tsx       # Skeleton loading UI
└── error.tsx         # Error boundary ('use client' required)
  1. Create index.ts with empty barrel export:
// src/modules/[name]/index.ts
// Public API for this module
  1. Ask the user:

    • Which API endpoints does this module consume?
    • What UI type? (list with CRUD, dashboard, form, detail)
  2. Use @builder to create bottom-up:

    • Types + contracts + adapter + service
    • Zustand store (client state)
    • Server Actions (mutations)
    • Hooks with React Query (client-side data)
    • Components (Server + Client as needed)
    • Page (Server Component composing Client Components)
  3. Add metadata export to page.tsx.

  4. Validate: npx tsc --noEmit && npx next build

Repository

fernandezbaptiste/specialist-agent

Path

packs/nextjs/skills/dev-create-module/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.