agentsclimarketplace

Code consistency validator

Skill aiskillstore/marketplace/skills/barissozen/code-consistency-validator

Validates type consistency across Rust, TypeScript, PostgreSQL boundaries. Use when reviewing code, debugging type mismatches, or validating API contracts. Triggers on: check consistency, validate types, find mismatches, cross-language.From its SKILL.md

Install
npx -y skills add aiskillstore/marketplace --skill code-consistency-validator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.6 KB, 337 tokens by cl100k_base, as published. Nobody here has run it

Code Consistency Validator

Validates type consistency across Rust, TypeScript, and PostgreSQL boundaries.

When to Use

  • Reviewing code for type mismatches
  • Debugging precision loss issues
  • Validating API contracts between languages
  • Checking BigInt/Number conversions
  • Auditing cross-language data flow

Workflow

Step 1: Run Quick Grep

Use provided grep commands to find potential issues.

Step 2: Check Critical Patterns

Look for Number() on wei/balance, parseInt without radix.

Step 3: Generate Report

Report findings using severity levels (CRITICAL/WARNING/INFO).


Critical Type Mappings

RustTypeScriptPostgreSQL
i64/u64bigint (not number!)BIGINT
U256stringDECIMAL(36,18)
f64numberDOUBLE PRECISION

🔴 CRITICAL Patterns

Number(response.profit_wei)  // ❌ Precision loss!
parseInt(hexBalance)         // ❌ Missing radix!
JSON.stringify({ amount: BigInt(x) })  // ❌ Fails!

Quick Grep

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

What ships with it: 1 file

10.4 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.