Skip to content
Back to skills

Consistency Check

ASecurity

Cross-document consistency check: detects GDD entities with conflicting stats, values, or formulas.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
code-qualitygobashgit

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill consistency-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Consistency Check?

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

Security grade badge for Consistency Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-consistency-check/badge)](https://www.skillsdirectory.com/skills/sebastianluser-consistency-check)

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: consistency-check
description: "Cross-document consistency check: detects GDD entities with conflicting stats, values, or formulas."
category: "gamedev"
argument-hint: "[full | since-last-review | entity:<name> | item:<name>]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write, Edit, Bash
---
# Consistency Check

Detects cross-document inconsistencies by comparing GDDs against entity registry (`design/registry/entities.yaml`). Grep-first: read registry once, then grep only matching names — no full document reads.

Run: after each new GDD, and before `/architecture-decision`. Output: conflict report + optional registry corrections.

## Arguments

| Mode | Behavior |
|------|----------|
| `full` / no arg | All registered entries vs all GDDs |
| `since-last-review` | Only GDDs modified since last review report |
| `entity:<name>` | One entity across all GDDs |
| `item:<name>` | One item across all GDDs |

## Phase 1: Load Registry

Read `design/registry/entities.yaml`. Empty/missing → stop ("Run `/design-system` to populate"). Build lookup tables: entity_map, item_map, formula_map, constant_map.

## Phase 2: Locate GDDs

Glob `design/gdd/*.md` (exclude game-concept, systems-index, game-pillars). For `since-last-review`: git log to find GDDs modified since last `gdd-cross-review-*.md`.

## Phase 3: Grep-First Conflict Scan

For each registered entry, grep all in-scope GDDs for the name (-C 3 context). Extract values near the name and compare against registry.

| Scan | Extract | Compare |
|------|---------|---------|
| Entity | Numeric/categorical attributes, derived values | Registry attribute values |
| Item | Sell price, weight, stack rules, category | Registry item values |
| Formula | Variable names, output range/caps | Registry formula vars + range |
| Constant | Numeric values near name | Registry value |

Classification: **CONFLICT** (different values), **NOTE** (mentioned but unverifiable).

## Phase 4: Deep Investigation (conflicts only)

Full-section read of conflicting GDD. Determine: which GDD is correct (source field = authoritative owner), is registry stale (source GDD updated after registry), is this intentional design change?

Categories: 🔴 CONFLICT (different values, must resolve), ⚠️ STALE REGISTRY (source changed but registry not updated), ℹ️ UNVERIFIABLE (no comparable attribute stated).

## Phase 5: Report

Registry entries checked + GDDs scanned + conflicts (entry/attribute/values/resolution needed) + stale entries (registry vs source GDD) + unverifiable references + clean entries count.

**Verdict:** PASS (no conflicts) or CONFLICTS FOUND (list resolution steps).

## Phase 6: Registry Corrections

Stale entries → ask to update registry (update value, set revised date, comment old value). New entries in GDDs not in registry → ask to add (only if appears in 2+ GDDs). Never delete — set `status: deprecated`.

If 🔴 conflicts found → append to `docs/consistency-failures.md` (if exists): date, domain, docs involved, what happened, resolution, pattern/lesson.

## Protocol

- PASS → proceed to `/architecture-decision`
- CONFLICTS FOUND → fix GDDs, re-run to confirm
- Source GDD (per `source:` field) is authoritative owner
- Run after each new GDD to catch issues early

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 code-quality →

Comments

Loading comments…

Newsletter

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