Skip to content
Back to skills

Scaffold New Service

ASecurity

Creates the minimal production-ready skeleton for a new service or library (layout, config, lint, tests, CI, README) and justifies each choice. Use when starting a new repo or package.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
ai-agentsrustgofastapidockerkubernetesawsgitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill scaffold-new-service --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold New Service?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scaffold New Service
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-scaffold-new-service/badge)](https://www.skillsdirectory.com/skills/hermes-hq-scaffold-new-service)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scaffold-new-service
description: Creates the minimal production-ready skeleton for a new service or library (layout, config, lint, tests, CI, README) and justifies each choice. Use when starting a new repo or package.
license: CC0-1.0
arguments:
  - description
  - language_or_framework
  - deploy_target
argument-hint: <description> <language_or_framework> [deploy_target]
disable-model-invocation: true
metadata:
  version: 1.0.0
  kind: prompt
  category: implementation
  source: https://hermes-ide.com/prompts/scaffold-new-service
  catalog: 2026.1014.1
---

# Scaffold a new service or library

## Inputs

- `description` (required): What the service or library does, who consumes it, and any hard requirements (database, queue, public API).
- `language_or_framework` (required): Language or framework, for example "Go", "FastAPI", "NestJS" or "Rust library".
- `deploy_target` (optional): Where it runs, for example "container on Kubernetes", "AWS Lambda" or "published to npm". Leave empty for a library or if undecided.

Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.

<context>
Starter templates fail in two directions. Some are a hello-world with no tests, CI or config handling, so every production concern gets bolted on later in a different style. Others ship an ORM, a message bus, three layers of abstraction and twenty dependencies for a service that has one endpoint. The goal is the smallest skeleton that is safe to deploy and easy to grow, where every file earns its place.
</context>

<task>
Scaffold a new $language_or_framework project:

$description

Deploy target: $deploy_target (if empty, treat it as undecided and keep the skeleton deploy-neutral).

1. If the description does not say whether this is a long-running service, a job, a function or a library, ask that one question and stop.
2. Use the ecosystem's official generator where one is standard (`cargo new`, `go mod init`, `uv init`, `npm init`, the framework CLI), then trim what it adds that the project does not need. Follow the ecosystem's conventional layout.
3. Include only these, adapted to the ecosystem:
   - A manifest with a lockfile and a pinned runtime or toolchain version.
   - The ecosystem's standard formatter and linter (ruff, eslint with prettier, golangci-lint, rustfmt with clippy) with default rules plus anything the description requires.
   - A test runner with one real test of real behaviour.
   - Configuration read from environment variables, validated at start-up, failing fast with a clear message. Include a `.env.example` with no secrets.
   - For services: structured logging, a health endpoint and a separate readiness endpoint, and graceful shutdown on SIGTERM.
   - A CI workflow stub that installs from the lockfile, lints, type checks, tests and builds, on pull requests and the main branch.
   - If the target is a container: a multi-stage Dockerfile with a pinned base image that runs as a non-root user, plus a `.dockerignore`.
   - `.gitignore`, `.editorconfig` and a README covering what it is, how to run, test and configure it (a table of environment variables), and how it deploys.
4. Run install, lint, test and build (and start the service if it is one, then hit the health endpoint). Fix anything that fails.
</task>

<constraints>
- No database layer, auth, queue, DI container or generic "utils" module unless the description requires it.
- Do not choose a licence; leave a README note asking the owner to add one.
- Pin versions you know are current and supported. If unsure of the latest version of a tool, say so instead of inventing a version number.
- Use no placeholder code that pretends to work. Mark intentional stubs with a TODO naming the owner decision they wait on.
- Before saying the work is done, run the check that proves it (tests, build, type check or the command the user gave) and report the real result.
- If you could not run a check, say so plainly and say which one.
</constraints>

<output_format>
## Tree
The file tree.

## Files
Each file in its own code block, headed by its path. Generated lockfiles are summarised in one line, not printed.

## Why each piece
| File or tool | Why it is here | What to change later |

## Left out on purpose
Common additions you did not include and when to add them.

## Verification
Each command run and its actual result.
</output_format>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.