Agent skill

Validation Repair

by JetXu-LLM in JetXu-LLM/DocMason

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

Apache-2.0Auto-check passedKnowledge Management

Install Validation Repair

skills CLI
$ npx skills add JetXu-LLM/DocMason --skill validation-repair -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install JetXu-LLM/DocMason validation-repair --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/JetXu-LLM/DocMason.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/canonical/validation-repair .claude/skills/validation-repair && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
validation-repair
GitHub stars
147
Token cost
~762 tokens
SKILL.md length
373 words
Files
2
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 6 steps: Use staging as the default validation… → Run docmason validate-kb --json. → Inspect the blocking_errors, warnings,… → …
  • Tasks that involve Knowledge bases
  • SKILL.md covers Required Capabilities, Procedure, Escalation Rules and Completion Signal, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Validation Repair is an agent skill from JetXu-LLM/DocMason. Validate the staged or published DocMason knowledge base and repair blocking issues until the quality gate passes.

Its SKILL.md is about 760 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `workflow.json`).

It sits in Knowledge Management, covering Knowledge bases and Quality gates. The repository describes itself as: DocMason is a repo-native agent that turns your complex office files into a local LLM knowledge base and your second brain. The repo is the app. Codex is the runtime. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Knowledge bases
  • Tasks that involve Quality gates

Example prompts

  • “/validation-repair”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Use staging as the default validation target unless the task explicitly says otherwise.
  2. Run docmason validate-kb --json.
  3. Inspect the blocking_errors, warnings, and per-source reports in knowledge_base//validation_report.json.
  4. Fix the staged source or interaction-memory files that caused the failures
  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 37ea2f1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Validation Repair loads about 762 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 373 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~762

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from JetXu-LLM/DocMason at commit 37ea2f1, republished under its Apache-2.0 licence (© JetXu-LLM). 373 words, ~762 tokens.

Download SKILL.mdSave it as .claude/skills/validation-repair/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
validation-repair
description
Validate the staged or published DocMason knowledge base and repair blocking issues until the quality gate passes.

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.
Show full SKILL.md (155 more words)Show less

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.

© JetXu-LLM, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/canonical/validation-repair of JetXu-LLM/DocMason.

  • SKILL.md
  • workflow.json

Open the folder on GitHubat commit 37ea2f1

Compare with similar skills

Validation Repair next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Validation Repair compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Validation Repair this skillJetXu-LLM/DocMason147—~762Automated safety check: PassApache-2.0
Knowledge Searchdataelement/bisheng12k—~1.1kAutomated safety check: PassApache-2.0
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence
Find And Citeoutline/outline41k—~537Automated safety check: PassCustom licence
Xhs Virtual Productchenjin-cmd/xhs-virtual-product729—~862Automated safety check: PassMIT
OpenkbVectifyAI/OpenKB4.8k1 repos~2kAutomated safety check: WarnApache-2.0

Similar skills

  • Knowledge Search

    dataelement/bisheng

    Search the user's knowledge bases and knowledge spaces (企业知识库检索).

    12k GitHub stars~1.1k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Find And Cite

    outline/outline

    Answer questions from the Outline knowledge base with quotes and links to the source documents; use when the user asks what the team knows, documented, or decided about a topic.

    41k GitHub stars~537 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    729 GitHub stars~862 tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed
  • Openkb

    VectifyAI/OpenKB

    A skill your agent uses when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an…

    4.8k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: warnings
  • Learn From Materials

    dmoshehun-prog/learn-from-materials

    Turns books, PDFs, slides and web pages into a source-grounded knowledge base and an interactive learning page in English or Chinese, with quizzes, relationship maps and reusable methodology notes.

    947 GitHub stars~7.9k tokensUpdated 3 days ago
    Knowledge ManagementAuto-check passed

More from JetXu-LLM/DocMason

All 15 skills in this repo
  • Ask

    JetXu-LLM/DocMason

    Accept an ordinary user question inside a DocMason workspace, route it to the right inner workflow, and preserve conversation-native logs automatically.

    147 GitHub stars~7.1k tokensUpdated yesterday
    Auto-check passed
  • Adapter Sync

    JetXu-LLM/DocMason

    Generate or refresh the local Claude adapter surface for DocMason from canonical committed sources.

    147 GitHub stars~684 tokensUpdated yesterday
    Auto-check passed
  • Grounded Answer

    JetXu-LLM/DocMason

    Answer a user question through DocMason's canonical grounded workflow using retrieval, provenance tracing, render escalation, and a final answer-state check.

    147 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Grounded Composition

    JetXu-LLM/DocMason

    Produce evidence-backed research, planning, drafting, or composition output from the published DocMason knowledge base while preserving provenance and answer-file discipline.

    147 GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Knowledge Base Sync

    JetXu-LLM/DocMason

    Stage, incrementally refresh, validate, and publish the DocMason knowledge base from the local source corpus.

    147 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Knowledge Construction

    JetXu-LLM/DocMason

    Write bilingual Phase 3 knowledge objects for staged DocMason sources from rendered evidence and extracted structure.

    147 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed

Questions about Validation Repair

What does Validation Repair do?

Validate the staged or published DocMason knowledge base and repair blocking issues until the quality gate passes. Validation Repair is an agent skill from JetXu-LLM/DocMason. Validate the staged or published DocMason knowledge base and repair blocking issues until the quality gate passes.

When should I use Validation Repair?

Validation Repair fits situations like: tasks that involve Knowledge bases; tasks that involve Quality gates.

How do I install Validation Repair in Claude Code?

Run `npx skills add JetXu-LLM/DocMason --skill validation-repair -a claude-code`. Or copy the skill folder (skills/canonical/validation-repair in JetXu-LLM/DocMason) into .claude/skills/validation-repair in your project. Claude Code loads it when a task matches its description.

How do I install Validation Repair in Codex?

Run `npx skills add JetXu-LLM/DocMason --skill validation-repair -a codex`. Or copy the skill folder (skills/canonical/validation-repair in JetXu-LLM/DocMason) into .agents/skills/validation-repair in your project. Codex loads it when a task matches its description.

Can I use Validation Repair in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JetXu-LLM/DocMason --skill validation-repair -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/validation-repair, .gemini/skills/validation-repair, .github/skills/validation-repair and .opencode/skills/validation-repair in your project.

What does Validation Repair need to run?

SKILL.md names no scripts, command-line tools or credentials: Validation Repair is instructions for the agent only.

Does Validation Repair access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Validation Repair safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Validation Repair use?

Validation Repair is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Validation Repair use?

About 762 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Validation Repair?

Skills that share tags, products or a category with Validation Repair: Knowledge Search (dataelement/bisheng, 12k stars), Capture Conversation (outline/outline, 41k stars), Find And Cite (outline/outline, 41k stars) and Xhs Virtual Product (chenjin-cmd/xhs-virtual-product, 729 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Validation Repair?

JetXu-LLM (a GitHub user) maintains it in JetXu-LLM/DocMason, which has 147 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 9, 2026.

Source: JetXu-LLM/DocMason on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.