Soushi888/holochain-agent-skill: The AI Playbook for Not Breaking Holochain
A repo of workflows, rules, and version pins that teaches coding assistants where Holochain logic belongs, what must stay pure, and how to avoid the mistakes that usually surface only after a DHT is already live.
- This repo turns Holochain expertise into machine-readable guardrails for coding assistants, not just reference material.
- Its central move is routing intent through SKILL.md so the AI follows validated workflows instead of improvising.
- The strictest idea in the project is the integrity-versus-coordinator split, because wrong placement is where Holochain mistakes become expensive.
- Version pins, pure validation rules, and compatibility patterns make the skill read like a constraint engine for distributed systems.
Why this repo exists: AI needs guardrails in Holochain
Holochain is not a forgiving stack. The rules around determinism, validation, and zome boundaries are easy to blur, and a general-purpose assistant will happily blur them for you. This repo exists to stop that drift before it becomes a broken app or a live DHT full of avoidable mistakes.
Holochain Agent Skill A comprehensive Agent Skills Open Standard skill for Holochain hApp development, compatible with Claude Code, GitHub Copilot, Cursor, Augment, and any other tool supporting the standard.
The interesting part is not that it documents Holochain. It packages expertise into a format an AI tool can consume automatically, which makes the repo feel closer to a control system than a manual. In this stack, that difference matters.
The router in the middle: how SKILL.md decides what happens next
At the center is SKILL.md, which behaves like a dispatch layer. It detects the task, maps the intent to a workflow, and keeps the assistant from freewheeling across architecture, scaffolding, testing, and deployment.
| Intent | Workflow |
| --- | --- |
| Design data model | Architecture and Patterns |
| Review access control | AccessControl.md |
| Scaffold a project | Workflow scaffold |
| Check compatibility | Version and upgrade guidance |
That routing matters because AI assistants are good at recall and weak at judgment. A workflow table gives the model a preferred path, and the proactive invocation rule means the skill can enter the conversation before bad assumptions harden.
The real story is the split: integrity zomes are not coordinator zomes
This is the core Holochain boundary, and the repo treats it like a hard law. Integrity zomes are where pure validation lives. Coordinator zomes are where I/O, network calls, and agent-facing behavior belong. Mixing them is how you get code that looks plausible and behaves badly.
The point is not just architectural neatness. The point is consistency across a distributed network, where validation must be deterministic and repeatable. Once you see that split clearly, a lot of the repo’s rules start to feel less like linting and more like survival.
The repo encodes the mistakes people keep making
The guardrails are specific because the failure modes are specific. Exact version pins like =0.6.0 keep examples from drifting into incompatible APIs. serde(default) protects old data from breaking when schemas evolve. Pure validation keeps runtime calls out of logic that must remain deterministic.
| Rule | Why it exists | What breaks without it |
|---|---|---|
| Exact version pin | Locks examples to a known HDK and HDI pair | The assistant suggests code that compiles in the wrong release |
| serde(default) | Preserves backward compatibility for old entries | Older DHT data fails to deserialize |
| Pure validation | Keeps integrity logic deterministic | Validation becomes non-repeatable or non-consensus-safe |
| Capability grants | Bootstraps access in the right lifecycle step | Security logic gets scattered into ad hoc code |
// Example pattern the skill cares about
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct MyEntry {
#[serde(default)]
pub title: String,
pub body: String,
}
// The point: old entries still deserialize when fields are added later.
This is where the repo stops looking like docs and starts looking like policy. It maps known mistakes to concrete constraints, which is exactly what AI tools need if they are going to be trusted in a sharp-edged framework.
Patterns, not recipes: how the skill teaches mutable graph thinking
Holochain is a graph problem as much as it is a coding problem. The repo leans on patterns like implicit versus explicit links, capability grants, and update tracking to teach that mental model. It is not just telling the assistant what to type. It is teaching it how to think about change in an append-only system.
| Approach | What it teaches | What it protects against |
|---|---|---|
| Implicit links | Use existing metadata before adding redundancy | Needless duplication and drift |
| Explicit links | Make discovery and traversal deliberate | Invisible relationships that are hard to query |
| MyEntryUpdates pattern | Treat change as a tracked graph event | Losing the history of what changed and why |
That is the deeper value here. The skill is not merely a folder of references. It is a compressed apprenticeship for a domain where the wrong instinct is usually the expensive instinct.
What this tells us about the future of developer tooling
The best comparison is not Holochain versus some other framework. It is generic documentation versus domain-specific execution guidance. Generic docs tell you what exists. This kind of skill tells an AI system how to behave inside a narrow, difficult domain.
| Mode | Strength | Weakness |
|---|---|---|
| Generic documentation | Readable for humans | Easy for assistants to misapply |
| Generic AI advice | Fast and broad | Often vague, stale, or unsafe |
| This agent skill | Behavioral guardrails plus workflow routing | Only useful when the domain is well understood |
That is the real bet. As AI tooling gets more embedded in development, the winning interface may be less about bigger models and more about better constraints. In specialized frameworks, the future may belong to skills that teach the assistant how not to be wrong.





