> php-tooling
PHP ecosystem tooling, dependency management, and static analysis. Use when managing Composer dependencies, running PHPStan, or configuring PHP build tools. (triggers: composer.json, composer, lock, phpstan, xdebug)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/php-tooling?format=md"PHP Tooling
Priority: P2 (MEDIUM)
Structure
project/
├── composer.json
├── phpstan.neon
└── .php-cs-fixer.php
Implementation Guidelines
- Composer Lock: Commit
composer.lockfor environment parity. - PSR-4: Strictly map namespaces to
src/andtests/. - Static Analysis: Integrate PHPStan (level 5+) in CI.
- Linting: Automate PSR-12 enforcement via PHP CS Fixer.
- Debugging: Use Xdebug for profiling; avoid
var_dump. - Scripts: Define
lint,analyze,testincomposer.json.
Anti-Patterns
- Manual Requires: No Manual Require: Rely on Composer autoload.
- Blind Updates: No Blind Updating: Review
composer.lockdiffs. - Production Debug: No Prod Xdebug: Disable debugging in live env.
- Vendor Commits: No Vendor Check-in: Exclude
vendor/from git.
Code
{
"autoload": {
"psr-4": { "App\\": "src/" }
},
"scripts": {
"analyze": "phpstan analyze"
}
}
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)