deployment

deployment is a skill for Claude Code from zaryab2000/decipher-gas-optimizoor. It costs 107 tokens per session (1,938 once invoked), scanned A, original, MIT.

A Solidity review skill that finds ways to reduce the cost and size of contract deployments, including when a factory could use minimal proxy contracts instead of full copies.

In plain words
What is it for?
Use it when reviewing factory contracts, constructors, bytecode size, dead code, or administrative functions in frequently deployed contracts.
Why use it?
It helps prevent factories and repeated deployments from paying for duplicated bytecode or unnecessary contract logic.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the decipher-gas-optimizoor plugin — 11 skills, 5 commands, 1 agent shipped together

Good fit Use it when reviewing factory contracts, constructors, bytecode size, dead code, or administrative functions in frequently deployed contracts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zaryab2000/decipher-gas-optimizoor/deployment
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.

Any agent
npx skills add zaryab2000/decipher-gas-optimizoor --skill deployment
Clone the repo
git clone --depth 1 https://github.com/zaryab2000/decipher-gas-optimizoor

Made for: Claude Code.

Or install decipher-gas-optimizoor, the plugin that ships this one along with the rest of its 11 skills, 5 commands, 1 agent.

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 deployment

README.md
[![agentmods](https://agentmods.dev/badge/skills/zaryab2000/decipher-gas-optimizoor/deployment.svg)](https://agentmods.dev/skills/zaryab2000/decipher-gas-optimizoor/deployment)
Your own site
<a href="https://agentmods.dev/skills/zaryab2000/decipher-gas-optimizoor/deployment"><img src="https://agentmods.dev/badge/skills/zaryab2000/decipher-gas-optimizoor/deployment.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,938 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.00107 $0.01938
Opus 5 $0.00053 $0.00969
Sonnet 5 $0.00021 $0.00388
Haiku 4.5 $0.00011 $0.00194

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

Security

Grade A, and why

deployment 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.

skills/deployment/SKILL.md · 200 lines

How it starts

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

Purpose

Identify deployment cost inefficiencies: factory patterns deploying full contracts instead of minimal proxies, dead code inflating bytecode, and configuration-level savings (payable admin functions, vanity addresses for ultra-high-frequency protocols). Deployment cost is 200 gas/byte of bytecode and is paid once per instance — reducing it compounds at factory scale.

When to Use

  • Writing or reviewing factory contracts
  • Reviewing constructors and new ContractName() patterns
  • Pre-deployment review of bytecode size
  • Reviewing contracts with known dead or conditional code paths
  • Reviewing admin functions in high-frequency DeFi protocols

When NOT to Use

  • Contracts that are already using proxies (ERC-1967, UUPS, Beacon)
  • Singleton contracts deployed once with no factory pattern
  • When dead code was intentionally preserved for a future activation

Rationalizations to Reject

Rationalization Why It's Wrong Required Action
"It's only one deployment" Factory contracts deploy potentially thousands of instances; 491,000 gas × 1,000 users = 491M gas wasted Estimate scale before dismissing
"The optimizer removes dead code" The optimizer eliminates some dead paths but not all — unused internal functions and if(false) branches often survive Always measure with forge build --sizes before and after
"payable is risky" The risk is locked ETH if no withdrawal exists — document the precondition, don't skip the optimization Apply with the ETH-recovery check, not instead of it
"We can refactor after launch" Deployment cost is paid at deploy time; you cannot retroactively reduce it for already-deployed instances Fix the factory pattern before any significant user adoption

Platform Detection

Trigger fires when:

  • A factory function uses new ContractName() to deploy multiple instances
  • Bash is available to run forge build --sizes for bytecode measurement

Quick Reference

  • Factory deploying new ContractName() for each user? → ERC-1167 minimal proxy (DP-001, ~491,000 gas saved per clone)
  • Admin function called thousands of times? → payable removes ~24 gas/call ETH check (DP-002)
  • Dead if(CONSTANT_FALSE) branch or unused internal/private function? → remove it (DP-003, 200 gas/byte)
  • CREATE2 factory for ultra-high-frequency protocol (millions of calls/day)? → consider vanity address (DP-004, ~12 gas/call/leading-zero-byte)

Read the full file on GitHub · 200 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 200 lines · 107 tokens per session scan A ccc6fc4004a7

Subscribe to this mod's changes

deployment is a skill published in the GitHub repository zaryab2000/decipher-gas-optimizoor (7 stars, last pushed 6mo ago), licensed MIT. It adds 107 tokens to every session and 1,938 once invoked, about $0.0005 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 skills, from other repositories

solidity-gas-optimizer

Analyze and optimize gas consumption in Solidity smart contracts using proven patterns and best practices.

ZhouXiaoHong/binance-skills · 23 tokens

blockchain-expert

Expert-level blockchain, Web3, smart contracts, DeFi, and cryptocurrency development. Use when the user mentions Web3, smart contracts, DeFi, Ethereum, or Solidity, or when the task involves Blockchain Fundamentals, Web3 & DeFi, Smart Contract Security, or Gas Optimization.

personamanagmentlayer/pcl · 63 tokens

blockchain-application

Use this skill when asked about smart contract development, Solidity, Vyper, Rust smart contracts (Solana, NEAR, Polkadot), Haskell/Plutus (Cardano), Cairo/StarkNet, dApp backend development, Truffle, Hardhat, Foundry, Anchor, and blockchain application patterns. Languages: Solidity, Vyper, Rust, Haskell, Cairo, Move.…

j4flmao/agent-skills · 175 tokens

web3-expert

Build production-ready Web3 applications including smart contracts, dApps, DeFi protocols, and decentralized storage solutions. Use when the user mentions Web3, smart contracts or Solidity, dApps, DeFi protocols, ethers.js or web3.js, IPFS, or on-chain integration with Ethereum-compatible networks.

personamanagmentlayer/pcl · 66 tokens

flounder

Operates Flounder, an autonomous white-hat security auditor. Use when a user asks for a security audit, bug-bounty review, vulnerability investigation, or exploit proof for a public-source or authorized repository, source tree, package, smart contract, Solidity/EVM project, ZK or proof-system code, deployed address…

adshao/flounder · 202 tokens

ethereum-development

Production-grade Ethereum/EVM development workflow for smart contracts, dApps, transactions, clients, gas optimization, testing, security review, deployment, verification, monitoring, and incident response across Foundry, Hardhat, Solidity, TypeScript, viem, ethers, wagmi, and common EVM networks.

dirtybits/agent-skills · 64 tokens