midnight-review-contract
Reviews Compact smart contracts for security vulnerabilities, privacy issues, logic errors, and best practice violations. Provides severity ratings, suggested fixes, and improved code.
Instructions
🔍 AI-POWERED CONTRACT REVIEW
Performs security review and analysis of Compact smart contracts. Uses the client's LLM to identify issues and suggest improvements.
CHECKS PERFORMED: • Security vulnerabilities • Privacy concerns (shielded state handling) • Logic errors • Best practice violations • Performance issues
OUTPUT INCLUDES: • Summary of contract quality • List of issues with severity levels • Suggested fixes for each issue • Improved code version if applicable
⚠️ REQUIRES: Client with sampling capability (e.g., Claude Desktop)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Compact contract code to review |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | Summary of the contract review | |
| issues | Yes | List of issues found | |
| improvedCode | No | Improved version of the contract if applicable | |
| samplingAvailable | Yes | Whether sampling capability was available |