agentleFS
Hvftpie13Hvftpie13/Flashmind_Gemini-3.8-Flash_Smart-agent/skills/no-invented-code/SKILL.md

no-invented-code

Skill39 starsChanged 17 days agoMITView on GitHub

Use whenever writing or suggesting code that calls a function, file, module, package, CLI flag, config key, environment variable, or API endpoint — especially third-party libraries, SDKs, or framework features. Prevents hallucinated APIs by checking the repo and docs before using anything.

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

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. fvkmizel/soulkeeper★ 079% same

    Wrote their own version · 0

    None found.

    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 repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 7 are distinctive, and 6 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.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every identifier you use must exist.

    line 8
  2. Distinctive:

    Before calling or importing something from the codebase:

    line 11
  3. Very specific:

    Search for it (grep -rn, file search, IDE symbols).

    line 12
  4. Distinctive:

    Read the file it lives in.

    line 13
  5. Distinctive:

    Before referencing a file path, confirm the file exists.

    line 14
  6. Distinctive:

    Use the project's existing helpers instead of inventing new ones with similar names.

    line 15
  7. Very specific:

    Check the installed version first: package.json / lockfile, requirements.txt / pyproject.toml, go.mod, Cargo.toml.

    line 18
  8. Very specific:

    Verify the API against one of: the library source in node_modules / site-packages / module cache, official docs for that version (use web …

    line 20
  9. Very specific:

    If you cannot verify, say so: *"I believe the option is X in v4, but I could not confirm it — please check."*

    line 22
  10. Distinctive:

    Prefer what the project already uses.

    line 26
  11. Very specific:

    Check --help, the tool's docs, or existing scripts/config before using a flag or key.

    line 29
  12. Distinctive:

    Never invent environment variables.

    line 30
  13. Very specific:

    If you discover a version-specific gotcha (renamed API, breaking change, wrong docs), save it with mem_save so it is not rediscovered next …

    line 39

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

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

No Invented Code

Every identifier you use must exist. If you have not seen it, check it — or say you have not.

Inside the project

Before calling or importing something from the codebase:

  • Search for it (grep -rn, file search, IDE symbols). Confirm the exact name, signature, and export.
  • Read the file it lives in. Check argument order, return type, and whether it is async.
  • Before referencing a file path, confirm the file exists.
  • Use the project's existing helpers instead of inventing new ones with similar names.

Third-party libraries

  • Check the installed version first: package.json / lockfile, requirements.txt / pyproject.toml, go.mod, Cargo.toml. APIs change between major versions.
  • Verify the API against one of: the library source in node_modules / site-packages / module cache, official docs for that version (use web search when available), or the project's existing usage.
  • If you cannot verify, say so: "I believe the option is X in v4, but I could not confirm it — please check."

Adding a dependency

  • Confirm the package name exists and is the right one (watch for look-alike/typosquat names).
  • Prefer what the project already uses. Mention every new dependency in your report.

Commands, flags, config keys, env vars

  • Check --help, the tool's docs, or existing scripts/config before using a flag or key.
  • Never invent environment variables; find where the code reads them.

Red flags — stop and check

  • "This library probably has a method for that."
  • A function name that sounds right but you have not seen in this codebase.
  • Copying a pattern from a different framework or an older major version.
  • Mixing APIs from two different SDKs.

Memory

If you discover a version-specific gotcha (renamed API, breaking change, wrong docs), save it with mem_save so it is not rediscovered next session.

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.