Skip to content
Development
Skill

/kp-content-validation

Validates knowledge pack content against runtime schemas: .skillmeta against KnowledgePackSchema, modules against ModulesFileSchema, activities against PackActivitySchema. Checks cross-pack references, learning outcome uniqueness, and file completeness. Use when validating pack

From plugin
gsd-skill-creator
71102 skills61 agents26 commands1 MCP

Claude Code

$ npx -y skills add Tibsfox/gsd-skill-creator --skill kp-content-validation --agent claude-code

SKILL.md

kp-content-validation.SKILL.md
name: kp-content-validation
description: "Validates knowledge pack content against runtime schemas: .skillmeta against KnowledgePackSchema, modules against ModulesFileSchema, activities against PackActivitySchema. Checks cross-pack references, learning outcome uniqueness, and file completeness. Use when validating pack content after generation."
metadata:
  extensions:
    gsd-skill-creator:
      triggers:
        intents:
          - "pack.*validat"
          - "schema.*check"
          - "pack.*verify"
          - "cross.*pack.*ref"
        files:
          - "src/knowledge/content-validator.ts"
          - "src/knowledge/__tests__/content-validator.test.ts"
        contexts:
          - "pack content validation"
          - "schema verification"
        threshold: 0.7
      token_budget: "1.0%"
      version: 1
      enabled: true
      plan_origin: "244-chipset-agent-definitions"
      phase_origin: "244"

Content Validation

Purpose

Validates all generated pack content against the runtime schemas defined in src/knowledge/types.ts. This is the quality gate skill used by the KP-05 validator agent after each batch of packs is generated. It catches schema violations, missing files, broken cross-pack references, and duplicate learning outcome codes before content reaches the review stage.

Capabilities

  • .skillmeta YAML validation against KnowledgePackSchema via parseSkillmeta
  • Modules YAML validation against ModulesFileSchema
  • Activities JSON validation against PackActivitySchema (per-entry)
  • Vision document structure validation (required sections present)
  • Assessment framework structure validation (rubric levels present)
  • Resource catalog validation (links resolve, categories present)
  • Cross-pack dependency reference validation (pack_id exists in registry)
  • Learning outcome code uniqueness across all registered packs
  • File completeness check (all 6 required files per pack directory)
  • Batch validation: run all checks across 5 packs in a single pass

Key Modules

| Module | Purpose | |--------|---------| | `src/knowledge/content-validator.ts` | Pack content validation engine | | `src/knowledge/skillmeta-parser.ts` | .skillmeta YAML parsing with Zod validation | | `src/knowledge/registry.ts` | Pack registry for cross-reference checking | | `src/knowledge/dependency-resolver.ts` | Prerequisite chain validation with cycle detection | | `src/knowledge/prerequisite-validator.ts` | Entry requirement checking |

Usage Examples

**Validate a single pack:**

import { validatePack } from './content-validator.js';

const result = await validatePack('src/knowledge/packs/math-101');
// result.valid: boolean
// result.errors: string[] (empty if valid)
// result.warnings: string[] (non-blocking issues)

**Validate a batch:**

After Phase 245 completes, run validation across all 5 generated packs:
- MATH-101, SCI-101, TECH-101, ENGR-101, PHYS-101
Check cross-pack references resolve within the batch and against previously registered packs.

Dependencies

  • Pack runtime API (src/knowledge/) -- all parsers and validators
  • Registry with previously registered packs for cross-reference resolution

Token Budget Rationale

1.0% budget reflects the validation module references and schema knowledge needed for comprehensive checking. The validator operates on the runtime API, not on raw content, keeping context requirements moderate.

Read more
@tibsfox
Ships withgsd-skill-creator

An adaptive learning and coprocessor architecture for Claude Code, built as an extension to GSD (open-gsd)

71102 skills61 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
71
Star history of Tibsfox/gsd-skill-creator on GitHub, a chart by star-history.com

Other skills on gsd-skill-creator.

aminet-index

aminet-index

Manages Aminet INDEX infrastructure: fetch, parse, cache, and incremental update of ~84,000-entry package database. Use when…

aminet-mirror

aminet-mirror

Selective Aminet package mirroring: single-package fetch, integrity verification, mirror state tracking, bulk download, and sync…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about kp-content-validation.

Which coding agents can use kp-content-validation?
kp-content-validation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.