Holochain Agent Skills
Agent skills for Holochain hApp development, built to the Agent Skills Open Standard so they work in Claude Code, opencode, GitHub Copilot, Cursor, Gemini CLI and every other tool that adopted the format. Pinned to Holochain 0.7, verified against a reference hApp that actually compiles.
Install
From the root of the project that should get the skill:
curl -fsSL https://raw.githubusercontent.com/Soushi888/holochain-agent-skills/main/install.sh | sh
install.sh is short; read it first if you like. It clones the current release into ~/.holochain-agent-skills (or moves that clone to the current release when it is already there), then runs the bundled installer.
The installer finds the agent harnesses the project uses (.claude, .cursor, .opencode, .gemini, .agents, and Copilot’s .github files) and links the skill into each of them (piped from curl, it has no terminal to ask on, so it never prompts).
Every project links to the one clone, so running the same line again after a new release updates them all.
It needs git, and Node 22.18 or later (which runs the TypeScript installer directly) or Bun; the script checks for both and says what is missing.
Options go after sh -s --: --global installs into your home directory instead of the project, --dry-run shows what it would do to the project (it still fetches the skill into ~/.holochain-agent-skills), --target claude,cursor picks harnesses, and --copy copies instead of linking.
curl -fsSL https://raw.githubusercontent.com/Soushi888/holochain-agent-skills/main/install.sh | sh -s -- --global
Restart your agent afterwards. Most harnesses read skills once, at startup. Then ask it anything about Holochain, or invoke it by name (/holochain in Claude Code).
On Windows, run it from Git Bash or WSL with --copy (a link needs Developer Mode there), or use the release archive below.
Other ways to install
The release archive, without git. Every release publishes the skill as an archive, with SHA256SUMS to verify it:
mkdir -p .claude/skills && curl -fsSL \
https://github.com/Soushi888/holochain-agent-skills/releases/download/v1.0.0-rc.2/holochain-agent-skills.tar.gz \
| tar -xz -C .claude/skills
Replace .claude/skills with your harness’s path if it differs (the table below lists them all). The archive’s root is one directory per skill, so the extraction lands skills/holochain/SKILL.md with no rename step.
Nix. Either take the source tree and point at the subdirectory:
inputs.holochain-agent-skills = {
url = "github:Soushi888/holochain-agent-skills/v1.0.0-rc.2";
flake = false;
};
# consume: "${inputs.holochain-agent-skills}/skills/holochain"
or use the flake, which also hands you the devShell glue:
inputs.holochain-agent-skills.url = "github:Soushi888/holochain-agent-skills/v1.0.0-rc.2";
# in your devShell:
shellHook = ''
${inputs.holochain-agent-skills.lib.mkSkillsHook {
inherit pkgs;
skills = [{
src = inputs.holochain-agent-skills.packages.${system}.holochain;
name = "holochain";
}];
}}
'';
packages.<system>.holochain is rooted at the skill itself, so ${it}/SKILL.md exists.
packages.<system>.default is the bundle, one directory per skill, matching the release
archive. mkSkillsHook writes into .claude/skills, .cursor/skills and .agents/skills
by default; pass targets to change that. It exists because every consumer writes the same
rsync glue and hits the same wall: Nix store paths are read-only and rsync -a preserves
that mode, so the second nix develop fails with a permission error. The hook passes
--chmod=u+w.
The same thing by hand. Without the script, clone the release once and run the installer from it:
git -c advice.detachedHead=false clone --depth 1 --branch v1.0.0-rc.2 https://github.com/Soushi888/holochain-agent-skills.git ~/.holochain-agent-skills
node ~/.holochain-agent-skills/scripts/install.ts install --link
node ~/.holochain-agent-skills/scripts/install.ts list prints every skill and every harness path it knows.
Pin a version. | HOLOCHAIN_SKILLS_VERSION=v1.0.0-rc.2 sh pins the script to a tag (any tag from v1.0.0-rc.1 on), and the archive URL names its tag, so pinning is just choosing the tag.
Release candidates are marked as prereleases, which means releases/latest/download skips
them: it keeps pointing at the last stable release until 1.0.0 ships.
If you pinned this repository before 1.0, the path changed. The repository root used to be
the skill, so glue that copied the root worked. It no longer does, and it fails silently: the
root now holds no SKILL.md at all, so a harness pointed at a copy of it finds no skill and
loads nothing, with no error to read. Append skills/holochain to whatever you pin:
# before 1.0
rsync -a --delete "${SRC}/" .claude/skills/holochain/
# 1.0 and later
rsync -a --delete "${SRC}/skills/holochain/" .claude/skills/holochain/
or drop the glue and use lib.mkSkillsHook above. The full breaking list is in
CHANGELOG.md.
Where it installs
The installer links or copies into the paths below; if you extract the archive instead, pick the path yourself.
Detection looks for each harness’s marker in the project root, or in $HOME with --global.
Exactly one found means that one is used; several found means an interactive choice when the installer has a terminal to ask on, and all of them otherwise; none found falls back to .claude/skills and .agents/skills.
| Harness | Project path | Global path |
|---|---|---|
| Claude Code | .claude/skills | ~/.claude/skills |
| Agent Skills (tool-agnostic) | .agents/skills | ~/.agents/skills |
| opencode | .opencode/skills | ~/.config/opencode/skills |
| GitHub Copilot | .github/skills | ~/.copilot/skills |
| Gemini CLI | .gemini/skills | ~/.gemini/skills |
| Cursor | .cursor/skills | ~/.cursor/skills |
The bundled installer never prompts without an interactive terminal, so an agent or a CI job can run it unattended.
What it covers
| Domain | Description |
|---|---|
| Architecture | Coordinator and integrity zome split, DNA structure, Cargo workspace, Nix dev environment, progenitor pattern, multi-DNA, private entries |
| Design | DHT data modeling, entry and link type design, discovery strategy, validation rules |
| Scaffold | Holonix setup, Nix flake, hc CLI, hc scaffold, new project and new domain workflows |
| Implement | Entry types, link types, CRUD, cross-zome calls, signals, validation, HDK 0.7 API |
| Test | Sweettest two-agent scenarios, await_consistency, update and delete patterns, inline zomes |
| Deploy | Kangaroo-Electron packaging, .webhapp bundling, CI/CD, versioning, auto-update |
Version pins: hdk = "=0.7.1" | hdi = "=0.8.1" | holonix ref=main-0.7
This release targets Holochain 0.7 only, and carries no 0.6 API content by design. On a 0.6
project it will actively mislead you. Use the v0.2.0 tag for 0.6, or the skill’s
UpgradeHolochain07 workflow to port.
Quick start
# Design a new data model
/holochain design data model for a marketplace listing with status transitions
# Scaffold a new hApp from scratch
/holochain scaffold new happ called my-network
# Implement a full CRUD zome
/holochain implement zome for Profile entry type
# Debug a flaky test
/holochain my Sweettest passes alone but fails when Bob reads Alice's entry
# Package for distribution
/holochain deploy package my happ for desktop distribution
Workflow triggers
| Say… | Triggers |
|---|---|
| “design data model”, “model entries”, “what entries” | DesignDataModel |
| “scaffold”, “new happ”, “new project”, “setup environment” | Scaffold |
| “implement zome”, “create zome”, “write zome” | ImplementZome |
| “design access control”, “cap grant”, “who can call” | DesignAccessControl |
| “upgrade to 0.7”, “port from 0.6”, “migrate hApp” | UpgradeHolochain07 |
| “deploy”, “package”, “webhapp”, “kangaroo” | PackageAndDeploy |
Ecosystem roadmap
v1 (current): the full development cycle. Architecture, design, scaffold, implement, test, deploy.
v2 (planned): ecosystem expansion, as further skills in this repository.
- hREA and ValueFlows
- holochain-open-dev patterns
- ADAM (coasys) integration
- unyt integration
v3 (vision): GUI and visual tooling. A visual DHT data model explorer, architecture diagram generation, progressive disclosure from junior to senior.
Repository layout
skills/ is the shipped payload. Everything else exists to build, validate, document and
release it, and never reaches an installed copy.
skills/holochain/ THE SKILL. Nothing outside this directory ships.
SKILL.md Entry point: routing table, context index, quick reference,
toolchain currency and companion-library tables
references/ Reference material, loaded on demand
architecture.md Coordinator/integrity split, DNA structure, workspace, Nix
progenitor.md Progenitor pattern, DNA properties, bootstrap founder
patterns.md Entry types, links, CRUD, validation, signals, HDK 0.7 API
scaffolding.md Holonix, Nix flake, hc CLI, hc scaffold
access-control.md Capability grants, cap claims, remote signals
membranes.md genesis_self_check, membrane proofs, gating who may join
cryptography.md App-level signing and encryption
scheduling.md Scheduled functions, persisted vs ephemeral
countersigning.md Atomic multi-agent commits
cell-cloning.md Partitioned data via clone cells
error-handling.md thiserror and WasmError patterns
source-chain.md query(), introspection, host functions, validation receipts
networking.md Kitsune2 and iroh, NetworkConfig, bootstrap and relay servers
testing.md Sweettest patterns, two-agent scenarios, E2E
wind-tunnel.md Performance and load testing
client.md @holochain/client, auth tokens, admin API, signals
deployment.md Kangaroo-Electron packaging and distribution
migration.md DNA migration and init properties
troubleshooting.md Literal error strings mapped to causes
debugging.md Logs, hc sandbox, hc-client, inspecting a live conductor
frameworks/ Svelte and Effect-TS integration
workflows/ Step-by-step guided sequences, routed from SKILL.md
example-happ/ A real, compiling 0.7 hApp: ground truth for every example
assets/templates/ Template files (flake.nix, manifests, zome sources, harness)
scripts/ validate-skill.sh, bump-versions.sh, check-versions.sh,
build-release-assets.sh, install.ts, eval/
nix/ skill.nix, mk-skills-hook.nix
docs/ Requirements, roadmap, testing matrix. Not part of the skill
AGENTS.md Install instructions addressed to an agent
Community
Questions, ideas, and reports on how the skill behaved on your project go to Discussions. While v1.0.0-rc.2 is a candidate, a field report is the most useful thing you can send, and the skill’s Feedback Mode lets your agent draft one when it catches the skill being wrong. Issues are for defects you can point at a file.
Contributing
Contributions welcome. Read CONTRIBUTING.md first; the short version is
that no API shape may be written from recall, and every Rust example must match something
that compiles in skills/holochain/references/example-happ/.
Before opening a pull request:
sh scripts/validate-skill.sh # structure, routing, links, pins, removed APIs
sh scripts/eval/run-eval.sh # routing regression floor
sh scripts/check-versions.sh # the four version declarations agree
When updating for a new Holochain release, run scripts/bump-versions.sh rather than
hand-editing pins, then run the validator to confirm nothing was missed. CI runs all three
gates plus a Nix build and an mdBook build on every push and pull request.
Documentation site
https://soushi888.github.io/holochain-agent-skills/
License
Apache-2.0