create-service

Create a service scaffold under src/services with api, actions, and types.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/arthurharysson/valra.gg --skill create-service-arthurharysson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-service
Source: https://github.com/arthurharysson/valra.gg/tree/main/.claude/skills/create-service
Command: npx skills add https://github.com/arthurharysson/valra.gg --skill create-service-arthurharysson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cria a estrutura completa de um service dentro de src/services conforme o padrão do projeto Valra.gg — api/leaderboard, actions/leaderboard e leaderboard/ com index + types (+ schema só para POST). Apresenta plano antes de executar.

Core Features & Use Cases

  • Estrutura de pastas organizada em src/services/api/{service}/index.ts, src/services/actions/{service}/index.ts e src/services/{service}/index.ts
  • Define types de requisição e resposta em src/services/{service}/types.ts
  • Inclui suporte a schema POST apenas quando necessário e conforme convenção
  • Fornece um guia de etapas para criar, validar e iniciar o serviço seguindo o padrão do Valra.gg

Quick Start

Forneça o nome do service para iniciar a criação da estrutura completa conforme o padrão Valra.gg.

Frequently Asked Questions about create-service

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

FAQPage Schema
How do I scaffold a TypeScript service with a standardized folder structure?

Scaffolding a TypeScript service creates a structured directory under src/services with separate api/, actions/, and service-specific folders for index and types files. This skill automates that layout following the Valra.gg convention.

What is the standard project structure for a Valra.gg API service?

The standard Valra.gg service structure organizes files into src/services/api/{service}/index.ts, src/services/actions/{service}/index.ts, and src/services/{service}/index.ts with a dedicated types.ts file for request and response definitions.

Do I need to manually define request and response types when creating a new service?

You do not need to manually define types, as the service scaffolding process automatically generates a types.ts file within the service directory to handle request and response typing under strict TypeScript conventions.

When should I include a POST schema in my TypeScript service scaffold?

A POST schema is included in the service scaffold only when the endpoint requires it, adhering to the Valra.gg convention to maintain a strict and clear project structure for optional POST requests.

Can I preview the service creation steps before the file structure is generated?

You can preview the service creation steps because this scaffolding tool presents a detailed plan-driven guide for creating and validating the service before executing the actual file generation.

Does this service scaffolding workflow enforce strict TypeScript usage and naming conventions?

The service scaffolding workflow enforces strict TypeScript usage and clear naming conventions for both api and actions components to ensure standardized endpoint creation across the project.