/odin-security:smart-contract-guidelines-advisorfrom ODIN Security
Provides architecture, testing, and maturity scorecard guidance for smart-contract projects. Use guidelines or maturity mode for evidence-backed assessments.
Ships in ODIN Security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | A smart-contract project needs architecture, implementation, dependency, upgradeability, documentation, testing guidance, or an evidence-based maturity scorecard. |
| Authority | Read-only. Closed write set: none. Rollback: not applicable. No remote mutation. |
| Side effect | One structured chat output containing an evidence-backed assessment, a nine-category maturity scorecard in maturity mode, and concrete deliverables or a remediation roadmap. |
| Done | All applicable assessment areas or categories are covered, every recommendation or rating maps to explicit project evidence, and the aggregate score in maturity mode is computed from rated categories only. |
guidelines for the 12-area secure-development assessment, or maturity for the nine-category scorecard.Discover project structure. List contract or module files, identify the platform and compiler version, locate documentation, test files, dependency manifests, and any proxy or upgradeability patterns. Record the file tree and key metadata. Done when: the assessment scope, platform, compiler, files, documentation, tests, dependencies, and upgradeability signals are recorded.
Run the selected mode.
Mode guidelines:
Generate documentation and specifications. Produce a plain-English system description covering purpose, components, assumptions, interactions, and critical operations. Identify documentation gaps: missing NatSpec, undocumented assumptions, unclear state transitions. If Slither printers are available for Solidity, generate contract-interaction and state-machine diagrams; otherwise describe the architecture textually. Done when: purpose, components, assumptions, interactions, critical operations, and documentation gaps are explicit, with diagrams or the named textual fallback.
Analyze on-chain versus off-chain computation. If the project has off-chain components or could benefit from them, assess on-chain logic complexity, identify computations that could move off-chain with on-chain verification, and estimate gas savings. Skip this area explicitly if no off-chain optimization opportunity exists. Done when: each credible off-chain move has verification and gas implications, or the report records an evidence-backed explicit skip.
Review upgradeability. If the project supports or plans upgrades, assess the pattern (migration versus upgradeability, data separation versus delegatecall proxy), check documentation of the upgrade procedure, and evaluate deployment and initialization scripts. Skip this area explicitly if no upgradeability mechanism exists. Done when: the upgrade pattern, procedure, deployment, and initialization evidence are assessed, or absence is explicitly recorded.
Audit delegatecall proxy patterns. If delegatecall proxies are present, check storage layout consistency between proxy and implementation, inheritance order implications, initialization patterns and front-running risks, function shadowing, direct implementation usage protection, immutable or constant variable synchronization, and contract existence checks. Use Slither's slither-check-upgradeability if available; otherwise perform manual pattern analysis. Skip this area explicitly if no delegatecall proxies exist.
Done when: every named proxy risk has tool-backed or manual evidence, or proxy absence is explicitly recorded.
Assess function composition. Identify functions with excessive size or cyclomatic complexity, unclear purposes, or mixed concerns. Recommend splitting strategies and logical grouping by responsibility (authentication, arithmetic, state transitions). Done when: each composition recommendation cites the affected function and names the responsibility boundary it should enforce.
Evaluate inheritance. Map the inheritance hierarchy, assess depth and width, check for diamond-problem risks, and review override and virtual function patterns. Recommend simplification where the hierarchy is unnecessarily deep or wide. Done when: the hierarchy, override behavior, diamond risk, and each proposed simplification trace to code evidence.
Review events. Verify that all critical operations (state changes, transfers, access control changes, parameter updates) emit events. Check naming consistency, indexed parameters for filtering, and event documentation. Done when: every critical operation has an event disposition and naming, indexing, and documentation findings cite code.
Check common pitfalls. Systematically scan for reentrancy patterns, integer overflow or underflow, access control issues, front-running vulnerabilities, oracle manipulation risks, timestamp dependence, uninitialized variables, delegatecall risks, and platform-specific vulnerability patterns. Reference the project's own vulnerability database and platform documentation for each finding. Done when: every named pitfall has an evidence-backed finding or explicit no-finding result, with project and platform references where applicable.
Evaluate dependencies. Assess external libraries for maintenance quality and whether their versions are current, check for dependency manager usage, identify copied code that should be imports, and flag custom reimplementations of well-tested library functionality. Done when: each dependency, copied implementation, and custom reimplementation has a currentness, maintenance, and reuse disposition backed by manifests or source.
Assess testing and verification. Analyze test coverage, testing techniques (unit, integration, fuzzing, formal verification), CI/CD configuration, and automated security testing. Recommend specific improvements: property-based tests, custom Slither detectors, mutation testing, or CI integration. Done when: coverage and technique gaps map to specific runnable improvements and existing test or CI evidence.
Compile prioritized recommendations. Classify every finding into CRITICAL (fix immediately), HIGH (fix before deployment), MEDIUM (fix for production quality), or LOW (nice to have). Each recommendation must cite the specific file, line, or code pattern that motivates it, and state the concrete action to take. Done when: every finding has one severity, one evidence citation, and one concrete action, with no unsupported priority claim.
Mode maturity:
Assess each of nine categories. For every category, search code for relevant patterns, read key implementations, collect file:line evidence, and ask the human about off-chain processes that code cannot show. Apply the WEAK/MODERATE/SATISFACTORY/STRONG thresholds below. Any Weak criterion makes the rating Weak. If no Weak criterion applies but some Moderate requirements are unmet, rate Moderate. If all Moderate requirements and some Satisfactory requirements are met, rate Satisfactory. If all Satisfactory requirements are met and exceptional practices are present, rate Strong. If code inspection cannot establish a rating, mark the category evidence-unavailable rather than assigning WEAK or inventing evidence.
Done when: all nine categories have a threshold-derived rating or an evidence-unavailable marker, file:line evidence, explicit evidence gaps, and only human-supplied off-chain claims.
1. ARITHMETIC
2. AUDITING
3. AUTHENTICATION / ACCESS CONTROLS
4. COMPLEXITY MANAGEMENT
5. DECENTRALIZATION
6. DOCUMENTATION
7. TRANSACTION ORDERING RISKS
8. LOW-LEVEL MANIPULATION
9. TESTING AND VERIFICATION
Compute overall maturity. Map each rated category to a numeric value: WEAK=1, MODERATE=2, SATISFACTORY=3, STRONG=4. Compute the arithmetic mean of the rated categories and round to one decimal. Exclude any evidence-unavailable category from the mean and list it separately in the scorecard. Do not silently assign a numeric value to an evidence-unavailable category. Done when: the aggregate score is computed from rated categories only, rounded to one decimal, and evidence-unavailable categories are listed separately.
Generate the report. Produce the structured output: executive summary with overall score, top strengths, top gaps, and priority recommendations; maturity scorecard table with all nine categories (rated or evidence-unavailable); per-category detailed analysis with evidence; improvement roadmap ordered by CRITICAL, HIGH, MEDIUM with effort estimates and impact per item. Done when: the report contains every output section, preserves category-to-evidence traceability, and orders remediation by severity, effort, and impact.
Traceability check. Verify that every rating cites file:line evidence or an unanswered question. Verify that no evidence-unavailable category was silently scored. Verify that the aggregate score matches the arithmetic mean of the rated categories. Done when: every consequential rating traces to evidence or an explicit gap.
Compile and order output. In guidelines mode, return system documentation, architecture analysis, implementation review, CRITICAL-to-LOW recommendations, and the overall maturity path. In maturity mode, return the executive summary, the nine-category scorecard, per-category evidence and gaps, the aggregate score, and a CRITICAL-to-HIGH-to-MEDIUM improvement roadmap. In both modes, order findings by severity and source location.
Done when: the output contract is satisfied.
evidence-unavailable, exclude it from the aggregate mean, and list it separately in the scorecard. Never invent evidence or assign WEAK to fill the gap.not assessed. Do not extrapolate ratings to unexamined areas.Return the mode-specific output in the order defined in the Procedure. In guidelines mode, return system documentation first, then architecture analysis, implementation review, CRITICAL-to-LOW recommendations, and the overall maturity path. In maturity mode, return the executive summary first, then the nine-category scorecard (with evidence-unavailable categories listed separately), per-category evidence and gaps, the aggregate score, and a CRITICAL-to-HIGH-to-MEDIUM improvement roadmap. Map every recommendation or rating to explicit evidence in both modes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-security31 skills in this plugin
/burpsuite-project-parserUse when asked to analyze a Burp Suite .burp project for audit items, request/response metadata, or captured traffic. Modes: parsed (default) and stream. Not for source or remote-system changes./chain-vulnerability-scannerUse when an Algorand, Cairo, Cosmos SDK, Solana, Substrate, or TON codebase needs vulnerability scanning with reachability-backed findings. Not for non-chain review: use security-review./codeql-security-analysisUse when building or reusing a CodeQL database, running CodeQL security analysis, or modeling project-specific sources and sinks. Not for manual vulnerability review: use security-review (mode: confirmed)./constant-time-analysisUse when reviewing cryptographic code for timing side-channels, statically in compiled output or at runtime with statistical timing tests. Not for known-answer vectors: use wycheproof./crypto-protocol-diagramUse when asked for a sequence diagram of cryptographic protocol semantics from code, prose, RFCs, papers, ProVerif, or Tamarin, or for code/spec divergence. Not for architecture: use diagramming-code./c-security-reviewUse when the user requests a userspace C or C++ security review with a threat model and severity filter and wants validated findings. Not for kernel or bare-metal code: use kernel-security.Other plugins' skills for the same job