Logo von Structured Doc Validate

Structured Doc Validate

Community
PriNova
structured-doc-validate

Validiert kanonische strukturierte YAML-Artefakte hinsichtlich Schemaform, Referenzintegrität, Belegqualität, Abdeckung und Granularität. Standardmäßig schreibgeschützt; keine veralteten Textdokumente.

Add to TypingMind

Übersicht

HerausgeberPriNova
Repositorypi-agent-codebase-workflows
Skill-Namestructured-doc-validate
Sterne
82
Forks
2
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von PriNova auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Structured Doc Validate in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/PriNova/pi-agent-codebase-workflows/tree/main/skills/structured-doc-validate
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PriNova/pi-agent-codebase-workflows.git /tmp/pi-agent-codebase-workflows
mkdir -p .claude/skills
cp -r /tmp/pi-agent-codebase-workflows/skills/structured-doc-validate .claude/skills/structured-doc-validate
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Structured Doc Validate in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Structured Doc Validate automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Structured Doc Validate nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Structured Docs Validation

Goal: audit canonical structured YAML artifacts so agents can trust, repair, or safely avoid stale project context.

Structured Artifact API Contract

Legacy prose artifacts are deprecated. Do not create, update, or rely on docs/agent/*.md, scoped prose docs, or generated human-readable Markdown views. Use structured YAML as the source of truth. Root AGENTS.md is only harness interoperability output from workflows that explicitly produce it.

Resolved structured docs root:

Treat docs/agent/api as a logical layout rooted at a resolved structured docs root, not a fixed repo path.

Resolution rules:

  1. Resolve workspace_root with git rev-parse --show-toplevel 2>/dev/null or fallback to pwd.
  2. Canonicalize workspace_root before fingerprinting when possible (realpath, pwd -P, Path(...).resolve(), or equivalent).
  3. structured-doc-validate reads repo-local only when <workspace_root>/docs/agent/api already exists.
  4. Otherwise read the global overlay root: ~/.pi/agent/workspaces/<workspace-fingerprint>/docs/agent/api.
  5. Compute <workspace-fingerprint> exactly from canonical workspace_root: strip one leading slash/backslash, replace every slash, backslash, and colon with -, then wrap with --.
  6. Example: /data/data/com.termux/files/home/CodeProjects/pi-mono -> --data-data-com.termux-files-home-CodeProjects-pi-mono--.
  7. Do not create new repo-local structured docs in unadopted repos unless the user explicitly asks for repo-local adoption there.

Logical structured layout under the resolved docs root:

text
repo/
  scopes.yaml
  repo-inventory.yaml
  project-intent.yaml
  architecture.yaml
  data-flow.yaml
  data-model.yaml
  invariants.yaml
  dependency-rules.yaml
  design-issues.yaml
  risk-register.yaml
  change-guide.yaml
  testing-strategy.yaml
  validation-baseline.yaml
  contracts.yaml
  adr.yaml
  agent-operating-guide.yaml
scopes/
  by-path/<repo-relative-path>/...
  by-domain/<slug>/...

Every structured artifact should conform to ../_shared/references/schemas/common.schema.json plus its artifact-specific schema. Stable IDs include scope:*, component:*, entity:*, invariant:*, risk:*, contract:*, flow:*, command:*, issue:*, adr:*, and testplan:*.

Runtime Schema Loading

When validating structured artifacts, read ../_shared/references/artifact-api.md first. Then read only the shared skill package schemas needed for artifacts being validated:

  • ../_shared/references/schemas/common.schema.json
  • ../_shared/references/schemas/<artifact-file-base>.schema.json

Do not read all schemas unless the validation target is the whole docs root. Do not use templates. Schemas are runtime API contracts; project docs outside the shared runtime refs are maintainer aids unless the user asks about this package itself.

Invocation

Use this skill directly or use /validate-structured-docs as the prompt-template shortcut.

Supported tasks:

  • Validate structured docs for this repo/docs root.
  • Audit docs after this diff.
  • Check whether docs are granular enough for agent workflows.
  • Find stale evidence or invalid refs.
  • Report documentation quality without editing artifacts.

Rules

  • Read-only by default. Do not edit code or artifacts unless the user explicitly asks for repair.
  • Do not read legacy prose Markdown docs.
  • Resolve <docs-root> exactly before reading artifacts.
  • If a focus is provided, read <docs-root>/repo/scopes.yaml first when present and select matching scope artifacts by longest path prefix or explicit domain match.
  • If no focus is provided, validate repo-level artifacts first, then scoped artifacts as context budget allows.
  • Prefer exact, evidence-backed findings over broad opinions.
  • Broken schemas, missing shared schema coverage for canonical artifact files, parse failures, and dangling refs are errors. Fuzzy evidence, coverage, and granularity concerns are warnings unless they block safe use.
  • If structured artifacts predate newer schema requirements, missing now-required fields are schema errors, not compatibility notes.
  • Every finding must include artifact path, record ID when available, severity, evidence, impact, and recommended next step.
  • If a validation command exists in validation-baseline.yaml, prefer running or recommending that command; otherwise validate by inspection and targeted shell checks.

Four-Layer Validation Workflow

1. Schema validity

Check:

  • YAML parses cleanly.
  • Every canonical artifact file being validated has matching shared schema coverage.
  • Common envelope fields exist and are consistently shaped.
  • Artifact-specific top-level keys match the matching schema.
  • Required arrays/items are present, including newer required fields introduced by schema evolution.
  • Stable IDs use expected prefixes for artifact family.
  • Status, severity, confidence, and other constrained values match schemas.
  • Required refs/evidence fields are present where schemas or workflow rules require them.

Use best-effort schema validation by inspection when no validator command exists. When a JSON Schema validator is available, run it against only relevant files and include command/results.

2. Reference integrity

Build or inspect a canonical ID registry from artifacts read. Check:

  • Every *_ref, *_refs, depends_on, evidence_refs, scope ref, contract ref, invariant ref, risk ref, issue ref, ADR ref, and artifact ref points to a known canonical ID or is explicitly external/unknown.
  • Cross-scope refs have owner/consumer relationship support in scopes.yaml and, when API-like, contracts.yaml.
  • Router/checklist artifacts reference owner facts instead of duplicating them.
  • No record points to deleted, malformed, duplicate, or contradictory owner records.

Prefer compact missing-owner recommendations over leaving ambiguous dangling refs.

3. Evidence validity

For evidence-bearing records, check:

  • Referenced source paths exist under repo root when repo-aware validation is possible.
  • Line ranges exist and are ordered when present.
  • Referenced symbols/text are plausibly present near claimed paths or ranges.
  • Evidence belongs to claimed scope and owner artifact.
  • Observed records have evidence; planned records use explicit planned/low-confidence markers.
  • current/high-confidence claims are not supported only by stale, missing, or unrelated evidence.

Do not claim semantic proof. Report stale/missing evidence as actionable quality risk.

4. Coverage and granularity

Check:

  • Changed files or high-value source areas have relevant scope or owner-artifact representation.
  • Scope routing covers important paths without excessive overlap.
  • Components/entities/contracts/risks are neither too broad to guide changes nor so tiny they fragment ownership.
  • Repeated facts are owned once and referenced elsewhere.
  • Validation/testing artifacts cover commands and risks important to the requested change.

Granularity is heuristic. Use warnings with concrete split/merge suggestions, not automatic failure, unless the docs cannot guide safe work.

Diff-Aware Mode

When user asks to validate after a diff:

  1. Inspect changed files with git diff --name-only or user-specified base.
  2. Match changed paths to scopes from repo/scopes.yaml when present.
  3. Read only relevant owner artifacts plus directly referenced artifacts.
  4. Prioritize evidence paths, owner refs, contracts, invariants, risks, tests, and validation baseline entries touched by the diff.
  5. Report undocumented changed files or stale evidence first.

Output Format

Use concise human output. Include machine-shaped summary when useful:

yaml
verdict: pass | pass_with_warnings | fail | blocked
schema:
  status: pass | mixed | fail | blocked
  findings: []
refs:
  status: pass | mixed | fail | blocked
  findings: []
evidence:
  status: pass | mixed | fail | blocked
  findings: []
coverage:
  status: pass | mixed | fail | blocked
  findings: []
granularity:
  status: pass | mixed | fail | blocked
  findings: []
recommendations: []

Finding shape:

yaml
severity: error | warning | info
artifact_path: <path>
record_id: <id-or-null>
layer: schema | refs | evidence | coverage | granularity
problem: <concise problem>
evidence: <file/path/command observation>
impact: <why it matters for agent workflows>
recommended_next_step: <specific repair or follow-up>

Verdict Rules

  • fail: parse/schema errors, missing shared schema coverage for canonical artifacts, missing now-required fields, dangling required refs, missing required owner artifacts for selected scope, or missing evidence that makes current/high-confidence records unsafe.
  • pass_with_warnings: schema/required refs are usable, but evidence, coverage, or granularity issues need follow-up.
  • pass: no material issues found within inspected scope.
  • blocked: docs root, required files, repo root, schemas, or commands cannot be accessed enough to validate.

Follow-Up Routing

  • For broken artifact shape or invalid refs: recommend safe-change structured-docs-only repair or codebase-recon consolidation.
  • For missing scope coverage: recommend codebase-recon on the relevant path/domain focus.
  • For stale source evidence after code changes: recommend safe-change docs update for affected owner artifacts.
  • For architecture/code concerns discovered while validating docs: recommend arch-code-review; do not turn validation output into code review findings unless requested.

Stop Conditions

Stop once the requested focus is validated enough to give a verdict and actionable findings. Do not exhaustively read a large repo when targeted evidence already proves the result.

Häufig gestellte Fragen

Was macht der KI-Skill Structured Doc Validate?

Validiert kanonische strukturierte YAML-Artefakte hinsichtlich Schemaform, Referenzintegrität, Belegqualität, Abdeckung und Granularität. Standardmäßig schreibgeschützt; keine veralteten Textdokumente.

Warum Structured Doc Validate in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Structured Doc Validate besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Structured Doc Validate in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/PriNova/pi-agent-codebase-workflows/tree/main/skills/structured-doc-validate ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Structured Doc Validate nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Structured Doc Validate verwenden?

So viele Sie möchten. In TypingMind können Sie Structured Doc Validate mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Structured Doc Validate kostenlos?

Ja. Der Skill wird von PriNova auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