specx-add-delivery-controller

Add FastAPI delivery controllers for Specx services with structured setup.

200|35|Updated Jun 17, 2021
One-click install
npx skills add https://github.com/maksimzayats/specx --skill specx-add-delivery-controller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: specx-add-delivery-controller
Source: https://github.com/maksimzayats/specx/tree/main/.agents/skills/specx-add-delivery-controller
Command: npx skills add https://github.com/maksimzayats/specx --skill specx-add-delivery-controller

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Manages the creation of FastAPI delivery controllers for Specx services, ensuring proper architectural boundaries and facilitating smooth integration with use cases and services.

Core Features & Use Cases

  • Structured Controller Creation: Offers a comprehensive guide for creating FastAPI controllers, with emphasis on scope, schemas, and services.
  • Component Mapping: Helps in mapping request and response schemas, and integrating use cases or delivery services.
  • Integration Testing: Provides instructions for adding integration tests at the HTTP boundary for the delivery layer.

Quick Start

Run the 'specx-add-delivery-controller' skill to start adding a new FastAPI delivery controller for your Specx service.

Frequently Asked Questions about specx-add-delivery-controller

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

FAQPage Schema
How do I add a FastAPI delivery controller to a Specx service?

To add a FastAPI delivery controller to a Specx service, follow a structured workflow that includes controller setup, schema configuration, and use case injection using BaseFastAPISchema and BaseController classes.

What is the proper structure for FastAPI HTTP routes in Specx services?

The proper structure for FastAPI HTTP routes in Specx services uses BaseController classes and BaseFastAPISchema to maintain architectural boundaries and facilitate integration with use cases and delivery services.

How do I map request and response schemas when creating a FastAPI controller?

When creating a FastAPI controller, you map request and response schemas using BaseFastAPISchema to ensure structured component mapping and proper integration with the underlying delivery services.

Can I add integration tests at the HTTP boundary for FastAPI delivery controllers?

Yes, you can add integration tests at the HTTP boundary for FastAPI delivery controllers to verify the delivery layer and ensure proper integration with use cases and services.

Does the Specx FastAPI controller workflow support operational probe controllers?

Yes, the Specx FastAPI controller workflow supports operational probe controllers, providing structured guidance for setting up probes alongside standard delivery controller creation.

What are the limitations when injecting use cases into FastAPI delivery controllers?

The structured workflow requires strict adherence to architectural boundaries when injecting use cases into FastAPI delivery controllers, ensuring BaseFastAPISchema and BaseController classes are properly configured to avoid integration issues.