ST0018 - Add Worker-Bee Intent Agent for WDD Architecture Enforcement #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please reference intent/st/COMPLETED/ST0018 for detailed information on this steel thread!
Introduces a comprehensive Worker-Bee Driven Design specialist agent for Elixir
applications, providing interactive project structure mapping, architecture validation, and
code scaffolding capabilities.
Key Features
• Smart Project Discovery: Interactive mapping that remembers your project structure in
.wdd_project_map.yaml
• Worker-Bee 6-Layer Architecture: Enforces Data, Functions, Tests, Boundaries, Lifecycles,
Workers
• Framework Agnostic: Works with Phoenix, OTP, libraries, Nerves, and umbrella projects
• Mix Task Integration: Dedicated tasks for validation, scaffolding, and remapping
• Educational Guidance: Contextual explanations of Worker-Bee principles
Components Added
Core Agent
Mix Tasks
Supporting Infrastructure
Documentation
Project Mapping Workflow
Initial Discovery (one-time)
mix wdd.validate # Triggers interactive project mapping
Daily Development
Generate Worker-Bee-compliant components:
mix wdd.scaffold component UserService
Validate architecture compliance:
mix wdd.validate --min-score 80.0
Update mapping when structure evolves:
mix wdd.remap
Agent Integration
Task(
description="Review Worker-Bee compliance",
prompt="Validate my functional core modules for purity",
subagent_type="worker-bee"
)
Installation & Usage
Install the agent:
intent agents install worker-bee
Start with project discovery:
mix wdd.validate
Generate Worker-Bee-compliant code:
mix wdd.scaffold component PaymentProcessor
Validate compliance:
mix wdd.validate --min-score 75.0
Architecture Validation
Functional Core: Ensures no side effects, pure function composition, proper error handling
Boundary Layer: Validates GenServer patterns, Railway-Oriented Programming, API design
Data Layer: Checks struct definitions, immutability patterns, appropriate data structures
Testing: Behavior-focused tests, proper organization, descriptive naming
This agent provides comprehensive Worker-Bee support for any Elixir project while respecting individual project structures and conventions.