跳到正文
Skillpedia
通用编程48k · #5785

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/since-cutoff/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Work from the project root, the directory that has pyproject.toml, requirements*.txt or a lockfile (uv.lock, poetry.lock, pdm.lock, pylock.toml, Pipfile.lock).
  2. Check the runner with since-cutoff --version. If it is missing or does not report 0.4.1, ask the user before running uvx 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.
  3. Run the read-only scan and name the model you are: uvx since-cutoff@0.4.1 scan --model <provider>:<model> (for example anthropic:claude-sonnet-4-5 or openai: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.
  4. 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.
  5. Write notes only if the user asks for them. Run uvx since-cutoff@0.4.1 sync --dry-run and show the user the diff it prints. Run uvx since-cutoff@0.4.1 sync --yes only 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 --force only if they say so. uvx since-cutoff@0.4.1 unapply removes the block.
  6. Treat the notes as reference facts about the versions the project pins, and check them when you write code that uses those libraries.
  7. Optional: since-cutoff run measures 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; run measures 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5785
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能