Skip to content
Back to skills

Schema Gate

ASecurity

Validates CSV/JSON against a column contract; an unknown keyword is UNVERIFIED, never pass.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 18, 2026
ai-agentspythonbash

Security analysis

A100/100

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

Scanned November 18, 2026

npx -y skills add JiamingShi-JsPhys/chelate-shell --skill schema-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema Gate?

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

Security grade badge for Schema Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiamingshi-jsphys-schema-gate/badge)](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-schema-gate)

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: schema-gate
version: 1.4.0
description: >
  Validates CSV/JSON against a column contract; an unknown keyword is
  UNVERIFIED, never pass.
metadata:
  version: 1.4.0
  author: Jiaming Shi
  license: MIT
  entry_point: python run.py
  python_requires: '>=3.10'
---

# schema-gate

Checks a dataset against a schema you write, and reports every violation with
its column, row and kind. `data-profiler` describes what is in a file; this
gate decides whether the file is what the project said it would be.

- **Stage:** `gates` · **Sandbox:** no · **Dependencies:** none (standard library)

## Quick Execution

Run this exact form — do not read the source tree:

```bash
python run.py --root <WS> --action check --input data.csv --schema schema.json
```

- Column keywords: `type` (`number` | `integer` | `string` | `boolean`),
  `required`, `allowed`, `min`, `max`, `pattern`. **Anything else is
  refused** — a validator that skipped an unknown keyword would report a PASS
  for a check it never made.
- Results land in `<WS>/process/gates/`, the full report in `<WS>/process/`.

## Verdicts

| Status | When |
| --- | --- |
| `PASS` | every declared cell satisfies the contract |
| `FAIL` | at least one violation; the report names column, row and kind |
| `UNVERIFIED` | the schema or data cannot be checked (unknown keyword, unreadable file, zero rows) |

## When to use

- A dataset feeds a conclusion and its shape is part of the claim.
- A pipeline must stop when a column disappears or a value leaves its range.

## When NOT to use

- You need statistical profiling — that is `data-profiler`.
- Your schema uses JSON Schema keywords (`$ref`, `oneOf`, `items`, …). This
  gate implements a small subset and refuses the rest on purpose.

## More

- [schema format, outputs, failure handling and limits](references/schema-gate-reference.md)

Files in this skill

  • LICENSE1 KB
  • README.md1.4 KB
  • SKILL.md1.8 KB
  • manifest.json452 B
  • references/schema-gate-reference.md2.2 KB
  • run.py3.2 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.