Add solana-program-review skill for on-chain program reviews - #122
Add solana-program-review skill for on-chain program reviews#122nikw9944 wants to merge 2 commits into
Conversation
Adds a repo-local Claude Code skill capturing this repo's review conventions for its Solana on-chain programs (passport and revenue-distribution), distilled from the repo's own PR review history. Scoped to this repo's Solana serialization model (bytemuck zero-copy + 8-byte precomputed discriminator); it deliberately excludes the DoubleZero Ledger borsh + AccountType enum conventions used in a separate repo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a repo-local Claude Code skill document to standardize how reviewers evaluate Solana on-chain program diffs in this repository, specifically aligned to this repo’s zero-copy/bytemuck + 8-byte discriminator account model and the historical review patterns for the passport and revenue-distribution programs.
Changes:
- Introduces a new
.claudeskill (solana-program-review) describing repo-specific on-chain review checklists. - Captures concrete “what to look for in a diff” guidance across common Solana program risk areas (accounts/signers, PDAs, CPI, arithmetic, rent/space, testing, etc.).
- Includes linked, verbatim historical review quotes to anchor conventions to prior PR feedback.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add a 'How to apply - severity and voice' section and a Sibling-processor parity class; add heap-cap hazard, hardcoded-program-id owner check, off-chain RPC/tx hygiene, and test-realism guidance. Adapted to this repo's bytemuck zero-copy model. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Applied the same cross-cutting review feedback that landed on the sibling DZ Ledger skill (malbeclabs/doublezero#3991), adapted to this repo's bytemuck zero-copy model:
Skipped the DZ-Ledger-specific items (the |
What
Adds a repo-local Claude Code skill at
.claude/skills/solana-program-review/SKILL.mdcapturing this repo's review conventions for its Solana on-chain programs (passport and revenue-distribution). Claude Code auto-discovers it and applies it when reviewing on-chain program changes in this repo.Where it comes from
Distilled from this repo's own PR review history — feedback classes (account & signer validation, PDA seeds+bump, CPI safety, checked arithmetic, rent/space/realloc, (de)serialization, testing, error handling, etc.), each with a concrete "what to look for in a diff" checklist and real verbatim review quotes linked to their PRs.
Scope
Scoped to this repo's Solana serialization model (bytemuck zero-copy + 8-byte precomputed discriminator,
ZeroCopyAccountloaders). It deliberately excludes the DoubleZero Ledger conventions (borsh serde + 1-byteAccountTypeenum), which live inmalbeclabs/doublezeroand would be wrong here. Keeping the skill in-repo means a reviewer only ever sees this repo's conventions.Part of a set:
malbeclabs/doublezeroand the other Solana program repo get their own repo-local skills.Notes
🤖 Generated with Claude Code