What problem does it solve?
This Skill ensures that AI-generated code adheres to specific project requirements, preventing the creation of generic solutions that don't fit your established standards for performance, security, testing, architecture, and dependencies.
Core Features & Use Cases
- Define Performance Standards: Specify response times, throughput, caching strategies, and database optimizations.
- Enforce Security Protocols: Detail authentication, authorization, input validation, and data protection measures.
- Mandate Testing Rigor: Outline code coverage targets, test types, mocking requirements, and edge case handling.
- Architectural Guidance: Specify design patterns to follow or avoid, and complexity limits.
- Dependency Management: Define version requirements and compatibility for external packages.
- Use Case: When requesting a new feature, you can use this skill to instruct the AI to implement it with specific performance targets (e.g., <200ms response time), security constraints (e.g., use Sanctum for auth), and testing requirements (e.g., 80% code coverage).
Quick Start
Use the laravel:specifying-constraints skill to define performance and security requirements for a new API endpoint.