Hook Development for Claude Code Plugins
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
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.
$ npx skills add meain/dotfiles --skill literate-org -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install meain/dotfiles literate-org --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "literate-org" agent skill from https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-org into .claude/skills/literate-org/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "literate-org", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-orgType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add meain/dotfiles --skill literate-org -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install meain/dotfiles literate-org --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/meain/dotfiles.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agents/.agents/skills/literate-org .agents/skills/literate-org && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "literate-org" agent skill from https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-org into .agents/skills/literate-org/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "literate-org", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add meain/dotfiles --skill literate-org -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install meain/dotfiles literate-org --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/meain/dotfiles.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agents/.agents/skills/literate-org .cursor/skills/literate-org && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "literate-org" agent skill from https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-org into .cursor/skills/literate-org/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "literate-org", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/meain/dotfiles.git --path agents/.agents/skills/literate-org--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add meain/dotfiles --skill literate-org -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install meain/dotfiles literate-org --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/meain/dotfiles.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agents/.agents/skills/literate-org .gemini/skills/literate-org && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "literate-org" agent skill from https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-org into .gemini/skills/literate-org/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "literate-org", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install meain/dotfiles literate-orgInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add meain/dotfiles --skill literate-org -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/meain/dotfiles.git skills-src && mkdir -p .github/skills && cp -r skills-src/agents/.agents/skills/literate-org .github/skills/literate-org && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "literate-org" agent skill from https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-org into .github/skills/literate-org/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "literate-org", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add meain/dotfiles --skill literate-org -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install meain/dotfiles literate-org --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/meain/dotfiles.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agents/.agents/skills/literate-org .opencode/skills/literate-org && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "literate-org" agent skill from https://github.com/meain/dotfiles/tree/master/agents/.agents/skills/literate-org into .opencode/skills/literate-org/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "literate-org", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
literate-orgCreate 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. 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.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 3e336e2. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
jqFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from meain/dotfiles at commit 3e336e2, republished under its MIT licence (© meain). 574 words, ~1,195 tokens.
.claude/skills/literate-org/SKILL.md (or your agent's skills folder).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.
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.
Write the org file to /tmp/<topic>.org (never the repo root) with this
shape:
#+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_srcOpen it non-blocking in the user's running Emacs:
emacsclient --no-wait /tmp/<topic>.orgdangerouslyDisableSandbox: true — emacsclient connects to a Unix
socket and the sandbox blocks it.edit-in-emacs): the user runs the
blocks themselves; nothing is returned to the agent.: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>/....cd) between blocks.#+name: <slug> and make it print only the bare
value (e.g. ... | jq -r '.Tables[0].Rows[][0]').: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:]').: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.* or #+ inside a
src block must be prefixed with a comma (,*, ,#+). Inline verbatim in
prose uses =text= or ~text~, not backticks.$, backticks, and
" inside queries survive; escape literal backticks in az --query JMESPath
as \[]`` only when the block itself uses double quotes.emacsclient reports can't find socket, tell the user and give the
file path instead; do not fall back to another editor unasked.© meain, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in agents/.agents/skills/literate-org of meain/dotfiles.
Open the folder on GitHubat commit 3e336e2
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Literate Org this skillmeain/dotfiles | 285 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 38k | 10 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Plugin Settings Patternanthropics/claude-plugins-official | 38k | 7 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Mole Bug Patternstw93/Mole | 70k | — | ~2k | Automated safety check: Pass | GPL-3.0 | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| E2Ecallstack/react-native-pager-view | 3.4k | 1 repos | ~2.1k | Automated safety check: Pass | MIT |
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
anthropics/claude-plugins-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.
tw93/Mole
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.
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.
callstack/react-native-pager-view
Agentic end-to-end tests with e2e, the e2e runner. An agent skill from callstack/react-native-pager-view.
automazeio/ccpm
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.
meain/dotfiles
Search past Claude Code and Codex sessions. An agent skill from meain/dotfiles.
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.
meain/dotfiles
Daily backlog management — full planning review OR add a single entry from a URL.
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…
meain/dotfiles
Generate a concise weekly status update in team format. An agent skill from meain/dotfiles.
meain/dotfiles
Search the web using lynx and DuckDuckGo. An agent skill from meain/dotfiles.
Works with
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.
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.
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.
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.
Going by SKILL.md and its folder, Literate Org needs the command-line tools its instructions call (jq).
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.
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.
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.
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.
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.
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.