jsturtevant/compilers-course/validation-scripts

Claude Code and agent skill by jsturtevant/compilers-course

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install jsturtevant/compilers-course/validation-scripts

SKILL.md

Skill: Validation Scripts

Confidence: high Domain: compiler phases, testing, CI

Pattern

Every compiler phase MUST have a corresponding validation script in scripts/ that:

  1. Runs the phase against ALL sample files in cool-support/examples/
  2. Requires any external validation tools (exits with error if missing)
  3. Reports pass/fail counts with colored output
  4. Exits with non-zero status if any sample fails

Script Naming Convention

scripts/run-{phase}-all.sh

Examples:

  • scripts/run-lexer-all.sh
  • scripts/run-parser-all.sh
  • scripts/run-semant-all.sh
  • scripts/run-codegen-all.sh

Required Script Structure

bash
#!/bin/bash
set -e
# Colors
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
# Require external tools (fail fast, don't warn)
if ! command -v {tool} &> /dev/null; then
echo -e "${RED}Error: {tool} not found. Install with: {install_cmd}${NC}"
exit 1
fi
# Build first
cargo build -p {crate} --quiet
# Run against all samples
PASSED=0
FAILED=0
for cl_file in cool-support/examples/*.cl; do
# ... run phase and validate ...
if [ success ]; then
echo -e "${GREEN}✓${NC} $filename"
PASSED=$((PASSED + 1))
else
echo -e "${RED}✗${NC} $filename"
FAILED=$((FAILED + 1))
fi
done
echo "Results: $PASSED passed, $FAILED failed"
if [ $FAILED -gt 0 ]; then
exit 1
fi

When to Create

Create a validation script when:

  • Implementing a new compiler phase
  • Adding a new crate that processes COOL source files
  • Before marking a phase as "complete"

When to Run

  • After implementing changes to a phase
  • Before committing code
  • In CI pipelines

Current Scripts

PhaseScriptExternal ToolValidates
Lexerrun-lexer-all.sh—Token output
Parserrun-parser-all.sh—AST structure
Semanticrun-semant-all.sh—Type checking
Codegenrun-codegen-all.shwasm-toolsWASM structure
Runtimerun-wasmtime-all.shwasmtimeWASM execution

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jsturtevant/compilers-course/validation-scripts/badge)](https://verified-skill.com/skills/jsturtevant/compilers-course/validation-scripts)

Something wrong with this skill or its page? Tell us.