Claude Code skills for BEAR.Sunday framework development.
A collection of AI-powered skills that understand BEAR.Sunday's resource-oriented architecture. These skills help maintain code quality, generate boilerplate, and enforce framework conventions.
Comprehensive code quality evaluation using PHPMD metrics and BEAR.Sunday-specific patterns.
| Category | Checks |
|---|---|
| Metrics | Cyclomatic Complexity, NPath, Parameters, Fields |
| Resource Design | Embed usage, body assignment, loop delegation |
| DI | Constructor injection, trait prohibition, Provider overuse |
| REST | 201 + Location header, HTTP status codes |
| Type Safety | Exception design, DateTime immutability |
SQL performance analysis using Koriym.SqlQuality.
- Full table scan detection
- Inefficient JOIN analysis
- Index invalidation warnings
Generate complete resource sets from specifications or ALPS profiles.
Specification → Migration + Query/Command + SQL + Entity + Resource + JsonSchema + Tests
Auto-generate PHPDoc for constant classes with confidence levels.
Auto-generate PHPDoc for Resource classes based on REST semantics.
Convert #[Named('string')] to type-safe #[Qualifier] attributes.
// Before
#[Named('api_endpoint')] string $endpoint
// After
#[ApiEndpoint] string $endpointBulk convert ResourceObject return types to static.
Add #[Link] attributes and generate HyperMedia tests expressing use cases as workflows.
Analyze resources and apply appropriate cache attributes (#[Cacheable], #[DonutCache], TTL).
Generate smoke test dataProvider covering all resource endpoints.
Set up BEAR.Security with SAST, AI Auditor, and GitHub Actions.
Pre-deployment comprehensive check covering compile, security, performance, quality, and configuration.
✅ Compile - bear.compile + runtime bindings (Ray.MediaQuery Entity, etc.)
✅ Security - SAST, hardcoded credentials, env settings
✅ Performance - Cache attributes, SQL quality, N+1 detection
✅ Quality - Static analysis, tests, coverage
✅ Dependencies - composer audit, lock file
✅ Configuration - Context, environment variables
# Copy skills to your project
cp -r .claude/skills/ /path/to/your/project/.claude/skills/- Claude Code CLI
- BEAR.Sunday project
MIT