Strict Api skill for Claude

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.

Strict Api SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

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's csv module.

Writing these is not minimal code — it is confident garbage.

Framework confusion. Every framework has a twin that sounds like it:

  • render_template (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. What version are you on?"

Anti-Patterns

Anti-PatternWhat to do instead
Writing a method call you vaguely rememberStop and verify the exact signature
Silently using a deprecated APIUse the current API and note the deprecation
Assuming API parity across frameworksExplicitly name the framework and version
Guessing import pathsCheck the package's actual export structure
Using an API from a different language's stdlibVerify it exists in this language
Writing "it should work" without checkingAsk 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.

How to install Strict Api

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/strict-api#main ~/.claude/skills/strict-api

Codex

npx degit alirezarezvani/claude-skills/engineering/strict-api#main ~/.codex/skills/strict-api

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Strict Api skill do?

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.

+How do I install Strict Api in Claude Code?

Copy the skill folder into ~/.claude/skills/strict-api, for example with "npx degit alirezarezvani/claude-skills/engineering/strict-api#main ~/.claude/skills/strict-api". Claude Code loads it automatically and uses it when a task matches.

+Does Strict Api work with ChatGPT or Codex?

Yes. Strict Api uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/strict-api. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Strict Api free?

Strict Api is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Tc Tracker

    Use when tracking technical changes as records, or handing work between AI sessions with a change record.

    alirezarezvani/claude-skills★ 30k
  5. Tdd Guide

    Test-first development and test generation for Jest, Pytest, JUnit, Vitest or Mocha: red-green-refactor, fixtures and mocks, coverage gaps.

    alirezarezvani/claude-skills★ 30k
  6. Team Communications

    Use for any internal communication: 3P updates, weekly or status reports, newsletters, FAQs, incident reports, leadership updates ('write…

    alirezarezvani/claude-skills★ 30k
  7. Tech Debt Tracker

    Find, rank and track tech debt in a codebase. Use whenever the user asks what to refactor first, plans a cleanup sprint, modernizes legacy…

    alirezarezvani/claude-skills★ 30k
  8. Tech Stack Evaluator

    Compare frameworks or tech stacks before committing: side-by-side scoring, total cost of ownership, ecosystem health and migration risk.

    alirezarezvani/claude-skills★ 30k
  9. Universal Scraping Architect

    Build a scraper or extractor for sites, PDFs or paginated APIs and validate the fields (Firecrawl or local Python).

    alirezarezvani/claude-skills★ 30k

See all software development skills →

More skills from alirezarezvani

  1. Stripe Integration Expert

    Use for any Stripe integration: subscriptions, trials, proration, checkout, usage billing, webhooks, customer portal or invoicing in…

    alirezarezvani/claude-skills★ 30k
  2. Support Ops

    Use for any customer support operations question - SLA attainment and breaches (first response, resolution, business hours, weekends,…

    alirezarezvani/claude-skills★ 30k
  3. Swedish Mentor

    Use when someone learning Swedish wants a learning path or YouTube clips and podcasts matched to their CEFR level and skill (SFI, Lätt…

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.