pr-creation
БесплатноБез исполняемых скриптовНе проверенGuidelines for creating high-quality Freenet pull requests. This skill should be used when creating PRs for freenet-core, freenet-stdlib, or related…
Об этом скилле
Freenet Pull Request Quality Standards
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.
Before Creating the PR
Claim the Issue
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
Start from current main in a dedicated worktree
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
Run Local Checks
cargo fmt
cargo clippy --all-targets --all-features
cargo test
Fix all warnings and errors before pushing.
Choosing the right test level
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 Title and Description
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."
Test Quality Standards
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.
Review Process
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).
Handling Review Feedback
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:
- Fix it, OR
- Explain specifically why it's not applicable (with real justification, not convenience)
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.
Установить pr-creation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-creation?
Guidelines 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-creation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-creation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic