{
  "schema": "snappy-card/1",
  "skill": "snappy-data-hygiene",
  "tier": "public",
  "origin_tier": "base",
  "purpose": "You are the upstream gate on schema changes. This file is load-bearing and self-sufficient. You may not read other files in this skill directory unless explicitly handed off — every rule you need is here.",
  "verbs": [
    {
      "name": "classify",
      "args": [
        "field-name",
        "context?"
      ],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-data-hygiene/api.ts classify <field-name>"
    },
    {
      "name": "prompt",
      "args": [],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-data-hygiene/api.ts prompt"
    },
    {
      "name": "review",
      "args": [
        "schema-path"
      ],
      "effect": "write-reversible",
      "firstCall": "npx tsx ~/.claude/skills/snappy-data-hygiene/api.ts review <schema-path>"
    }
  ],
  "faces": [],
  "agents": [],
  "uses": [],
  "used_by": [],
  "checks": {
    "pass": 41,
    "fail": 4,
    "defer": 16,
    "line": "41 of 45 checks pass",
    "failing": [
      {
        "id": 10,
        "rule": "One term names each concept",
        "says": "mixed synonym sets: endpoint/url/route/path"
      },
      {
        "id": 11,
        "rule": "Each task presents one default, not a menu",
        "says": "1 line(s) present three-way alternative menus"
      },
      {
        "id": 55,
        "rule": "Eval scenarios are multi-call with ground truth",
        "says": "eval manifest missing"
      },
      {
        "id": 57,
        "rule": "Eval manifest contains a disjoint holdout",
        "says": "0 disjoint holdout scenario(s)"
      }
    ]
  },
  "coverage": null,
  "spec": null,
  "evals": null,
  "files": [
    "AGENTS.md",
    "SKILL.md",
    "api.ts",
    "contract.test.ts"
  ],
  "total_size": 40800,
  "checksum": "sha256:81297fe378349e5956fb222b674db42c9fd0f762c319fc9e9d2685c51e0720b4",
  "built_at": "2026-09-09T22:08:39.346Z",
  "openapi": {
    "openapi": "3.1.0",
    "info": {
      "title": "snappy-data-hygiene",
      "version": "0.0.0",
      "description": "Schema review reference: separate canonical values (inputs) from derived values (computable outputs) to eliminate the whole class of out-of-sync data bugs. Third normal form stated without jargon. Use when reviewing a database schema, diagnosing data that disagrees with itself, or deciding whether a value should be stored or projected. Triggers on: data hygiene, schema review, canonical vs derived, normalization, stale field, computed column, third normal form."
    },
    "x-snappy-transport": "cli",
    "servers": [
      {
        "url": "npx tsx ~/.claude/skills/snappy-data-hygiene/api.ts",
        "description": "The hand itself. Every path is a verb word, every query or body key an argument."
      }
    ],
    "paths": {
      "/classify": {
        "get": {
          "operationId": "snappy_data_hygiene_classify",
          "summary": "snappy-data-hygiene classify",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "field-name",
              "in": "query",
              "required": true,
              "schema": {
                "type": "string",
                "description": "Column or field name to classify for personal data",
                "x-snappy-position": 0
              }
            },
            {
              "name": "context",
              "in": "query",
              "required": false,
              "schema": {
                "type": "string",
                "description": "Surrounding table or schema name that disambiguates the field",
                "x-snappy-position": 1
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/prompt": {
        "get": {
          "operationId": "snappy_data_hygiene_prompt",
          "summary": "snappy-data-hygiene prompt",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/review": {
        "post": {
          "operationId": "snappy_data_hygiene_review",
          "summary": "snappy-data-hygiene review",
          "x-snappy-effect": "write-reversible",
          "x-snappy-annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "requestBody": {
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema-path": {
                      "type": "string",
                      "description": "Schema file whose fields are reviewed and annotated",
                      "x-snappy-position": 0
                    }
                  },
                  "required": [
                    "schema-path"
                  ]
                }
              }
            }
          },
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      }
    },
    "components": {
      "schemas": {
        "SnappyRefusal": {
          "type": "object",
          "required": [
            "outcome",
            "code",
            "message"
          ],
          "properties": {
            "outcome": {
              "type": "string",
              "const": "refused"
            },
            "code": {
              "type": "string",
              "description": "A row of the closed refusal table."
            },
            "message": {
              "type": "string"
            },
            "fix": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}