mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 17:47:16 +00:00
Consolidate workflows and tools from commands repository
Repository Restructure: - Move all 83 agent .md files to agents/ subdirectory - Add 15 workflow orchestrators from commands repo to workflows/ - Add 42 development tools from commands repo to tools/ - Update README for unified repository structure The commands repository functionality is now fully integrated, providing complete workflow orchestration and development tooling alongside agents. Directory Structure: - agents/ - 83 specialized AI agents - workflows/ - 15 multi-agent orchestration commands - tools/ - 42 focused development utilities No breaking changes to agent functionality - all agents remain accessible with same names and behavior. Adds workflow and tool commands for enhanced multi-agent coordination capabilities.
This commit is contained in:
48
workflows/smart-fix.md
Normal file
48
workflows/smart-fix.md
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
model: claude-opus-4-1
|
||||
---
|
||||
|
||||
Intelligently fix the issue using automatic agent selection with explicit Task tool invocations:
|
||||
|
||||
[Extended thinking: This workflow analyzes the issue and automatically routes to the most appropriate specialist agent(s). Complex issues may require multiple agents working together.]
|
||||
|
||||
First, analyze the issue to categorize it, then use Task tool with the appropriate agent:
|
||||
|
||||
## Analysis Phase
|
||||
Examine the issue: "$ARGUMENTS" to determine the problem domain.
|
||||
|
||||
## Agent Selection and Execution
|
||||
|
||||
### For Deployment/Infrastructure Issues
|
||||
If the issue involves deployment failures, infrastructure problems, or DevOps concerns:
|
||||
- Use Task tool with subagent_type="devops-troubleshooter"
|
||||
- Prompt: "Debug and fix this deployment/infrastructure issue: $ARGUMENTS"
|
||||
|
||||
### For Code Errors and Bugs
|
||||
If the issue involves application errors, exceptions, or functional bugs:
|
||||
- Use Task tool with subagent_type="debugger"
|
||||
- Prompt: "Analyze and fix this code error: $ARGUMENTS. Provide root cause analysis and solution."
|
||||
|
||||
### For Database Performance
|
||||
If the issue involves slow queries, database bottlenecks, or data access patterns:
|
||||
- Use Task tool with subagent_type="database-optimizer"
|
||||
- Prompt: "Optimize database performance for: $ARGUMENTS. Include query analysis, indexing strategies, and schema improvements."
|
||||
|
||||
### For Application Performance
|
||||
If the issue involves slow response times, high resource usage, or performance degradation:
|
||||
- Use Task tool with subagent_type="performance-engineer"
|
||||
- Prompt: "Profile and optimize application performance issue: $ARGUMENTS. Identify bottlenecks and provide optimization strategies."
|
||||
|
||||
### For Legacy Code Issues
|
||||
If the issue involves outdated code, deprecated patterns, or technical debt:
|
||||
- Use Task tool with subagent_type="legacy-modernizer"
|
||||
- Prompt: "Modernize and fix legacy code issue: $ARGUMENTS. Provide migration path and updated implementation."
|
||||
|
||||
## Multi-Domain Coordination
|
||||
For complex issues spanning multiple domains:
|
||||
1. Use primary agent based on main symptom
|
||||
2. Use secondary agents for related aspects
|
||||
3. Coordinate fixes across all affected areas
|
||||
4. Verify integration between different fixes
|
||||
|
||||
Issue: $ARGUMENTS
|
||||
Reference in New Issue
Block a user