Skills Aren't Docs: Meta-Programming LLMs to Generate Micro-Skills for Arbitrary Invoice Formats

karminski3 · x · 2026-09-14

Answering "how is a skill different from a well-written markdown doc?", the author argues docs are usually either code or data, while a skill makes code and data isomorphic. Instead of hardcoding extraction formats (which break on unseen layouts), he shows a meta-programming workflow: have the model analyze an invoice's layout topology, then dynamically generate a dedicated Micro-Skill — compiling deterministic fields to regex code, reserving ambiguous fields for LLM extraction with ultra-compact prompts, and generating Pydantic validation harnesses — so the skill never needs manual maintenance.

Original post →

More from coding & agent

coding & agent channel →