You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: rewrite SKILL.md with imperative style per skill-creator guidelines
- Add "When X, consult Y" format for all 9 references
- Document 3 previously undocumented references:
- adapter-registry-pattern.md
- migration-strategies.md
- phpstan-compliance.md
- Add "Running Scripts" section with "To do X, run Y" format
- Organize references by category (PHP Features, Standards, Tools, etc.)
|`references/symfony-patterns.md`| Modern Symfony architecture |
19
+
### PHP Version Features
20
+
21
+
When implementing PHP 8.0-8.5 features (constructor promotion, readonly properties, enums, match expressions, attributes), consult `references/php8-features.md`.
22
+
23
+
### Standards Compliance
24
+
25
+
When ensuring PSR/PER compliance or configuring PHP-CS-Fixer with `@PER-CS`, consult `references/psr-per-compliance.md` for active PHP-FIG standards.
26
+
27
+
When configuring PHPStan levels or understanding level requirements, consult `references/phpstan-compliance.md` for level overview and production configuration.
28
+
29
+
### Static Analysis Tools
30
+
31
+
When setting up PHPStan, PHPat, Rector, or PHP-CS-Fixer, consult `references/static-analysis-tools.md` for configuration examples and integration patterns.
32
+
33
+
### Type Safety
34
+
35
+
When implementing type-safe code or migrating from arrays to DTOs, consult `references/type-safety.md` for type system strategies and best practices.
36
+
37
+
When creating request DTOs or handling safe integer conversion, consult `references/request-dtos.md` for DTO patterns and validation approaches.
38
+
39
+
### Architecture Patterns
40
+
41
+
When implementing adapter registry patterns for multiple external services, consult `references/adapter-registry-pattern.md` for dynamic adapter instantiation from database configuration.
42
+
43
+
When using Symfony DI, events, or modern framework patterns, consult `references/symfony-patterns.md` for architecture best practices.
44
+
45
+
### Migration Planning
46
+
47
+
When planning PHP version upgrades or modernization projects, consult `references/migration-strategies.md` for assessment phases, compatibility checks, and migration workflows.
48
+
49
+
## Running Scripts
50
+
51
+
### Project Verification
52
+
53
+
To verify a PHP project meets modernization requirements:
54
+
55
+
```bash
56
+
scripts/verify-php-project.sh /path/to/project
57
+
```
58
+
59
+
This script checks:
60
+
- PHPStan level compliance
61
+
- PHP-CS-Fixer configuration
62
+
- Type declaration coverage
63
+
- DTO usage patterns
27
64
28
65
## Required Tools
29
66
67
+
When setting up a modernized PHP project, ensure these tools are configured:
0 commit comments