rust-audit-prep

Automate 5-phase readiness checks for Solana and Rust on-chain programs.

43|7|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/CDSecurity/cdsecurity-skills --skill rust-audit-prep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-audit-prep
Source: https://github.com/CDSecurity/cdsecurity-skills/tree/main/rust-audit-prep
Command: npx skills add https://github.com/CDSecurity/cdsecurity-skills --skill rust-audit-prep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Preparing Solana and Rust on-chain programs for security audits traditionally requires manually verifying test coverage, documentation completeness, code hygiene, dependency health, and adherence to Solana/Rust best practices — a time-consuming process that often leads auditors to waste time on preventable issues like missing docs or outdated dependencies instead of focusing on critical protocol-level vulnerabilities. This Skill automates the entire readiness check workflow, surfacing all fixable issues upfront so teams can address them before the audit begins.

Core Features & Use Cases

  • 5-Phase Automated Readiness Checks: Evaluates test coverage, documentation quality, code hygiene, dependency health, and Solana/Rust best practices for both Anchor-based and native solana_program projects.
  • Scored Actionable Reports: Generates a clear 0-100 overall score with per-phase breakdowns, detailed findings, and prioritized quick wins to guide your team's pre-audit fixes.
  • Use Case: A Solana DeFi team with an Anchor program can run this skill to identify missing signer checks, dependencies with known CVEs, and untested instruction handlers, then resolve all those issues in hours instead of days, ensuring their audit stays on track and delivers maximum value.

Quick Start

Use the rust-audit-prep skill to run a full 5-phase audit readiness check on your current Solana or Rust on-chain project and get a scored report of all fixable issues to address before your security audit.

Frequently Asked Questions about rust-audit-prep

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

FAQPage Schema
How do I prepare my Solana Rust on-chain program for a security audit?

Automate Solana Rust on-chain program audit preparation by running a 5-phase readiness check that evaluates test coverage, documentation, code hygiene, dependency health, and best practices. This generates a scored report with prioritized quick wins to fix issues before external audits.

Does audit readiness automation work with both Anchor and native solana_program projects?

Audit readiness automation works with both Anchor-based and native solana_program projects. The automated checks evaluate test coverage, code hygiene, and Solana best practices across both frameworks to ensure comprehensive pre-audit preparation regardless of your architecture.

What is included in a Solana Rust audit readiness report?

A Solana Rust audit readiness report includes a 0-100 overall score with per-phase breakdowns, detailed findings, and prioritized quick wins. It identifies fixable issues like missing signer checks, dependencies with CVEs, and untested instruction handlers to guide pre-audit fixes.

Can I run individual readiness checks instead of the full 5-phase audit preparation?

You can run individual readiness checks instead of the full 5-phase audit preparation. The skill supports single-phase execution, allowing you to target specific areas like dependency scanning or test coverage evaluation independently before running the complete workflow.

What static analysis tools integrate with Solana Rust audit readiness checks?

Solana Rust audit readiness checks integrate with optional static analysis tools including Trident, Soteria, and cargo-geiger. These tools enhance the automated workflow by scanning dependencies and identifying potential security vulnerabilities during the preparation phase.

Can audit readiness checks automatically fix common Solana Rust code issues?

Audit readiness checks can automatically fix common Solana Rust code issues. The skill supports auto-fixing capabilities for preventable problems like missing documentation and code hygiene issues, allowing teams to resolve findings in hours instead of days.