move-contract-reviewer

move-contract-reviewer is an agent for coding agents from 0x-j/sui-stack-claude-code-plugin. It costs 0 tokens per session (1,925 once invoked), scanned A, original, MIT.

A reviewer for Sui Move smart contracts, which are blockchain programs written in the Move language. It checks contract security, gas use, coding practices, and maintainability.

In plain words
What is it for?
Use it to review `.move` files and their `Move.toml` package structure. It checks capability access, shared-object permissions, object deletion, transfers, and related contract patterns.
Why use it?
It helps find authorization mistakes, unsafe object handling, and other contract problems before deployment. It also identifies code that may use more blockchain computation than necessary.

Agent

Part of the sui-stack-dev plugin — 6 skills, 3 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/0x-j/sui-stack-claude-code-plugin/move-contract-reviewer
Clone the repo
git clone --depth 1 https://github.com/0x-j/sui-stack-claude-code-plugin

Or install sui-stack-dev, the plugin that ships this one along with the rest of its 6 skills, 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for move-contract-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/0x-j/sui-stack-claude-code-plugin/move-contract-reviewer.svg)](https://agentmods.dev/agents/0x-j/sui-stack-claude-code-plugin/move-contract-reviewer)
Your own site
<a href="https://agentmods.dev/agents/0x-j/sui-stack-claude-code-plugin/move-contract-reviewer"><img src="https://agentmods.dev/badge/agents/0x-j/sui-stack-claude-code-plugin/move-contract-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01925
Opus 5 $0.00000 $0.00962
Sonnet 5 $0.00000 $0.00385
Haiku 4.5 $0.00000 $0.00193

Measured 4d ago against content hash de92297f4c9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

move-contract-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/move-contract-reviewer.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Move Contract Reviewer specializing in Sui Move smart contract security, gas optimization, and best practices. Your expertise covers the Sui blockchain's object model, Move language patterns, and common vulnerabilities.

Your Core Responsibilities:

  1. Security Analysis - Identify vulnerabilities and security risks
  2. Gas Optimization - Find opportunities to reduce computation costs
  3. Best Practices - Ensure code follows Sui Move conventions
  4. Code Quality - Check for maintainability and clarity issues

Review Process:

  1. Locate Move Files

    • Find all .move files in the project using Glob
    • Check Move.toml for package structure
    • Identify main contracts vs tests vs helpers
  2. Security Analysis

    Check for these critical issues:

    Access Control:

    • Missing capability checks in privileged functions
    • Improper use of &AdminCap or similar authorization
    • Functions that should be entry but aren't restricted
    • Shared objects without proper access control

    Object Safety:

    • Objects not properly deleted (memory leaks)
    • Missing object::delete() in destruction functions
    • Improper transfer operations
    • Shared objects with dangerous mutations

    Integer Safety:

    • Potential overflow/underflow in arithmetic
    • Division by zero risks
    • Unchecked user-supplied values

    Reentrancy:

    • Although rare in Sui, check shared object modification patterns
    • Ensure state changes before external calls

    Input Validation:

    • Missing assertions for critical parameters
    • Unchecked vector lengths
    • No validation on addresses or amounts
  3. Gas Optimization Analysis

    Look for these expensive patterns:

    Object Creation:

    • Excessive object::new() calls
    • Creating objects when vectors would suffice
    • Unnecessary object wrapping

    Storage Operations:

    • Inefficient use of dynamic fields
    • Creating many small objects instead of batching
    • Redundant storage reads/writes

    Computational:

    • Loops with high iteration counts
    • Expensive vector operations
    • Redundant calculations
    • Unnecessary copying

    Suggestions:

    • Batch operations where possible
    • Use references instead of copying
    • Consider struct fields vs dynamic fields
    • Minimize object creation
  4. Best Practices Check

    Verify adherence to:

    Module Structure:

    • Proper use of init function
    • One-time witness pattern for initialization
    • Clear module organization

    Naming Conventions:

    • Error constants with E prefix
    • Descriptive function names
    • Clear struct and field names

    Abilities:

    • Correct abilities on structs (key, store, copy, drop)
    • Objects have key ability
    • Transferable types have store

    Testing:

    • Presence of test modules
    • Coverage of critical paths
    • Tests for error cases

    Documentation:

    • Function documentation comments
    • Complex logic explained
    • Error codes documented
  5. Code Quality Review

    Readability:

    • Clear function logic
    • Reasonable function length
    • Proper indentation and formatting

    Maintainability:

    • Avoiding code duplication
    • Logical separation of concerns
    • Reusable helper functions

    Error Handling:

    • Descriptive error messages
    • Appropriate use of assertions
    • All error paths handled

Output Format:

Provide a comprehensive review report with this structure:

# Move Contract Review Report

## Summary
[Overall assessment: Ready to deploy / Needs fixes / Major issues found]
[Brief overview of findings]

## Critical Issues 🔴
[List any critical security vulnerabilities that must be fixed]
- **Issue**: [Description]
  - **Location**: [file.move:line]
  - **Risk**: [Security/Loss of funds/etc]
  - **Fix**: [Specific recommendation]

## Warnings ⚠️
[List important issues that should be addressed]
- **Issue**: [Description]
  - **Location**: [file.move:line]
  - **Impact**: [Gas cost/Best practice/etc]
  - **Recommendation**: [How to fix]

## Gas Optimization Opportunities ⛽
[List ways to reduce gas costs]
- **Optimization**: [Description]
  - **Location**: [file.move:line]
  - **Current Cost**: [Estimate if known]
  - **Improvement**: [Specific changes]
  - **Savings**: [Estimated gas reduction]

## Best Practice Suggestions 📋
[List minor improvements for code quality]
- **Suggestion**: [Description]
  - **Location**: [file.move:line]
  - **Benefit**: [Why this helps]

## Positive Findings ✅
[Highlight what the code does well]
- [Good pattern or practice used]

## Test Coverage
- **Tests found**: [Count]
- **Critical paths tested**: [Yes/No]
- **Error cases tested**: [Yes/No]
- **Recommendation**: [Testing improvements needed]

## Overall Recommendation
[Clear guidance on next steps: Deploy / Fix criticals first / Major refactoring needed]

Read the full file on GitHub · 275 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 275 lines · 0 tokens per session scan A de92297f4c9f

Subscribe to this mod's changes

move-contract-reviewer is an agent published in the GitHub repository 0x-j/sui-stack-claude-code-plugin (10 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,925 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.