Debug spec map

From jordanhubbard/literate-ai · View interactive version

Debug spec map is an AI agent skill from the GitHub repository jordanhubbard/literate-ai. Debug spec-to-source mapping anchors. Use when Literate AI --debug is on during generation so public entrypoints and specified behavior blocks carry litai:spec PATH:LINE comments.

How to use this skill

Skill file

Debug spec-to-source mapping

When debug instrumentation is requested, place a litai:spec PATH:LINE [kind]

anchor in a language comment immediately above each public entrypoint and each

specified behavior block. PATH is the Component-relative specification file

(for example samples/hello-component/component.md). LINE is the 1-based line

of the requirement in that file, copied from the specification in this prompt.

kind is entrypoint, behavior, or error. Do not invent line numbers for

generated code — the framework scanner records those. Do not print these maps

on standard output; the product JSON result stays on stdout. Runtime tracing

is env-gated (LITAI_DEBUG) and belongs on stderr only.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.