Skip to content

Conversation

@justtorrell
Copy link
Collaborator

@justtorrell justtorrell commented Aug 15, 2025

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

  • agents/worker-bee/agent.md - Comprehensive Worker-Bee specialist system prompt
  • agents/worker-bee/metadata.json - Agent configuration and tool specifications

Mix Tasks

  • mix wdd.validate - Project compliance validation with scoring
  • mix wdd.scaffold - Worker-Bee-compliant code generation
  • mix wdd.remap - Project structure remapping with backup

Supporting Infrastructure

  • Business logic modules for mapping, validation, and templating
  • EEx templates for all Worker-Bee component types
  • Validation rules and pattern configurations
  • Comprehensive documentation and examples

Documentation

  • USER_GUIDE.md - Complete usage guide with workflows and troubleshooting
  • intent/docs/creating-custom-agents.md - Guide for creating custom Intent agents

Project Mapping Workflow

  1. Initial Discovery (one-time)
    mix wdd.validate # Triggers interactive project mapping

    • Detects project type (Phoenix/OTP/library)
    • Maps existing code to Worker-Bee layers
    • Saves configuration in .wdd_project_map.yaml
  2. 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

  3. 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.

- Comprehensive WDD specialist agent for Elixir applications
- Interactive project structure mapping and validation
- 6-layer architecture enforcement (Data, Functions, Tests, Boundaries, Lifecycles, Workers)
- Mix tasks for scaffolding and compliance validation
- Framework-agnostic support (Phoenix, OTP, libraries)
- Custom agent creation documentation added
- Complete usage documentation with quick start and workflows
- Project mapping process explanation with discovery questions
- Claude Code integration examples for all use cases
- Mix tasks reference with command examples and outputs
- Framework-specific guidance (Phoenix, OTP, libraries)
- Troubleshooting section for common issues
- Advanced usage including CI/CD integration and team adoption
- Best practices emphasizing 'discovery once' principle
@justtorrell justtorrell changed the title Add Worker-Bee Intent Agent for WDD Architecture Enforcement ST0018 - Add Worker-Bee Intent Agent for WDD Architecture Enforcement Aug 15, 2025
@justtorrell justtorrell force-pushed the torrell/worker_bee_agent branch from 15addee to e661d21 Compare August 15, 2025 05:22
@justtorrell justtorrell force-pushed the torrell/worker_bee_agent branch from e661d21 to 5c33bfe Compare August 15, 2025 05:25
@justtorrell justtorrell deleted the torrell/worker_bee_agent branch August 15, 2025 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants