Dimensional Analysis
技能 活跃Annotates codebases with dimensional analysis comments documenting units, dimensions, and decimal scaling. Use when someone asks to annotate units in a codebase, perform a dimensional analysis, or find vulnerabilities in a DeFi protocol, offchain code, or other blockchain-related codebase with arithmetic. Prevents dimensional mismatches and catches formula bugs early.
To annotate codebases with dimensional analysis comments, document units, dimensions, and decimal scaling to prevent dimensional mismatches and catch arithmetic bugs early, especially in DeFi and blockchain-related code.
功能
- Annotates codebases with dimensional analysis comments
- Performs dimensional analysis on DeFi, financial, and scientific code
- Detects arithmetic bugs from unit mismatches or precision loss
- Orchestrates specialized agents for scanning, discovery, annotation, propagation, and validation
- Manages workflow, state persistence, and coverage guarantees
使用场景
- Annotating a codebase with unit/dimension comments
- Performing dimensional analysis on DeFi protocols or financial code
- Hunting for arithmetic bugs caused by unit mismatches or precision loss
- Auditing codebases with mixed decimal precisions or fixed-point arithmetic
非目标
- Codebases with no numeric arithmetic or unit conversions
- Purely integer counting logic without physical or financial dimensions
- Quick spot-checks of single formulas (direct code reading is preferred)
Trust
- warning:Issues Attention13 issues opened, 4 closed in last 90 days, indicating maintainers respond slowly to issues.
安装
请先添加 Marketplace
/plugin marketplace add trailofbits/skills/plugin install dimensional-analysis@trailofbits质量评分
类似扩展
Soul Guardian
100Drift detection + baseline integrity guard for agent workspace files with automatic alerting support
Audit Dependency Versions
100Audit project dependencies for version staleness, security vulnerabilities, and compatibility issues. Covers lock file analysis, upgrade path planning, and breaking change assessment. Use before a release to ensure dependencies are current and secure, during periodic maintenance reviews, after receiving a security advisory, when upgrading to a new language version, before submitting to CRAN or npm, or when inheriting a project to assess its dependency health.
Janitor Tokens
100显示每个技能消耗的上下文窗口令牌数量。当用户询问有关令牌成本、上下文预算、技能大小,或希望了解哪些技能浪费了最多的上下文空间时使用。
Codex Diff Develop
100Revisa el diff de la rama actual frente a develop en proyectos Drupal 11 siguiendo la metodología Codex (lógica de negocio, edge cases de hooks/queries, seguridad, performance, completitud). Genera un informe .md en la carpeta del IDE detectado (.antigravity/, .cursor/, .vscode/ o docs/) con hallazgos por severidad y soluciones accionables. Usar cuando el usuario pida "Revisión diff develop", "revisión diff develop", "diff develop", "revisar diff", "codex diff" o expresiones similares con intención de auditar cambios contra develop. Triggers: diff develop, codex diff, revisión diff, lint diff develop, auditar diff.
Web3 Testing
99Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.
Solidity Security
98Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.