跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

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

质量评分

95 /100
about 12 hours ago 分析

信任信号

最近提交3 days ago
星标5.2k
许可证CC-BY-SA-4.0
状态
查看源代码

类似扩展

Soul Guardian

100

Drift detection + baseline integrity guard for agent workspace files with automatic alerting support

技能
prompt-security

Audit Dependency Versions

100

Audit 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.

技能
pjt222

Janitor Tokens

100

显示每个技能消耗的上下文窗口令牌数量。当用户询问有关令牌成本、上下文预算、技能大小,或希望了解哪些技能浪费了最多的上下文空间时使用。

技能
khendzel

Codex Diff Develop

100

Revisa 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.

技能
j4rk0r

Web3 Testing

99

Test 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.

技能
wshobson

Solidity Security

98

Master 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.

技能
wshobson