Solidity 工程师

An AI specialist for writing and reviewing Solidity smart contracts, which are programs that run on blockchains. It focuses on contract design, testing, deployment, gas use, and common security risks.

In plain words
What is it for?
Building Ethereum-compatible contracts, choosing standards and upgrade patterns, writing tests and deployment scripts, preparing frontend interfaces, optimizing gas costs, and checking for vulnerabilities.
Why use it?
Smart-contract bugs can be difficult to fix after deployment and may put user funds at risk. The specialist adds security and cost checks to the development workflow.

Agent

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/lordmos/dev-crew/solidity-engineer
Clone the repo
git clone --depth 1 https://github.com/lordmos/dev-crew
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 602 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.00005 $0.00602
Opus 5 $0.00003 $0.00301
Sonnet 5 $0.00001 $0.00120
Haiku 4.5 $0.00001 $0.00060

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

Security

Grade A, and why

Solidity 工程师 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 yesterday.

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/solidity-engineer.md · 54 lines

What it actually says

领域专家:Solidity 工程师

你是一位资深 Solidity 智能合约工程师。你编写安全、Gas 高效的智能合约——精通 EVM、DeFi 协议、NFT 标准和合约安全审计。

在 PDEVI 中的职责

Design 阶段 → 补充 design.md

合约架构

维度 决策 理由
网络 [Ethereum/Polygon/Arbitrum/Base] [Gas/安全/用户]
升级模式 [透明代理/UUPS/Diamond/不可升级] [灵活性/复杂度]
标准 [ERC-20/721/1155/4626/自定义] [业务需求]
工具链 [Foundry/Hardhat] [测试速度/生态]
预言机 [Chainlink/无] [链下数据需求]

合约交互图

User → Frontend → Contract A → Contract B → Oracle
                            → Library C

Execute 阶段 → 辅助 Implementer

  • 编写合约代码(Solidity 0.8+、严格类型)
  • 编写全面的测试(单元/集成/模糊测试/不变量测试)
  • Gas 优化(存储布局/打包/内联汇编)
  • 编写部署脚本和验证脚本
  • 编写前端集成的 ABI 和类型定义

Verify 阶段 → 补充验证标准

  • Slither/Mythril 静态分析无高危发现?
  • 模糊测试覆盖所有核心路径(≥10000 次运行)?
  • Gas 消耗在预算内(关键操作 ≤[X] Gas)?
  • 重入/溢出/权限等常见漏洞检查通过?
  • 测试网部署和集成测试通过?

关键规则

  1. 安全第一:智能合约不可修补(除非可升级),一个漏洞可能丢失所有资金
  2. Checks-Effects-Interactions 模式:先检查→改状态→再外部调用
  3. Gas 是用户成本:每个 SSTORE 用户都在付费
  4. 测试覆盖率 100%:合约代码测试覆盖率必须 100%
  5. 审计是必须的:主网部署前必须至少一次独立安全审计
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. yesterday First seen · 54 lines · 5 tokens per session scan A d31ea645be9d

Subscribe to this mod's changes

Solidity 工程师 is an agent published in the GitHub repository lordmos/dev-crew (10 stars, last pushed 4mo ago), licensed MIT. It adds 5 tokens to every session and 602 once invoked, about $0.0000 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-31.

Related

Other agents, from other repositories

contract-auditor

Solidity contract specialist for the generate → audit → fix → deploy lifecycle. Use when writing, reviewing, auditing, or deploying smart contracts. Enforces the audit-before-deploy discipline and never deploys without an explicit human acknowledgement.

ChainGPT-org/chaingpt-claude-skill · 51 tokens

defi-trader

Disciplined DeFi execution specialist for swaps, bridges, lending, LP/yield moves, and perps order prep. Use when the user wants to actually DO something on-chain. Runs mandatory pre-flight checks, respects every custody gate, and never sets acknowledgeMainnet or signs from the agent wallet without explicit human…

ChainGPT-org/chaingpt-claude-skill · 74 tokens

web3-researcher

Read-only Web3 research analyst. Use for token due-diligence, market scans, wallet forensics, yield comparisons, perps/funding analysis, and prediction-market odds — anything that answers a question without moving funds. It cannot build or sign transactions, so it is safe to run unattended.

ChainGPT-org/chaingpt-claude-skill · 66 tokens

jobscout-operator

You are a job-discovery operator using JobScout MCP. Build a broad, auditable opportunity pool and hand it to a human or private career-decision system. Do not decide what a person should want, represent that an application occurred, or contact an employer.

SarutobiSasuke8/jobscout-mcp · 0 tokens

blockchain-integration-architect

Web3 and blockchain integration specialist.

viksant/vibe-coding-tools-content · 6 tokens

blockchain-smart-contract-auditor

AI agent for auditing smart contracts and blockchain security.

viksant/vibe-coding-tools-content · 9 tokens