cursor-skills-php
CURSOR-SKILLS rules for PHP (Laravel, Symfony, WordPress). PSR, Composer, security.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 23
- Forks
- 2
01 前言 Front Matter
- name
- cursor-skills-php
- version
- 0.1.0
- category
- language
- description
- CURSOR-SKILLS rules for PHP (Laravel, Symfony, WordPress). PSR, Composer, security.
03 SKILL.md 正文
CURSOR-SKILLS - PHP
Source: cursor-skills/php
CURSOR setup
- PHP Intelephense, PHP Debug (Xdebug), PHP DocBlocker, Composer.
- Laravel Blade / Symfony / WordPress snippets per project.
Typical structure
project/
├── app/ ├── config/ ├── public/ ├── resources/
├── tests/ ├── vendor/ ├── composer.json ├── composer.lock └── .env
Required standards
- PSR: PSR-1, PSR-2/PSR-12, PSR-4 (autoload).
- Composer: always for deps;
composer.lock; autoload; separate dev deps. - Tools: PHP CS Fixer, PHPStan, PHPUnit, Xdebug.
By framework
- Laravel: Artisan, Eloquent, MVC, middleware, validation, PHPUnit, Laravel security.
- Symfony: Bundles, services, DI, PHPUnit, Symfony security.
- WordPress: Coding standards, hooks/filters, plugin/theme architecture, WP tests.
Code and documentation
- PHPDoc on classes and methods; comments on complex logic; README and API docs.
Security
- Validate and sanitize inputs; prepared statements; CSRF; secure auth; OWASP; password hashing; HTTPS.
DB
- Normalization, indexes, FKs, naming conventions; prepared statements; avoid N+1; transactions.
REST APIs (in PHP)
- REST, correct HTTP codes, versioning, JSON; auth, rate limit, CORS, HTTPS.
04 同仓库更多 Skills
docs-repo
Docs & Repo skill. Invoke via docs-repo agent or when updating README/ADRs; do not auto-load.
dashboard-broadcast
/dashboard-broadcast notes and troubleshooting table (port allocation, log path, detach lessons, common failure symptoms). Invoke via the command's own link; do not auto-load.
qa
Playbook for /qa. Verify a release or bug against CHANGELOG claims, install journey, tests, and hygiene. Invoke via /qa; do not auto-load.
plan-review-triage
Triage plan monitor findings. Select untriaged targets, summarize open residuals, and persist durable triage headings. Invoke via /plan-review-triage; do not auto-load.
plan-external-review
Arm external Claude reviewer for plan audits with autonomous background PTY spawn and freshness-gated wait. Invoke via /plan-external-review; do not auto-load.
hitl-gates
Agent Kit HITL contract, exact Ask questions labels, and numbered-list fallback as path 1. Use when running /start-project, /run-plan, /run-plan-all, /continue-plan, /git-prod, backlog CRUD, /hotfix, /qa, /plan-review-triage, install, or onboard, or when Ask questions is missing. Factory landing wraps /kit-staging and /kit-prod keep their own command-file Asks; they are not consumer default-path inventory. Invoke via the command's own link; do not auto-load.