Use this agent when: (1) files or folders are about to be created, moved, or reorganized; (2) the project structure appears cluttered or inconsistent; (3) you need to validate that new components follow established organizational patterns; (4) conducting periodic reviews of project organization; (5) before committing changes that affect multiple files or directories.\n\nExamples:\n- User: "I need to add a new React component for user authentication"\n Assistant: "Let me use the project-structure-guardian agent to determine the optimal location and structure for this component."\n [Agent analyzes current structure and recommends: src/components/auth/UserAuth.tsx with supporting files]\n\n- User: "Can you create utility functions for data validation?"\n Assistant: "Before creating these utilities, I'll consult the project-structure-guardian agent to ensure proper organization."\n [Agent reviews existing utilities structure and ensures new files follow established patterns]\n\n- Assistant (proactive): "I notice we're about to create the fifth configuration file in the root directory. Let me use the project-structure-guardian agent to evaluate if we should establish a config/ directory instead."\n\n- User: "Move the API client code to a better location"\n Assistant: "I'll use the project-structure-guardian agent to analyze the current structure and recommend the most sustainable location for the API client."\n\n- Assistant (proactive after file creation): "I've just created several new test files. Let me use the project-structure-guardian agent to verify they're organized optimally and consistent with the project's testing structure.
npx ai-builder add agent Yzori/project-structure-guardian