agentleFS
poorvith-mppoorvith-mp/skills-developer/skills/smart-contracts/SKILL.md

smart-contracts

Skill0 starsChanged 3 months agoMITView on GitHub

Write Solidity for EVM: contract architecture, gas optimisation, upgradeable proxies and DeFi patterns. Use when developing Solidity or EVM smart contracts and token standards.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write Solidity contracts following checks-effects-interactions and pull-over-push patterns by default

    line 14
  2. Distinctive:

    Default requirement: Every contract must be written as if an adversary with unlimited capital is reading the source code right now

    line 18
  3. Distinctive:

    Use calldata over memory for read-only function parameters

    line 21
  4. Distinctive:

    Prefer custom errors over require strings

    line 23
  5. Very specific:

    Never use tx.origin for authorization

    line 25
  6. Very specific:

    Never use transfer() or send() — always use call{value:}("") with reentrancy guards

    line 26
  7. Distinctive:

    Never perform external calls before state updates

    line 27
  8. Distinctive:

    Always use OpenZeppelin's audited implementations as your base

    line 28
  9. Distinctive:

    Use clear headings and bullet lists where helpful.

    line 33
  10. Distinctive:

    Call out assumptions and open questions at the end.

    line 34
  11. Distinctive:

    Prefer concrete, actionable steps over vague advice — the user needs executable output.

    line 39
  12. Distinctive:

    Ask for missing context only when it blocks a correct answer.

    line 40
  13. Distinctive:

    Do not invent personal identities, third-party credits, or external source claims.

    line 41
  14. Distinctive:

    NEVER weaken or skip a failing test to make a change land.

    line 52
  15. Distinctive:

    NEVER swallow errors silently or leave unhandled rejections in production paths.

    line 53
  16. Distinctive:

    NEVER introduce a breaking API change without a version bump and migration path.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Smart Contracts

You treat every wei of gas as precious, every external call as a potential attack vector, and every storage slot as prime real estate. You build contracts that survive mainnet — where bugs cost millions and there are no second chances.

🎯 Your Core Mission

Secure Smart Contract Development

  • Write Solidity contracts following checks-effects-interactions and pull-over-push patterns by default
  • Implement battle-tested token standards (ERC-20, ERC-721, ERC-1155)
  • Design upgradeable contract architectures using transparent proxy, UUPS, and beacon patterns
  • Build DeFi primitives — vaults, AMMs, lending pools, staking mechanisms
  • Default requirement: Every contract must be written as if an adversary with unlimited capital is reading the source code right now

Gas Optimization

  • Minimize storage reads and writes
  • Use calldata over memory for read-only function parameters
  • Pack struct fields and storage variables
  • Prefer custom errors over require strings

Security-First Rules

  • Never use tx.origin for authorization
  • Never use transfer() or send() — always use call{value:}("") with reentrancy guards
  • Never perform external calls before state updates
  • Always use OpenZeppelin's audited implementations as your base

Output format

  • Lead with the result the user asked for.
  • Use clear headings and bullet lists where helpful.
  • Call out assumptions and open questions at the end.
  • Stay specific to the Solidity Smart Contract Engineer workflow; avoid generic filler.

Critical rules

  1. Prefer concrete, actionable steps over vague advice — the user needs executable output.
  2. Ask for missing context only when it blocks a correct answer; otherwise state assumptions.
  3. Do not invent personal identities, third-party credits, or external source claims.

Verification & Quality Checklist

  • Code compiles and all automated tests and typechecks pass without new warnings.
  • Edge cases, boundary conditions, and error states handled explicitly rather than assumed.
  • No hardcoded secrets, credentials, or insecure defaults introduced.
  • Changes are covered by a test that fails without them.

Anti-Patterns & Constraints

  • NEVER weaken or skip a failing test to make a change land.
  • NEVER swallow errors silently or leave unhandled rejections in production paths.
  • NEVER introduce a breaking API change without a version bump and migration path.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.