diff --git a/.claude/agents/auth-route-debugger.md b/.claude/agents/auth-route-debugger.md index 151425f..b9954f1 100644 --- a/.claude/agents/auth-route-debugger.md +++ b/.claude/agents/auth-route-debugger.md @@ -1,6 +1,6 @@ --- name: auth-route-debugger -description: Use this agent when you need to debug authentication-related issues with API routes, including 401/403 errors, cookie problems, JWT token issues, route registration problems, or when routes are returning 'not found' despite being defined. This agent specializes in the your project application's Keycloak/cookie-based authentication patterns.\n\nExamples:\n- \n Context: User is experiencing authentication issues with an API route\n user: "I'm getting a 401 error when trying to access the /api/workflow/123 route even though I'm logged in"\n assistant: "I'll use the auth-route-debugger agent to investigate this authentication issue"\n \n Since the user is having authentication problems with a route, use the auth-route-debugger agent to diagnose and fix the issue.\n \n \n- \n Context: User reports a route is not being found despite being defined\n user: "The POST /form/submit route returns 404 but I can see it's defined in the routes file"\n assistant: "Let me launch the auth-route-debugger agent to check the route registration and potential conflicts"\n \n Route not found errors often relate to registration order or naming conflicts, which the auth-route-debugger specializes in.\n \n \n- \n Context: User needs help testing an authenticated endpoint\n user: "Can you help me test if the /api/user/profile endpoint is working correctly with authentication?"\n assistant: "I'll use the auth-route-debugger agent to test this authenticated endpoint properly"\n \n Testing authenticated routes requires specific knowledge of the cookie-based auth system, which this agent handles.\n \n +description: "Use this agent when you need to debug authentication-related issues with API routes, including 401/403 errors, cookie problems, JWT token issues, route registration problems, or when routes are returning 'not found' despite being defined. This agent specializes in the your project application's Keycloak/cookie-based authentication patterns.\n\nExamples:\n- \n Context: User is experiencing authentication issues with an API route\n user: \"I'm getting a 401 error when trying to access the /api/workflow/123 route even though I'm logged in\"\n assistant: \"I'll use the auth-route-debugger agent to investigate this authentication issue\"\n \n Since the user is having authentication problems with a route, use the auth-route-debugger agent to diagnose and fix the issue.\n \n \n- \n Context: User reports a route is not being found despite being defined\n user: \"The POST /form/submit route returns 404 but I can see it's defined in the routes file\"\n assistant: \"Let me launch the auth-route-debugger agent to check the route registration and potential conflicts\"\n \n Route not found errors often relate to registration order or naming conflicts, which the auth-route-debugger specializes in.\n \n \n- \n Context: User needs help testing an authenticated endpoint\n user: \"Can you help me test if the /api/user/profile endpoint is working correctly with authentication?\"\n assistant: \"I'll use the auth-route-debugger agent to test this authenticated endpoint properly\"\n \n Testing authenticated routes requires specific knowledge of the cookie-based auth system, which this agent handles.\n \n " color: purple --- diff --git a/.claude/agents/auth-route-tester.md b/.claude/agents/auth-route-tester.md index e170727..a237d4d 100644 --- a/.claude/agents/auth-route-tester.md +++ b/.claude/agents/auth-route-tester.md @@ -1,6 +1,6 @@ --- name: auth-route-tester -description: Use this agent when you need to test routes after implementing or modifying them. This agent focuses on verifying complete route functionality - ensuring routes handle data correctly, create proper database records, and return expected responses. The agent also reviews route implementation for potential improvements. Examples:\n\n\nContext: The user has just implemented a new POST route for form submissions.\nuser: "I've added a new POST route to /form/submit that creates submissions"\nassistant: "I'll test the route to ensure it's working properly"\n\nSince a new route was created, use the auth-route-tester agent to verify it creates records correctly and returns the expected response.\n\nassistant: "Let me use the auth-route-tester agent to verify the route functionality and review the implementation"\n\n\n\nContext: The user has modified a workflow launch route.\nuser: "I updated the monthly report launch route with new permission checks"\nassistant: "I'll test the route to ensure it still creates workflows correctly"\n\nChanges to existing routes require testing the full functionality, so use the auth-route-tester agent.\n\nassistant: "I'll use the auth-route-tester agent to test the complete workflow creation process"\n\n\n\nContext: The user has implemented a new API endpoint.\nuser: "I added a new endpoint to fetch user tasks"\nassistant: "I should test the endpoint to verify it returns the correct data"\n\nNew endpoints need functional testing to ensure they work as expected.\n\nassistant: "Let me launch the auth-route-tester agent to verify the endpoint returns tasks properly"\n +description: "Use this agent when you need to test routes after implementing or modifying them. This agent focuses on verifying complete route functionality - ensuring routes handle data correctly, create proper database records, and return expected responses. The agent also reviews route implementation for potential improvements. Examples:\n\n\nContext: The user has just implemented a new POST route for form submissions.\nuser: \"I've added a new POST route to /form/submit that creates submissions\"\nassistant: \"I'll test the route to ensure it's working properly\"\n\nSince a new route was created, use the auth-route-tester agent to verify it creates records correctly and returns the expected response.\n\nassistant: \"Let me use the auth-route-tester agent to verify the route functionality and review the implementation\"\n\n\n\nContext: The user has modified a workflow launch route.\nuser: \"I updated the monthly report launch route with new permission checks\"\nassistant: \"I'll test the route to ensure it still creates workflows correctly\"\n\nChanges to existing routes require testing the full functionality, so use the auth-route-tester agent.\n\nassistant: \"I'll use the auth-route-tester agent to test the complete workflow creation process\"\n\n\n\nContext: The user has implemented a new API endpoint.\nuser: \"I added a new endpoint to fetch user tasks\"\nassistant: \"I should test the endpoint to verify it returns the correct data\"\n\nNew endpoints need functional testing to ensure they work as expected.\n\nassistant: \"Let me launch the auth-route-tester agent to verify the endpoint returns tasks properly\"\n" model: sonnet color: green --- diff --git a/.claude/agents/code-architecture-reviewer.md b/.claude/agents/code-architecture-reviewer.md index 8c0c23d..a1bc3c3 100644 --- a/.claude/agents/code-architecture-reviewer.md +++ b/.claude/agents/code-architecture-reviewer.md @@ -1,6 +1,6 @@ --- name: code-architecture-reviewer -description: Use this agent when you need to review recently written code for adherence to best practices, architectural consistency, and system integration. This agent examines code quality, questions implementation decisions, and ensures alignment with project standards and the broader system architecture. Examples:\n\n\nContext: The user has just implemented a new API endpoint and wants to ensure it follows project patterns.\nuser: "I've added a new workflow status endpoint to the form service"\nassistant: "I'll review your new endpoint implementation using the code-architecture-reviewer agent"\n\nSince new code was written that needs review for best practices and system integration, use the Task tool to launch the code-architecture-reviewer agent.\n\n\n\n\nContext: The user has created a new React component and wants feedback on the implementation.\nuser: "I've finished implementing the WorkflowStepCard component"\nassistant: "Let me use the code-architecture-reviewer agent to review your WorkflowStepCard implementation"\n\nThe user has completed a component that should be reviewed for React best practices and project patterns.\n\n\n\n\nContext: The user has refactored a service class and wants to ensure it still fits well within the system.\nuser: "I've refactored the AuthenticationService to use the new token validation approach"\nassistant: "I'll have the code-architecture-reviewer agent examine your AuthenticationService refactoring"\n\nA refactoring has been done that needs review for architectural consistency and system integration.\n\n +description: "Use this agent when you need to review recently written code for adherence to best practices, architectural consistency, and system integration. This agent examines code quality, questions implementation decisions, and ensures alignment with project standards and the broader system architecture. Examples:\n\n\nContext: The user has just implemented a new API endpoint and wants to ensure it follows project patterns.\nuser: \"I've added a new workflow status endpoint to the form service\"\nassistant: \"I'll review your new endpoint implementation using the code-architecture-reviewer agent\"\n\nSince new code was written that needs review for best practices and system integration, use the Task tool to launch the code-architecture-reviewer agent.\n\n\n\n\nContext: The user has created a new React component and wants feedback on the implementation.\nuser: \"I've finished implementing the WorkflowStepCard component\"\nassistant: \"Let me use the code-architecture-reviewer agent to review your WorkflowStepCard implementation\"\n\nThe user has completed a component that should be reviewed for React best practices and project patterns.\n\n\n\n\nContext: The user has refactored a service class and wants to ensure it still fits well within the system.\nuser: \"I've refactored the AuthenticationService to use the new token validation approach\"\nassistant: \"I'll have the code-architecture-reviewer agent examine your AuthenticationService refactoring\"\n\nA refactoring has been done that needs review for architectural consistency and system integration.\n\n" model: sonnet color: blue --- diff --git a/.claude/agents/code-refactor-master.md b/.claude/agents/code-refactor-master.md index f2f7982..9b4aa8c 100644 --- a/.claude/agents/code-refactor-master.md +++ b/.claude/agents/code-refactor-master.md @@ -1,6 +1,6 @@ --- name: code-refactor-master -description: Use this agent when you need to refactor code for better organization, cleaner architecture, or improved maintainability. This includes reorganizing file structures, breaking down large components into smaller ones, updating import paths after file moves, fixing loading indicator patterns, and ensuring adherence to project best practices. The agent excels at comprehensive refactoring that requires tracking dependencies and maintaining consistency across the entire codebase.\n\n\nContext: The user wants to reorganize a messy component structure with large files and poor organization.\nuser: "This components folder is a mess with huge files. Can you help refactor it?"\nassistant: "I'll use the code-refactor-master agent to analyze the component structure and create a better organization scheme."\n\nSince the user needs help with refactoring and reorganizing components, use the code-refactor-master agent to analyze the current structure and propose improvements.\n\n\n\n\nContext: The user has identified multiple components using early returns with loading indicators instead of proper loading components.\nuser: "I noticed we have loading returns scattered everywhere instead of using LoadingOverlay"\nassistant: "Let me use the code-refactor-master agent to find all instances of early return loading patterns and refactor them to use the proper loading components."\n\nThe user has identified a pattern that violates best practices, so use the code-refactor-master agent to systematically find and fix all occurrences.\n\n\n\n\nContext: The user wants to break down a large component file into smaller, more manageable pieces.\nuser: "The Dashboard.tsx file is over 2000 lines and becoming unmaintainable"\nassistant: "I'll use the code-refactor-master agent to analyze the Dashboard component and extract it into smaller, focused components."\n\nThe user needs help breaking down a large component, which requires careful analysis of dependencies and proper extraction - perfect for the code-refactor-master agent.\n\n +description: "Use this agent when you need to refactor code for better organization, cleaner architecture, or improved maintainability. This includes reorganizing file structures, breaking down large components into smaller ones, updating import paths after file moves, fixing loading indicator patterns, and ensuring adherence to project best practices. The agent excels at comprehensive refactoring that requires tracking dependencies and maintaining consistency across the entire codebase.\n\n\nContext: The user wants to reorganize a messy component structure with large files and poor organization.\nuser: \"This components folder is a mess with huge files. Can you help refactor it?\"\nassistant: \"I'll use the code-refactor-master agent to analyze the component structure and create a better organization scheme.\"\n\nSince the user needs help with refactoring and reorganizing components, use the code-refactor-master agent to analyze the current structure and propose improvements.\n\n\n\n\nContext: The user has identified multiple components using early returns with loading indicators instead of proper loading components.\nuser: \"I noticed we have loading returns scattered everywhere instead of using LoadingOverlay\"\nassistant: \"Let me use the code-refactor-master agent to find all instances of early return loading patterns and refactor them to use the proper loading components.\"\n\nThe user has identified a pattern that violates best practices, so use the code-refactor-master agent to systematically find and fix all occurrences.\n\n\n\n\nContext: The user wants to break down a large component file into smaller, more manageable pieces.\nuser: \"The Dashboard.tsx file is over 2000 lines and becoming unmaintainable\"\nassistant: \"I'll use the code-refactor-master agent to analyze the Dashboard component and extract it into smaller, focused components.\"\n\nThe user needs help breaking down a large component, which requires careful analysis of dependencies and proper extraction - perfect for the code-refactor-master agent.\n\n" model: opus color: cyan --- diff --git a/.claude/agents/documentation-architect.md b/.claude/agents/documentation-architect.md index 3381015..03d63bf 100644 --- a/.claude/agents/documentation-architect.md +++ b/.claude/agents/documentation-architect.md @@ -1,6 +1,6 @@ --- name: documentation-architect -description: Use this agent when you need to create, update, or enhance documentation for any part of the codebase. This includes developer documentation, README files, API documentation, data flow diagrams, testing documentation, or architectural overviews. The agent will gather comprehensive context from memory, existing documentation, and related files to produce high-quality documentation that captures the complete picture.\n\n\nContext: User has just implemented a new authentication flow and needs documentation.\nuser: "I've finished implementing the JWT cookie-based authentication. Can you document this?"\nassistant: "I'll use the documentation-architect agent to create comprehensive documentation for the authentication system."\n\nSince the user needs documentation for a newly implemented feature, use the documentation-architect agent to gather all context and create appropriate documentation.\n\n\n\n\nContext: User is working on a complex workflow engine and needs to document the data flow.\nuser: "The workflow engine is getting complex. We need to document how data flows through the system."\nassistant: "Let me use the documentation-architect agent to analyze the workflow engine and create detailed data flow documentation."\n\nThe user needs data flow documentation for a complex system, which is a perfect use case for the documentation-architect agent.\n\n\n\n\nContext: User has made changes to an API and needs to update the API documentation.\nuser: "I've added new endpoints to the form service API. The docs need updating."\nassistant: "I'll launch the documentation-architect agent to update the API documentation with the new endpoints."\n\nAPI documentation needs updating after changes, so use the documentation-architect agent to ensure comprehensive and accurate documentation.\n\n +description: "Use this agent when you need to create, update, or enhance documentation for any part of the codebase. This includes developer documentation, README files, API documentation, data flow diagrams, testing documentation, or architectural overviews. The agent will gather comprehensive context from memory, existing documentation, and related files to produce high-quality documentation that captures the complete picture.\n\n\nContext: User has just implemented a new authentication flow and needs documentation.\nuser: \"I've finished implementing the JWT cookie-based authentication. Can you document this?\"\nassistant: \"I'll use the documentation-architect agent to create comprehensive documentation for the authentication system.\"\n\nSince the user needs documentation for a newly implemented feature, use the documentation-architect agent to gather all context and create appropriate documentation.\n\n\n\n\nContext: User is working on a complex workflow engine and needs to document the data flow.\nuser: \"The workflow engine is getting complex. We need to document how data flows through the system.\"\nassistant: \"Let me use the documentation-architect agent to analyze the workflow engine and create detailed data flow documentation.\"\n\nThe user needs data flow documentation for a complex system, which is a perfect use case for the documentation-architect agent.\n\n\n\n\nContext: User has made changes to an API and needs to update the API documentation.\nuser: \"I've added new endpoints to the form service API. The docs need updating.\"\nassistant: \"I'll launch the documentation-architect agent to update the API documentation with the new endpoints.\"\n\nAPI documentation needs updating after changes, so use the documentation-architect agent to ensure comprehensive and accurate documentation.\n\n" model: inherit color: blue --- diff --git a/.claude/agents/frontend-error-fixer.md b/.claude/agents/frontend-error-fixer.md index 47876a2..1a50e00 100644 --- a/.claude/agents/frontend-error-fixer.md +++ b/.claude/agents/frontend-error-fixer.md @@ -1,6 +1,6 @@ --- name: frontend-error-fixer -description: Use this agent when you encounter frontend errors, whether they appear during the build process (TypeScript, bundling, linting errors) or at runtime in the browser console (JavaScript errors, React errors, network issues). This agent specializes in diagnosing and fixing frontend issues with precision.\n\nExamples:\n- \n Context: User encounters an error in their React application\n user: "I'm getting a 'Cannot read property of undefined' error in my React component"\n assistant: "I'll use the frontend-error-fixer agent to diagnose and fix this runtime error"\n \n Since the user is reporting a browser console error, use the frontend-error-fixer agent to investigate and resolve the issue.\n \n\n- \n Context: Build process is failing\n user: "My build is failing with a TypeScript error about missing types"\n assistant: "Let me use the frontend-error-fixer agent to resolve this build error"\n \n The user has a build-time error, so the frontend-error-fixer agent should be used to fix the TypeScript issue.\n \n\n- \n Context: User notices errors in browser console while testing\n user: "I just implemented a new feature and I'm seeing some errors in the console when I click the submit button"\n assistant: "I'll launch the frontend-error-fixer agent to investigate these console errors using the browser tools"\n \n Runtime errors are appearing during user interaction, so the frontend-error-fixer agent should investigate using browser tools MCP.\n \n +description: "Use this agent when you encounter frontend errors, whether they appear during the build process (TypeScript, bundling, linting errors) or at runtime in the browser console (JavaScript errors, React errors, network issues). This agent specializes in diagnosing and fixing frontend issues with precision.\n\nExamples:\n- \n Context: User encounters an error in their React application\n user: \"I'm getting a 'Cannot read property of undefined' error in my React component\"\n assistant: \"I'll use the frontend-error-fixer agent to diagnose and fix this runtime error\"\n \n Since the user is reporting a browser console error, use the frontend-error-fixer agent to investigate and resolve the issue.\n \n\n- \n Context: Build process is failing\n user: \"My build is failing with a TypeScript error about missing types\"\n assistant: \"Let me use the frontend-error-fixer agent to resolve this build error\"\n \n The user has a build-time error, so the frontend-error-fixer agent should be used to fix the TypeScript issue.\n \n\n- \n Context: User notices errors in browser console while testing\n user: \"I just implemented a new feature and I'm seeing some errors in the console when I click the submit button\"\n assistant: \"I'll launch the frontend-error-fixer agent to investigate these console errors using the browser tools\"\n \n Runtime errors are appearing during user interaction, so the frontend-error-fixer agent should investigate using browser tools MCP.\n \n" color: green --- diff --git a/.claude/agents/refactor-planner.md b/.claude/agents/refactor-planner.md index 38a797f..2dd9800 100644 --- a/.claude/agents/refactor-planner.md +++ b/.claude/agents/refactor-planner.md @@ -1,6 +1,6 @@ --- name: refactor-planner -description: Use this agent when you need to analyze code structure and create comprehensive refactoring plans. This agent should be used PROACTIVELY for any refactoring requests, including when users ask to restructure code, improve code organization, modernize legacy code, or optimize existing implementations. The agent will analyze the current state, identify improvement opportunities, and produce a detailed step-by-step plan with risk assessment.\n\nExamples:\n- \n Context: User wants to refactor a legacy authentication system\n user: "I need to refactor our authentication module to use modern patterns"\n assistant: "I'll use the refactor-planner agent to analyze the current authentication structure and create a comprehensive refactoring plan"\n \n Since the user is requesting a refactoring task, use the Task tool to launch the refactor-planner agent to analyze and plan the refactoring.\n \n\n- \n Context: User has just written a complex component that could benefit from restructuring\n user: "I've implemented the dashboard component but it's getting quite large"\n assistant: "Let me proactively use the refactor-planner agent to analyze the dashboard component structure and suggest a refactoring plan"\n \n Even though not explicitly requested, proactively use the refactor-planner agent to analyze and suggest improvements.\n \n\n- \n Context: User mentions code duplication issues\n user: "I'm noticing we have similar code patterns repeated across multiple services"\n assistant: "I'll use the refactor-planner agent to analyze the code duplication and create a consolidation plan"\n \n Code duplication is a refactoring opportunity, so use the refactor-planner agent to create a systematic plan.\n \n +description: "Use this agent when you need to analyze code structure and create comprehensive refactoring plans. This agent should be used PROACTIVELY for any refactoring requests, including when users ask to restructure code, improve code organization, modernize legacy code, or optimize existing implementations. The agent will analyze the current state, identify improvement opportunities, and produce a detailed step-by-step plan with risk assessment.\n\nExamples:\n- \n Context: User wants to refactor a legacy authentication system\n user: \"I need to refactor our authentication module to use modern patterns\"\n assistant: \"I'll use the refactor-planner agent to analyze the current authentication structure and create a comprehensive refactoring plan\"\n \n Since the user is requesting a refactoring task, use the Task tool to launch the refactor-planner agent to analyze and plan the refactoring.\n \n\n- \n Context: User has just written a complex component that could benefit from restructuring\n user: \"I've implemented the dashboard component but it's getting quite large\"\n assistant: \"Let me proactively use the refactor-planner agent to analyze the dashboard component structure and suggest a refactoring plan\"\n \n Even though not explicitly requested, proactively use the refactor-planner agent to analyze and suggest improvements.\n \n\n- \n Context: User mentions code duplication issues\n user: \"I'm noticing we have similar code patterns repeated across multiple services\"\n assistant: \"I'll use the refactor-planner agent to analyze the code duplication and create a consolidation plan\"\n \n Code duplication is a refactoring opportunity, so use the refactor-planner agent to create a systematic plan.\n \n" color: purple --- diff --git a/.claude/agents/web-research-specialist.md b/.claude/agents/web-research-specialist.md index 2783497..2181b3e 100644 --- a/.claude/agents/web-research-specialist.md +++ b/.claude/agents/web-research-specialist.md @@ -1,6 +1,6 @@ --- name: web-research-specialist -description: Use this agent when you need to research information on the internet, particularly for debugging issues, finding solutions to technical problems, or gathering comprehensive information from multiple sources. This agent excels at finding relevant discussions in GitHub issues, Reddit threads, Stack Overflow, forums, and other community resources. Use when you need creative search strategies, thorough investigation of a topic, or compilation of findings from diverse sources.\n\nExamples:\n- \n Context: The user is encountering a specific error with a library and needs to find if others have solved it.\n user: "I'm getting a 'Module not found' error with the new version of webpack, can you help me debug this?"\n assistant: "I'll use the web-research-specialist agent to search for similar issues and solutions across various forums and repositories."\n \n Since the user needs help debugging an issue that others might have encountered, use the web-research-specialist agent to search for solutions.\n \n\n- \n Context: The user needs comprehensive information about a technology or approach.\n user: "I need to understand the pros and cons of different state management solutions for React."\n assistant: "Let me use the web-research-specialist agent to research and compile a detailed comparison of different state management solutions."\n \n The user needs research and comparison from multiple sources, which is perfect for the web-research-specialist agent.\n \n\n- \n Context: The user is implementing a feature and wants to see how others have approached it.\n user: "How do other developers typically implement infinite scrolling with virtualization?"\n assistant: "I'll use the web-research-specialist agent to research various implementation approaches and best practices from the community."\n \n This requires researching multiple implementation approaches from various sources, ideal for the web-research-specialist agent.\n \n +description: "Use this agent when you need to research information on the internet, particularly for debugging issues, finding solutions to technical problems, or gathering comprehensive information from multiple sources. This agent excels at finding relevant discussions in GitHub issues, Reddit threads, Stack Overflow, forums, and other community resources. Use when you need creative search strategies, thorough investigation of a topic, or compilation of findings from diverse sources.\n\nExamples:\n- \n Context: The user is encountering a specific error with a library and needs to find if others have solved it.\n user: \"I'm getting a 'Module not found' error with the new version of webpack, can you help me debug this?\"\n assistant: \"I'll use the web-research-specialist agent to search for similar issues and solutions across various forums and repositories.\"\n \n Since the user needs help debugging an issue that others might have encountered, use the web-research-specialist agent to search for solutions.\n \n\n- \n Context: The user needs comprehensive information about a technology or approach.\n user: \"I need to understand the pros and cons of different state management solutions for React.\"\n assistant: \"Let me use the web-research-specialist agent to research and compile a detailed comparison of different state management solutions.\"\n \n The user needs research and comparison from multiple sources, which is perfect for the web-research-specialist agent.\n \n\n- \n Context: The user is implementing a feature and wants to see how others have approached it.\n user: \"How do other developers typically implement infinite scrolling with virtualization?\"\n assistant: \"I'll use the web-research-specialist agent to research various implementation approaches and best practices from the community.\"\n \n This requires researching multiple implementation approaches from various sources, ideal for the web-research-specialist agent.\n \n" model: sonnet color: blue ---