dependency-doctor
できること
このスキルは、ピン留めされていないパッケージ、放棄されたバックポート、重複や競合する項目など、よくある依存関係の問題について、一つの依存関係ファイルを確認します。インストール時やその前に問題を見つけたい開発者向けです。
使う場面
- ✓依存関係のファイルに問題がないかを尋ねるとき。
- ✓パッケージのインストールに失敗し、ファイル自体の問題を除外したいとき。
- ✓古いピン留めや重複する依存関係があると疑うとき。
スキルのリンク
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/dependency-doctor/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“requirements.txtに依存関係の問題がないかを確認し、安全な修正を提案してください。ただし、まだ何も変更しないでください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、あなたが選んだファイルを読み、見つかった問題を平易な言葉で説明し、あなたが確認できる小さな修正を提案します。インストールの失敗すべてを診断するものではありません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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.txtpyproject.tomlusing PEP 621 or common Poetry dependency tablespackage.jsondependency 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:
- Package and source line
- What can break
- 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 enginereferences/dependency-pitfalls.md: reasoning guide for the reported risks
よくある質問
セキュリティ上の脆弱性も確認しますか?
いいえ。完全な脆弱性の監査ではないので、それには別のセキュリティスキャナーが必要です。
ファイルを自動的に編集しますか?
いいえ。結果を説明し、あなたが先に確認するための小さな修正を提案します。
どのファイルを確認できますか?
requirements.txt、pyproject.toml、package.jsonファイルに対応しています。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 144k
- ランキング
- #675
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/22
コメント
- …
このリポジトリの他のスキル
advisor-orchestrator-worker
144k大きな作業を、AIモデルのチームに分担させるのをエージェントが支援します。より強いモデルが計画と確認を行い、より安いモデルが作業をします。
commit-archaeologist
144kローカルのgitの履歴を読み、誰がそのコードを追加したか、後に何が変わったかを示して、コードが存在する理由をエージェントが説明するのを支援します。
first-reader
144k実際の読者が体験するように下書きを読み、どこで興味を失うか、何を覚えているかを示して、下書きをテストするのをエージェントが支援します。
project-graveyard
144kコンピューター上の未完成の個人プロジェクトを探し、それぞれが止まった理由を説明し、完成させる価値のあるものを選ぶのをエージェントが支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。