semantic-consistency-audit

Detect cross-contract semantic inconsistencies in unit, formula, and magic-number drift.

276|56|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/PlamenTSV/plamen --skill semantic-consistency-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-consistency-audit
Source: https://github.com/PlamenTSV/plamen/tree/main/agents/skills/niche/semantic-consistency-audit
Command: npx skills add https://github.com/PlamenTSV/plamen --skill semantic-consistency-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cross-contract audits often miss semantic mismatches across shared config variables, formulas, and magic numbers. This Skill automates detection of cross-contract inconsistencies to prevent subtle bugs and funding errors.

Core Features & Use Cases

  • Cross-contract consistency checks: identifies unit mismatches, formula drift, and magic-number drift across multiple contracts.
  • Automated findings generation: outputs a structured report to niche_semantic_consistency_findings.md detailing root causes and recommended fixes.
  • Multi-chain applicability: applicable to EVM, Solana, Aptos Move, and Sui Move projects with multi-contract codebases.

Quick Start

Run the Semantic Consistency Audit on the current multi-contract workspace to detect cross-contract unit mismatches and drift.

Frequently Asked Questions about semantic-consistency-audit

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

FAQPage Schema
How do I detect cross-contract semantic inconsistencies in smart contracts?

Cross-contract semantic inconsistencies are detected by analyzing shared variables, formulas, and magic numbers to surface unit mismatches and formula drift. This automated audit enforces consistency checks to prevent subtle bugs and funding errors across in-scope contracts.

What is cross-contract semantic drift in multi-contract audits?

Cross-contract semantic drift occurs when shared config variables, formulas, and magic numbers diverge across multiple contracts. Identifying this drift prevents subtle bugs and funding errors by enforcing consistency checks for unit mismatches and formula variations.

Can I audit magic number drift across EVM, Solana, and Move contracts?

Yes, you can audit magic number drift across EVM, Solana, Aptos Move, and Sui Move projects. The audit enforces checks for magic-number drift by comparing contract inventories and constraint variables to generate structured findings.

How do I audit shared variables and formulas across multiple smart contracts?

Audit shared variables and formulas by comparing contract_inventory.md and constraint_variables.md across in-scope contracts. This process surfaces HAS_MULTI_CONTRACT findings related to formula drift, unit mismatches, and magic-number drift.

What's the best way to prevent unit mismatches in multi-chain smart contract codebases?

The best way to prevent unit mismatches is to run a semantic consistency audit that enforces cross-contract consistency checks. It compares shared variables and formulas to output structured findings detailing root causes and recommended fixes.

How are cross-contract audit findings reported and formatted?

Cross-contract audit findings are output to a structured report named niche_semantic_consistency_findings.md. This report details root causes and recommended fixes for detected unit mismatches, formula drift, and magic-number drift.