no-invented-code
Skill0 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, docs, and memory before using anything.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Hvftpie13/Flashmind_Gemini-3.8-Flash_Smart-agentedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Hvftpie13/Flashmind_Gemini-3.8-Flash_Smart-agent★ 3965% 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.
- rules/AGENTS.mdAGENTS.md
- plan-firstSkill
- systematic-debuggingSkill
- verify-before-doneSkill
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
- Distinctive: line 8
Every identifier you use must exist.
- Distinctive: line 11
Before calling or importing something from the codebase:
- Very specific: line 12
Search for it (grep, file search, symbols).
- Distinctive: line 13
Read the file it lives in.
- Distinctive: line 14
Before referencing a file path, confirm the file exists.
- Distinctive: line 15
Use the project's existing helpers instead of inventing new ones with similar names.
- Very specific: line 18
Check the installed version first: package.json / lockfile, requirements.txt / pyproject.toml, go.mod, Cargo.toml.
- Very specific: line 19
Verify the API against one of: library source in node_modules / site-packages, official docs for that version, or existing repo usage.
- Very specific: line 20
If you cannot verify, say so: *"I believe the option is X in v4, but I could not confirm it — please check."*
- Distinctive: line 24
Prefer what the project already uses.
- Very specific: line 27
Check --help, tool docs, or existing scripts before using a flag or key.
- Distinctive: line 28
Never invent environment variables.
- Very specific: line 31
If you discover a version-specific gotcha (renamed API, breaking change, wrong docs), save it with mem_save so it is remembered in future …
≈ “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.
Files
No Invented Code
Every identifier you use must exist. If you have not seen it, check it — or state explicitly that you have not.
Inside the project
Before calling or importing something from the codebase:
- Search for it (
grep, file search, 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: library source in
node_modules/ site-packages, official docs for that version, or existing repo usage. - If you cannot verify, say so: "I believe the option is
Xin v4, but I could not confirm it — please check."
Adding a dependency
- Confirm the package name exists and is correct (watch for typosquatting).
- Prefer what the project already uses. Mention every new dependency in your report.
Commands, flags, config keys, env vars
- Check
--help, tool docs, or existing scripts before using a flag or key. - Never invent environment variables; find where the code reads them.
Memory
If you discover a version-specific gotcha (renamed API, breaking change, wrong docs), save it with mem_save so it is remembered in future sessions.
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.

