new-service

Scaffold a new service file with Drizzle queries, configuration, and Vitest unit tests.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/wordshepherd/colophony --skill new-service
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-service
Source: https://github.com/wordshepherd/colophony/tree/main/.claude/skills/new-service
Command: npx skills add https://github.com/wordshepherd/colophony --skill new-service

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the repetitive process of creating new service files, including their corresponding unit tests and necessary registrations within the application's dependency injection system.

Core Features & Use Cases

  • Boilerplate Generation: Quickly generates the TypeScript file for a new service.
  • Test File Creation: Automatically creates a corresponding Vitest unit test file.
  • Dependency Registration: Provides instructions on how to integrate the new service into the Fastify app.
  • Use Case: When developing a new feature that requires a dedicated service for managing notifications, use this skill to set up the notifications.service.ts file and its tests in one go.

Quick Start

Use the new-service skill to scaffold a new service named 'notifications'.

Frequently Asked Questions about new-service

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new service with Vitest tests and Drizzle queries?

To scaffold a new service with Vitest tests, this skill generates a TypeScript file with Drizzle queries in `apps/api/src/services/` and a unit test in `apps/api/test/unit/`. It also updates the service index file automatically.

What is the best way to generate a Fastify service and register it in the dependency injection system?

The best way to generate a Fastify service is using this skill to create the boilerplate and test files. It then provides explicit instructions for integrating and registering the new service into the Fastify application's dependency setup.

Does this service scaffolding tool create TypeScript files and Vitest unit tests simultaneously?

Yes, this service scaffolding tool creates TypeScript files and Vitest unit tests simultaneously. It automates boilerplate generation in the services directory and test creation in the unit test directory in one go.

How do I add a new service to my Fastify application without writing repetitive boilerplate?

To add a new service without repetitive boilerplate, this skill automates the creation of the service file, test file, and index updates. You simply provide a service name like 'notifications' and it scaffolds the required structure.

Can I use this scaffolding tool to generate Drizzle queries for my new service?

Yes, you can use this scaffolding tool to generate Drizzle queries. The newly created TypeScript service file comes pre-configured with Drizzle queries, configuration, and Vitest unit tests.

Why do I need to update the service index file when creating a new service?

Updating the service index file is necessary to export and register the new service correctly. This skill automates the index file update and provides instructions for linking the service into the Fastify dependency injection setup.