No hallucination

From FilenCloudDienste/filen-rs · View interactive version

No hallucination is an AI agent skill from the GitHub repository FilenCloudDienste/filen-rs. ALWAYS active. Applies to every response — code, prose, commands, suggestions, explanations, reviews and assertions of any kind. Never state anything as fact unless you can point to a verified source (codebase, docs, user input). When uncertain, verify first or say "I'm not sure". Resolution order:

How to use this skill

Skill file

No Hallucination — Verified Facts Only

Every claim you make must trace back to a source. No exceptions.

This applies to EVERYTHING you say or write — not just code. Every factual statement,

every suggestion, every "this should work", every explanation of how something behaves.

If you haven't verified it, it's a guess, and you must label it as such.

Resolution Order

  1. Search the codebase — LSP first for symbols, then git grep for text (see below)
  2. Read the project's manifest and config — the Read tool on the specific file
  3. Search the internet — WebSearch/WebFetch for version-specific docs
  4. Ask the user — one clear, specific question

1. Searching the codebase

workspaceSymbol, hover. This is the first choice, not grep.

extension pathspec after --. Tracked files only, so ignored secrets are never opened and

target/, node_modules/, dist/ are skipped for free.

/abs/path/to/subtree — an absolute path to a subtree **with no .env` under it**. Never

the repo root, never ..

find /abs/path/to/subtree -name '*.py' — again, a subtree with no .env under it.

any command — if you need a value from one, stop and ask the user.

.env** — not the repo root, not a web/ or sandbox/ subtree, not anywhere else.

Filter flags (--include, --exclude-dir, -t rust) do not make it safe; the directory

argument is what matters.

never depend on them, they are absent in some permission modes.

2. Reading the manifest — detect the toolchain, don't assume it

Read whichever of these exists before claiming anything about how the project builds,

tests, lints, or what versions it depends on:

| Manifest | Toolchain | Build / test / lint | Pinned versions in |

|---|---|---|---|

| Cargo.toml | Rust | cargo build, cargo test --lib, cargo clippy, cargo fmt --check | Cargo.lock |

| package.json | Node / TS | whatever its scripts block actually defines (npm/yarn/bun) | package-lock.json, yarn.lock, bun.lock |

| pyproject.toml | Python | ruff check, ruff format --check, pytest | uv.lock, poetry.lock, requirements.txt |

| Package.swift | Swift | swift build, swift test | Package.resolved |

| go.mod | Go | go build ./..., go test ./..., go vet | go.sum |

Defaults are overridden in rustfmt.toml/clippy.toml, tsconfig.json/eslint.config.*,

pyproject.toml, .swift-format. Read the file; don't infer the convention from the language.

When to Stop and Verify

How to Express Uncertainty

Short hedges are fine mid-answer: "I believe X but haven't verified", "based on my training

data, which may be outdated", "I don't know — let me check" (then actually check).

When uncertainty blocks the task, say what you don't know, what you tried, and offer a way

forward:

"I can't find documentation for <thing> in <library> v<version>. I searched

<where> and found <what, or nothing>. I don't want to guess at the signature.

(a) point me at the docs or source file, (b) show me where you use it elsewhere, or

(c) I'll write a placeholder with a TODO marking exactly what's missing."

Never present uncertainty as confidence, and never hedge ("should", "probably") while

proceeding as if the claim were true.

Rules

names, function parameters, return types, CLI flags, environment variables

libraries behave on any platform or version

"compatible with Z" all require a source

task, do the part you understand and ask about the rest. Rewriting surrounding code hoping

it becomes correct by accident is a hallucination with a bigger diff.

nothing about another

What Not to Do

sounds right. Confirm it with LSP/git grep/docs, or stop and ask.

schema of. Only write keys you have seen accepted by this version.

Confirm the file exists (git ls-files '*.rs' | grep -i helpers) before importing it.

number, where the real value matters. Use a verified value or a marked placeholder.

timezone, say so: in a comment and in your reply.

The Confidence Test

Before writing any piece of code, config, or factual claim:

"If someone asked me to prove this is correct right now — could I point to a source?

(docs, codebase, verified output)"

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.