Agent skill
code-consistency-validator-barissozen-claude
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/code-consistency-validator-barissozen-claude
SKILL.md
Code Consistency Validator
Critical Type Mappings
| Rust | TypeScript | PostgreSQL |
|---|---|---|
| i64/u64 | bigint (not number!) | BIGINT |
| U256 | string | DECIMAL(36,18) |
| f64 | number | DOUBLE PRECISION |
🔴 CRITICAL Patterns
typescript
Number(response.profit_wei) // ❌ Precision loss!
parseInt(hexBalance) // ❌ Missing radix!
JSON.stringify({ amount: BigInt(x) }) // ❌ Fails!
Quick Grep
bash
grep -rn "Number(" --include="*.ts" | grep -E "(wei|balance|amount)"
grep -rn "parseInt(" --include="*.ts" | grep -v ", 10)" | grep -v ", 16)"
Report Format
🔴 CRITICAL (funds at risk) 🟠 WARNING (potential bugs) 🟡 INFO (style) ✅ VALIDATED
Didn't find tool you were looking for?