一键导入
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.