Guides Freenet PR creation: issue claiming, worktree branching, cargo fmt/clippy/test checks, Conventional Commits titles, and simulation test selection.
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.
None: SKILL.md is the whole skill.
Our goal is high-quality code that won't need follow-up fixes. A quick fix that causes problems later wastes more time than doing it right the first time.
If your PR fixes a GitHub issue, verify the issue is unassigned before starting work. If someone else is already assigned, check with them or the user before proceeding — don't duplicate effort. If the issue is unassigned, assign it to yourself immediately so others know it's being worked on:
gh issue edit <ISSUE> --repo freenet/<REPO> --add-assignee @me
Never work in the checkout where main lives. Branch from the latest GitHub main in a new worktree:
git fetch origin
git worktree add ../fix-<issue> -b fix-<issue> origin/main
cargo fmt
cargo clippy --all-targets --all-features
cargo test
Fix all warnings and errors before pushing.
Default to simulation tests for routing, topology, subscription and operation behavior: the direct runner (run_simulation_direct) is deterministic, fast and runs in CI. Use the Turmoil runner when you need partitions or targeted crashes. Use Docker NAT simulation only for transport behavior that needs real network namespaces (hole-punching, iptables). Use real multi-machine testing only for things that need real latency or architectures. The decision tree is in .claude/rules/testing.md.
PR titles must pass the Conventional Commits check in ci.yml (feat:, fix:, docs:, refactor:, test:, chore:, build:, ci:, perf:, style:, revert:); the subject must not start with an uppercase letter.
Explain WHY, not just WHAT. Structure the description:
## Problem
[What's broken? What's the user impact? Why does it matter?]
## Approach
[Why this solution over alternatives? What's the key insight?]
## Testing
[New tests added and what scenarios they validate]
[Local validation steps performed]
[E2E testing results if applicable]
## Fixes
Closes #XXXX
Bad: "Add observed_addr field to ConnectRequest" Good: "The joiner can't know its public address until observed externally. Previous approach rewrote addresses at transport boundary, but that's a hack. This lets the gateway fill in the observed socket naturally since it already sees the real UDP source."
Every PR that changes behavior includes tests that would have caught the problem before merge, covering the bug class and not just the one symptom. Write the test first and confirm it fails without your fix and passes with it.
When fixing a bug, ask "why didn't CI catch this?", name the test layer that should have (unit, integration, simulation, E2E), say so in the PR description, and add that test in the same PR, not in a follow-up issue.
A logic error (wrong threshold, missing data path, bad fallback) is reproducible in a unit or simulation test. Reserve production telemetry for environment-specific problems (real NAT traversal, OOM under load).
For PRs that touch routing, topology, operations or subscription handling, include simulation tests that assert the health metrics the change could regress: subscribe and GET success rates, subscription-tree formation, time to first successful operation. Regressions found later through telemetry mean CI failed.
Make tests as general as the bug class allows. If a pattern caused one bug, search for the same pattern elsewhere and fix it or file issues.
Before reviews, run the freenet:code-simplifier agent on the finished PR and commit what it changes, so reviewers see the cleanest version.
Wait for CI with gh pr checks <PR> --watch. Once the PR is complete and CI is green, run /freenet:pr-review <PR>. It owns the reviewer set, the external-model pass and the fallback when Codex is unavailable (substitute Claude lenses, record it, never wait).
Take all feedback seriously. Freenet is complex code and we need to be perfectionists. Don't cherrypick easy wins and ignore harder issues. For each point raised:
The bar for ignoring feedback is HIGH. Only dismiss a suggestion if it would dramatically increase complexity (like doubling the size of an already large PR). If a suggestion would improve the PR and can reasonably be done, do it.
Use common sense — if a reviewer suggests building a massive test framework for a small change, that's obviously overkill. But don't dismiss feedback just because it's inconvenient or would require more work.
Never ignore tests to make them pass. Flaky tests are broken tests: fix the root cause. Never remove existing tests to get green; removing tests that catch bugs is how regressions happen.
Reply on each inline comment with the fix commit or your reasoning. Re-run /freenet:pr-review on the new HEAD when the fixes were significant (thresholds in that skill).
The Claude PR Rule Review workflow checks the PR against .claude/rules/ and posts a sticky comment. Findings at WARNING level set the rule-review/warnings status to failure, which blocks merge. Fix them (extract magic numbers to named constants, derive errors with thiserror, update stale doc comments, add tests for new paths). Only a maintainer can override with the review-override label. Critical patterns (banned APIs such as Instant::now()) are enforced separately by the Rule Lint CI job.
When a PR adds or modifies enum dispatch (operation types, outcome handling, event routing), the test must exhaustively verify all variants produce the expected result. Common gaps: outcome() returning Irrelevant for some operation types, match arms with _ => {} catch-alls that silently discard new variants, commented-out enum arms.
For any PR that touches data structures which accumulate entries (HashMaps, Vecs, channels, caches), include assertions that sizes stay bounded after sustained operation. Every insert path must have a corresponding cleanup path that runs on both success and failure/timeout. If the cleanup path isn't obvious, document it in a code comment.
#[ignore] to get CI green. If a test is genuinely broken and the fix is out of scope, #[ignore] it with a reason comment and a tracking issue (git-workflow.md); that is the last resort, not the default.TODO comments for things you could fix now.End all GitHub content (PR descriptions, comments, issues) with:
[AI-assisted - Claude]
freenet-core keeps path-scoped rules in .claude/rules/. Before pushing code that touches a biased; select, GlobalExecutor::spawn, connection removal or cleanup, retry and backoff loops, or deployment config, read the matching section of code-style.md, ring.md, transport.md, channel-safety.md or deployment.md, and scan bug-prevention-patterns.md for the code you touch.
.claude/rules/ sections read/freenet:pr-review run on the current HEAD; every finding fixed or answeredAfter the PR merges, remove its worktree and branch: git worktree remove ../fix-<issue>, then git branch -d fix-<issue>.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pull-requests, freenet, conventional-commits, code-review, testing
7 skills in this plugin
/dapp-builderBuild and maintain decentralized applications on Freenet using river as a template. Guides through designing contracts (shared state), delegates (private state), and UI, and through upgrading a live dApp safely. Use when user wants to create a new Freenet dApp, design contract state, implement delegates, build a Freenet-connected UI, OR upgrade an existing dApp — bump freenet-stdlib, ship a new contract/delegate version (v2), fix a bug that re-keys the WASM, or migrate state across a contract/delegate key change without breaking invites or losing data. Also use when INTEGRATING with a contract or delegate published by another app — reading another project's contract state, depending on a platform delegate, or deciding how to address someone else's artifact so it survives their re-keys./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./freenet:pr-creationfrom freenet
npx claudepluginhub freenet/freenet-agent-skills --plugin freenetOther plugins' skills for the same job