agentleFS
Facta-DevFacta-Dev/beautifulnodejs/.claude/skills/corpus-retrieval/SKILL.md

corpus-retrieval

Skill0 starsChanged 32 days agoMITView on GitHub

Answers questions about <app> from its own documentation corpus (docs/, playbooks, references/) index-first, in at most five retrieval rounds, with file:line citations, and refuses plainly when the corpus does not answer.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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
  1. Distinctive:

    Do not activate when the answer comes from reading the code paths directly, or for facts outside the repository's corpus.

    line 22
  2. Distinctive:

    Every answer cites file:line, never a vague "the docs say".

    line 30
  3. Distinctive:

    Read the index before the first grep.

    line 35
  4. Distinctive:

    Use grep plus windowed reads.

    line 36
  5. Distinctive:

    Stop after five retrieval rounds: give the best cited answer, or refuse.

    line 38
  6. Distinctive:

    Every answer carries file:line.

    line 39
  7. Distinctive:

    When the corpus does not answer, say so explicitly and point at what is missing, rather than filling the gap from general knowledge.

    line 40

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

<app> Corpus Retrieval skill

A workflow for answering questions from the repository's own documentation corpus — docs/, playbooks/, references/ and their like — not from code behaviour. An agent invokes this skill when the answer lives in prose the repository already wrote; the skill supplies the navigation, the agent supplies the question.

When to Activate

  • A question about <app> whose answer is written down in the documentation corpus and should be traced to it.
  • The requester wants the answer cited to the docs, not to a code path.
  • A claim "the docs say X" that needs to be pinned to a file and line.

Do not activate when the answer comes from reading the code paths directly, or for facts outside the repository's corpus.

Core Principles

  • Index first: read the corpus index before grepping, so retrieval follows the corpus's own organisation.
  • Retrieval is bounded: at most five rounds, then either cite or refuse.
  • Every answer cites file:line, never a vague "the docs say".
  • An unanswered question gets a plain refusal, not a confabulated answer.

Rules

  • Read the index before the first grep; do not scan files blind.
  • Use grep plus windowed reads; do not read a whole document when a window around the hit answers the question.
  • Stop after five retrieval rounds: give the best cited answer, or refuse.
  • Every answer carries file:line; no citation means no answer.
  • When the corpus does not answer, say so explicitly and point at what is missing, rather than filling the gap from general knowledge.

Research References

Provenance table, every claim in a finding needs a row.

claimsourceyearlink
Index-first navigation, a bounded retrieval round count, and file:line citationskb-retriever skill2026skills/kb-retriever/SKILL.md

Output Format

Deliver, in order:

  1. The answer, in the corpus's own terms, with a file:line citation for every assertion.
  2. The retrieval log: how many rounds were used and which files were read.
  3. Either the cited answer or the explicit refusal with what is missing.

Example:

corpus: answer = "pagination is capped at 50 rows" (docs/api.md:12-14)
corpus: rounds = 2 (index -> docs/api.md)
corpus: cited

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.