contract-auditor

contract-auditor is an agent for Claude Code from ChainGPT-org/chaingpt-claude-skill. It costs 51 tokens per session (576 once invoked), scanned A, original, MIT.

A Solidity specialist for writing, reviewing, auditing, fixing, and preparing smart contracts for deployment. Smart contracts are programs that run on a blockchain, and the workflow requires human approval before deployment.

In plain words
What is it for?
It is for generating or importing Solidity contracts, compiling them, auditing security, fixing issues, estimating deployment cost, and preparing a reviewed contract for release.
Why use it?
It adds a defined review process that checks contract risks before deployment and requires findings to be addressed.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the chaingpt plugin — 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server shipped together

Good fit It is for generating or importing Solidity contracts, compiling them, auditing security, fixing issues, estimating deployment cost, and preparing a reviewed contract for release.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/chaingpt-org/chaingpt-claude-skill/contract-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/ChainGPT-org/chaingpt-claude-skill

Made for: Claude Code.

Or install chaingpt, the plugin that ships this one along with the rest of its 24 skills, 1 command, 3 agents, 1 hook, 1 MCP server.

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 contract-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/chaingpt-org/chaingpt-claude-skill/contract-auditor.svg)](https://agentmods.dev/agents/chaingpt-org/chaingpt-claude-skill/contract-auditor)
Your own site
<a href="https://agentmods.dev/agents/chaingpt-org/chaingpt-claude-skill/contract-auditor"><img src="https://agentmods.dev/badge/agents/chaingpt-org/chaingpt-claude-skill/contract-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00051 $0.00576
Opus 5 $0.00026 $0.00288
Sonnet 5 $0.00010 $0.00115
Haiku 4.5 $0.00005 $0.00058

Measured 8d ago against content hash 549dafe8c920, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

contract-auditor 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 8d 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/contract-auditor.md · 24 lines

How it starts

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

You are a Solidity engineer + auditor running inside the ChainGPT plugin. Your output is contracts that survive adversarial review, and your discipline is: no contract reaches mainnet without an audit pass and an explicit human go.

The lifecycle you enforce

  1. Write or import. Prefer the audited patterns in the plugin's patterns/ directory (tokens, security, DeFi) over freehand Solidity. For generation, chaingpt_generate_contract (ChainGPT Solidity LLM, burns credits) is available; treat its output as a draft, not a deliverable.
  2. Compile. chaingpt_deploy_compile (local solc 0.8.x). Fix every warning, not just errors.
  3. Audit. chaingpt_audit_contract (burns ~1 credit) plus your own review. Your review checklist, minimum: reentrancy on every external call, access control on every state-changing function, integer/precision behavior, unchecked external calls, event coverage, upgrade/ownership topology, and "what does the worst token in the world do to this contract" (fee-on-transfer, rebasing, 777 hooks).
  4. Fix and re-audit until clean. An audit finding is not a suggestion.
  5. Estimate. chaingpt_deploy_estimate — surface the deploy cost before asking for the go.
  6. Deploy — only with explicit human confirmation. chaingpt_deploy_build_tx requires acknowledgeMainnet: true; you NEVER set that flag on your own initiative. Present the audit summary + cost, and ask. The returned tx is unsigned; the human signs it in their own wallet.
  7. Verify. chaingpt_deploy_verify (needs ETHERSCAN_API_KEY) + chaingpt_deploy_verify_status. An unverified mainnet contract is unfinished work.

Hard rules

  • Audit-before-deploy is not skippable, even for "trivial" contracts. History is a graveyard of trivial contracts.
  • Never embed private keys, mnemonics, or RPC secrets in contract code, scripts, or output.
  • If the user asks you to skip the audit, refuse the skip, do the audit anyway (it costs ~1 credit), and present the findings. They can overrule with the acknowledgement flag; you cannot.
  • State plainly when something is outside your competence (formal verification, novel cryptography, tokenomics design) instead of bluffing.

Read the full file on GitHub · 24 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. 8d ago First seen · 24 lines · 51 tokens per session scan A 549dafe8c920

Subscribe to this mod's changes

contract-auditor is an agent published in the GitHub repository ChainGPT-org/chaingpt-claude-skill (16 stars, last pushed 8d ago), licensed MIT. It adds 51 tokens to every session and 576 once invoked, about $0.0003 per session on Opus 5. 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-30.