Type Inference Engine

SkillAI & models

Implement and test type inference algorithms including Algorithm W and constraint-based inference

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Type Inference Engine skill

What this skill tells your AI

The instructions your AI receives, as published by a5c-ai/babysitter in library/specializations/domains/science/computer-science/skills/type-inference-engine/SKILL.md and read by ahel’s review.

Purpose

Provides expert guidance on implementing type inference algorithms for programming language implementations.

Capabilities

  • Algorithm W implementation
  • Constraint generation and solving
  • Unification with occurs check
  • Let-polymorphism (Hindley-Milner)
  • Principal type computation
  • Type error diagnosis

Usage Guidelines

  1. Constraint Generation: Generate type constraints from expressions
  2. Unification: Implement unification algorithm
  3. Generalization: Handle let-polymorphism
  4. Error Messages: Generate informative type errors
  5. Testing: Validate inference on test cases

Tools/Libraries

  • Language workbenches
  • Constraint solvers
  • Type inference libraries

Signals

GitHub stars
2k
Forks
112
Last commit
Sep 2026
Advanced
Item type
skill
Key
type-inference-engine
Source
github.com/a5c-ai/babysitter