strict-api
当用户说“不要幻觉”、“验证 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.
适用对象:软件开发与测试。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Strict API Verification
- Overview
- The Only Rule
- What This Blocks
- Workflow
- Anti-Patterns
- Cross-References
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. 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. 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. 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. 1.
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- alirezarezvani/claude-skills
- 源文件
- engineering/strict-api/SKILL.md
- 固定版本
- 8f082544116fc0d014188e521ca40304cdfc86b0
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:alirezarezvani/claude-skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:46.926Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。