# Send Solidity to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "solidity",
    "name": "Solidity",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/ivangdavila/solidity",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/solidity",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/solidity",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solidity",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "solidity",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T17:09:13.696Z",
      "expiresAt": "2026-05-06T17:09:13.696Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solidity",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solidity",
        "contentDisposition": "attachment; filename=\"solidity-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "solidity"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/solidity"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/solidity",
    "downloadUrl": "https://openagent3.xyz/downloads/solidity",
    "agentUrl": "https://openagent3.xyz/skills/solidity/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solidity/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solidity/agent.md"
  }
}
```
## Documentation

### Reentrancy

External calls before state updates — attacker can re-enter before state changes
Checks-Effects-Interactions pattern — validate, update state, THEN external call
ReentrancyGuard from OpenZeppelin — use nonReentrant modifier on vulnerable functions
transfer() and send() have 2300 gas limit — but don't rely on this for security

### Integer Handling

Solidity 0.8+ reverts on overflow — but unchecked {} blocks bypass this
Division truncates toward zero — 5 / 2 = 2, no decimals
Use fixed-point math for precision — multiply before divide, or use libraries
type(uint256).max for max value — don't hardcode large numbers

### Gas Gotchas

Unbounded loops can exceed block gas limit — paginate or limit iterations
Storage writes cost 20k gas — memory/calldata much cheaper
delete refunds gas but has limits — refund capped, don't rely on it
Reading storage in loop — cache in memory variable first

### Visibility and Access

State variables default to internal — not private, derived contracts see them
private doesn't mean hidden — all blockchain data is public, just not accessible from other contracts
tx.origin is original sender — use msg.sender, tx.origin enables phishing attacks
external can't be called internally — use public or this.func() (wastes gas)

### Ether Handling

payable required to receive ether — non-payable functions reject ether
selfdestruct sends ether bypassing fallback — contract can receive ether without receive function
Check return value of send() — returns false on failure, doesn't revert
call{value: x}("") preferred over transfer() — forward all gas, check return value

### Storage vs Memory

storage persists, memory is temporary — storage costs gas, memory doesn't persist
Structs/arrays parameter default to memory — explicit storage to modify state
calldata for external function inputs — read-only, cheaper than memory
Storage layout matters for upgrades — never reorder or remove storage variables

### Upgradeable Contracts

Constructors don't run in proxies — use initialize() with initializer modifier
Storage collision between proxy and impl — use EIP-1967 storage slots
Never selfdestruct implementation — breaks all proxies pointing to it
delegatecall uses caller's storage — impl contract storage layout must match proxy

### Common Mistakes

Block timestamp can be manipulated slightly — don't use for randomness or precise timing
require for user errors, assert for invariants — assert failures indicate bugs
String comparison with == doesn't work — use keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b))
Events not indexed — first 3 params can be indexed for efficient filtering
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T17:09:13.696Z
- Expires at: 2026-05-06T17:09:13.696Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/solidity)
- [Send to Agent page](https://openagent3.xyz/skills/solidity/agent)
- [JSON manifest](https://openagent3.xyz/skills/solidity/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/solidity/agent.md)
- [Download page](https://openagent3.xyz/downloads/solidity)