
testing-js
โ 470by automattic ยท part of automattic/studio
Guidelines for checking JavaScript files for syntax errors
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
When to use me
Use this skill when validating JavaScript files for syntax errors. Do not use this skill for PHP validation.
Step 1: Identify JavaScript files
Find all JS files in the project, excluding node_modules/, build/, and dist/ directories:
find . -name "*.js" -not -path "*/node_modules/*" -not -path "*/build/*" -not -path "*/dist/*"Step 2: Check syntax
Use Node to check each JS file for syntax errors:
node --check <file>- A file with valid syntax exits 0 with no output.
- A file with syntax errors prints the error with line number and exits non-zero.
- Fix any syntax errors found by editing the file, then re-check.
Rules
- Syntax only: This skill checks for JavaScript syntax errors. Do not run ESLint 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
npx skills add https://github.com/automattic/studio --skill testing-jsRun this in your project โ your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under GPL-2.0โ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