agentleFS
ji-hun-gitji-hun-git/how-to-use-ai/skills/grounded-answer/SKILL.md

grounded-answer

Skill0 starsChanged 7 days agoMITView on GitHub

Prevents fabrication (hallucination) when answering from documents or facts. Use when answering questions about provided files, PDFs, transcripts, contracts or data; when summarizing sources; when the user asks for citations, statistics, quotes, references or "facts"; or whenever accuracy matters more than fluency. Quotes evidence first, cites every claim, marks unknowns, and removes unsupported claims.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Say what's missing: If the material doesn't answer part of the question, write "Not in the provided material" for that part.

    line 16
  2. Distinctive:

    Only cite sources you actually opened in this session.

    line 22
  3. Distinctive:

    If you can't verify that a source exists and says what you claim, say so instead of citing it.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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

Grounded answer

Models hallucinate partly because training and evaluation reward confident guessing over "I don't know". Counter that explicitly: ground every claim in evidence and make abstaining acceptable.

Steps

  1. Collect evidence first. From the provided material (or from sources you actually retrieved with a search tool), extract the passages that bear on the question. Quote them word for word, numbered, with their location:

    [1] "…" (report.pdf, p. 12)

  2. Answer only from the evidence. Attach a citation like [1] to every factual claim. If you add general knowledge, label it [general knowledge].
  3. Say what's missing. If the material doesn't answer part of the question, write "Not in the provided material" for that part. Don't fill gaps with plausible guesses.
  4. Retract what you can't support. Re-read your draft; for each claim, check that a quoted passage supports it. Delete any claim without support and note [removed: unsupported].
  5. Flag confidence. Where it helps, tag claims as [from source], [from memory, unverified] or [inference].

Citations and references

  • Only cite sources you actually opened in this session. Never construct a URL, DOI, case name, page number or quote from memory.
  • If you can't verify that a source exists and says what you claim, say so instead of citing it.

Numbers

  • Compute totals, percentages and statistics by running code, and show the code.

Evidence

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.