Build Knowledge Base From Docs
Skill8 starsChanged 5 months agoMITView on GitHub
Turn your policy, FAQ, product, and process documents into answerable AI Knowledge in TrustPager. Converts each file (PDF, Word, slides) to Markdown, splits it into clean knowledge entries, and loads them so the in-app assistant and voice agents answer from your real documents. Built on knowledge/document-tools-method.md.
In this repository101 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- Add a FieldSkill
- Assemble Content PackSkill
- Assemble PackSkill
- Audit My AutomationsSkill
- Audit My DataSkill
- automate-thisSkill
- Brand My WorkspaceSkill
- Break Down A ChannelSkill
- Build Brand StrategySkill
- Build Customer VoiceSkill
- Build DocumentSkill
- Build FormSkill
- Build My ProofSkill
- Build My VoiceSkill
- Build Social StrategySkill
- Build SpreadsheetSkill
- Build Work Order ProcessSkill
- Cash Flow ForecastSkill
- Coach My CallsSkill
- Compare DocumentsSkill
- Connect A ToolSkill
- Delegate This WorkSkill
- Describe A ProductSkill
- Design My ScenesSkill
- Design Nurture SequenceSkill
- draft-replySkill
- Email Me A ReportSkill
- Estimate My BASSkill
- Extract DocumentSkill
- Find My Next MoveSkill
- Five Day ChallengeSkill
- Follow-up RadarSkill
- Form RadarSkill
- Get Found OnlineSkill
- Grill Me On This DecisionSkill
- import-from-anywhereSkill
- lead-triageSkill
- Learn My BusinessSkill
- Lint DocumentSkill
- Lint FormSkill
- Lint Nurture SequenceSkill
- log-this-callSkill
- make-it-happenSkill
- Make My VideoSkill
- Make Product DemoSkill
- Make Social PostSkill
- Make ThumbnailSkill
- missed-call-recoverySkill
- Nurture HealthSkill
- Onboard Team MemberSkill
- Outstanding DocumentsSkill
- Outstanding InvoicesSkill
- Package My VideoSkill
- Plan My AdsSkill
- Plan My ContentSkill
- Plan My RoadmapSkill
- Plan My YouTubeSkill
- Prep For CallSkill
- Price My WorkSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 54
Keep titles in the customer's own words.
- Very specific: line 59
Create the entries in TrustPager AI Knowledge (create_knowledge / ingest_knowledge_base_text, per the platform's knowledge tools).
≈ “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
Build Knowledge Base From Docs
A business's real answers live in documents (policies, product sheets, FAQs, process guides). This skill makes them answerable everywhere TrustPager AI runs — the in-app assistant and voice agents — by loading them into AI Knowledge.
Step 1 — Convert each document to Markdown
For every file the operator points at:
python ~/.claude/bos-run.py tool markitdown_convert "<path>"Handles PDF, Word, PowerPoint, Excel, HTML. If MarkItDown isn't installed, relay its install hint and stop. If a file converts empty (e.g. an image-only scan with no OCR text), flag it rather than loading a blank entry.
Step 2 — Split into clean knowledge entries + show the plan
AI Knowledge works best as focused entries, not one giant dump. From the Markdown, propose a split: one entry per topic / policy / FAQ, each with a clear title and the relevant content. Show the operator the proposed entries before writing:
From "Lending-policy-2026.pdf" I'd create 6 knowledge entries:
• "Minimum deposit requirements"
• "Acceptable income types"
• "Self-employed applicants" ...
From "Product-sheet.docx": 3 entries. Total: 9 entries.
OK to load these into AI Knowledge?Keep titles in the customer's own words. Don't invent content that isn't in the documents; don't merge unrelated topics into one entry.
Step 3 — Load into AI Knowledge (after confirmation)
Create the entries in TrustPager AI Knowledge (create_knowledge /
ingest_knowledge_base_text, per the platform's knowledge tools). Batch them;
stream progress. Respect the approval queue (202 = queued, surface it —
knowledge/safeguards.md). Tag the source document on each entry so it's
traceable and easy to refresh later.
Step 4 — Confirm + point at where it's used
✓ Loaded 9 entries into AI Knowledge from 2 documents.
Your in-app assistant and voice agents will now answer from these.
Re-run this when a policy changes to refresh the entries.Hard rules
- ❌ Don't load empty or image-only conversions — flag them instead.
- ❌ Don't invent or merge content — entries reflect what the documents say.
- ❌ Don't write to AI Knowledge without showing the proposed entries first.
- ✅ Always convert through
tools/markitdown_convert.py— no bespoke parsing. - ✅ One focused entry per topic; titles in the customer's words; source tagged.
Output shape
The proposed entry list per document for confirmation, then a one-line load confirmation (how many entries, from how many docs) and where they're now used.
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.

