بنقرة واحدة
generate-and-test
Generate parser from grammar.js, run all tests, and verify spec files parse cleanly
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate parser from grammar.js, run all tests, and verify spec files parse cleanly
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Add a new ShellSpec grammar rule with tests, following project conventions
Debug a ShellSpec parse failure by identifying ERROR nodes and tracing to grammar rules
Update highlights.scm to cover all grammar rules, detecting missing patterns
Run full pre-release validation - tests, spec parsing, highlight coverage, build
| name | generate-and-test |
| description | Generate parser from grammar.js, run all tests, and verify spec files parse cleanly |
Run the full grammar validation workflow:
Generate the parser from grammar.js:
npm run generate
If generation fails, stop and report the error.
Run all corpus tests:
npm test
All tests must pass (100% success rate required). If any fail, report which tests failed.
Verify real spec files parse without errors:
for f in test/spec/*.sh; do
errors=$(tree-sitter parse "$f" 2>&1 | grep -c ERROR || true)
if [ "$errors" -gt 0 ]; then
echo "ERRORS in $f: $errors"
tree-sitter parse "$f" 2>&1 | grep ERROR
fi
done
Report any spec files with parse errors.
Summary: Report total corpus tests passed, and spec file parse status.