跳到正文
cccskills
免费在 GitHub 公开中文介绍

dependency-doctor

检查Python和JavaScript依赖文件中的版本约束缺失、重复条目、固定版本冲突及过时兼容包,用易懂的语言说明影响并提出便于核对的修改建议。

原文查看原文说明

Checks requirements.txt, pyproject.toml, and package.json dependency manifests for surface-level direct-dependency footguns: standard-library shadowing pins, abandoned backports, unpinned dependencies, and obvious intra-manifest conflicts, plus opt-in PyPI yanked releases. Use when the user asks to check a manifest for dependency problems, asks why dependencies won't install or whether anything is wrong with their dependencies, wants a dependency autopsy, or suspects dependency manifest rot. Runs offline by default as a local tool for the user's own project, not repository CI.

实测评分 未实测

查看安装方法

适用场景

  • 安装失败深入排查前的初步检查
  • 检查过时的Python兼容包
  • 检查重复条目和固定版本冲突
  • 检查PyPI上已撤回的版本

中文介绍

功能

dependency-doctor读取指定的一个requirements.txt、pyproject.toml或package.json文件,检查其中直接声明的依赖。它查找版本约束缺失、重复条目和固定版本不一致的问题;对Python,还检查与标准库模块同名的包及过时兼容包。它会指出有问题的行,用易懂的语言解释影响,并提出小范围修改建议。

适用场景

适合在深入排查安装失败前做初步检查,或重新审视长期未更新的依赖文件。修改需经批准,之后会重新检查,并使用项目现有的安装或测试流程验证。

使用示例

  • “离线检查这个requirements.txt是否存在问题。”
  • “查找重复条目和固定版本冲突,并提出修改建议。”

注意事项

需要Python 3.11或更高版本。通常离线运行,只有经批准使用--online时,才会向pypi.org发送包名和固定的确切版本。它不负责漏洞审计、完整依赖解析,也不用于CI检查。许可证为Apache-2.0。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好明确要求修改前批准,并说明--online的发送目标、数据内容及事先许可。
安装难易度所需工具和 API 密钥是否少且有说明
A良好明确要求Python 3.11以上,提供执行命令,仅使用标准库且默认离线运行。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月20日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(4)

  • SKILL.md5.3 KB
  • README.md1.9 KB
  • references/dependency-pitfalls.md3.1 KB
  • scripts/dep_doctor.py17.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Dependency Doctor

Inspect one dependency manifest on the user's machine for direct, surface-level footguns. Explain each finding in plain language, then offer a small, reviewable fix. This does not diagnose a failed pip or uv resolution.

This is a local developer tool for a project the user chooses. It is not a repository-wide lint rule, a CI gate, or a proposal to enforce dependency policy across unrelated apps.

When to use

  • The user asks to check, audit, diagnose, or autopsy a dependency manifest
  • The user wants to rule out direct-manifest issues before deeper install debugging
  • The user suspects stale pins, backports, duplicate entries, or dependency rot
  • The user asks whether anything looks wrong with their dependencies

When not to use

  • Installing the current dependencies without diagnosing them
  • Upgrading every package or adding a new package
  • A full vulnerability audit. Use pip-audit, npm audit, or the project's approved security scanner for CVE coverage
  • Creating a repo-wide CI check. This skill is user-invoked and local

Choose the manifest

Use the path the user names. If no path is given and several manifests exist, ask which one to inspect. Do not sweep the repository or edit anything merely because the skill was triggered.

Supported inputs:

  • requirements.txt
  • pyproject.toml using PEP 621 or common Poetry dependency tables
  • package.json dependency sections

Run the offline diagnosis

From this skill directory:

python3 scripts/dep_doctor.py /path/to/requirements.txt --json

The default path is fully offline. It reads only the selected manifest. The report shape is:

{
  "file": "/path/to/requirements.txt",
  "findings": [
    {
      "severity": "high",
      "kind": "stdlib-shadowing",
      "package": "pathlib",
      "line": 4,
      "why": "...",
      "fix": "..."
    }
  ],
  "summary": {
    "total": 1,
    "by_severity": {"high": 1},
    "by_kind": {"stdlib-shadowing": 1},
    "online": false
  }
}

The offline checks cover:

  • Python standard-library names published as packages
  • Known backports that should not be installed on supported Python versions
  • Dependencies without a usable version constraint
  • Repeated package entries
  • Conflicting exact pins for the same package

