Agent skill

Specx Add Delivery Controller

by maksimzayats in maksimzayats/specx

Add delivery controllers for specx services, especially FastAPI HTTP routes.

MITAuto-check passedBackend & APIs

Install Specx Add Delivery Controller

skills CLI
$ npx skills add maksimzayats/specx --skill specx-add-delivery-controller -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install maksimzayats/specx specx-add-delivery-controller --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/specx-add-delivery-controller .claude/skills/specx-add-delivery-controller && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
specx-add-delivery-controller
GitHub stars
202
Token cost
~704 tokens
SKILL.md length
310 words
Files
3 (incl. references)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Add delivery controllers for specx services, especially FastAPI HTTP routes.

  • Works in 12 steps: Put controllers under… → Put request and response schemas under… → Use one controller per scoped set of use… → …
  • Creating top-level delivery/ request/response schemas
  • SKILL.md covers Workflow, Code Style and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Specx Add Delivery Controller is an agent skill from maksimzayats/specx. Add delivery controllers for specx services, especially FastAPI HTTP routes. Use when creating top-level delivery/ request/response schemas, one controller per scoped use-case set, route registration, FastAPI lifecycle managers, HTTP error translation, delivery-only auth/rate-limit/request services, or integration tests that exercise the delivery edge.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/controller.md`).

It sits in Backend & APIs, covering Backend development, Integration testing and Rate limiting. It works with FastAPI. The repository describes itself as: ⚙️ Executable architecture guardrails and agent skills for building structured Python services! The licence is MIT.

When your agent uses it

  • Creating top-level delivery/ request/response schemas
  • One controller per scoped use-case set
  • Route registration
  • FastAPI lifecycle managers

Example prompts

  • “/specx-add-delivery-controller”

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. Put controllers under delivery/fastapi/controllers/.py.
  2. Put request and response schemas under delivery/fastapi/schemas/.
  3. Use one controller per scoped set of use cases, for example
  4. Put controller-only helpers such as auth dependencies, rate limiters, and
  5. Make controllers inherit BaseController, schemas inherit
  6. Add docstrings with scope and a concrete Example: to controllers, schemas,
  7. Inject use cases or delivery services with Injected[...]. A simple
  8. Map request schema/path data into the use case's same-file Command or
  9. Call the use case.
  10. Map the result into a response schema.
  11. Declare the success status explicitly when it is not 200, such as 201
  12. Translate known application exceptions into stable, non-sensitive HTTP

What it can do on your machine

Read from SKILL.md and the folder at commit 9362406. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Specx Add Delivery Controller loads about 704 tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 97 tokens; SKILL.md has 310 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~704
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from maksimzayats/specx at commit 9362406, republished under its MIT licence (© maksimzayats). 310 words, ~704 tokens.

Download SKILL.mdSave it as .claude/skills/specx-add-delivery-controller/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
specx-add-delivery-controller
description
Add delivery controllers for specx services, especially FastAPI HTTP routes. Use when creating top-level `delivery/` request/response schemas, one controller per scoped use-case set, route registration, FastAPI lifecycle managers, HTTP error translation, delivery-only auth/rate-limit/request services, or integration tests that exercise the delivery edge.

specx Add Delivery Controller

Use this skill at the framework boundary. Read references/controller.md before adding controller code.

Workflow

  1. Put controllers under delivery/fastapi/controllers/<scope>.py.
  2. Put request and response schemas under delivery/fastapi/schemas/.
  3. Use one controller per scoped set of use cases, for example TasksController for create/get/list task routes.
  4. Put controller-only helpers such as auth dependencies, rate limiters, and request-context readers under delivery/fastapi/services/.
  5. Make controllers inherit BaseController, schemas inherit BaseFastAPISchema, delivery helpers inherit BaseDeliveryService, and FastAPI lifespan managers inherit BaseLifecycle[FastAPI].
  6. Add docstrings with scope and a concrete Example: to controllers, schemas, and delivery services.
  7. Inject use cases or delivery services with Injected[...]. A simple delivery-owned /healthz response needs no core workflow; inject core/health use cases when readiness checks a required external dependency or probe policy is reused across deliveries.
  8. Map request schema/path data into the use case's same-file Command or Query input.
  9. Call the use case.
  10. Map the result into a response schema.
  11. Declare the success status explicitly when it is not 200, such as 201 for a resource-creating POST or 204 for a response with no body.
  12. Translate known application exceptions into stable, non-sensitive HTTP responses. Do not expose raw exception messages.
  13. Register full public business route paths such as /api/v1/users. Do not split API prefixes across routers and route fragments. Operational probes are the only unversioned exception: /healthz and /readyz.
  14. For FastAPI apps with long-lived resources, inject FastAPILifecycle into the app factory and pass it to FastAPI(lifespan=...).
  15. Add integration tests at the HTTP boundary, including the declared success code and each translated application error.

Code Style

Use blank lines as logical separators in all code. Keep related statements together, but separate independent setup, action, assertion, response, branch, and transformation groups so long blocks stay readable.

References

  • references/controller.md - FastAPI controller class pattern, app factory registration, schemas, and tests.

© maksimzayats, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/specx-add-delivery-controller of maksimzayats/specx.

  • SKILL.md
  • agents/openai.yaml
  • references/controller.md

Open the folder on GitHubat commit 9362406

Compare with similar skills

Specx Add Delivery Controller next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Specx Add Delivery Controller compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Specx Add Delivery Controller this skillmaksimzayats/specx202—~704Automated safety check: PassMIT
Ros2 Web Integrationarpitg1304/robotics-agent-skills369—~13kAutomated safety check: NotesApache-2.0
Implementing API Patternsancoleman/ai-design-components525—~3kAutomated safety check: PassMIT
API Hardeningjamditis/claude-skills-journalism416—~12kAutomated safety check: PassMIT
Venice Errorsveniceai/skills144—~4.9kAutomated safety check: PassMIT
Python Web App Security Auditaiskillstore/marketplace433—~1.2kAutomated safety check: NotesMIT

Similar skills

  • Ros2 Web Integration

    arpitg1304/robotics-agent-skills

    Patterns and best practices for integrating ROS2 systems with web technologies including REST APIs, WebSocket bridges, and browser-based robot interfaces.

    369 GitHub stars~13k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Implementing API Patterns

    ancoleman/ai-design-components

    API design and implementation across REST, GraphQL, gRPC, and tRPC patterns.

    525 GitHub stars~3k tokensUpdated 10 mo ago
    Backend & APIsAuto-check passed
  • API Hardening

    jamditis/claude-skills-journalism

    API hardening for Express, FastAPI, and serverless. An agent skill from jamditis/claude-skills-journalism.

    416 GitHub stars~12k tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Venice Errors

    veniceai/skills

    Handle Venice API errors correctly. An agent skill from veniceai/skills.

    144 GitHub stars~4.9k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Python Web App Security Audit

    aiskillstore/marketplace

    Run defensive pre-release security tests for Python web applications.

    433 GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Video Translator

    shang-zhu/violin

    Dub a video into another language and generate subtitles using the default Together + Cartesia stack.

    1.1k GitHub stars~1k tokensUpdated 1 mo ago
    Media & CreativeAuto-check: notes

More from maksimzayats/specx

All 12 skills in this repo
  • Specx Add Core Service

    maksimzayats/specx

    Add or refactor a specx core scope service. An agent skill from maksimzayats/specx.

    202 GitHub stars~688 tokensUpdated 2 mo ago
    Auto-check passed
  • Specx Add Core Use Case

    maksimzayats/specx

    Add or refactor a specx core scope use case. An agent skill from maksimzayats/specx.

    202 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Add technical infrastructure adapters for specx core scopes.

    202 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed
  • Design or review specx core scope boundaries in Python services.

    202 GitHub stars~1.8k tokensUpdated 2 mo ago
    Auto-check passed
  • Specx Diwire Composition

    maksimzayats/specx

    Wire dependency injection for a specx Python service with diwire.

    202 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Specx Project Structure

    maksimzayats/specx

    Create or reshape a Python FastAPI service repo into the specx clean core/delivery architecture using packaged scoped foundation bases.

    202 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Specx Add Delivery Controller

What does Specx Add Delivery Controller do?

Add delivery controllers for specx services, especially FastAPI HTTP routes. Specx Add Delivery Controller is an agent skill from maksimzayats/specx. Add delivery controllers for specx services, especially FastAPI HTTP routes.

When should I use Specx Add Delivery Controller?

Specx Add Delivery Controller fits situations like: creating top-level delivery/ request/response schemas; one controller per scoped use-case set; route registration; fastAPI lifecycle managers.

How do I install Specx Add Delivery Controller in Claude Code?

Run `npx skills add maksimzayats/specx --skill specx-add-delivery-controller -a claude-code`. Or copy the skill folder (skills/specx-add-delivery-controller in maksimzayats/specx) into .claude/skills/specx-add-delivery-controller in your project. Claude Code loads it when a task matches its description.

How do I install Specx Add Delivery Controller in Codex?

Run `npx skills add maksimzayats/specx --skill specx-add-delivery-controller -a codex`. Or copy the skill folder (skills/specx-add-delivery-controller in maksimzayats/specx) into .agents/skills/specx-add-delivery-controller in your project. Codex loads it when a task matches its description.

Can I use Specx Add Delivery Controller in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maksimzayats/specx --skill specx-add-delivery-controller -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/specx-add-delivery-controller, .gemini/skills/specx-add-delivery-controller, .github/skills/specx-add-delivery-controller and .opencode/skills/specx-add-delivery-controller in your project.

What does Specx Add Delivery Controller need to run?

SKILL.md names no scripts, command-line tools or credentials: Specx Add Delivery Controller is instructions for the agent only.

Does Specx Add Delivery Controller access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Specx Add Delivery Controller safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Specx Add Delivery Controller use?

Specx Add Delivery Controller is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Specx Add Delivery Controller use?

About 704 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Specx Add Delivery Controller?

Skills that share tags, products or a category with Specx Add Delivery Controller: Ros2 Web Integration (arpitg1304/robotics-agent-skills, 369 stars), Implementing API Patterns (ancoleman/ai-design-components, 525 stars), API Hardening (jamditis/claude-skills-journalism, 416 stars) and Venice Errors (veniceai/skills, 144 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Specx Add Delivery Controller?

maksimzayats (a GitHub user) maintains it in maksimzayats/specx, which has 202 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on August 8, 2026.

Source: maksimzayats/specx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.