Agent skill

Literate Programming

by Habitat-Thinking in Habitat-Thinking/ai-literacy-superpowers

A skill your agent uses when creating new source files, writing new functions or types, or significantly rewriting existing code — ensures code is structured for humans to read first, with narrative…

Custom licenceAuto-check passed

Install Literate Programming

skills CLI
$ npx skills add Habitat-Thinking/ai-literacy-superpowers --skill literate-programming -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Habitat-Thinking/ai-literacy-superpowers literate-programming --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Habitat-Thinking/ai-literacy-superpowers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ai-literacy-superpowers/skills/literate-programming .claude/skills/literate-programming && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
literate-programming
GitHub stars
114
Token cost
~1.7k tokens
SKILL.md length
741 words
Files
1
Skills in repo
42
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when creating new source files, writing new functions or types, or significantly rewriting existing code — ensures code is structured for humans to read first, with narrative…

  • Works in 5 steps: Every file opens with a narrative preamble → Documentation explains reasoning, not… → Order of presentation follows logical… → …
  • Creating new source files
  • SKILL.md covers Overview, The Five Rules, Quick Reference and Common Rationalizations, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Literate Programming is an agent skill from Habitat-Thinking/ai-literacy-superpowers. Use when creating new source files, writing new functions or types, or significantly rewriting existing code — ensures code is structured for humans to read first, with narrative preambles, reasoning-based documentation, and presentation ordered by understanding rather than compiler convention

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A set of Claude Code and GitHub Copilot plugins providing the AI Literacy framework's complete development workflow — harness engineering, agent orchestration, literate….

When your agent uses it

  • Creating new source files
  • Writing new functions
  • Significantly rewriting existing code — ensures code is structured for humans to read first
  • With narrative preambles

Example prompts

  • “/literate-programming”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Every file opens with a narrative preamble
  2. Documentation explains reasoning, not signatures
  3. Order of presentation follows logical understanding
  4. Each file has one clearly stated concern
  5. Comments explain WHY, not WHAT

What it can do on your machine

Read from SKILL.md and the folder at commit 9d35995. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are go).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Literate Programming loads about 1.7k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 741 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 741 words (~1,672 tokens).

“Don Knuth's core insight: code is written for humans to read, and only incidentally for machines to execute. This skill applies a pragmatic version of that principle — not Knuth's web/tangle toolchain, but the discipline of writing code whose structure…”

— opening of SKILL.md by Habitat-Thinking, Custom licence
name
literate-programming

Read the full SKILL.md on GitHub

Files

Just SKILL.md in ai-literacy-superpowers/skills/literate-programming of Habitat-Thinking/ai-literacy-superpowers.

Open the folder on GitHubat commit 9d35995

Compare with similar skills

Literate Programming next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Literate Programming compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Literate Programming this skillHabitat-Thinking/ai-literacy-superpowers114—~1.7kAutomated safety check: PassCustom licence
142 Java Functional Programmingjabrena/plinth446—~1.1kAutomated safety check: PassApache-2.0
Azure Functionsdavila7/claude-code-templates32k2 repos~344Automated safety check: PassMIT
Neon Functionssickn33/agentic-awesome-skills47k1 repos~8.6kAutomated safety check: NotesApache-2.0
GCP Cloud Functionssickn33/agentic-awesome-skills47k2 repos~2.3kAutomated safety check: PassMIT
Strict Programming Practicescode-yeongyu/oh-my-openagent70k—~9.5kAutomated safety check: PassCustom licence

Similar skills

  • A skill your agent uses when you need to apply functional programming principles in Java — including writing immutable objects and Records, pure functions, functional interfaces, lambda expressions…

    446 GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Azure Functions

    davila7/claude-code-templates

    Expert patterns for Azure Functions development including isolated worker model, Durable Functions orchestration, cold start optimization, and production patterns.

    32k GitHub starsUsed in 2 repos~344 tokens
    Backend & APIsAuto-check passed
  • Neon Functions

    sickn33/agentic-awesome-skills

    Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASEURL injected automatically and compute that runs next to your data.

    47k GitHub starsUsed in 1 repo~8.6k tokens
    Backend & APIsAuto-check: notes
  • GCP Cloud Functions

    sickn33/agentic-awesome-skills

    Deploy serverless functions on Google Cloud Functions. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~2.3k tokens
    Backend & APIsAuto-check passed
  • Strict Programming Practices

    code-yeongyu/oh-my-openagent

    Applies strict, type-first coding rules for Python, Rust, TypeScript and Go, loading the matching language reference before the agent writes or edits any code.

    70k GitHub stars~9.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Referral Program

    alirezarezvani/claude-skills

    When the user wants to design, launch, or optimize a referral or affiliate program.

    28k GitHub stars~3.4k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed

