Implements a complete project from ready documentation, specs, and a prototype. Initializes the backend (liteend-init) and frontend (litefront-init), implements all entities/operations/pages, covers them with tests, and verifies conformance to the documents. Run when VISION.md + SPEC.md are ready and the tech-blueprint is approved. Do NOT run if the spec is still a draft or the project is already partially implemented.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
The skill takes the ready design artifacts and implements the project from zero to a working, tested state:
When to run:
docs/<name>/ and blueprint/<name>/3_TECH_BLUEPRINT/ are ready and approvedblueprint_validator.py validation without errorsWhen NOT to run:
Before starting, you must read all the documents:
docs/<ProjectName>/
├── 1_PRODUCT_VISION/VISION.md ← business goals, scope, roles
└── 2_PRODUCT_SPEC/SPEC.md ← entities, operations, pages, business rules
blueprint/<ProjectName>/3_TECH_BLUEPRINT/
├── IMPLEMENTATION_GUIDE.md ← stack, what's already done, run commands
├── DATABASE_MODEL.md ← Prisma schema of all models
├── API_CONTRACTS.md ← GraphQL schema, guards, pagination
├── ARCHITECTURE.md ← NestJS modules, FSD slices, state
└── TESTING_PLAN.md ← unit tests, E2E scenarios, coverage
prototype/ ← UI prototype (only for understanding UX flows)If any of the first six documents is missing — stop and tell the user which file is missing. The prototype is optional.
projects/<ProjectName>/
├── backend/ ← NestJS + Fastify API (initialized via liteend-init)
└── frontend/ ← React SPA (initialized via litefront-init)Create the root folder before initialization:
mkdir -p projects/<ProjectName>me, updateProfile, profileUpdated, debug, echo)features/auth, widgets/Header, pages/404, shared/api/graphql-client)Run the liteend-init skill (~/.config/opencode/skills/liteend-init/SKILL.md):
project_name: projects/<ProjectName>/backend
use_docker: true
install_deps: trueAfter it finishes:
projects/<ProjectName>/backend/AGENTS.md — understand the project's available commandsGET /health responds with 200 (the backend started)2.1. Database schema
Open backend/prisma/schema.prisma and add the new models from DATABASE_MODEL.md to the existing ones:
Profile, ProfileRole — do not changeprofileId Int + @relation(fields: [profileId], references: [id], onDelete: Cascade)onDelete; all enumerable values — only via enumApply the migration:
# inside backend/
npm run db:migrations:apply2.2. NestJS modules
For each module from ARCHITECTURE.md §Backend, create the structure:
src/modules/<domain>/
├── <domain>.module.ts ← @Module({ imports, providers, exports })
├── <domain>.resolver.ts ← @Resolver() with the GraphQL operations
├── <domain>.service.ts ← business logic, Prisma queries
└── dto/
└── <entity>.input.ts ← ZodDto or class-validator Input for mutationsResolver implementation rules:
@UseGuards(JwtAuthGuard) // # @auth in API_CONTRACTS.md
@UseGuards(JwtOptionalAuthGuard) // # @auth? in API_CONTRACTS.md
@Roles(ProfileRole.ADMIN) // # @auth @hasRole(ADMIN)
// no guard // # @public@CurrentUser() profile: ProfileHttpException or ZodValidationException — gqlErrorFormatter converts them itselfdeletedAt DateTime? → filter { deletedAt: null } in all Prisma querieslimit/offset and return { items, total, hasMore }2.3. Subscriptions
If API_CONTRACTS.md has Subscription operations — implement them via Redis pub/sub (already configured). Don't add new transport dependencies.
2.4. Backend commit
git add .
git commit -m "feat(backend): implement business logic for <ProjectName>"Run the litefront-init skill (~/.config/opencode/skills/litefront-init/SKILL.md):
project_name: projects/<ProjectName>/frontend
install_deps: true
setup_env: true
run_dev: falseConfigure the frontend .env:
VITE_GRAPHQL_API_URL=http://localhost:<PORT>/graphql
VITE_BASE_URL=http://localhost:<FRONT_PORT>
VITE_OIDC_AUTHORITY=<from IMPLEMENTATION_GUIDE.md>
VITE_OIDC_CLIENT_ID=<from IMPLEMENTATION_GUIDE.md>Start the backend in the background and generate the GraphQL types:
# in backend/:
npm run start:dev &
# in frontend/:
npm run genRead projects/<ProjectName>/frontend/AGENTS.md — understand the available commands.
3.5. The project's root AGENTS.md
Create projects/<ProjectName>/AGENTS.md:
# <ProjectName>
## Project structure
- `backend/` — NestJS + Fastify API
- `frontend/` — React SPA
## Important
When working with the backend, **you must read** `backend/AGENTS.md`.
When working with the frontend, **you must read** `frontend/AGENTS.md`.
Each subproject contains specific commands, conventions, and environment quirks
that you need to know before making changes.4.1. FSD slices (new ones only)
For each slice from ARCHITECTURE.md §Frontend, create the structure:
src/
├── entities/<name>/
│ ├── api/ ← URQL useQuery / useMutation with types from npm run gen
│ └── model/ ← TypeScript types, data transformations
├── features/<name>/
│ ├── ui/ ← React components
│ └── model/ ← Zustand store or local state
└── widgets/<name>/
└── ui/Rules:
npm run gen — no anycreate(devtools<MyStore>((set, get) => ({ ... }))) — only UI state, don't duplicate server datamockData constants are allowed only in tests (*.test.ts, *.spec.ts, tests/)4.2. Pages and routing
For each page from ARCHITECTURE.md §Pages, create a file in src/routes/:
// Protected page (beforeLoad pattern):
export const Route = createFileRoute('/my-page')({
beforeLoad: ({ context: { auth } }) => {
if (!auth.isAuthenticated) throw redirect({ to: '/' })
},
component: () => <AuthGuard><MyPage /></AuthGuard>,
})
// Public page:
export const Route = createFileRoute('/public-page')({
component: MyPublicPage,
})4.3. Environment variables
Add the variables from ARCHITECTURE.md §Environment variables to .env (only the business-specific ones).
4.4. i18n
If ARCHITECTURE.md §Frontend: localization contains namespaces — create the translation files in messages/.
4.5. Frontend commit
git add .
git commit -m "feat(frontend): implement <ProjectName>"Implement all scenarios from TESTING_PLAN.md. Don't skip any scenarios — each one is described in the document.
Backend E2E (Vitest + E2EClient):
describe('<Domain>Resolver', () => {
let client: E2EClient
beforeEach(async () => {
await clearDatabase()
await clearRedis()
client = await createTestClient()
})
it('success scenario', async () => {
const profile = await createTestProfile()
await client.loginAs(profile)
const result = await client.requestGraphQL<QueryType>(QUERY, vars)
expect(result.data).toBeDefined()
})
it('negative scenario — no permissions', async () => {
const result = await client.requestGraphQL<QueryType>(QUERY, vars)
expect(result.errors?.[0].message).toContain('Unauthorized')
})
})Backend unit (Vitest + NestJS Testing Module):
describe('<Domain>Service.complexMethod', () => {
it('correctly calculates ...', () => {
const result = service.complexMethod(input)
expect(result).toEqual(expected)
})
})Frontend component (Vitest + React Testing Library):
describe('<ComponentName>', () => {
it('renders the loading state', () => {
render(<MyComponent loading />)
expect(screen.getByRole('progressbar')).toBeInTheDocument()
})
})
// OIDC is mocked automatically via tests/setup.ts — no extra setup neededFrontend E2E (Playwright):
// Run with VITE_MOCK_AUTH=true — MockAuthProvider authenticates automatically
test('critical path: <name>', async ({ page }) => {
await page.goto('/target-page')
await page.getByRole('button', { name: 'Action' }).click()
await expect(page.getByText('Success')).toBeVisible()
})Test commit:
git add .
git commit -m "test(<ProjectName>): coverage per TESTING_PLAN.md"6.1. Automated checks
Run in both projects:
# Backend:
cd projects/<ProjectName>/backend && npm run check && npm run test:all
# Frontend:
cd projects/<ProjectName>/frontend && npm run check && npm run test:allIf even one command finishes with an error — fix the cause and run it again. The project is not considered implemented until all checks are green.
6.2. Manual checklist against the documents
Verify the implementation against each document:
DATABASE_MODEL.md:
schema.prismaprisma migrate status shows no pending@@index indexes and @@unique constraints match the documentonDelete/onUpdate cascade operations match the documentAPI_CONTRACTS.md:
# @auth → JwtAuthGuard, # @public → no guard)ARCHITECTURE.md:
TESTING_PLAN.md:
SPEC.md:
Prototype:
TODO: replace with APIgit add .
git commit -m "feat(<ProjectName>): full implementation — all tests green"Profile model, the me/updateProfile/profileUpdated operations, the features/auth, widgets/Header, pages/404, shared/api/graphql-client slices — are already done, don't touch themany; GraphQL types — only from npm run gendeletedAt DateTime? → filter { deletedAt: null } in all Prisma queries{ items: [...], total: Int, hasMore: Boolean }mockData, hardcoded arrays, TODO: replace with API — forbidden in production code; allowed only in test filesnpm run check && npm run test:all must be green before the final commituxname/kodu
db733be
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.