Web3 Smart Contract Auditor

From XSpoonAi/spoon-awesome-skill · View interactive version

Web3 Smart Contract Auditor is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. A specialized RAG agent for auditing Smart Contracts and Web3 documentation with line-level citation precision.

How to use this skill

Skill file

Web3 Smart Contract Auditor

The Web3 Smart Contract Auditor is an advanced RAG (Retrieval-Augmented Generation) Skill designed to help developers and auditors quickly understand, verify, and audit complex blockchain codebases and whitepapers.

Unlike generic RAG tools, this skill is optimized for:

  1. Smart Contract Code: Native parsing of .sol, .rs, .go and GitHub repositories.
  2. Precise Citations: Every answer includes strict [file_name_line] citations to prevent hallucinations.
  3. Security Filtering: Automatically ignores .env, private keys, and build artifacts during ingestion.

🚀 Features

📦 Requirements

🛠️ Usage

1. Ingest a Repository

Load the target protocol's code into the vector index.

await agents.execute_tool("rag_ingest", inputs=["https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC20"])

2. Perform Audit / QA

Ask specific security or logic questions.

result = await agents.execute_tool("rag_qa", question="Does the _transfer function check for zero address?")
print(result)

Output Example:

Yes, the _transfer function checks for zero addresses at the beginning of the execution.

Source: [ERC20.sol_245] if (to == address(0)) revert ERC20InvalidReceiver(address(0));

🔧 Configuration

The skill uses standard standard SpoonOS RAG configuration. You can customize:

🛡️ Security Note

This skill runs locally or within your secure SpoonOS environment. It does not upload your private code to any third-party training service (other than the configured LLM provider for inference).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.