{"aiPlatform":"claude-code@2025.06","category":"debugging","commandName":"/smart-fix","content":"---\nname: Smart Issue Resolution\ndescription: Intelligently fix issues using automatic agent selection with explicit Task tool invocations\nallowed_tools:\n  - memory          # For storing issue analysis and coordination between specialized agents\n  - filesystem      # For implementing fixes across different domains (code, infrastructure, database)\ntags:\n  - issue-resolution\n  - debugging\n  - troubleshooting\n  - performance\n  - infrastructure\n  - automation\n  - workflow\ncategory: development\nversion: 2.0.0\nauthor: AI Commands Team\n---\n\nIntelligently fix the issue using automatic agent selection with explicit Task tool invocations:\n\n[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.]\n\nFirst, analyze the issue to categorize it, then use Task tool with the appropriate agent:\n\n## Analysis Phase\nExamine the issue: \"$ARGUMENTS\" to determine the problem domain.\n\n## Agent Selection and Execution\n\n### For Deployment/Infrastructure Issues\nIf the issue involves deployment failures, infrastructure problems, or DevOps concerns:\n- Use Task tool with subagent_type=\"devops-troubleshooter\"\n- Prompt: \"Debug and fix this deployment/infrastructure issue: $ARGUMENTS\"\n\n### For Code Errors and Bugs\nIf the issue involves application errors, exceptions, or functional bugs:\n- Use Task tool with subagent_type=\"debugger\"\n- Prompt: \"Analyze and fix this code error: $ARGUMENTS. Provide root cause analysis and solution.\"\n\n### For Database Performance\nIf the issue involves slow queries, database bottlenecks, or data access patterns:\n- Use Task tool with subagent_type=\"database-optimizer\"\n- Prompt: \"Optimize database performance for: $ARGUMENTS. Include query analysis, indexing strategies, and schema improvements.\"\n\n### For Application Performance\nIf the issue involves slow response times, high resource usage, or performance degradation:\n- Use Task tool with subagent_type=\"performance-engineer\"\n- Prompt: \"Profile and optimize application performance issue: $ARGUMENTS. Identify bottlenecks and provide optimization strategies.\"\n\n### For Legacy Code Issues\nIf the issue involves outdated code, deprecated patterns, or technical debt:\n- Use Task tool with subagent_type=\"legacy-modernizer\"\n- Prompt: \"Modernize and fix legacy code issue: $ARGUMENTS. Provide migration path and updated implementation.\"\n\n## Multi-Domain Coordination\nFor complex issues spanning multiple domains:\n1. Use primary agent based on main symptom\n2. Use secondary agents for related aspects\n3. Coordinate fixes across all affected areas\n4. Verify integration between different fixes\n\nIssue: $ARGUMENTS","contentHash":"79eb9b9f7d696b2cfc732ef477f2e9beffbaca8698f36a032d05212ae6760260","copies":1,"createdAt":"2025-08-12T16:09:31.638Z","description":"Analyzes issues and delegates to appropriate specialist subagents","github":{"repoUrl":"https://github.com/Commands-com/commands","lastSyncDirection":"from-github","metadata":{"importedFrom":"github_repository","repoPrivate":false,"repoDefaultBranch":"main","connectedAt":"2025-08-12T16:09:31.638Z"},"importedAt":"2025-08-12T16:09:31.638Z","lastSyncAt":"2025-08-17T17:57:47.631Z","fileMapping":{"license":null,"readme":null,"assets":[],"mainFile":"workflows/smart-fix.md"},"selectedCommand":"smart-fix","fileShas":{"mainFile":"ad1f48e1758b09d55d44595c1a7adca6c63bd260","yamlPath":"313647b1fb381389da33b7913e95baf617c4b392"},"branch":"main","connectionType":"commands_yaml","connected":true,"lastSyncCommit":"01591bc061d236bde47bf23b0f47e8afcf1a5144","importSource":"repository_import","installationId":"69232615","syncStatus":"synced"},"githubRepoUrl":"https://github.com/Commands-com/commands","id":"231a035b-e4ec-474a-8f9e-707afee45d55","instructions":"Analyzes issues and delegates to appropriate specialist subagents","lastCopied":"2026-01-01T13:24:49.422Z","likes":0,"mcp_search_content":"","organizationUsername":"commands-com","price":"free","search_content":"smart fix analyzes issues and delegates to appropriate specialist subagents /smart-fix debugging claude-code@2025.06","title":"Smart Fix","type":"command","updatedAt":"2025-08-17T17:57:47.631Z","userId":"W0V8NAw5AhWRwcuwSoFLOi1Yem83","visibility":"public","name":"smart-fix","userInteraction":{"userHasStarred":false}}