Builds and maintains decentralized applications on Freenet using river as a template. Guides through designing contracts, delegates, UI, and upgrading live dApps safely.
Ships in freenet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build decentralized apps on Freenet. River is the
reference app: contracts/room-contract/, delegates/chat-delegate/, ui/, common/.
This file holds the model, the rules for every dApp, and the route to the right reference. Read the reference for your task before writing code.
An app has three kinds of component, and most real apps have several contracts and delegates.
A key is BLAKE3(BLAKE3(wasm) ‖ params). Any WASM change, including a dependency or compiler
bump, moves the key. Most of the rules below follow from that.
Freenet has no supported full node on mobile, so an app that bundles a node means desktop. Do not generate a production mobile wrapper without warning about bandwidth, battery, thermal, CPU and background-execution problems. Treat it as experimental, require resource measurements, and do not present it as an official Freenet client without the Freenet Project's approval.
Contract state
update_state is the merge. It must be associative, commutative and idempotent on exact
bytes (heal-guarded associativity is accepted where a cap or removal frees a slot), over
every state validate_state accepts, not only those your clients produce.
Delivery is at-least-once, so a re-delivered delta must be absorbed too: applying it again
must not change the state. Read merge-law-compliance.md before adding a cap, removal or
work bound.fdev verify-merge --wasm c.wasm --params params.bin --state s1.bin --state s2.bin.
Without --params, a contract whose parameters do not decode from empty bytes comes back
all inconclusive and still exits 0. Inconclusive is not a pass.freenet_stdlib::time::now()): the merge has to be
a function of its inputs, and the call is staged to trap (freenet-core#5465). Carry a
client-signed timestamp and enforce only monotonicity. It is an untrusted hint. Delegates
may read the clock.BTreeMap/BTreeSet, never HashMap/HashSet, in state and summaries. Peers decide
they have converged by comparing bytes.get_state_delta to an up-to-date peer returns an empty delta, never anything near state
size, and a summary must be far smaller than the state. Test convergence through
summarize / delta / apply. Core already enforces cost-pressure eviction on zero-demand
heavy contracts (no subscribers and no recent genuine reads/writes, freenet-core#4861) and is
rolling out per-contract outbound bandwidth budgets regardless of subscriber count
(freenet-core#5057), which pace and coalesce updates when exceeded (slow propagation, not a
core bug). Never store frequently updated live data inside a web container contract
(contract-patterns.md → "Outbound Bandwidth Budgets and Throttling").validate_state must reach the same verdict on the same bytes forever. Reading another
contract is safe only for immutable or once-true-always-true facts; gating validity on
mutable state makes peers disagree permanently.Keys and upgrades
freenet-migrate release matching
your stdlib (table in build-system.md); do not hand-roll the sweep. Once you have users,
changing how a record's id is derived is a breaking change to their data.freenet_migrate::handle_export_request, or a protocol general enough to enumerate its
secrets. Every release shipped without that answer is a permanently unrecoverable
generation. Ship it from v1. Once a predecessor's secrets are verified in the successor,
compact generations older than the one rollback fallback, and keep delegate storage small: a hosted node caps each user's total
secret footprint across all generations (delegate-patterns.md → "Resource Limits").CARGO_HOME, RUSTUP_HOME and the repo
root and refuses a build that leaks a machine path, and isolate contract lockfiles so
cargo update cannot re-key anything. The WASM bytes are the address.NeverPublished, which permits a baked-in key,
and the ghostkeys vault web-container id fallback (building-on-other-apps.md). On an
existing app, grep for such constants first.Publishing and the UI
web-container-contract.md → "What does move the
URL". fdev website init once, then fdev website publish or update for each release. Do
not build a redirect contract. Back up the signing key on day one: lose it and the site is
frozen forever.dx serve and vite dev.freenet local never services a
delegate's contract requests, so they silently do nothing there.Raise with the developer before the first publish
ui-patterns.md → "Author Contact and Source".state-authorization-patterns.md → "Removing Illegal Material".sybil-resistance.md → "Cryptographic CAPTCHA".All paths are under references/.
| Task | Read |
|---|---|
Design contract state; ContractInterface, composable state, summaries, deltas, bandwidth budgets, throttling, record identity | contract-patterns.md |
| Make a merge lawful by construction; caps, removals, work bounds, summary distinctness | merge-law-compliance.md |
| Signatures, replay protection, time, related contracts, tombstones, illegal-material removal, user reports, caps, state size, wire-format stability | state-authorization-patterns.md |
| User-facing identifiers | identity-and-addressing.md |
| Stopping floods of keys: ghost keys and proof-of-work | sybil-resistance.md |
| Write a delegate: messages, secrets, permissions, background runs | delegate-patterns.md |
| Carry delegate secrets across a re-key | delegate-migration.md |
| Build the UI (Dioxus or TypeScript + Vite), WebSocket, CSP, efficient reads, author contact | ui-patterns.md |
| Crate layout, dependency versions, reproducible WASM, lockfile isolation, CI | build-system.md |
| Test tiers, browser validation, iframe shell, post-publish smoke test | production-smoke-testing.md |
| Publish or update the webapp | web-container-contract.md |
| Move an audience to a different contract (rare; not for ordinary releases) | facade-pattern.md |
| Upgrade a live app: stdlib bump, new contract or delegate version, a fix that re-keys | upgrade-and-migration.md, start at "Upgrading a Freenet dApp: the painless path" |
| Depend on a contract or delegate you do not own | building-on-other-apps.md |
Run a node and debug against it with the local-dev skill.
If an instruction is wrong or an API has moved, file an issue or PR at
freenet/freenet-agent-skills.
README.md (opens in a new tab)references/build-system.md (opens in a new tab)references/building-on-other-apps.md (opens in a new tab)references/contract-patterns.md (opens in a new tab)references/delegate-migration.md (opens in a new tab)references/delegate-patterns.md (opens in a new tab)references/facade-pattern.md (opens in a new tab)references/identity-and-addressing.md (opens in a new tab)references/merge-law-compliance.md (opens in a new tab)references/production-smoke-testing.md (opens in a new tab)references/state-authorization-patterns.md (opens in a new tab)references/sybil-resistance.md (opens in a new tab)references/ui-patterns.md (opens in a new tab)references/upgrade-and-migration.md (opens in a new tab)references/web-container-contract.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
freenet, dapp-development, decentralized-apps, contract-design, wasm
/freenet:dapp-builderfrom freenet
npx claudepluginhub freenet/freenet-agent-skills --plugin freenet7 skills in this plugin
/linux-testRun integration tests that require Linux (full loopback range 127.x.x.x) via Docker. Use when a test fails on macOS with "Can't assign requested address" or when the user says "/linux-test"./local-devSet up and manage local Freenet development environments and interact with a running node. Use when the user wants to test contract changes locally, debug UI issues, run a local node, query connections/diagnostics, inspect the dashboard, use the WebSocket API, or iterate on a Freenet application without deploying to the live network./pr-creationGuidelines for creating high-quality Freenet pull requests. This skill should be used when creating PRs for freenet-core, freenet-stdlib, or related repositories. Emphasizes quality over speed, thorough testing, and proper review process./pr-reviewExecutes a risk-tiered, multi-perspective PR review — triages the change, runs specialist subagents in parallel (code-first, testing, skeptical, big-picture) plus an external model pass, then posts a consolidated review to the PR./releaseOrchestrate a new freenet-core release. Runs the MANDATORY pre-cut gates (no concurrent cut, auto-update updater diff + canary suites, a 30-minute real-NAT soak of the exact ship SHA, a telemetry baseline), then determines the version, confirms with the user, triggers the release pipeline via GitHub Actions, and monitors telemetry through the 0-4h auto-update stagger. Use when the user says "do a release", "new release", "cut a release", "release", or "/release"./systematic-debuggingMethodology for debugging non-trivial problems systematically. This skill should be used automatically when investigating bugs, test failures, or unexpected behavior that isn't immediately obvious. Emphasizes hypothesis formation, parallel investigation with subagents, and avoiding common anti-patterns like jumping to conclusions or weakening tests.Other plugins' skills for the same job