Skip to content
Eval Gap Finder logo

Eval Gap Finder

Find AILANG vs Python eval gaps and improve prompts/language. Use when user says 'find eval gaps', 'analyze benchmark failures', 'close Python-AILANG gap', or after running evals.

SKILL.md

Full skill instructions

Eval Gap Finder

Automates the process of finding and closing the gap between Python and AILANG benchmark success rates. Identifies language limitations, prompt gaps, and missing stdlib functions.

Quick Start

Most common usage:

# User says: "Find eval gaps" or "Analyze benchmark failures"
# This skill will:
# 1. Run evals with dev models (gemini-3-flash, claude-haiku-4-5)
# 2. Compare Python vs AILANG success rates
# 3. Identify benchmarks where Python passes but AILANG fails
# 4. Analyze error patterns and categorize them
# 5. Check if gaps are documented in prompt
# 6. Test proposed examples and add to prompt
# 7. Create design docs for language limitations

When to Use This Skill

Invoke this skill when:

  • User asks to "find eval gaps" or "close the Python-AILANG gap"
  • User wants to analyze benchmark failures
  • After running evals and seeing lower AILANG success
  • User says "why is AILANG failing?" or "improve AILANG benchmarks"
  • User wants to identify language limitations

Available Scripts

scripts/​run_gap_analysis.sh [eval_dir]

Run full gap analysis on eval results.

.claude/​skills/​eval-gap-finder/​scripts/​run_gap_analysis.sh eval_results/​v0.6.5

scripts/​identify_python_only.sh <eval_dir>

List benchmarks where Python passes but AILANG fails.

.claude/​skills/​eval-gap-finder/​scripts/​identify_python_only.sh eval_results/​v0.6.5

scripts/​categorize_errors.sh <eval_dir>

Categorize AILANG failures by error type.

.claude/​skills/​eval-gap-finder/​scripts/​categorize_errors.sh eval_results/​v0.6.5

scripts/​test_example.sh <code>

Test if an AILANG code example compiles and runs correctly.

.claude/​skills/​eval-gap-finder/​scripts/​test_example.sh /​tmp/​test.ail

Workflow

1. Run Evals with Dev Models

ailang eval-suite --models gemini-3-flash,claude-haiku-4-5 --output eval_results/​gap-analysis

Target: Run with cheap/​fast models first. If they succeed, larger models should too.

2. Generate Summary and Identify Gaps

ailang eval-summary eval_results/​gap-analysis
.claude/​skills/​eval-gap-finder/​scripts/​identify_python_only.sh eval_results/​gap-analysis

Key metrics:

  • AILANG success rate (target: >70%)
  • Python success rate (baseline)
  • Gap (python_only benchmarks)

3. Analyze Error Patterns

For each Python-only pass, categorize the error:

CategoryPatternFix Approach
WRONG_LANGModel wrote Python syntaxStronger "NOT Python" in prompt
PAR_001Parse errors (syntax)Add more examples to prompt
Type errorsType unification failuresMay be language limitation
Logic errorsCompiles but wrong outputBetter examples or algorithm
EOF errorsIncomplete code generationModel limitation, not prompt

4. Check Prompt Coverage

For each gap, check if the pattern is documented:

grep -n "pattern" prompts/​v0.6.5.md

If not documented, add:

  • Working example to Quick Reference section
  • Entry in "What AILANG Does NOT Have" table (if limitation)
  • New section if pattern is complex

5. Test Examples Before Adding

CRITICAL: Always test examples before adding to prompt!

cat > /​tmp/​test.ail << 'EOF'
module benchmark/​solution
-- Your example code here
EOF
ailang run --caps IO --entry main /​tmp/​test.ail

If example fails, it reveals a language gap - create a design doc instead.

6. Create Design Docs for Language Gaps

If testing reveals a language limitation:

  1. Create design doc: design_docs/​planned/​vX_Y_Z/​m-<feature>.md
  2. Document:
    • Minimal reproduction
    • Error message
    • Workaround (for prompt)
    • Proposed fix
  3. Add workaround to prompt with note

7. Track Improvement

After updates, re-run evals:

ailang eval-suite --models gemini-3-flash,claude-haiku-4-5 --output eval_results/​gap-analysis-v2

Compare:

  • Success rate improvement
  • Which benchmarks fixed
  • Any regressions

Error Categories Reference

ErrorMeaningFix
WRONG_LANGWrote Python insteadPrompt emphasis
PAR_001Parser errorSyntax examples
PAR_UNEXPECTED_TOKENWrong tokenSyntax examples
TC_*Type check errorType examples or design doc
"undefined variable"Missing import/​letrecDocument pattern
EOF errorsIncomplete codeModel limitation
logic_errorWrong outputAlgorithm examples

Resources

Gap Analysis Template

See resources/​gap_analysis_template.md for structured analysis format.

Common Patterns

See resources/​common_patterns.md for frequently encountered gaps.

Progressive Disclosure

This skill loads information progressively:

  1. Always loaded: This SKILL.md file (workflow overview)
  2. Execute as needed: Scripts in scripts/ directory
  3. Load on demand: Resources for templates and patterns

Notes

  • Always test examples before adding to prompt
  • Prefer fixing language over prompt workarounds
  • Track improvements with before/​after eval runs
  • Create design docs for language limitations
  • Update prompt hash in versions.json after changes

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View