PHP-specific guidelines for the package internals. Auto-attached to any edit under src/, routes/, config/, or database/stubs/.
php artisan boost:add-skill asciisd/nova-chat
Save this content to: .cursor/rules/100-php-contracts.mdc
When editing any of these files, the contract-driven design is in play.
Read the relevant detail file in `.ai/`:
- Architecture / where-things-go: `.ai/guidelines/package-architecture.md`
- Contract rules: `.ai/guidelines/contract-purity.md`
- API surface: `.ai/guidelines/api-design.md`
- Schema rules (only if touching `database/stubs/`): `.ai/guidelines/database-schema.md`
## Quick checks before committing
```bash
# No leaks of app-namespaced classes
rg -n '\\App\\\\Models\\\\' src/ routes/ config/ database/stubs/
# Routes still register
php artisan route:list | grep nova-chat
```
If you're adding a feature, follow the playbook in
`.ai/skills/add-package-feature/SKILL.md` end-to-end before opening the
PR.
When editing any of these files, the contract-driven design is in play.
Read the relevant detail file in .ai/:
.ai/guidelines/package-architecture.md.ai/guidelines/contract-purity.md.ai/guidelines/api-design.mddatabase/stubs/): .ai/guidelines/database-schema.md# No leaks of app-namespaced classes
rg -n '\\App\\\\Models\\\\' src/ routes/ config/ database/stubs/
# Routes still register
php artisan route:list | grep nova-chat
If you're adding a feature, follow the playbook in
.ai/skills/add-package-feature/SKILL.md end-to-end before opening the
PR.
How can I help you explore Laravel packages today?