agentleFS
JetXu-LLMJetXu-LLM/DocMason/skills/canonical/validation-repair/SKILL.md

validation-repair

Skill152 starsChanged 4 months agoApache-2.0View on GitHub

Validate the staged or published DocMason knowledge base and repair blocking issues until the quality gate passes.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the knowledge base needs validation, repair, or publication follow-through.

    line 8
  2. Very specific:

    If the agent cannot run docmason validate-kb or inspect the reported errors, stop and explain that reliable repair is not possible.

    line 19
  3. Very specific:

    Use staging as the default validation target unless the task explicitly says otherwise.

    line 23
  4. Very specific:

    keep DocMason workspace commands sequential inside one live workspace session

    line 25
  5. Very specific:

    do not overlap validate-kb with sync, status, retrieve, or trace against the same workspace while leases may still be active

    line 26
  6. Very specific:

    When staged validation is no longer blocking, return control to the main agent so it can rerun docmason sync --json for final publication.

    line 40
  7. Distinctive:

    If validation reveals a capability or evidence gap that cannot be repaired honestly, stop and surface that blocker instead of weakening the …

    line 44
  8. Distinctive:

    If a fix would require changing derived retrieval or trace artifacts directly, do not hand-edit them.

    line 45
  9. Very specific:

    If the failure is in deterministic sidecars such as artifact_index, visual_layout, spreadsheet_*, or pdf_document, repair the upstream …

    line 46
  10. Very specific:

    Do not hand-edit derived graph, retrieval, or trace files unless you are explicitly regenerating them through the supported DocMason …

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Validation Repair

Use this skill when the knowledge base needs validation, repair, or publication follow-through.

This is an internal follow-on workflow behind knowledge-base-sync. Ordinary users should not need to invoke it by name.

Required Capabilities

  • local file access
  • shell or command execution
  • ability to read machine-readable validation reports

If the agent cannot run docmason validate-kb or inspect the reported errors, stop and explain that reliable repair is not possible.

Procedure

  1. Use staging as the default validation target unless the task explicitly says otherwise.
  2. Run docmason validate-kb --json.
    • keep DocMason workspace commands sequential inside one live workspace session
    • do not overlap validate-kb with sync, status, retrieve, or trace against the same workspace while leases may still be active
  3. Inspect the blocking_errors, warnings, and per-source reports in knowledge_base/<target>/validation_report.json.
  4. Fix the staged source or interaction-memory files that caused the failures:
    • missing or stale knowledge.json
    • missing or malformed summary.md
    • unresolved citations
    • unresolved artifact_id citations
    • invalid related-source links
    • missing or malformed artifact_index.json
    • missing or malformed pdf_document.json
    • missing or malformed semantic_overlay/*.json
    • invalid render_page_span, artifact refs, or sidecar asset references
    • placeholder or incomplete bilingual content
  5. Rerun docmason validate-kb --json until the result is valid or warnings.
  6. When staged validation is no longer blocking, return control to the main agent so it can rerun docmason sync --json for final publication.

Escalation Rules

  • If validation reveals a capability or evidence gap that cannot be repaired honestly, stop and surface that blocker instead of weakening the quality gate.
  • If a fix would require changing derived retrieval or trace artifacts directly, do not hand-edit them. Regenerate them through the supported workflows.
  • If the failure is in deterministic sidecars such as artifact_index, visual_layout, spreadsheet_*, or pdf_document, repair the upstream staged source inputs or rerun the supported compiler path instead of hand-editing the derived files.
  • Final publication remains a main-agent step.

Completion Signal

  • The workflow is complete when validation reaches valid or warnings, or when a concrete unrecoverable blocker has been surfaced to the main agent.

Notes

  • Blocking errors prevent publication.
  • Warnings are acceptable only when the evidence manifest records partial extraction failure clearly and the surviving evidence still exists.
  • Do not hand-edit derived graph, retrieval, or trace files unless you are explicitly regenerating them through the supported DocMason commands.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.