domain-route-config

Register API and UI routes declaratively for SKUEL applications using DomainRouteConfig.

2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/linguistic76/skuel --skill domain-route-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: domain-route-config
Source: https://github.com/linguistic76/skuel/tree/main/app/.claude/skills/domain-route-config
Command: npx skills add https://github.com/linguistic76/skuel --skill domain-route-config

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of registering API and UI routes within SKUEL applications by replacing verbose manual code with a declarative configuration, significantly reducing boilerplate and improving maintainability.

Core Features & Use Cases

  • Configuration-Driven Registration: Define routes using a DomainRouteConfig object instead of writing manual service extraction and wiring logic.
  • Pattern Variants: Supports multiple configurations for different domain needs: Activity Domains, Standard API+UI, API-Only, UI-Only, and Multi-Factory setups.
  • Use Case: When creating a new domain's route file (e.g., tasks_routes.py), use the DomainRouteConfig pattern to declaratively specify how API and UI routes should be registered, including dependencies on other services.

Quick Start

Use the domain-route-config skill to create a new standard API and UI route file for the 'users' domain.

Frequently Asked Questions about domain-route-config

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

FAQPage Schema
How do I reduce boilerplate when registering API and UI routes in Python web frameworks?

To reduce boilerplate for route registration, you can use a declarative configuration pattern. Defining routes with a DomainRouteConfig dataclass abstracts manual service extraction and wiring, replacing verbose code with maintainable declarations.

What is the best way to configure API-only or UI-only routes for specific domains?

The best way to configure API-only or UI-only routes is using a declarative pattern that supports multiple configuration variants. A central register_domain_routes function can wire these specific domain setups without requiring custom boilerplate.

How do I set up multi-factory route configurations for my Python application?

You set up multi-factory route configurations by defining the dependencies and factory setups in a declarative config object. Passing this configuration to a central registration function automatically handles the wiring for the multiple domain factories.

Can I declare routes for activity domains without writing manual service extraction logic?

Yes, you can declare routes for activity domains without manual service extraction logic. A configuration-driven approach uses Python dataclasses to specify the route setup, which a central function processes to abstract away the boilerplate.

When should I use declarative route registration instead of manual wiring in my web framework?

You should use declarative route registration instead of manual wiring when creating new domain route files and needing improved maintainability. This pattern is ideal when your application requires setting up standard, API-only, UI-only, or multi-factory routes.

Does domain route configuration support wiring dependencies for multiple domain types?

Yes, domain route configuration supports wiring dependencies for multiple domain types. The pattern accommodates Activity Domains, API-only, UI-only, and multi-factory configurations, allowing you to declaratively specify service dependencies for each variant.