Specialty Layers
Domain-specific agent layers with questionnaires, rules injection, and tool/RAG/template bindings
Overview
Specialty Layers provide domain-specific configurations that can be loaded into the agent framework. Each layer defines a complete agent profile: system prompts, tools, RAG collections, context adapters, project templates, and a questionnaire for customizing behavior. Layers are discovered automatically from the filesystem — no manual registration needed.
Built-in Layers (12)
blazor_developer
Blazor web application developer
clean_code_rules
Clean code validation and enforcement rules
django_developer
Django web framework developer
domain_architecture_rules
Domain-driven design architecture rules
fastapi_developer
FastAPI web framework developer
flask_developer
Flask web framework developer
maui_developer
.NET MAUI cross-platform developer
react_developer
React frontend developer
vue_developer
Vue.js frontend developer
web_designer
Web design and UX specialist
winforms_designer
Windows Forms UI designer
wpf_developer
WPF desktop application developer
Core Services (app/services/specialty_layers/)
| Module | Key Class | Responsibility |
|---|---|---|
contracts.py | SpecialtyLayerManifest, Questionnaire | Typed data contracts and validation |
registry.py | SpecialtyLayerDiscovery, SpecialtyLayerRegistry | Filesystem discovery, load, enable/disable, list |
lifecycle_service.py | SpecialtyLayerLifecycleService | Orchestrates all bindings + rules injection |
questionnaire_engine.py | SpecialtyLayerQuestionnaireEngine | Render, validate, state machine for questionnaires |
rules_layer.py | RulesLayerInjector, RulesLayerValidator | Rules injection and validation |
tool_binding.py | SpecialtyLayerToolBinding | Register layer tools with namespacing |
rag_binding.py | SpecialtyLayerRAGBinding | Wire layer RAG collections |
adapter_binding.py | SpecialtyLayerContextAdapterBinding | Wire context adapters |
template_binding.py | SpecialtyLayerTemplateBinding | Wire project templates |
service_metadata.py | Service metadata | Service info, setup, status for UI |
Layer File Structure
specialty_layers/<layer_name>/
├── layer.yaml # Manifest: id, name, type, domain, questionnaire
├── agent.yaml # Agent definition: system prompt, tools, model
├── agent.py # Agent entrypoint (optional)
└── system_prompt.md # System prompt template (optional)