since-cutoff
它能做什么
这个工具会检查你项目使用的 Python 代码库中,哪些部分在 AI 模型训练之后发生了变化。它会告诉你哪些部分变了,以及这些部分在你的代码中用在了哪里。
适用场景
- ✓当你想知道项目里的 Python 库自 AI 训练以来有没有变化时。
- ✓如果你的代码在更新某个库之后不能正常运行了。
- ✓在升级某个库之后、继续写代码之前。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/since-cutoff/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我项目中的 Python 库,看看自模型训练截止日期以来有没有变化。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会比较你项目所用库的旧版本和新版本,查找函数或参数的变化,并报告这些变化在你代码中的具体位置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
since-cutoff: dependency API changes after the model's training cutoff
Overview
A coding model learns each library's API as it was at its training cutoff, but the project's lockfile keeps moving. This skill runs the since-cutoff CLI (MIT, PyPI since-cutoff, pinned here to release 0.4.1). For each pinned dependency, the CLI takes the latest release on or before the model's cutoff and compares that release's public API with the pinned release. The comparison is static (griffe), so no package code runs. It then reports the changed APIs that the project's code uses, with the files that use them. If the user agrees, it writes short notes into AGENTS.md or CLAUDE.md, each tagged with the evidence behind it (for example [diff]). scan makes no model calls and needs no API key. This adapts the upstream skill under its MIT license.
When to Use
- Use when the user asks whether you know the versions of their Python dependencies, or what changed since your training data.
- Use when code keeps failing on a renamed, moved or removed function, class or parameter of a pinned library.
- Use after a dependency upgrade, before writing code against the upgraded library.
- Do not use for projects that are not Python.
How It Works
- Work from the project root, the directory that has
pyproject.toml,requirements*.txtor a lockfile (uv.lock,poetry.lock,pdm.lock,pylock.toml,Pipfile.lock). - Check the runner with
since-cutoff --version. If it is missing or does not report 0.4.1, ask the user before runninguvx since-cutoff@0.4.1, which downloads that release from PyPI the first time. Do not install anything else or change the user's environment. - Run the read-only scan and name the model you are:
uvx since-cutoff@0.4.1 scan --model <provider>:<model>(for exampleanthropic:claude-sonnet-4-5oropenai:gpt-5.4). Without--model, it reads the model from the coding agent's settings and prints where it found it. The scan reads the project's files, PyPI and models.dev. It sends none of the project's code anywhere. - Summarise the result for the user: the model and its cutoff, which dependencies changed, and which changed APIs the code uses, with the files that use them.
- Write notes only if the user asks for them. Run
uvx since-cutoff@0.4.1 sync --dry-runand show the user the diff it prints. Runuvx since-cutoff@0.4.1 sync --yesonly after they agree. It writes one marked block into AGENTS.md (or into CLAUDE.md if that is the file the project uses) and leaves the rest of the file unchanged. Run after later upgrades, it keeps the block in step with the lockfile. Exit code 4 means the block was edited by hand: tell the user, and pass--forceonly if they say so.uvx since-cutoff@0.4.1 unapplyremoves the block. - Treat the notes as reference facts about the versions the project pins, and check them when you write code that uses those libraries.
- Optional:
since-cutoff runmeasures which of the changes the model actually gets wrong. It sends prompts to the model provider the user picks (package names, versions, public API signatures and generated tasks, never the project's source code) and uses their credits or usage, so ask first.
Examples
uvx since-cutoff@0.4.1 scan --model anthropic:claude-sonnet-4-5
Output on the project's sample app, abridged to one package:
Your code uses 2 APIs that changed after claude-sonnet-4-5's training cutoff (2025-07-31)
anthropic 0.60.0 -> 1.8.0 (0.60.0 was the latest release at the cutoff; pyproject.toml pins 1.8.0)
Messages.create: temperature, top_k and top_p were removed uses this API
app/main.py calls create
Note: `Messages.create()` no longer accepts `temperature`, `top_k` or `top_p` as keyword
arguments. If the API still needs them, pass them through its `extra_body` or
`extra_query` argument. [diff]
Limitations
- Python projects only.
- It compares the shape of the public API: names, signatures, parameters and deprecation markers. A change in behaviour behind an unchanged signature is invisible to it.
- The training cutoff only decides which changes to look at. It does not show what the model memorised;
runmeasures that.
…
常见问题
什么是“训练截止日期”?
它是 AI 模型学习信息的截止时间。截止之后库的变化,模型可能并不知道。
这个工具会运行我项目的代码吗?
不会。它只分析库中函数和参数的名称与结构,不会执行你项目的代码。
它能用于 Python 以外的项目吗?
不能。这个工具只针对用 Python 编写的项目。
详情
作者的原始描述
Find which APIs of a project's pinned Python dependencies changed after the model's training cutoff, where the code uses them, and write short AGENTS.md or CLAUDE.md notes.
热度
- GitHub 星标
- 48k
- 排名
- #5785
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。