validate_code_structure
Ensure new code structures align with project architectural guidelines, catching violations early and keeping multi-agent development consistent.
Instructions
Validate that your code structure follows the project's architectural guidelines.
This tool provides flexible project lookup. You can specify any combination of identifiers, and it will resolve to the matching project.
Priority: project_id > workspace_path > project_name
WHEN TO USE:
Before finalizing a new file or component structure
When creating significant new modules or services
To ensure consistency with existing codebase patterns
When you're unsure if your approach follows project conventions
Before committing major structural changes
USEFUL FOR: Catching architectural violations early and maintaining codebase consistency.
VALIDATION CHECKS:
Directory structure conventions
Naming conventions
Import/export patterns
Dependency management
Architectural pattern compliance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path where code will be located (required) - e.g., "src/services/auth.ts" | |
| project_id | No | Project ID from create_project() (optional if project_name or workspace_path provided) | |
| strict_mode | No | Enforce strict validation (optional) - Set to True for critical architectural components | |
| project_name | No | Project name to look up (alternative to project_id) | |
| code_structure | Yes | Description of proposed structure (required) - Object with component details | |
| workspace_path | No | Workspace directory path (alternative to project_id) |