
Description
Guidelines for running PHP linting to catch syntax errors
SKILL.md
When to use me
Use this skill when validating PHP files for syntax errors. Do not use this skill for JavaScript or CSS validation.
Step 1: Identify PHP files
Find all PHP files in the project, excluding vendor/, node_modules/, and build/ directories:
find . -name "*.php" -not -path "*/vendor/*" -not -path "*/node_modules/*" -not -path "*/build/*"
Step 2: Run PHP syntax check
Check each PHP file for syntax errors using php -l:
php -l <file>
- A file with valid syntax prints
No syntax errors detected in <file>and exits 0. - A file with syntax errors prints the error message with line number and exits non-zero.
- Fix any syntax errors found by editing the file, then re-run
php -lto confirm.
Rules
- Syntax only: This skill checks for PHP syntax errors. Do not run PHPCS or other coding standard tools.
- Max 3 cycles: Run at most 3 fix-then-retest cycles per file. If issues remain after 3 cycles, report them as unresolved.
- Never modify business logic: Only fix syntax errors. Do not change how the code works.
- Report format: After testing, report results as:
- PASS: No syntax errors
- FAIL: List remaining errors with file, line, and message
More skills from the data-liberation-agent repository
View all 21 skillsadapt
build platform adapters for content extraction
May 9AutomationData CleaningData EngineeringWordPresscompose-page-blocks
compose WordPress block markup from HTML
Jun 8Block EditorContent CreationHTMLWordPresscreating-blocks
create new WordPress blocks
Jun 8Block EditorFull Site EditingPlugin DevelopmentWordPresscreating-themes
create WordPress block themes
Jun 8Block EditorFull Site EditingThemesWordPressdesign-foundations
build design foundation JSON from sites
Jun 8Data ModelingDesignDesign SystemFrontenddesign-qa
run visual QA on WordPress themes
Jun 8QAScreenshotsTestingThemes +1
More from Automattic
View publisherannotate
collect visual feedback with browser annotation tools
studio
May 6FrontendProductivityUX CopyUX Designblock-content
write editable WordPress block markup
studio
May 27Block EditorCSSHTMLWordPresshosting-plans-helper
provide WordPress.com hosting plan information
studio
Jul 2PricingReferenceWordPressliberate
migrate websites to WordPress
studio
Jul 9CMSMigrationWeb DevelopmentWordPressneed-for-speed
run frontend performance audits for WordPress sites
studio
May 6AuditFrontendPerformanceWordPressplugin-recommendations
recommend WordPress plugins for site features
studio
May 27Content CreationPlugin DevelopmentWordPress