Generate

Scaffold code, tests, and boilerplate from a short spec.

Development / Engineeringdevelopmentengineering
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptScaffold a REST endpoint for creating and listing invoices.
Beforegeneric AI agent
Here's a general structure for an invoices REST endpoint:

- POST /invoices to create an invoice
- GET /invoices to list them
- Validate the input on create
- Return appropriate status codes
- Handle errors

You'd want a model or schema for the invoice, a route handler, and probably some validation. Depending on your stack, the exact code varies. Add tests to cover the main paths.

What framework and language are you using? Then I can give you specific code.
Afterwith Generate
Scaffold from the spec — code, tests, and boilerplate together, matched
to your project's existing conventions (not a generic template).

FROM "create and list invoices" I generate:

  ROUTES
    POST /invoices   — create, validated body, 201 + Location header
    GET  /invoices   — list, paginated (?page, ?limit), 200
    (plus GET /invoices/:id — you'll want it within the hour)

  VALIDATION
    A schema for the invoice body — amount is a positive number, currency
    is a known code, line items non-empty. Invalid input → 400 with the
    field that failed, not a generic error.

  HANDLER
    Create: validate → persist → return the created resource.
    List: parse pagination, return { data, total, page }. Empty result
    is [] with 200, never null — the bug that breaks every client.

  TESTS (generated alongside, not as an afterthought)
    ✓ 201 on valid create, body matches schema
    ✓ 400 on missing amount
    ✓ list returns paginated shape, empty = []
    ✓ 404 on GET of a nonexistent id

  BOILERPLATE
    Error handler, the model/type, and the route wiring — matched to how
    your project already structures these, so it drops in rather than
    fighting your conventions.

THE DEFAULTS THAT SAVE YOU LATER
Pagination on the list (unbounded lists break in production), and
[]-not-null on empty. Both are baked in.

Tell me your framework and I'll generate the actual files.

About this skill


name: generate description: Use when -

Generate

What you get

  • Public GitHub repo (alirezarezvani/claude-skills)
  • the generate skill folder with SKILL.md. Part of a 337-skill / 30-agent / 70-command install.

Customize your output

  • Fork the repo and adapt the skill's instructions and references to your workflow.

Example output

Activates automatically when your request matches Generate; chains with the other skills, agents, and commands in the collection.

Best for

Creators, builders, and teams using Claude Code.

SKILL.md preview

SKILL.md
---
name: generate
description: Scaffold code, tests, and boilerplate from a short specification so a new feature or module starts from a consistent, working skeleton.
version: 1.0.0
category: Development / Engineering
author: AgentVolt
license: proprietary
tags:
  - development
  - engineering
---

# Generate

Turns a short spec into working scaffolding — module structure, boilerplate, and a first pass of tests — so new work starts from a consistent skeleton instead of a blank file.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

Featured in

More development skills

View all Development skills →