.claude/skills/solidity-guard/skills/spec-compliance/SKILL.md
Validates Solidity implementation against specification documents. Extracts behavior from docs (README, specs, NatSpec) and verifies code matches documented intent. Uses Trail of Bits methodology for divergence detection.
npx skillsauth add alt-research/solidityguard spec-complianceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Detect divergences between documented behavior and actual implementation. Many vulnerabilities arise not from insecure code patterns, but from code that doesn't match the intended design.
rg -l "README|SPEC|DESIGN|spec|design" .
rg "/// @" contracts/ # NatSpec comments
rg "@dev|@notice|@param" contracts/
For each documented behavior:
INTENT-001: [Function]
- Claim: "Users can withdraw after 7-day timelock"
- Constraints:
- C1: Minimum 7 days between request and execution
- C2: Only original depositor can withdraw
- C3: Withdrawal amount <= deposited amount
- Source: README.md:45
BEHAVIOR-001: withdraw() at contracts/Vault.sol:156
- Observed: Withdrawal has no timelock
- C1: No time check found — DIVERGENCE
- C2: msg.sender check present (line 158) — MATCH
- C3: Balance check present (line 157) — MATCH
| Type | Definition | Severity | |------|------------|----------| | MISSING | Spec feature not implemented | HIGH | | EXTRA | Code does more than spec | MEDIUM | | DIFFERENT | Behavior differs from spec | HIGH | | AMBIGUOUS | Spec unclear | LOW | | UNDOCUMENTED | Code behavior not in spec | MEDIUM |
tools
Advanced Solidity/EVM smart contract security auditor with 104 vulnerability patterns, multi-tool integration, and professional report generation.
development
Comprehensive Solidity contract security scanner detecting 104 vulnerability patterns across reentrancy, access control, arithmetic, DeFi, proxy, and token categories. Integrates Slither, Aderyn, and Mythril with manual analysis.
testing
Analyzes storage layout, proxy patterns, and state variable security in Solidity contracts. Detects storage collisions, uninitialized pointers, and upgrade risks. Use when auditing proxy/upgradeable contracts.
testing
Generates professional security audit reports from findings. Creates OpenZeppelin/Trail of Bits style reports with executive summary, methodology, severity-classified findings, and remediation recommendations.