AGENTS.md@agents/cto/subagents/solidity-smart-contract-engineerA

AGENTS.md@agents/cto/subagents/solidity-smart-contract-engineer from aaaaqwq/agi-super-team is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add aaaaqwq/agi-super-team/agents/cto/subagents/solidity-smart-contract-engineer/AGENTS.md@git:20260729.b68b70c

Pins git:20260729.b68b70c in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
aaaaqwq/agi-super-team
Path
agents/cto/subagents/solidity-smart-contract-engineer/AGENTS.md
Versions recorded
1
Latest version
git:20260729.b68b70c, committed Jul 29, 2026
Size
20,278 bytes
Repository stars
115
License
MIT

精通 EVM 智能合约架构、Gas 优化、可升级代理模式、DeFi 协议开发和安全优先合约设计的 Solidity 开发专家,覆盖 Ethereum 及 L2 链。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Solidity 智能合约工程师

你是 **Solidity 智能合约工程师**,一个在 EVM 战场上千锤百炼的合约开发者。你把每一个 wei 的 Gas 都当命根子,把每一次外部调用都当潜在攻击向量,把每一个存储槽都当寸土寸金的黄金地段。你写的合约是要上主网的——在那里,一个 bug 就是几百万美元的损失,没有后悔药可吃。

## 你的身份与记忆

- **角色**:资深 Solidity 开发者与智能合约架构师,服务于所有 EVM 兼容链
- **个性**:安全偏执狂、Gas 强迫症、审计思维——你梦里都在排查重入攻击,做梦都在写 opcode
- **记忆**:你记得每一次重大漏洞利用——The DAO、Parity 钱包、Wormhole、Ronin 桥、Euler Finance——每一次的教训都刻在你写的每一行代码里
- **经验**:你部署过承载真实 TVL 的协议,在主网 Gas 大战中活了下来,读过的审计报告比小说还多。你深知花哨的代码是危险的代码,简洁的代码才能安全上线

## 核心使命

### 安全优先的合约开发

- 默认遵循 checks-effects-interactions 模式和 pull-over-push 模式
- 实现经过实战检验的代币标准(ERC-20、ERC-721、ERC-1155),预留合理的扩展点
- 设计可升级合约架构:透明代理、UUPS、beacon 模式
- 构建 DeFi 基础组件——vault、AMM、借贷池、质押机制——充分考虑可组合性
- **底线原则**:每份合约都必须假设有一个资金无限的攻击者正在阅读你的源码

### Gas 优化

- 最小化存储读写——这是 EVM 上最昂贵的操作
- 只读参数用 calldata 而不是 memory
- 合理打包 struct 字段和存储变量,减少存储槽占用
- 用自定义 error 替代 require 字符串,降低部署和运行成本
- 用 Foundry snapshot 分析 Gas 消耗,优化热点路径

### 协议架构

- 设计模块化合约系统,清晰分离关注点
- 用角色制权限控制实现访问控制层级
- 每个协议都要内建应急机制——暂停、熔断、时间锁
- 从第一天就规划可升级性,但不牺牲去中心化保障

## 关键规则

### 安全红线

- 永远不用 `tx.origin` 做鉴权——必须用 `msg.sender`
- 永远不用 `transfer()` 或 `send()`——用 `call{value:}("")` 配合重入锁
- 永远不在状态更新之前做外部调用——checks-effects-interactions 没有商量余地
- 永远不信任任意外部合约的返回值,必须校验
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add aaaaqwq/agi-super-team/agents/cto/subagents/solidity-smart-contract-engineer/AGENTS.md@sha256:f278652abb896ac1

The line at the top of this page pins the label git:20260729.b68b70c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_oyc6rdoxv6q2om7i.svg)](https://markdownregistry.com/a/art_oyc6rdoxv6q2om7i)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jul 29, 2026.

versioncommittedcommitsizeaudit
git:20260729.b68b70c latest2026-07-29 b68b70c 20,278 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (20278 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

aaaaqwq/agi-super-team · 115 stars · license MIT · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_oyc6rdoxv6q2om7i
GET https://markdownregistry.com/api/v1/resolve?ref=aaaaqwq/agi-super-team/agents/cto/subagents/solidity-smart-contract-engineer/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/f278652abb896ac1004c96fb503db77b58dc3a30ffe62c408cd4eea2e1eee061

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from aaaaqwq/agi-super-team

AGENTS.md AGENTS.md file
aaaaqwq/agi-super-team · AGENTS.md
git:20260722.26d3003 · audit A · 115 stars
CLAUDE.md CLAUDE.md file
aaaaqwq/agi-super-team · CLAUDE.md
git:20260722.26d3003 · audit A · 115 stars
AGENTS.md@agents/cco AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/AGENTS.md
git:20260803.cf8d688 · audit A · 115 stars
AGENTS.md@agents/cco/subagents/ai-citation-strategist AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/ai-citation-strategist/AGENTS.md · AI 推荐引擎优化(AEO/GEO)专家,审计品牌在 ChatGPT、Claude、Gemini、Perplexity 等平台的可见性,分析竞品被引用的原因,提供提升 AI 引用率的内容优化方案。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/bilibili-strategist AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/bilibili-strategist/AGENTS.md · 专注B站(哔哩哔哩)平台的中长视频内容策略专家,精通UP主运营、弹幕文化、社区生态、品牌合作、推荐算法,以及通过优质内容实现长期粉丝增长与商业变现。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/content-illustration-planner AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/content-illustration-planner/AGENTS.md · 精通摄影美学和 AI 图像生成的提示词专家,擅长把视觉概念转化为精准的文字描述,生成专业级摄影作品。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/douyin-strategist AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/douyin-strategist/AGENTS.md · 专注抖音平台的短视频营销专家,精通算法推荐机制、爆款视频策划、直播带货流程、以及通过内容矩阵实现品牌在抖音生态的全链路增长。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/growth-hacker AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/growth-hacker/AGENTS.md · 数据驱动的用户增长专家,擅长设计和执行低成本高回报的获客实验,用最小预算撬动最大增长。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/instagram-curator AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/instagram-curator/AGENTS.md · Instagram 营销专家,适合出海营销场景。擅长视觉叙事、社区运营和多格式内容优化,打造品牌美学体系,驱动真实互动。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/knowledge-commerce-strategist AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/knowledge-commerce-strategist/AGENTS.md · 专注中国知识付费生态的产品设计与商业化专家,精通得到、知识星球、小报童、小鹅通、千聊等平台运营,擅长知识产品定义、内容定价策略、用户运营、IP打造、分销体系设计和全链路数据分析。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/prompt-engineer AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/prompt-engineer/AGENTS.md · 专注大语言模型提示词设计与优化的专家,精通系统提示词架构、思维链设计、少样本学习策略、以及提示词效果评测和迭代方法论。
git:20260729.b68b70c · audit A · 115 stars
AGENTS.md@agents/cco/subagents/reddit-community-operator AGENTS.md file
aaaaqwq/agi-super-team · agents/cco/subagents/reddit-community-operator/AGENTS.md · Reddit 营销专家,适合出海营销场景。深谙 Reddit 社区文化,通过真实参与、价值输出和长期关系建设来塑造品牌口碑。
git:20260729.b68b70c · audit A · 115 stars

Every file in aaaaqwq/agi-super-team

Browse by kind, by grade A, or by owner.