natspec-standards

natspec-standards is a skill for Claude Code, Codex from ccashwell/evm-cortex. It costs 44 tokens per session (1,475 once invoked), scanned A, original, MIT.

Documentation rules for NatSpec, Solidity's standard format for code comments that tools such as block explorers can display. It explains tags for contracts, functions, parameters, returns, and developer notes.

In plain words
What is it for?
Use it when writing or checking documentation for public and external Solidity functions, events, errors, and contracts.
Why use it?
It makes public contract interfaces easier for users and developers to understand and review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or checking documentation for public and external Solidity functions, events, errors, and contracts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccashwell/evm-cortex/natspec-standards
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 ccashwell/evm-cortex --skill natspec-standards
Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex

Made for: Claude Code, Codex.

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 natspec-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccashwell/evm-cortex/natspec-standards/github.svg)](https://agentmods.dev/skills/ccashwell/evm-cortex/natspec-standards)
Your own site
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/natspec-standards"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/natspec-standards/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 natspec-standards

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/natspec-standards"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/natspec-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,475 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.01475
Opus 5.5 $0.00018 $0.00590
Sonnet 5.5 $0.00009 $0.00295
Haiku 4.5 $0.00004 $0.00147

Measured 1mo ago against content hash 5703a1a2eeda, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

natspec-standards 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 1mo 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/natspec-standards/SKILL.md · 186 lines

How it starts

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

NatSpec Standards

Required Documentation

Every public and external function must have NatSpec. Internal functions that are non-trivial should also be documented.

Tags Reference

Tag Context Description
@title Contract/interface Title of the contract
@author Contract/interface Author name or team
@notice Contract/function/event/error User-facing explanation (shown in etherscan)
@dev Contract/function/event/error Developer-facing technical details
@param Function/event/error Describes a parameter
@return Function Describes a return value
@inheritdoc Function Inherits docs from parent contract
@custom:tag Any Custom metadata (e.g., @custom:security-contact is mandatory)

Contract-Level Documentation

/// @title Staking Vault
/// @author Uniswap Labs
/// @notice Handles staking deposits and reward distribution for protocol governance tokens.
/// @dev Uses ERC-4626 vault standard with custom reward distribution.
///      Storage layout is proxy-compatible (see storage-layout skill).
/// @custom:security-contact [email protected]
contract StakingVault is ERC4626, Ownable2Step, ReentrancyGuard {
    // ...
}

Function Documentation

/// @notice Deposits tokens into the vault and mints shares to the caller.
/// @dev Follows CEI pattern. Emits {Deposited} event. The share calculation
///      uses the current exchange rate, which may be manipulated in the same
///      block — see economic-attack-vectors for first-depositor defense.
/// @param token The address of the ERC-20 token to deposit.
/// @param amount The amount of tokens to deposit (in token's native decimals).
/// @return shares The number of vault shares minted to the caller.
function deposit(address token, uint256 amount)
    external
    nonReentrant
    whenNotPaused
    returns (uint256 shares)
{
    if (token == address(0)) revert ZeroAddress();
    if (amount == 0) revert ZeroAmount();

    shares = convertToShares(amount);
    _mint(msg.sender, shares);

    IERC20(token).safeTransferFrom(msg.sender, address(this), amount);

    emit Deposited(msg.sender, token, amount, shares);
}

Read the full file on GitHub · 186 lines

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. 1mo ago First seen · 186 lines · 44 tokens per session scan A 5703a1a2eeda

Subscribe to this mod's changes

natspec-standards is a skill published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 17d ago), licensed MIT. It adds 44 tokens to every session and 1,475 once invoked, about $0.0002 per session on Opus 5.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-09-03.