knowledge-retrieval
Skill1 starsChanged 25 days agoMITView on GitHub
Retrieve answers from local documents progressively, using indexes, targeted search, file-specific extraction, source tracing, and explicit uncertainty.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- microsoft-foundry/build-2026-demostheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- microsoft-foundry/build-2026-demos★ 11same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibilitySkill
- asset-imageSkill
- browser-acceptanceSkill
- clean-build-coreSkill
- clean-build-runtimeSkill
- clean-build-verificationSkill
- clean-build-webSkill
- color-systemsSkill
- design-directionSkill
- editorial-articleSkill
- interface-craftSkill
- loading-experienceSkill
- motion-showreelSkill
- performanceSkill
- product-copySkill
- release-deliverySkill
- responsive-mobileSkill
- routerSkill
- seo-securitySkill
- style-atlasSkill
- web-presentationSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Do not add open-web facts when the task explicitly limits evidence to the local knowledge base.
- Distinctive: line 20
Use the user-provided path.
- Distinctive: line 24
Read directory indexes or structure files first.
- Distinctive: line 39
Search the most relevant files and extensions.
- Distinctive: line 41
Read a small range around each match.
- Distinctive: line 44
Stop when evidence is sufficient or the search limit is reached.
- Distinctive: line 46
Avoid reading large files in full when targeted ranges are enough.
- Distinctive: line 52
Search headings and exact terms first.
- Distinctive: line 78
Never fabricate a missing value.
- Distinctive: line 83
Do not paste entire documents into working context.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Knowledge Retrieval
Use when
- answering from a local knowledge directory;
- locating facts in project documents;
- searching Markdown, text, PDF, or spreadsheet content;
- building an evidence-backed summary from local files.
Do not add open-web facts when the task explicitly limits evidence to the local knowledge base.
Step 1: locate the root
Use the user-provided path. Otherwise check the project convention. If the expected root does not exist, ask for the correct path rather than guessing.
Step 2: follow indexes
Read directory indexes or structure files first. Use them to choose the most relevant branch. Do not scan every file before understanding the organization.
Step 3: form the query
Extract three to eight terms:
- exact phrases;
- synonyms;
- abbreviations;
- product or domain terms;
- time and version limits;
- expected field or output type.
Step 4: search progressively
- Search the most relevant files and extensions.
- Record file and match location.
- Read a small range around each match.
- Judge whether the evidence answers the question.
- Refine terms and repeat only as needed.
- Stop when evidence is sufficient or the search limit is reached.
Avoid reading large files in full when targeted ranges are enough.
File-specific handling
Text and Markdown
Search headings and exact terms first. Follow links or section references only when needed.
Extract text to a file before searching. Use page-aware extraction when page citation matters. Use a table extractor for tabular content.
Spreadsheet
Inspect workbook structure, sheet names, columns, types, and a limited sample. Then filter or aggregate only the needed fields. Preserve the sheet and field names in the evidence record.
Evidence record
For each useful result, retain:
- file path;
- section, line range, page, or sheet;
- relevant excerpt or structured value;
- confidence;
- assumptions or conflicts.
Answer rules
- Lead with the answer.
- Cite the local file and location.
- Separate direct evidence from inference.
- State when information is incomplete or absent.
- Never fabricate a missing value.
- Suggest a narrower file, field, date, or keyword when more evidence is needed.
Context efficiency
Do not paste entire documents into working context. Keep only the index, targeted excerpts, evidence notes, and final synthesis.
Human documentation: ../../docs/guides/knowledge-retrieval.md.
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.

