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.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adapter-syncSkill
- askSkill
- grounded-answerSkill
- grounded-compositionSkill
- knowledge-base-syncSkill
- knowledge-constructionSkill
- provenance-traceSkill
- retrieval-workflowSkill
- runtime-log-reviewSkill
- workspace-bootstrapSkill
- workspace-doctorSkill
- workspace-statusSkill
- operator-evalSkill
- public-sample-workspaceSkill
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
- Distinctive: line 8
Use this skill when the knowledge base needs validation, repair, or publication follow-through.
- Very specific: line 19
If the agent cannot run docmason validate-kb or inspect the reported errors, stop and explain that reliable repair is not possible.
- Very specific: line 23
Use staging as the default validation target unless the task explicitly says otherwise.
- Very specific: line 25
keep DocMason workspace commands sequential inside one live workspace session
- Very specific: line 26
do not overlap validate-kb with sync, status, retrieve, or trace against the same workspace while leases may still be active
- Very specific: line 40
When staged validation is no longer blocking, return control to the main agent so it can rerun docmason sync --json for final publication.
- Distinctive: line 44
If validation reveals a capability or evidence gap that cannot be repaired honestly, stop and surface that blocker instead of weakening the …
- Distinctive: line 45
If a fix would require changing derived retrieval or trace artifacts directly, do not hand-edit them.
- Very specific: line 46
If the failure is in deterministic sidecars such as artifact_index, visual_layout, spreadsheet_*, or pdf_document, repair the upstream …
- Very specific: line 57
Do not hand-edit derived graph, retrieval, or trace files unless you are explicitly regenerating them through the supported DocMason …
≈ “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.
Files
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
- Use
stagingas the default validation target unless the task explicitly says otherwise. - Run
docmason validate-kb --json.- keep DocMason workspace commands sequential inside one live workspace session
- do not overlap
validate-kbwithsync,status,retrieve, ortraceagainst the same workspace while leases may still be active
- Inspect the
blocking_errors,warnings, and per-source reports inknowledge_base/<target>/validation_report.json. - 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_idcitations - 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
- missing or stale
- Rerun
docmason validate-kb --jsonuntil the result isvalidorwarnings. - When staged validation is no longer blocking, return control to the main agent so it can rerun
docmason sync --jsonfor 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_*, orpdf_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
validorwarnings, 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.
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
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.

