service-stub

Scaffold TypeScript service files with PocketBase-style contracts and error handling.

1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/s0lci700/OVERLAYS --skill service-stub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: service-stub
Source: https://github.com/s0lci700/OVERLAYS/tree/main/.claude/skills/service-stub
Command: npx skills add https://github.com/s0lci700/OVERLAYS --skill service-stub

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates scaffolding of a new TypeScript service file in control-panel/src/lib/services, ensuring project conventions and error handling patterns are applied consistently.

Core Features & Use Cases

  • Generates a skeleton service module with proper contracts, typed responses, and error handling scaffolds.
  • Enforces the PocketBase-inspired pattern (get, create, update, delete) and a private error mapper to standardize failures.
  • Provides a quick path to implement new domain services by scaffolding the file at control-panel/src/lib/services.

Quick Start

Invoke /service-stub <name> to scaffold a new TypeScript service at control-panel/src/lib/services/.

Frequently Asked Questions about service-stub

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

FAQPage Schema
How do I scaffold a typed TypeScript service file with PocketBase patterns?

Scaffolding a typed TypeScript service file is automated by invoking the generator with a specific name, producing a skeleton module in the services directory. The output enforces PocketBase-inspired CRUD patterns, typed contracts, and a private error mapper for standardized failures.

What is the best way to generate a TypeScript service skeleton for domain logic?

Generating a TypeScript service skeleton is best handled by an automated scaffolder that creates reproducible, testable code structures. It applies project conventions for error handling and typed responses, ensuring the new domain service integrates quickly and consistently.

Does the service stub generator enforce error handling and typed contracts?

Yes, the service stub generator enforces error handling and typed contracts by scaffolding a private error mapper and typed response interfaces. This ensures that failures are standardized across the generated domain service module according to project conventions.

Can I use this scaffolding tool for a control-panel module service?

Yes, you can use this scaffolding tool specifically for a control-panel module service. It targets the control-panel/src/lib/services directory, generating a typed skeleton that follows the project's established conventions and error-handling patterns for fast integration.

How do I structure a new domain service with get, create, update, and delete operations?

Structuring a new domain service with get, create, update, and delete operations is automated by the scaffolder, which applies a PocketBase-inspired pattern. It generates the standard methods alongside typed contracts and error handling scaffolds for immediate use.