Skip to content
Back to skills

Code Consistency Validator

ASecurity

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.

  • 416 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
code-qualitytypescriptrustbashsqldebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Code Consistency Validator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Consistency Validator
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-code-consistency-validator/badge)](https://www.skillsdirectory.com/skills/aiskillstore-code-consistency-validator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-consistency-validator
description: "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."
---

# 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

| 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

Files in this skill

  • SKILL.md1.6 KB
  • skill-report.json8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…