원클릭으로
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.