Detects broken mathematical relationships between state variables in smart contracts. Automatically infers invariants (totalSupply = sum(balances), conservation laws, ratio constraints) then finds functions that violate them. Catches unauthorized minting, broken tokenomics, accounting desynchronization, and state drift. Use when auditing for state-state invariant violations, broken accounting, supply mismatches, desynchronized state variables, or conservation law violations in smart contracts.
$npx -y skills add quillai-network/quillshield_skills --skill state-invariant-detectionInstalls into the current project.
Run `npx skills use "https://github.com/quillai-network/quillshield_skills" --skill "quillai-network/quillshield_skills/state-invariant-detection"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/quillai-network/quillshield_skills" that are relevant to the current task. Run `npx skills add "https://github.com/quillai-network/quillshield_skills"` and select the relevant skills, then follow their instructions.