More from Habitat-Thinking/ai-literacy-superpowers

All 42 skills in this repo
  • Advocatus Diaboli

    Habitat-Thinking/ai-literacy-superpowers

    A skill your agent uses when acting as the adversarial spec reviewer — raises steel-manned objections across six categories before plan approval, requires evidence per objection, and discloses what…

    114 GitHub stars~4.2k tokensUpdated 17 days ago
    Auto-check passed
  • AI Literacy Assessment

    Habitat-Thinking/ai-literacy-superpowers

    This skill should be used when the user asks to "assess AI literacy", "run an assessment", "check literacy level", "evaluate our AI collaboration", "where are we on the framework", or wants to…

    114 GitHub stars~3.7k tokensUpdated 17 days ago
    Auto-check passed
  • Carpaccio

    Habitat-Thinking/ai-literacy-superpowers

    A skill your agent uses when acting as the cadence governor — slices a raw task description into thin, end-to-end-complete pieces before any spec is written; produces a structured slicing record for…

    114 GitHub stars~1.8k tokensUpdated 17 days ago
    Auto-check passed
  • Choice Cartographer

    Habitat-Thinking/ai-literacy-superpowers

    A skill your agent uses when acting as the decision-archaeology agent — surfaces decisions a spec has made (including the silent ones), emits each material choice as a Henney-style pattern story for…

    114 GitHub stars~4.1k tokensUpdated 17 days ago
    Auto-check passed
  • Constraint Design

    Habitat-Thinking/ai-literacy-superpowers

    This skill should be used when the user asks to "add a constraint", "design a constraint", "write a harness rule", "choose enforcement type", "promote a constraint", "configure a verification slot"…

    114 GitHub stars~1.8k tokensUpdated 17 days ago
    Auto-check passed
  • Cost Tracking

    Habitat-Thinking/ai-literacy-superpowers

    A skill your agent uses when the user wants to capture AI tool costs, review spending trends, set cost budgets, or integrate cost data into health snapshots — guides quarterly cost capture, records…

    114 GitHub stars~1.7k tokensUpdated 17 days ago
    Auto-check passed

Questions about Literate Programming

What does Literate Programming do?

A skill your agent uses when creating new source files, writing new functions or types, or significantly rewriting existing code — ensures code is structured for humans to read first, with narrative…. Literate Programming is an agent skill from Habitat-Thinking/ai-literacy-superpowers.

When should I use Literate Programming?

Literate Programming fits situations like: creating new source files; writing new functions; significantly rewriting existing code — ensures code is structured for humans to read first; with narrative preambles.

How do I install Literate Programming in Claude Code?

Run `npx skills add Habitat-Thinking/ai-literacy-superpowers --skill literate-programming -a claude-code`. Or copy the skill folder (ai-literacy-superpowers/skills/literate-programming in Habitat-Thinking/ai-literacy-superpowers) into .claude/skills/literate-programming in your project. Claude Code loads it when a task matches its description.

How do I install Literate Programming in Codex?

Run `npx skills add Habitat-Thinking/ai-literacy-superpowers --skill literate-programming -a codex`. Or copy the skill folder (ai-literacy-superpowers/skills/literate-programming in Habitat-Thinking/ai-literacy-superpowers) into .agents/skills/literate-programming in your project. Codex loads it when a task matches its description.

Can I use Literate Programming in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Habitat-Thinking/ai-literacy-superpowers --skill literate-programming -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/literate-programming, .gemini/skills/literate-programming, .github/skills/literate-programming and .opencode/skills/literate-programming in your project.

What does Literate Programming need to run?

SKILL.md names no scripts, command-line tools or credentials: Literate Programming is instructions for the agent only.

Does Literate Programming access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Literate Programming safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Literate Programming use?

Literate Programming has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Literate Programming use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Literate Programming?

Skills that share tags, products or a category with Literate Programming: 142 Java Functional Programming (jabrena/plinth, 446 stars), Azure Functions (davila7/claude-code-templates, 32k stars), Neon Functions (sickn33/agentic-awesome-skills, 47k stars) and GCP Cloud Functions (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Literate Programming?

Habitat-Thinking (a GitHub organization) maintains it in Habitat-Thinking/ai-literacy-superpowers, which has 114 GitHub stars. The repository holds 42 skills in this directory. The repository was last updated on September 20, 2026.

Source: Habitat-Thinking/ai-literacy-superpowers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.