hunk: Skill for Claude Code

.agents/skills/hunk-extensions/SKILL.md

hunk-extensions is a skill for Claude Code, Codex from modem-dev/hunk. It costs 105 tokens per session (255 once invoked), scanned A, original, MIT.

A reference for building Hunk extensions, which are small TypeScript, JavaScript, or JSX files that add behavior to the Hunk terminal diff viewer. It maps the available events, commands, panes, views, themes, and other extension interfaces.

In plain words
What is it for?
Use it to write, debug, or install extensions that customize reviewed files, panes, key bindings, dialogs, themes, syntax support, version-control backends, or lifecycle events.
Why use it?
It helps an agent find Hunk's exact extension APIs instead of guessing their names or behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is modem-dev/hunk's own configuration. It tells Claude Code and Codex how to work on hunk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hunk configures →

About the project

Hunk is a terminal application for reviewing code changes created by coding agents, with views for multi-file diffs, inline annotations, and Git-backed reviews. Developers use it to inspect, navigate, and approve changesets from the command line.

modem-dev/hunk · 9,709 stars · on GitHub · hunk.dev

Reuse

Borrowing it

Nothing to install: this file belongs to modem-dev/hunk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/modem-dev/hunk/main/.agents/skills/hunk-extensions/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/modem-dev/hunk

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hunk-extensions

README.md
[![agentmods](https://agentmods.dev/badge/skills/modem-dev/hunk/hunk-extensions/github.svg)](https://agentmods.dev/skills/modem-dev/hunk/hunk-extensions)
Your own site
<a href="https://agentmods.dev/skills/modem-dev/hunk/hunk-extensions"><img src="https://agentmods.dev/badge/skills/modem-dev/hunk/hunk-extensions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hunk-extensions

Your own site · 80×15
<a href="https://agentmods.dev/skills/modem-dev/hunk/hunk-extensions"><img src="https://agentmods.dev/badge/skills/modem-dev/hunk/hunk-extensions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.00255
Opus 5.5 $0.00042 $0.00102
Sonnet 5.5 $0.00021 $0.00051
Haiku 4.5 $0.00011 $0.00026

Measured 3d ago against content hash f1434bd2874a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hunk-extensions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/hunk-extensions/SKILL.md · 25 lines

What it actually says

hunk-extensions

This file is a pointer. The instructions live in the installed hunk CLI so they always match its version.

Before anything else, load them and follow them:

hunk skill show hunk-extensions

Hunk versions before 0.24 do not have hunk skill show. If it fails, print the bundled skill's path instead, then read that file and follow it:

hunk skill path hunk-extensions

If hunk is not on PATH, ask the user to install Hunk first: https://hunk.dev/docs/start/install/

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +6 lines f1434bd2874a
  2. 16d ago Changed · -337 lines f49de66dd4a4
  3. 29d ago Changed · +2 lines 26fa2c2403a9
  4. 1mo ago Changed · +6 lines 03893d1df2ff
  5. 1mo ago Changed · +12 lines ce8fd0ba1101
  6. 1mo ago Changed · +5 lines 1c12916d976b
  7. 1mo ago Changed 01cff1732e24
  8. 1mo ago Changed 5f263af71b26
  9. 1mo ago Changed 493984970fc7
  10. 1mo ago First seen · 331 lines · 105 tokens per session scan A 811a4679598d

Subscribe to this mod's changes

hunk-extensions is a skill published in the GitHub repository modem-dev/hunk (9,709 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 255 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gh-find-prs

Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.

Hmbown/CodeWhale · 27 tokens

github

Skill "github" from Hmbown/Codewhale, covering github, when to use, setup, workflow and non-goals.

Hmbown/Codewhale · 0 tokens

revdiff

Review diffs, files, and documents with inline annotations in a TUI overlay, or answer questions about revdiff usage, configuration, themes, and keybindings. Opens revdiff in agterm/tmux/zellij/herdr/kitty/wezterm/cmux/ghostty/iterm2/emacs-vterm, captures annotations, and addresses them. Works in git, hg, and jj repos…

umputun/revdiff · 248 tokens

agent-debug-ci

Investigate failed scheduled or nightly GitHub Actions runs on the default branch, determine whether the failure is reproducible and repository-owned, implement the smallest evidence-backed fix, validate it, and open a pull request. Use when a failed nightly CI event starts an agent, or when the standard CI or…

NVIDIA/elements · 80 tokens

shadow-verify

Dispatch a parallel adversarial verifier wave after any high-stakes sub-agent investigation (code reviews, audits, findings reports, large refactors, gap analyses) — or whenever a sub-agent asserts a claim with high-confidence language, since confidence is a trigger, not a verdict. Use when sub-agent output will drive…

griffinwork40/agent-afk · 78 tokens

fix-pr

One-verb pipeline for the operator's highest-frequency manual loop: fetch a PR's unresolved reviewer feedback (inline review comments, review-summary bodies, and issue-level conversation comments) and failing CI checks, triage each issue via parallel read-only probes, fix the validated items in an isolated managed…

griffinwork40/agent-afk · 180 tokens