ἡνία • rein, bridle
In Ancient Greek, ἡνία (hēnía) means "reins" or "bridle", used for driving horses or a chariot. Henia is the rein on an agent's harness.
From Proto-Indo-European *h₂em- ("to grasp"); akin to Latin ānsa ("handle")
Pronunciation: /hɛː.ní.a/ → /iˈni.a/
Henia keeps agent skills in hand. You write a skill once, in Markdown, and Henia compiles it for each harness that runs it: Claude Code, Codex, Gemini, Cursor, GitHub Copilot, OpenCode and others. Templates fill in what differs between them. Tool names, directive syntax, frontmatter keys and sidecar files change with the target, and the skill does not.
A harness lists only a few skills before its prompt fills up, so Henia also
serves skills at runtime. A project declares skill packages as dependencies,
and an agent reads any skill in that library on demand with henia show,
rendered for the agent that asks. henia query searches every skill at once,
slots let a project plug its own conventions into shared skills, and
henia lint checks the whole library with rules written as queries.
Phora does the fetching and pinning.
Reach for it when the same skills have to work in more than one harness, when there are more skills than a harness will list, or when several projects share skills but each needs its own house rules.
go install github.com/srnnkls/henia/cmd/henia@latestThis needs Go 1.26.5 or newer.
Download an archive from the releases page.
There are builds for macOS, Linux and Windows on x86_64 and arm64, each listed
with its SHA-256 in checksums.txt.
git clone https://github.com/srnnkls/henia && cd henia
go build -o henia ./cmd/heniaHenia fetches packages with Phora. It uses a phora on PATH, else downloads
the release it pins, once, and checks it against a checksum built into Henia.
Make a project and add Tropos, a public skill package, as a dependency:
$ mkdir notes && cd notes && git init -q
$ henia add tropos --git https://github.com/srnnkls/tropos
Synced 4 package(s) into …/henia/packages/notes-ebe0bd6cc160: gestalt, limen, loqui, troposTropos brings three packages of its own, so the library now holds 26 skills.
henia ls lists them. Read one section at a time:
$ henia show git#commits
## Commits
Conventional commit format, imperative and lowercase:
…
One logical change per commit; stage specific paths.Search all of them at once. Which skills do the others point to most?
$ henia query '(skill :id ?s) @t (skill :id (not ?s) (link :target ?s) @l)?
> (group @t (count @l @n))' --sort '-@n' --limit 3
@t review skill
@l 50 nodes
@n 50
@t peer skill
@l 29 nodes
@n 29
@t test skill
@l 15 nodes
@n 15
henia query: 3 of 26 rows shownEvery match carries an address that henia show reads:
$ henia query '(skill :id "git" (code :lang "bash" :contains "worktree add") @c)' --limit 1
@c git#quick-reference L138-142 code git worktree add ../feat-auth -b feat/auth
henia query: 1 of 3 rows shownWrite a skill in skills/, with a value and a
component, and name the harnesses it builds for:
mkdir -p skills/changelog .henia/components
cat > .henia/components/instruction.md <<'EOF'
---
form: container
attributes:
priority:
type: enum
values: [normal, high]
render: keep
---
EOF
cat > skills/changelog/SKILL.md <<'EOF'
---
name: changelog
description: Write a changelog entry for the change on this branch.
henia:
variables:
tone: plain
---
# Changelog entry
Read the diff with `!read`, then write one entry in a {{.tone}} voice.
:::instruction{priority=high}
Name what changed for the user, not how the code changed.
:::
EOF
cat >> henia.toml <<'EOF'
[harness.claude]
directives = "xml"
[harness.claude.tools]
read = "Read"
[harness.codex.tools]
read = "read_file"
EOFBuild for both harnesses. The library's skills build with yours, 27 skills twice:
$ henia build
Built 54 artifact(s) in .henia/build
$ sed -n '/^# /,$p' .henia/build/claude/skills/changelog/SKILL.md
# Changelog entry
Read the diff with `Read`, then write one entry in a plain voice.
<instruction priority="high">
Name what changed for the user, not how the code changed.
</instruction>
$ sed -n '/^# /,$p' .henia/build/codex/skills/changelog/SKILL.md
# Changelog entry
Read the diff with `read_file`, then write one entry in a plain voice.
:::instruction{priority="high"}
Name what changed for the user, not how the code changed.
:::Lint catches what would break once deployed:
$ printf '\nFollow the [house rules](reference/house-rules.md).\n' >> skills/changelog/SKILL.md
$ henia lint skills
skills/changelog/SKILL.md:17:13: warning [broken-link] local reference does not exist: reference/house-rules.mdThe example package shows nested directives, harness variables and OpenAI sidecar metadata in one skill:
henia build examples --config examples/henia.toml
henia lint examples --config examples/henia.toml --strict| Command | Does |
|---|---|
add |
declare a skill package dependency and fetch it |
rm |
remove a dependency and its files |
sync |
fetch the declared packages at their locked commits |
update |
move the declared packages to their latest commits |
install |
write the project build, or the global packages, into harness directories |
ls |
list the skills in the library |
show |
print a skill, section or resource, rendered for the caller |
query |
match patterns against every skill and its resources |
context |
print a skill's runtime context for a preload |
slots |
resolve who provides each slot |
preload |
run one of a skill's preloads under Henia's sandbox |
lint |
check metadata, references, structure and duplication |
build |
compile canonical skills for each harness |
henia <command> --help prints the details of any command.
| Term | Meaning |
|---|---|
| skill | a directory with a SKILL.md and its resources, written once for every harness |
| package | a tree of skills/ with the henia.toml that renders them |
| library | the project's own skills, its dependencies and the global packages |
| harness | an agent runtime such as Claude Code or Codex, with its own skill format |
| profile | how one harness's frontmatter, layout, sidecar and config files look |
| mode | per harness, whether a skill is compiled in whole (static), read on demand (dynamic) or both (hybrid) |
| slot | a named extension point a skill declares and other skills fill |
| preload | a command a skill runs when it loads, sandboxed by Henia |
| lint module | a Markdown file of lint rules written as queries, with examples that test them |
- Skill runtime: dependencies, the library,
show, preloads, skill modes and installing into harnesses. - Building: values, directives, build output and configuration.
- Components: declaring, calling and expanding
directives;
include,whenandhenia fmt. - henia query: the pattern language, also printed by
henia query --grammar. - Lint rules and paragraph similarity.
- Slots: types, priorities and lineage.
- Vendor profiles and the vendor contracts behind them.
- Phora integration: Henia as a Phora build hook.
mise run test # Go unit tests, then the Scrut suites in tests/
mise run test:unit # go test ./internal/... ./cmd/...
mise run test:integration # Scrut suites against a fresh build
mise run test:acceptance # live harness runs through claude -p and codex exec
go vet ./...The acceptance suites compose slots in real harnesses; see slots. Design notes live under specs/draft.
Benchmarks cover parsing, rendering, henia build and henia show over a
skill corpus, $HENIA_BENCH_CORPUS or ~/projects/tropos, and skip without
one:
go test -run '^$' -bench . -benchmem ./internal/markup ./internal/build ./internal/cli