Claude Code subagent imported from bishop-l-walker-usps/icda-prototype (
.claude/agents/README.md). Copyright stays with the author.
๐ค Specialized AI Agents
Domain-expert agents for focused technical assistance
๐ Available Agents
Each agent is a specialized expert with deep knowledge in their domain:
Technology Domain Agents
| Agent | Command | Domain | Use When |
|---|---|---|---|
| Kafka | /agent-kafka |
Apache Kafka, event streaming | Working with message brokers, topics, consumers, producers |
| AWS | /agent-aws |
Amazon Web Services | Cloud infrastructure, Lambda, S3, EC2, RDS, etc. |
| Spring Boot | /agent-springboot |
Spring Boot framework | Building REST APIs, configuration, dependency injection |
| Spring Cloud | /agent-springcloud |
Spring Cloud microservices | Service discovery, config server, API gateway, circuit breakers |
| Docker | /agent-docker |
Docker & containerization | Building images, docker-compose, orchestration |
Data Platform & MCP Agents
| Agent | Command | Domain | Use When |
|---|---|---|---|
| Databricks Genie | /agent-genie |
Databricks Genie API | NL-to-SQL, conversation API, multi-cloud auth |
| MCP Architect | /agent-mcp |
Model Context Protocol | Building MCP servers, tool design, pipelines |
| SQL Security | /agent-sql-security |
SQL Security & Governance | Query validation, PII detection, Unity Catalog |
Code Refactoring & Quality Agents
| Agent | Command | Purpose | Use When |
|---|---|---|---|
| Functionality Preservation | /agent-preserve |
Ensures no lost functionality | Before/after refactoring to map and verify functions |
| Code Quality Sentinel | /agent-sentinel |
SOLID violations, complexity metrics | Analyzing code quality and architecture |
| Dependency Graph | /agent-depgraph |
Import chains, circular deps | Understanding module relationships |
| Technical Debt Analyst | /agent-debt |
TODOs, missing tests, deprecated code | Finding and prioritizing technical debt |
| Dead Code Hunter | /agent-deadcode |
Unused imports, functions, files | Finding dead code to remove |
| Redundancy Eliminator | /agent-redundancy |
Duplicate code, similar functions | Finding code to consolidate |
| Code Consolidator | /agent-consolidate |
Execute cleanup, create utilities | Actually removing/merging code safely |
| Documentation (Ultrathink) | /agent-document |
Deep analysis, code labeling | Comprehensive code documentation |
๐ฏ How to Use Agents
Method 1: Slash Commands
# Technology Domain Agents
/agent-kafka
/agent-aws
/agent-springboot
/agent-springcloud
/agent-docker
# Data Platform & MCP Agents
/agent-genie # Databricks Genie API
/agent-mcp # MCP server architecture
/agent-sql-security # SQL security & governance
# Code Refactoring & Quality Agents
/agent-preserve # Functionality preservation
/agent-sentinel # Code quality analysis
/agent-depgraph # Dependency graph
/agent-debt # Technical debt
/agent-deadcode # Dead code hunting
/agent-redundancy # Redundancy elimination
/agent-consolidate # Code consolidation
/agent-document # Documentation (Ultrathink)
Method 2: Direct Context Load
Load the agent context file directly:
# Example: Loading Kafka agent
cat .claude/agents/KAFKA_AGENT.md
Method 3: Combined Context
Load multiple agents for cross-domain work:
# Example: Spring Boot + Kafka + Docker
cat .claude/agents/SPRINGBOOT_AGENT.md \
.claude/agents/KAFKA_AGENT.md \
.claude/agents/DOCKER_AGENT.md
๐ง Agent Capabilities
Kafka Agent
- Topic design and partitioning strategies
- Producer/Consumer configuration
- Kafka Streams and ksqlDB
- Schema Registry and Avro
- Performance tuning and monitoring
- Common issues and troubleshooting
AWS Agent
- Service selection and architecture
- IAM roles and security best practices
- Serverless (Lambda, API Gateway, EventBridge)
- Storage (S3, EFS, EBS)
- Database services (RDS, DynamoDB, Aurora)
- Networking (VPC, Load Balancers, CloudFront)
- Cost optimization strategies
Spring Boot Agent
- RESTful API design patterns
- Spring Data JPA and repositories
- Spring Security and authentication
- Configuration management (@ConfigurationProperties)
- Exception handling and validation
- Testing (MockMvc, TestRestTemplate)
- Actuator and monitoring
Spring Cloud Agent
- Microservices architecture patterns
- Service discovery (Eureka, Consul)
- Config Server centralization
- API Gateway (Spring Cloud Gateway)
- Circuit breakers (Resilience4j)
- Distributed tracing (Sleuth, Zipkin)
- Load balancing and fault tolerance
Docker Agent
- Dockerfile best practices
- Multi-stage builds for optimization
- docker-compose orchestration
- Networking and volumes
- Security hardening
- CI/CD integration
- Kubernetes basics
Databricks Genie Agent
- Genie Conversation API integration
- Multi-cloud authentication (AWS, Azure, GCP)
- Async polling and rate limiting
- MCP server creation for Genie
- LangChain integration
- Query result caching
MCP Architect Agent
- MCP protocol fundamentals
- Tool and resource design
- Multi-agent pipeline orchestration
- Quality gates and validation
- Docker containerization
- Client integration (Claude Desktop, VS Code)
SQL Security Agent
- SQL injection prevention
- PII detection and masking
- Unity Catalog row/column security
- OAuth 2.0 token management
- Query guardrails and cost controls
- Compliance frameworks (SOC 2, GDPR, HIPAA)
๐ Agent Context Structure
Each agent includes:
- Core Concepts - Fundamental knowledge
- Common Patterns - Best practices and design patterns
- Code Examples - Ready-to-use snippets
- Configuration - Common config patterns
- Troubleshooting - Common issues and solutions
- Performance Tips - Optimization strategies
- Security - Security best practices
- Testing - Testing strategies and examples
- Resources - Documentation links and references
๐ Agent Workflow
- Identify Domain - Which technology are you working with?
- Activate Agent - Use slash command or load context
- Ask Questions - Agent responds with specialized knowledge
- Implement Solution - Agent provides code and guidance
- Switch Agents - Activate different agent as needed
๐ Multi-Agent Scenarios
Scenario 1: Building a Microservice
Agents needed: Spring Boot + Spring Cloud + Docker
/agent-springboot
# Discuss: Create REST API with Spring Boot
/agent-springcloud
# Discuss: Add service discovery and config server
/agent-docker
# Discuss: Containerize the application
Scenario 2: Event-Driven Architecture
Agents needed: Kafka + Spring Boot + AWS
/agent-kafka
# Discuss: Design event topics and schemas
/agent-springboot
# Discuss: Implement Kafka producer/consumer
/agent-aws
# Discuss: Deploy to AWS with MSK (Managed Kafka)
Scenario 3: Cloud Deployment
Agents needed: Docker + AWS
/agent-docker
# Discuss: Build optimized container image
/agent-aws
# Discuss: Deploy to ECS/EKS with proper networking
Scenario 4: Databricks Genie MCP Server
Agents needed: Genie + MCP + SQL Security
/agent-genie
# Discuss: Understand Genie API and polling patterns
/agent-mcp
# Discuss: Design MCP server with tools
/agent-sql-security
# Discuss: Add query validation and PII protection
๐ Agent Selection Guide
Use this flowchart to pick the right agent:
Working with...
โโโ Message queues/events? โ Kafka Agent
โโโ Cloud infrastructure? โ AWS Agent
โโโ Building APIs/services? โ Spring Boot Agent
โโโ Microservices coordination? โ Spring Cloud Agent
โโโ Containers/deployment? โ Docker Agent
โโโ Databricks NL-to-SQL? โ Genie Agent
โโโ MCP server development? โ MCP Architect Agent
โโโ SQL security/governance? โ SQL Security Agent
๐ Pro Tips
- Start Broad, Get Specific - Begin with general architecture questions, then dive into specifics
- One Agent at a Time - Focus on one domain, then switch contexts
- Combine for Integration - Load multiple agents when working on integration points
- Reference Agent Docs - Each agent has comprehensive examples and patterns
- Ask for Code - Agents provide production-ready code snippets
๐ Creating Custom Agents
You can create your own specialized agents:
- Copy the agent template:
AGENT_TEMPLATE.md - Fill in domain-specific knowledge
- Add to this README
- Create a slash command in
.claude/commands/
๐ Related Documentation
- Main Context:
.claude/CLAUDE.md- General development standards - Project Setup:
.claude/INITIAL.md- Project specifications - Architecture:
PLANNING.md- System architecture - Task Tracking:
TASK.md- Current tasks
๐งน Code Cleanup Pipeline
The refactoring agents work together in a pipeline for safe code cleanup:
RECOMMENDED WORKFLOW:
1. /agent-preserve โ Create functionality baseline BEFORE changes
2. /agent-deadcode โ Find all dead/unused code
3. /agent-redundancy โ Find all duplicate code
4. /agent-consolidate โ Execute cleanup safely
5. /agent-preserve โ Verify no functionality lost
6. /agent-document โ Update documentation
TARGET: 40% codebase reduction while maintaining ALL functionality
Code Cleanup Agent Capabilities
| Agent | Finds | Action |
|---|---|---|
| Dead Code Hunter | Unused imports, functions, classes, unreachable code | Generates removal list |
| Redundancy Eliminator | Duplicate code, similar functions, repeated patterns | Generates consolidation plan |
| Code Consolidator | N/A (executor) | Executes cleanup with verification |
Status: โ Active Total Agents: 16 (5 technology + 3 data platform/MCP + 8 refactoring) Last Updated: 2025-12-17