# Typing Rule Generator

> Typing Rule Generator 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.

Generate and format typing rules in inference rule notation for type system design

- Skill name: `typing-rule-generator`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/domains/science/computer-science/skills/typing-rule-generator/SKILL.md
- Repository: a5c-ai/babysitter (1,548 GitHub stars when collected)

## SKILL.md

# Typing Rule Generator

## Purpose

Provides expert guidance on generating typing rules for programming language design using formal inference rule notation.

## Capabilities

- LaTeX inference rule generation
- Syntax-directed rule derivation
- Typing derivation tree construction
- Rule dependency analysis
- Export to Ott/LNGen format
- Handle subtyping and polymorphism

## Usage Guidelines

1. **Syntax Definition**: Define language syntax formally
2. **Rule Design**: Design typing rules for each construct
3. **Derivation Trees**: Build typing derivation examples
4. **Formatting**: Generate publication-quality rules
5. **Export**: Export to mechanization tools

## Tools/Libraries

- LaTeX (mathpartir)
- Ott
- LNGen
- PLT Redex

---

Source: https://www.openparable.com/skill/development/typing-rule-generator (OpenParable). Cite the canonical URL above.
