strict-api
Use when the user says 'no hallucinations', 'verify APIs', 'reality check', or 'don't invent functions'. Prevents the agent from calling methods, imports, or variables that do not provably exist in the user's installed version.
Install / Use
npx skills add alirezarezvani/claude-skills --skill strict-apiInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of strict-api
strict-api scores 90/100 on our quality scale, 498th of 2,860 Development & Engineering skills we index (top 18%).
Its SKILL.md is 3.3 KB long, split into 7 sections and no code examples: a solid amount of guidance for an agent.
With 26,437 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 28 days ago, so strict-api is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
strict-api compared with similar skills
All 4 of these similar skills score higher than strict-api; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| strict-api (this skill)by alirezarezvani | 90 | 26.4k | 28d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.7k | 12d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.9k | today | CLAUDE.md |
| ai-job-searchby MadsLorentzen | 100 | 44.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install strict-api?
- Run
npx skills add alirezarezvani/claude-skills --skill strict-api. The install tabs above show the steps for each supported agent. - Which AI agents does strict-api work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is strict-api safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is strict-api still maintained?
- The repository was last updated 28 days ago, so strict-api is actively maintained.
Skill content
View source on GitHubname: "strict-api" description: "Use when the user says 'no hallucinations', 'verify APIs', 'reality check', or 'don't invent functions'. Prevents the agent from calling methods, imports, or variables that do not provably exist in the user's installed version."
Strict API Verification
Inventing a function that doesn't exist is the opposite of efficiency. You wrote a line that looks minimal. You shipped a bug that takes an hour to debug. The true minimal path is: use only what is provably there.
Overview
This skill is a reality-check layer applied before any code is written. It is not about being slow — it is about being correct the first time. Use it alongside minimalist when the user wants both less code and verified code.
The Only Rule
Before you write any function call, import, or method access, you must be able to answer:
"Does this exist in the version the user is running?"
If the answer is "probably" or "I think so" — stop. You don't know. Say so.
What This Blocks
Made-up methods:
fs.readFileLines()does not exist in Node.js.path.combine()is .NET, not Node.js.csv.read_csv()is pandas, not Python'scsvmodule.
Writing these is not minimal code — it is confident garbage.
Framework confusion. Every framework has a twin that sounds like it:
render_template(Flask) vsrender()(Django)useForm()(react-hook-form) vs nothing built into Reactapp.listen()(Express) vsserver.listen()(raw Node.jshttp)
Deprecated APIs. Writing a deprecated method is writing code that will break on the next upgrade.
Workflow
- Identify every API surface in the code you are about to write: imports, method calls, class instantiations.
- Verify each one against the user's stated version. If no version is stated, ask once.
- Flag anything uncertain with an inline comment rather than silently guessing.
- Prefer verbose-but-correct over terse-but-wrong.
When you are not sure if a method exists, annotate it inline:
// verify fs.openAsBlob exists in your Node.js version (>= 20.0)
const blob = await fs.openAsBlob(path);
One comment costs nothing. A silent wrong call costs an hour of the user's time.
If the uncertainty is too high to write correct code without guessing, say:
"I'd need to check whether X exists in version Y before using it. What version are you on?"
Anti-Patterns
| Anti-Pattern | What to do instead | |---|---| | Writing a method call you vaguely remember | Stop and verify the exact signature | | Silently using a deprecated API | Use the current API and note the deprecation | | Assuming API parity across frameworks | Explicitly name the framework and version | | Guessing import paths | Check the package's actual export structure | | Using an API from a different language's stdlib | Verify it exists in this language | | Writing "it should work" without checking | Ask what version the user is on |
Cross-References
- Related:
engineering/minimalist— use together: minimalist reduces code volume; strict-api ensures what is written is correct. - Related:
engineering/zero-hallucination-coder— similar goal; broader hallucination prevention beyond APIs. - Related:
engineering/karpathy-coder— Karpathy-inspired behavioral guardrails for LLM-assisted coding.
Related Skills
Agent-Reach
85.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
44.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
