BOK

Generate Kani harnesses, LiteSVM tests, and Proptest suites for Solana programs.

18|2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/MetalLegBob/solana-vibes-kit --skill bok
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: BOK
Source: https://github.com/MetalLegBob/solana-vibes-kit/tree/main/book-of-knowledge
Command: npx skills add https://github.com/MetalLegBob/solana-vibes-kit --skill bok

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Book of Knowledge provides a structured, automated verification pipeline that converts Solana/Anchor program math into formal invariants, then generates multi-tool verification artifacts (Kani harnesses, LiteSVM tests, and Proptest suites) and a final verification report.

Core Features & Use Cases

  • End-to-end invariant discovery and verification across multiple tooling ecosystems (Kani, LiteSVM, Proptest)
  • Five-phase workflow from code scanning to artifact generation and reporting
  • Artifact management within a project-wide hidden workspace (.bok) with clear progression states
  • Cross-skill integration through GL docs and SOS findings to prioritize invariants

Quick Start

Use the Book of Knowledge skill to kick off the verification workflow for a Solana project.

Frequently Asked Questions about BOK

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

FAQPage Schema
How do I perform formal verification on Solana program math?▼

Formal verification for Solana programs is performed by deriving invariants and generating Kani harnesses, LiteSVM tests, and Proptest suites. This pipeline maps program math to invariants through a five-phase process and outputs a final verification report.

What is the best way to generate invariants for Anchor programs?▼

Generating invariants for Anchor programs is best handled by a structured pipeline that scans code, analyzes logic, confirms properties, generates verification artifacts, and executes them. This produces Kani harnesses, LiteSVM tests, and Proptest suites in a .bok workspace.

Can I use Kani and Proptest together for Solana verification?▼

Kani and Proptest can be used together for Solana verification through a unified pipeline that generates both Kani harnesses and Proptest suites alongside LiteSVM tests. All artifacts are managed within a hidden .bok workspace at the project root.

Does formal verification work when Kani is unavailable for Solana programs?▼

Formal verification remains functional when Kani is unavailable through degraded-mode handling. The pipeline continues invariant discovery and artifact generation for LiteSVM tests and Proptest suites, ensuring partial verification coverage without the Kani harness component.

How do I manage verification artifacts generated for Solana programs?▼

Verification artifacts for Solana programs are managed within a project-wide hidden workspace called .bok at the project root. This workspace tracks artifact progression states across the five-phase pipeline and provides guidance for merging generated tests back to your branch.

What does a LiteSVM test do for Solana program verification?▼

LiteSVM tests verify Solana program behavior by executing generated test suites derived from formal invariants. Combined with Kani harnesses and Proptest suites, they provide multi-tool verification coverage as part of an end-to-end pipeline that produces a final verification report.