visibility

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

A code-review skill for Solidity, the programming language used for smart contracts on Ethereum-compatible blockchains. It spots unused public functions that could be external and manual getter functions duplicated by Solidity's automatic getters.

In plain words
What is it for?
Use it while writing or reviewing Solidity contracts, during pre-audit cleanup, or after adding external entry points. It is also relevant when applying the VI-001 and CD-001 review changes.
Why use it?
It can reduce contract bytecode and, for suitable functions, lower the gas cost of calls by avoiding an unnecessary internal entry point and using calldata for reference inputs.

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 while writing or reviewing Solidity contracts, during pre-audit cleanup, or after adding external entry points. It is also relevant when applying the VI-001 and CD-001 review changes.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/zaryab2000/decipher-gas-optimizoor/visibility/github.svg)](https://agentmods.dev/skills/zaryab2000/decipher-gas-optimizoor/visibility)
Your own site
<a href="https://agentmods.dev/skills/zaryab2000/decipher-gas-optimizoor/visibility"><img src="https://agentmods.dev/badge/skills/zaryab2000/decipher-gas-optimizoor/visibility/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for visibility

Your own site · 80×15
<a href="https://agentmods.dev/skills/zaryab2000/decipher-gas-optimizoor/visibility"><img src="https://agentmods.dev/badge/skills/zaryab2000/decipher-gas-optimizoor/visibility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,313 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.00088 $0.01313
Opus 5 $0.00044 $0.00656
Sonnet 5 $0.00018 $0.00263
Haiku 4.5 $0.00009 $0.00131

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

Security

Grade A, and why

visibility 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 10d 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/visibility/SKILL.md · 150 lines

How it starts

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

Purpose

Identify functions declared public that are never called internally and remove manual getter functions that duplicate Solidity's auto-generated getters. Both changes reduce unnecessary bytecode and enable downstream optimizations.

public functions generate two ABI dispatch entry points: one for external calls (reads from calldata) and one for internal calls (parameters on stack/memory). external eliminates the internal entry point, enabling calldata for reference parameters.


When to Use This Skill

  • Writing or reviewing any Solidity function declaration
  • Code review of contracts with many public functions
  • Pre-audit cleanup of a Foundry-based Solidity project
  • After adding new external entry points that do not call internal functions
  • After applying VI-001: combine with CD-001 (calldata) for max impact

When NOT to Use This Skill

  • Functions already declared external — already optimal
  • Contracts with no public functions
  • Interface-only files or abstract contracts where visibility is inherited
  • When only reviewing test files (visibility in tests has no gas impact)
  • Functions called internally via bare name (_fn()) or this.fn() — must stay public

Platform Detection

Trigger on any .sol file containing public function declarations or manual view getter functions. No tooling prerequisites beyond Read.

# Find public functions
grep -n "public" src/**/*.sol | grep -v "^.*\/\/"

# Find manual getter candidates (view returns single value)
grep -n "view returns" src/**/*.sol

Quick Reference

Situation Action
Function called only externally? Change to external (VI-001)
Function takes array/struct params AND is external? Also use calldata (VI-001 + CD-001)
Manual getter for a public state variable? Remove it (VI-002)
Function called internally (same contract, no this.)? Must stay public or internal
Function called via this.fn() from inside the contract? Must stay public
Required by interface (e.g., ERC-20 balanceOf)? Keep with appropriate visibility

Read the full file on GitHub · 150 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. 10d ago First seen · 150 lines · 88 tokens per session scan A da9daeb39add

Subscribe to this mod's changes

visibility is a skill published in the GitHub repository zaryab2000/decipher-gas-optimizoor (7 stars, last pushed 6mo ago), licensed MIT. It adds 88 tokens to every session and 1,313 once invoked, about $0.0004 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