Agent skill

Literate Org

by meain in meain/dotfiles

Create a literate org-mode document with executable bash source blocks (org-babel) so the user can re-run commands/queries themselves in Emacs, then open it via emacsclient.

MITAuto-check passed

Install Literate Org

skills CLI
$ npx skills add meain/dotfiles --skill literate-org -a claude-code

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

GitHub CLI
$ gh skill install meain/dotfiles literate-org --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/meain/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/.agents/skills/literate-org .claude/skills/literate-org && 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-org
GitHub stars
285
Token cost
~1.2k tokens
SKILL.md length
574 words
Files
1
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

Create a literate org-mode document with executable bash source blocks (org-babel) so the user can re-run commands/queries themselves in Emacs, then open it via emacsclient.

  • Works in 3 steps: Collect the commands that support each… → Write the org file to /tmp/.org (never… → Open it non-blocking in the user's…
  • SKILL.md covers Workflow, Authoring rules and Notes
  • Calls jq

What it does

Literate Org is an agent skill from meain/dotfiles. Create a literate org-mode document with executable bash source blocks (org-babel) so the user can re-run commands/queries themselves in Emacs, then open it via emacsclient. Triggers: /literate-org, 'literate org document', 'org file with runnable blocks', 'org doc I can execute', 'make this verifiable in org', 'create an org document with executable commands'

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

It works with Bash. The repository describes itself as: If there is a shell, there is a way! The licence is MIT.

Example prompts

  • “literate org document”
  • “org file with runnable blocks”
  • “org doc I can execute”
  • “/literate-org”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Collect the commands that support each claim — shell commands, CLI
  2. Write the org file to /tmp/.org (never the repo root) with this
  3. Open it non-blocking in the user's running Emacs

What it can do on your machine

Read from SKILL.md and the folder at commit 3e336e2. 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

    Shell commands in SKILL.md call:

    • jq

    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 Org loads about 1.2k tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 574 words of instructions outside code blocks.

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

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

The full file from meain/dotfiles at commit 3e336e2, republished under its MIT licence (© meain). 574 words, ~1,195 tokens.

Download SKILL.mdSave it as .claude/skills/literate-org/SKILL.md (or your agent's skills folder).
name
literate-org
description
Create a literate org-mode document with executable bash source blocks (org-babel) so the user can re-run commands/queries themselves in Emacs, then open it via emacsclient. Triggers: /literate-org, 'literate org document', 'org file with runnable blocks', 'org doc I can execute', 'make this verifiable in org', 'create an org document with executable commands'
user_invocable
true

Literate Org Document

Use this skill when the user wants findings, verification steps, or a runbook packaged as an org-mode file where each command is an executable org-babel block they can run with C-c C-c in Emacs. Typical case: after an investigation, turn the evidence trail into a self-verifiable document.

Workflow

  1. Collect the commands that support each claim — shell commands, CLI queries (az, kubectl, ES|QL via a wrapper script, etc.). Only include commands that were actually run and worked during the session; this is a reproduction document, not a brainstorm.

  2. Write the org file to /tmp/<topic>.org (never the repo root) with this shape:

    org
    #+title: <One-line claim or task>
    #+date: <YYYY-MM-DD>
    #+property: header-args:bash :results output :exports both
    
    <Intro: the claim under test / purpose, prerequisites (sessions,
    VPN, credentials), and "run each block with C-c C-c".>
    
    * <Theme section>
    
    <One or two sentences: what this block shows and the expected outcome.>
    
    #+begin_src bash
    <command>
    #+end_src
  3. Open it non-blocking in the user's running Emacs:

    bash
    emacsclient --no-wait /tmp/<topic>.org
    • Use dangerouslyDisableSandbox: true — emacsclient connects to a Unix socket and the sandbox blocks it.
    • Non-blocking is correct here (unlike edit-in-emacs): the user runs the blocks themselves; nothing is returned to the agent.

Authoring rules

  • Prose before every block. State what the block demonstrates and what output to expect ("Expect: only two caller IPs; no third IP"). The reader should know whether a result confirms or refutes the claim without asking.
  • Plain headings, no numbering — sections by theme, unordered lists only.
  • :dir for cwd-dependent commands. If a script must run from a repo, set it per block: #+begin_src bash :dir ~/dev/<path>. Prefer ~/... over /Users/<name>/....
  • Self-contained blocks. Each block must run on its own — no reliance on shared shell state (env vars, cd) between blocks.
  • Chain values between blocks with org, don't make the user paste. When a downstream block needs a value a previous block produced (an operation id, a pod name, a resource id), wire it through org-babel instead of hardcoding:
    • Name the producer block #+name: <slug> and make it print only the bare value (e.g. ... | jq -r '.Tables[0].Rows[][0]').
    • Consume it with a :var header: #+begin_src bash :var X=<slug>. Sanitize on the way in, since the value may carry a trailing newline: ID=$(printf '%s' "$X" | tr -d '[:space:]').
    • Caveat — resolving a :var that points at a src block re-executes that block. So only chain this way when the producer is idempotent and cheap (a read, or an idempotent write like an .set-or-append no-op). State the re-run in prose ("resolving this var re-runs <slug>; it's idempotent"). If the producer is expensive or has side effects, fall back to hardcoding the observed value and saying in prose how to refresh it.
  • Org escaping inside blocks: any line starting with * or #+ inside a src block must be prefixed with a comma (,*, ,#+). Inline verbatim in prose uses =text= or ~text~, not backticks.
  • Quoting: prefer single-quoted command arguments so $, backticks, and " inside queries survive; escape literal backticks in az --query JMESPath as \[]`` only when the block itself uses double quotes.
  • Multi-line queries (ES|QL, KQL, SQL) go inside the block as a single-quoted argument to their runner CLI, formatted across lines for readability.
  • Caveats section. End with what could not be verified this way (permissions, expired sessions, needs kubectl/VPN) so absence of output isn't misread, plus a short conclusion/fix section if this documents an investigation.
Show full SKILL.md (71 more words)Show less

Notes

  • If emacsclient reports can't find socket, tell the user and give the file path instead; do not fall back to another editor unasked.
  • Do not reopen the file after later edits — a revert/refresh in Emacs picks them up; just tell the user the file changed.
  • This skill produces a document for the user to execute; do not run the blocks yourself after writing the file unless asked to sanity-check one.

© meain, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agents/.agents/skills/literate-org of meain/dotfiles.

Open the folder on GitHubat commit 3e336e2

Compare with similar skills

Literate Org 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 Org compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Literate Org this skillmeain/dotfiles285—~1.2kAutomated safety check: PassMIT
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Plugin Settings Patternanthropics/claude-plugins-official38k7 repos~3kAutomated safety check: PassApache-2.0
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
E2Ecallstack/react-native-pager-view3.4k1 repos~2.1kAutomated safety check: PassMIT

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    38k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • E2E

    callstack/react-native-pager-view

    Agentic end-to-end tests with e2e, the e2e runner. An agent skill from callstack/react-native-pager-view.

    3.4k GitHub starsUsed in 1 repo~2.1k tokens
    Testing & QAAuto-check passed
  • Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.

    8.4k GitHub stars~1.1k tokensUpdated 6 mo ago
    Product & Project ManagementAuto-check passed

More from meain/dotfiles

All 35 skills in this repo
  • Recall

    meain/dotfiles

    Search past Claude Code and Codex sessions. An agent skill from meain/dotfiles.

    285 GitHub starsUsed in 1 repo~684 tokens
    Auto-check passed
  • Grill With Docs

    meain/dotfiles

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise.

    285 GitHub starsUsed in 20 repos~875 tokens
    Auto-check passed
  • Backlog

    meain/dotfiles

    Daily backlog management — full planning review OR add a single entry from a URL.

    285 GitHub stars~3k tokensUpdated 2 days ago
    Auto-check passed
  • Concern Review

    meain/dotfiles

    Generate an interactive local HTML review page for a large PR or diff, grouping the changed files by logical concern (not just by file) so a reviewer can go through one theme at a time instead of a…

    285 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • My Weekly Report

    meain/dotfiles

    Generate a concise weekly status update in team format. An agent skill from meain/dotfiles.

    285 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Web Search

    meain/dotfiles

    Search the web using lynx and DuckDuckGo. An agent skill from meain/dotfiles.

    285 GitHub stars~830 tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Literate Org

What does Literate Org do?

Create a literate org-mode document with executable bash source blocks (org-babel) so the user can re-run commands/queries themselves in Emacs, then open it via emacsclient. Literate Org is an agent skill from meain/dotfiles. Create a literate org-mode document with executable bash source blocks (org-babel) so the user can re-run commands/queries themselves in Emacs, then open it via emacsclient.

How do I install Literate Org in Claude Code?

Run `npx skills add meain/dotfiles --skill literate-org -a claude-code`. Or copy the skill folder (agents/.agents/skills/literate-org in meain/dotfiles) into .claude/skills/literate-org in your project. Claude Code loads it when a task matches its description.

How do I install Literate Org in Codex?

Run `npx skills add meain/dotfiles --skill literate-org -a codex`. Or copy the skill folder (agents/.agents/skills/literate-org in meain/dotfiles) into .agents/skills/literate-org in your project. Codex loads it when a task matches its description.

Can I use Literate Org 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 meain/dotfiles --skill literate-org -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-org, .gemini/skills/literate-org, .github/skills/literate-org and .opencode/skills/literate-org in your project.

What does Literate Org need to run?

Going by SKILL.md and its folder, Literate Org needs the command-line tools its instructions call (jq).

Does Literate Org 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 Org 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 Org use?

Literate Org is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Literate Org use?

About 1.2k tokens (SKILL.md is roughly 4.8k 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 Org?

Skills that share tags, products or a category with Literate Org: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars), Mole Bug Patterns (tw93/Mole, 70k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Literate Org?

meain (a GitHub user) maintains it in meain/dotfiles, which has 285 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 8, 2026.

Source: meain/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.