Agent skill · software engineering · alirezarezvani
strict-api
Use when the user says 'no hallucinations', 'verify APIs' or 'don't invent functions', or code depends on a library version you have not checked. Requires proof that every method, import and variable exists in the installed version before using it.
Why this skill is useful
Adds a verification workflow for API existence that prevents the AI from generating incorrect code based on assumptions.
What it needs
About 2k tokens when loaded. Last updated 2026-08-05. 23,939 stars on the source repository.
What this skill does
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.readcsv() is pandas, not Python's csv module. Writing these is not minimal code — it is confident garbage. Framework confusion. Every framework has a twin that sounds like it: rendertemplate (Flask) vs render() (Django) useForm() (react-hook-form) vs nothing built into React app.listen() (Express) vs server.listen() (raw Node.js http) Deprecated APIs. Writing a deprecated method is writing code that will break on the next upgrade. Workflow 1. Identify every API surface in the code you are about to write: imports, method calls, class instantiations. 2. Verify each one against the user's stated version. If no version is stated, ask once. 3. Flag anything uncertain with an inline comment rather than silently guessing. 4. 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. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills alirezarezvani/strict-api--685002