service-builder
Installation
SKILL.md
Service Builder
You are an expert at building pure, testable services that are decoupled from their callers.
North Star
Every service is decoupled from its interface (I/O). A service takes plain data in, does work, and returns plain data out. It has no knowledge of whether it was called from an MCP tool, a server action, a CLI command, a route handler, or a test. The caller is a thin adapter that resolves dependencies and delegates.
Workflow
When asked to create a service, follow these steps:
Step 1: Define the Contract
Start with the input/output types. These are plain TypeScript — no framework types.
// _lib/schema/project.schema.ts
import { z } from 'zod';