strict-api
Fungsinya
Skill ini membuat AI memeriksa bahwa setiap fungsi, impor, dan metode yang dipakai ada di versi yang Anda jalankan. Skill ini untuk pengembang yang menginginkan kode yang langsung berfungsi.
Kapan dipakai
- βSaat Anda mengatakan AI tidak boleh mengarang fungsi atau API.
- βSaat kode bergantung pada versi library yang belum diperiksa.
- βSaat sebuah framework memiliki nama yang mirip dan Anda ingin menghindari kebingungan.
Link skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/strict-api/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTulis kode Express ini, dan pastikan setiap metode yang Anda pakai benar-benar ada di versi kami.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Sebelum menulis kode, skill membuat daftar setiap API yang akan dipakai kode dan memastikan API itu ada di versi yang terpasang, lalu menghindari apa pun yang tidak bisa dikonfirmasi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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.
Pertanyaan umum
Apakah ini membuat penulisan kode lebih lambat?
Ada langkah pemeriksaan tambahan, tetapi tujuannya menghindari bug yang lebih lama diperbaiki nanti.
Kesalahan apa yang dihentikan?
Metode rekaan, tertukarnya nama framework, dan panggilan yang sudah usang.
Bisakah dipakai bersama skill yang meminimalkan kode?
Bisa. Skill ini dapat dipakai bersama skill yang meminta lebih sedikit kode.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9611
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-launcher-orchestrator
29kMembantu agent Anda merencanakan, membangun, menguji, dan menjadwalkan agent Claude terkelola di akun Anda sendiri, langkah demi langkah.
grade-iterate
29kMembantu agent Anda menilai hasil kerja agent AI terkelola berdasarkan rubrik dan memperbaikinya dalam jumlah putaran tetap, agar tidak berputar tanpa henti.
interview
29kMembantu agent Anda mewawancarai Anda tentang ide agent AI dan mengubah jawaban Anda menjadi rencana pembangunan sederhana sebelum apa pun diluncurkan.
run-without-you
29kMembantu agent Anda disiapkan agar berjalan tanpa Anda sesuai jadwal atau saat sebuah peristiwa terjadi, dengan waktu cron diperiksa sebelum peluncuran.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.