For package.json, Python-specific standard-library and backport checks do not apply. The doctor still checks unpinned values and repeated dependency entries.

Explain the diagnosis

Read references/dependency-pitfalls.md before presenting findings. Lead with high severity items, then medium and low. For each finding, include:

  1. Package and source line
  2. What can break
  3. The suggested fix

Do not call every range a conflict. The deterministic core reports conflicting constraints only when exact pins disagree. Compatible constraints split across multiple lines are duplicate entries that should be combined.

If there are no findings, say what was checked and note the limits. A clean report is not a CVE audit or a full dependency resolver.

Optional PyPI yank check

The online check sends package names and exact pinned versions to pypi.org. Ask for permission before enabling it, even if the user previously requested an offline diagnosis.

python3 scripts/dep_doctor.py /path/to/requirements.txt --json --online

It reports an exact Python release only when every file for that release is marked yanked. Network failures become low-severity findings instead of hiding the offline diagnosis.

Offer fixes, do not apply them silently

After explaining the report, offer a focused edit. Wait for approval before changing the manifest.

  • Remove standard-library packages from supported Python projects
  • Remove obsolete backports, or add a Python-version marker when an old runtime genuinely needs one
  • For an unpinned dependency, inspect the working environment's installed version, confirm it is intended, and propose an exact reviewed pin
  • Keep one entry for duplicates and combine compatible constraints
  • For conflicting exact pins, inspect dependents before choosing a version
  • Replace a yanked pin with a tested, non-yanked release

After any approved edit, rerun the offline diagnosis and the project's existing install or test command. Do not introduce a new CI gate.

Files

  • scripts/dep_doctor.py: stdlib-only manifest parser and diagnosis engine
  • references/dependency-pitfalls.md: reasoning guide for the reported risks

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

将大型调研或生成任务分配给多个AI模型,完成计划评审、并行执行、成果验证与整合,并记录各负责角色的进度和重试情况。

  • 并行调研多个竞争对手
  • 分担大型内容生成任务
  • 让顾问评审计划或草稿
Shubhamsaboo/awesome-llm-apps14.3万2026年10月23日 更新

chatgpt-app-builder

免费有简介

指导开发可在ChatGPT内操作的应用,涵盖功能规划、React组件及状态共享的实现。该技能已弃用,并指引用户转向后续技能。

  • 梳理ChatGPT应用功能
  • 实现与服务器联动的界面
  • 与ChatGPT共享界面状态
Shubhamsaboo/awesome-llm-apps14.3万2026年10月23日 更新

commit-archaeologist

免费有简介

通过本地Git历史调查代码的引入背景与修改意图,追溯最初提交及反复同时修改的文件,整理改动前需要检查的事项。

  • 了解陌生函数存在的原因
  • 改动前检查历史约束
  • 调查临时变通方案为何仍被保留
Shubhamsaboo/awesome-llm-apps14.3万2026年10月23日 更新

first-reader

免费有简介

从目标读者的角度试读发布前的文稿,检查是否愿意打开、在哪里失去兴趣,以及读后记住什么。它报告模拟读者的反应,不改写文章。

  • 检查帖子是否会被读完
  • 找出读者停止阅读的位置
  • 比较修改前后的读者反应
Shubhamsaboo/awesome-llm-apps14.3万2026年10月23日 更新

mcp-apps-builder

免费有简介

使用mcp-use设计和实现MCP服务器,让AI调用外部操作与数据。指南涵盖认证、交互界面、错误处理及部署,并引导查阅各功能的配套资料。

  • 新建MCP服务器
  • 添加操作、数据及可复用提示词
  • 构建浏览与选择数据的React界面
Shubhamsaboo/awesome-llm-apps14.3万2026年10月23日 更新

mcp-builder

免费有简介

这是使用mcp-use设计MCP服务器操作、数据资源、可复用提示词及交互界面的旧指南。该技能已弃用,并指引用户迁移至mcp-app-builder。

  • 理解现有mcp-use服务器结构
  • 查阅Tool、Resource和Prompt示例
  • 查看交互式Widget设计
Shubhamsaboo/awesome-llm-apps14.3万2026年10月23日 更新

查看 Shubhamsaboo 的全部技能

报告此技能的问题