review-and-iterate

Reviews Solana project code for security vulnerabilities, quality, and production readiness with scored findings.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill review-and-iterate-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-and-iterate
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/agents/.agents/skills/review-and-iterate
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill review-and-iterate-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Solana developers lack a structured way to audit their programs for security vulnerabilities, code quality issues, and compute inefficiencies before deploying to mainnet, risking exploits and wasted resources. ## Core Features & Use Cases - Security Auditing: Checks for Solana-specific vulnerabilities including missing signer checks, unchecked arithmetic, PDA confusion, reinitialization attacks, and rent drain using a P0-P3 severity checklist. - Weighted Quality Scoring: Grades projects across six dimensions (security, correctness, error handling, testing, code organization, documentation) with an A-F letter grade and an override rule capping scores when critical security issues exist. - Compute Optimization Guidance: Identifies CU reduction opportunities such as minimizing account reads, removing debug logging, and evaluating Pinocchio for compute-intensive programs. - Use Case: Before a hackathon submission or mainnet launch, run the review to receive an HTML report with severity-ranked findings, specific code fixes, and a ready-for-mainnet verdict. ## Quick Start Ask the AI to review my Solana project code for security issues and production readiness with honest scores and specific fixes.

Frequently Asked Questions about review-and-iterate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit my Solana program for security vulnerabilities?

Run a structured review that checks P0 items like signer verification, account ownership, PDA validation, checked arithmetic, and reinitialization protection. Each finding includes a severity rating and a specific code fix rather than a generic warning.

What security checks matter most for Solana programs?

The critical P0 checks are missing signer checks, unchecked math overflow, PDA confusion, reinitialization attacks, and type cosplay. Any critical security finding caps the overall project grade at C regardless of other scores.

How is the Solana code review score calculated?

Scores use a weighted average across six dimensions: security (3x), correctness (2x), error handling (2x), testing (1.5x), code organization (1x), and documentation (0.5x). The result maps to letter grades A through F.

Does the review work without prior project context files?

Yes, the review never blocks on missing context. If a build-context.md file exists it is used for stack and architecture context, but the review proceeds immediately on whatever code exists in the current directory.

When should I use formal verification instead of a code review?

Consider formal verification tools like QEDGen when the program protects high-value assets, has complex state machines, or depends on critical invariants like authorization, conservation, or arithmetic bounds that benefit from machine-checked proofs.

How do I reduce compute units in my Solana program?

Minimize account reads, remove debug msg! logging, use fixed-size data structures, and batch CPIs. For compute-intensive programs near CU limits, Pinocchio can reduce usage by 88-95% compared to Anchor.