gitColinX

Kb To Agent Corpus — Testing skill for Claude Code

Testing community

Turn a ServiceNow knowledge base export into a local Markdown corpus an AI agent searches first: builder, QA auditor, value-safe secret scanner, PDF text stager and refresh contract, tested on a synth.

How to install Kb To Agent Corpus

This entry records only its repository, not the path inside it, so there is no exact command to give. Open gitColinX/kb-to-agent-corpus and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Kb To Agent Corpus does

Turn a ServiceNow knowledge base export into a local Markdown corpus an AI agent searches first: builder, QA auditor, value-safe secret scanner, PDF text stager and refresh contract, tested on a synthetic export.

Alternatives in Testing

  • Mda — MDA Open Spec — a Markdown superset for agent-facing documents 615 ★
  • Frappe Skills — Frappe Agent Skills gives AI coding assistants structured Frappe knowledge for DocTypes, APIs, Desk customizat 54 ★
  • Notion Skills — Claude Skills marketplace for productive Notion workflows: knowledge capture, meeting intelligence, research d 27 ★

README

From a ServiceNow knowledge export to a corpus an AI agent searches first

In July 2026 I exported my employer's whole ServiceNow knowledge base and turned it into a folder of Markdown files that Claude Code searches before it answers a ticket question. My employer runs a hybrid Microsoft 365 environment with about 1,100 Intune-managed endpoints, and I am the IT engineer on site at its headquarters. The knowledge base held years of procedures, screenshots and PDFs, and none of it was reaching the AI tools I used on tickets. Their answers were plausible general best practice instead of how things are actually done there.

This repo is that pipeline, generalized and rewritten so it can be public: a builder, a QA auditor, a value-safe secret scanner, a PDF text stager and a Markdown repair tool, plus the design and the refresh contract. Everything runs against a synthetic export of ten made-up articles. No company data, names, instance names or article numbers from the real knowledge base are in here.

At work, Jul to Aug 2026: export, build, OCR, QA, secret scan, live ticket use   [built, ran on real tickets]
This repo: qa_corpus.py, secret_scan.py, repair_markdown.py, pdf_text.py        [built, tested on synthetic data]
This repo: build_corpus.py (new; the original builder was not kept)             [built, tested on synthetic data]
docs/refresh-contract.md                                                        [designed, runbook written]
docs/ticket-corpus-design.md                                                    [designed, not implemented]

Labels: *built, ran on real tickets* means it ran at work on real data and I used the result on live tickets. *Built, tested on synthetic data* means code in this repo that has only run against the fixture here. *Designed, runbook written* is a written procedure. *Designed, not implemented* is a design with no code behind it.

Tools `build_corpus.py`, [qa_corpus.py](qa_cor