This file defines specialized agents and their invocation patterns for StorageLens development.
StorageLens provides 6 specialized agents, each tailored to specific development workflows:
Description: Specialized for adding features, fixing bugs, or refactoring within a specific service.
Invocation Examples:
- "Add a new endpoint to list all locations"
- "Fix the duplicate calculation in the Duplicates service"
- "Refactor Scanner to use async iteration"
Responsibilities:
- Identify target service and its responsibilities from architecture docs
- Review DbContext schema and existing contracts
- Examine unit test patterns in the service's test project
- Implement feature respecting service boundaries
- Write comprehensive unit tests
- Remind to update
docs/CHANGELOG.md
Tools Access: File operations, test runner, semantic search
Output: Implementation code, unit tests, documentation reminders
Description: Coordinates changes across multiple services and API contracts.
Invocation Examples:
- "Add a new workflow step in the Orchestrator that calls Scanner"
- "What's the interaction pattern between FileInventory and Duplicates?"
- "Design a profiling data API shared between all services"
Responsibilities:
- Map affected services and data ownership
- Review existing contracts in
StorageLens.Shared.Contracts - Design immutable DTOs for new interactions
- Create typed
HttpClientintegration patterns - Implement correlation ID propagation and error handling
- Write integration tests
- Update architecture diagrams and CHANGELOG
Tools Access: File search, architecture docs, integration tests
Output: Cross-service implementation, integration tests, architecture updates
Description: Manages API contracts, DTOs, and backward compatibility.
Invocation Examples:
- "How should I version this breaking API change?"
- "What contracts are shared between Web and Locations service?"
- "Is my new DTO backward compatible?"
Responsibilities:
- Review contracts in
StorageLens.Shared.Contracts - Identify contract usage across services (grep/semantic search)
- Assess backward compatibility impact
- Recommend versioning and migration strategies
- Ensure immutability and serialization correctness
- Update API documentation
Tools Access: File search, grep, contract files, API docs
Output: API design guidance, versioning strategy, migration documentation
Description: Ensures test coverage and documentation compliance for all changes.
Invocation Examples:
- "Generate comprehensive tests for this service logic"
- "What documentation files should I update for this change?"
- "Is my test coverage adequate for this PR?"
Responsibilities:
- Analyze code for test coverage gaps
- Identify affected documentation sections
- Check documentation guard compliance (CI rule)
- Suggest unit test cases (happy path, errors, edge cases)
- Suggest integration test coverage
- Verify CHANGELOG update requirement
- Link to CI workflows enforcing these rules
Tools Access: Test runner, file operations, grep, CI workflow files
Output: Test recommendations, documentation checklist, compliance verification
Description: Validates changes against microservices principles and design patterns.
Invocation Examples:
- "Should this feature go in Duplicates or FileInventory service?"
- "Is my design respecting service boundaries?"
- "How should I structure cross-service feature requests?"
Responsibilities:
- Review microservices architecture and bounded contexts
- Identify anti-patterns (cross-DB access, tight coupling)
- Validate HTTP contract and retry semantics
- Check error handling, logging, and tracing approach
- Recommend architecture and documentation updates
- Suggest resilience patterns (timeouts, retries, circuit breakers)
Tools Access: Architecture docs, semantic search, grep, mermaid diagrams
Output: Architecture validation, anti-pattern detection, design recommendations
Description: Assists with Docker, Bicep infrastructure, and deployment concerns.
Invocation Examples:
- "Add the new Profiling service to docker-compose"
- "Update Azure deployment for the API version change"
- "What Bicep and network changes are needed for a new service?"
Responsibilities:
- Review
docker-compose.ymlandinfra/main.bicep - Check deployment and scaling guides
- Suggest Docker image, port, volume configurations
- Update Bicep for App Services/Container Apps, networking, databases
- Manage managed identities and RBAC
- Provide environment variable and secrets management patterns
- Update deployment and operations documentation
Tools Access: Bicep schema, file operations, Docker utilities, deployment docs
Output: Docker configurations, Bicep templates, deployment scripts, operations guides
"I need help on [task]. Is there a specialized agent for this?"
Response: Yes! I'll invoke the [Agent Name]...
"@StorageLens-Microservice-Developer Add a new health check endpoint to Locations service"
The system detects task type and suggests agent:
User: "Add a new table to FileInventory database"
System: Suggesting StorageLens-Microservice-Developer for database schema work...
Agents can invoke each other for specific aspects:
- Microservice-Developer → Test-and-Docs-Guardian (for test and doc requirements)
- Cross-Service-Integrator → Contract-Steward (for contract design)
- Cross-Service-Integrator → Architecture-Reviewer (for design validation)
- DevOps-and-Deployment → Microservice-Developer (for service code changes)
- Architecture-Reviewer → Contract-Steward (for API design review)
| Agent | Can Read Files | Can Write Files | Can Run Tests | Can Search Code | Can Use Terminal |
|---|---|---|---|---|---|
| Microservice-Developer | ✅ | ✅ | ✅ | ✅ | ✅ |
| Cross-Service-Integrator | ✅ | ✅ | ✅ | ✅ | ✅ |
| Contract-Steward | ✅ | ✅ | ❌ | ✅ | ❌ |
| Test-and-Docs-Guardian | ✅ | ✅ | ✅ | ✅ | ❌ |
| Architecture-Reviewer | ✅ | ❌ | ❌ | ✅ | ❌ |
| DevOps-and-Deployment | ✅ | ✅ | ❌ | ✅ | ✅ |
If an agent encounters a task outside its scope:
- It will note the limitation
- Suggest handoff to appropriate agent(s)
- Provide context for seamless transition
- Example: "This requires test generation. I'll escalate to Test-and-Docs-Guardian..."
- Architecture:
docs/architecture/microservices-architecture.md - Developer Guide:
docs/developer/developer-guide.md - API Specification:
docs/technical/api-specification.md - Deployment:
docs/operations/deployment-guide.md - Contributing:
docs/developer/contributing.md
Last Updated: March 19, 2026
For questions on agent design: See .agent.md for detailed agent definitions