tlehmantlehmanCommunityยท1 Agent Skills Included

litprog-skill

Turn codebases into readable literate programs and PDFs

Transforms codebases into literate programs that weave prose, diagrams, and code into a single readable document. Extracts runnable source files from the document and syncs edits back automatically, eliminating stale documentation. Generates polished PDFs via Pandoc for onboarding, code reviews, and knowledge transfer.
npx skills add tlehman/litprog-skill --all -g -y
Available:

Explains to the AI agent how the literate programming skill is structured, which tangle and weave commands to run, and how the reverse-sync hook keeps documents and source files consistent.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install litprog-skill?โ–ผ

Run `npx skills add tlehman/litprog-skill --all -g -y` in your terminal to install the skill globally.

What is literate programming?โ–ผ

It is an approach created by Donald Knuth where code is written as a narrative document for humans, which can also generate the runnable source files and a formatted PDF.

How do I create a literate program from my codebase?โ–ผ

Run the /literate-programming command in Claude Code and it will analyze your code, plan a narrative order, and produce a .lit.md file with prose, diagrams, and named code chunks.

What happens if I edit source files directly?โ–ผ

A PostToolUse hook detects the edit and automatically syncs the change back into the .lit.md file, keeping it as the single source of truth.

How do I generate a PDF from a literate program?โ–ผ

Run the weave command with Pandoc, xelatex, and mermaid-filter installed, or simply run /literate-programming again on an existing .lit.md file.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’