OpenParable
Skip to content
← Back to skills

Type Inference Engine

Development
type-inference-engine

Type Inference Engine is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/domains/science/computer-science/skills/type-inference-engine/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/type-inference-engine, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Type Inference Engine

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