natspec-standards

Enforce NatSpec tags on public and external Solidity functions.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill natspec-standards-ccashwell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: natspec-standards
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/natspec-standards
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill natspec-standards-ccashwell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NatSpec documentation standards ensure contracts communicate intent, usage, and safety to users and auditors by enforcing comprehensive in-code docs and tags.

Core Features & Use Cases

  • Enforces NatSpec presence on all public and external functions (including @title, @notice, @dev, @param, @return).
  • Provides concrete examples and formatting guidelines for common tags, including custom tags like @custom:security-contact.
  • Improves code readability and maintainability across large Solidity projects with consistent documentation practices.

Quick Start

Review a contract and add complete NatSpec documentation to all public and external functions.

Frequently Asked Questions about natspec-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add NatSpec comments to Solidity contracts?

To add NatSpec comments to Solidity contracts, you annotate all public and external functions with tags like @title, @notice, @param, and @return. This enforces consistent documentation and ensures contracts communicate intent to users and auditors.

What tags are required for Solidity NatSpec documentation standards?

Required NatSpec documentation standards for Solidity include @title, @notice, @param, and @return tags for all public and external functions. You can also use @dev for context and custom tags like @custom:security-contact to improve contract readability.

Does NatSpec coverage work for enterprise-grade Solidity audits?

Yes, NatSpec coverage is suited for enterprise-grade Solidity audits. It guides teams by enforcing comprehensive inline docs and tags across multiple contracts, ensuring thorough documentation that auditors require to verify contract safety and usage.

Why is NatSpec documentation important for open-source Solidity projects?

NatSpec documentation is important for open-source Solidity projects because it enforces consistent documentation practices. By requiring complete inline docs and example usage, it improves code readability, maintainability, and clarity for contributors and auditors.

What is the best way to enforce NatSpec coverage across multiple contracts?

The best way to enforce NatSpec coverage across multiple contracts is to apply documentation standards that require every public and external function to have complete NatSpec tags and example usage. This promotes consistency and maintainability in large Solidity projects.