Back to directory

agenthatch

A tool that compiles a SKILL.md file into a standalone, runnable Python AI agent instead of loading it as a prompt, addressing context isolation, validation and scaling problems with treating skills as loose instructions.

agenthatch

agenthatch treats a SKILL.md file as source code rather than a prompt that an agent interprets at runtime. It parses the skill, runs it through a multi-stage large-language-model pipeline, and generates code with a templating engine, producing a self-contained Python package with its own pyproject.toml, a command-line entry point, typed tool definitions, Model Context Protocol integration and a runtime configuration.

The stated goal is to fix problems the author attributes to markdown-based skills used across tools such as Claude Code, Codex CLI and OpenClaw: skills leaking context into each other, agents skimming rather than following long instructions closely, every loaded skill consuming context-window tokens even when unused, no validation of tool names or parameters before runtime, and instructions becoming unmanageable as the number of skills grows.

It is installed with pip, initialized with a chosen LLM provider, and is written in Python and released under the MIT license.

More in Agent skills

See all 581
  • Provenance gate

    github.com

    A deterministic authorization gateway that sits between an AI agent and its tools, tracing where each parameter of a side-effect call came from, and blocking the call or asking a human when the source does not check out.

  • A markdown framework of system rules that restates Isaac Asimov's Four Laws of Robotics as a set of prioritized loss calculations for large-language-model agents to follow, published as a discovery file for agents and crawlers to read.

  • Vitruvius

    github.com

    An engineering research agent that runs a discover, read, synthesize, verify and review loop over technical questions, reading sources directly rather than inferring from titles, and publishing its own scored verifier benchmark, weaknesses included.