One-click install
npx skills add https://github.com/Zodomo/DrandVerifier --skill x-ray-zodomo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-ray
Source: https://github.com/Zodomo/DrandVerifier/tree/main/.opencode/skills/pashov/x-ray
Command: npx skills add https://github.com/Zodomo/DrandVerifier --skill x-ray-zodomo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, bash, curl, grep, find, git, node (optional), foundry (optional), and includes scripts (resource) and references (resource) components.

What problem does it solve?

X-Ray turns an unfamiliar codebase into a fast, structured pre-audit briefing so reviewers can quickly identify where to focus before running deeper analysis.

Core Features & Use Cases

  • Protocol overview & architecture outputs: Produces an x-ray/ folder with an overview, an entry-point call/classification map, and an architecture diagram.
  • Threat-model aligned briefing: Builds x-ray.md using a threat/trust template and threat profiles derived from detected protocol characteristics.
  • Test and git readiness signals: Scans for test presence, attempts coverage when toolchain is available, and runs git security analysis to highlight hotspots and security-relevant evolution.

Quick Start

Run x-ray on the target repository using the recommended command from the Skill's README.

Frequently Asked Questions about x-ray

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

FAQPage Schema
How do I generate a pre-audit briefing for a Solidity smart contract repository?

A smart contract pre-audit briefing combines code-scoped architecture, entry-point mapping, threat model guidance, and git-history security observations into a structured report. It helps auditors and security researchers quickly identify where to focus before running deeper analysis.

How do I map entry points and build a threat model for smart contracts?

You can map smart contract entry points by running an automated analysis tool that classifies call structures and generates an entry-point map. This helps identify external attack surfaces and builds a threat model by evaluating trust boundaries within the protocol's architecture.

Does pre-audit analysis work with Foundry and Hardhat repositories?

Yes, pre-audit analysis works with Foundry and Hardhat repositories. The tool detects the project root and source directories, enumerates nSLOC and tests, and optionally attempts coverage if the Foundry or Node toolchain is available in the environment.

What do I need to run git security analysis and test coverage checks on a protocol codebase?

You need python3, bash, curl, grep, find, and git installed to run git security analysis and test coverage checks. Node and Foundry are optional dependencies required only if you want the tool to attempt automated test coverage generation.

What is the best way to identify security hotspots in a smart contract codebase before an audit?

The best way to identify security hotspots is to run git-history security analysis combined with test presence scanning. This approach highlights security-relevant code evolution and areas lacking test coverage, directing auditors to high-risk sections before deep analysis.

What are the limitations of automated pre-audit protocol reports?

Automated pre-audit protocol reports are limited to providing a rapid briefing rather than a comprehensive security audit. They rely on detecting project structures and available toolchains, meaning coverage attempts and git security analysis may be skipped if optional dependencies like Foundry or Node are missing.