dependency-doctor
Skill này làm gì
Skill này rà soát một file phụ thuộc để tìm các vấn đề thường gặp, như gói chưa ghim phiên bản, bản backport đã ngừng bảo trì và các mục trùng lặp hoặc xung đột. Skill dành cho lập trình viên muốn phát hiện các vấn đề này trước hoặc trong khi cài đặt.
Khi nào nên dùng
- ✓Khi bạn hỏi liệu một file requirements hoặc package có vấn đề phụ thuộc không.
- ✓Khi cài đặt gói thất bại và bạn muốn loại trừ các vấn đề trong chính file.
- ✓Khi bạn nghi ngờ có phiên bản ghim cũ hoặc mục trùng lặp trong phụ thuộc.
Liên kết skill
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/dependency-doctor/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra requirements.txt của tôi xem có vấn đề phụ thuộc không và gợi ý sửa an toàn, nhưng chưa thay đổi gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc file bạn chọn, giải thích mọi vấn đề bằng ngôn ngữ đơn giản và đề xuất một sửa đổi nhỏ để bạn xem xét. Skill không chẩn đoán mọi lần cài đặt thất bại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có kiểm tra lỗ hổng bảo mật không?
Không. Đây không phải là kiểm tra lỗ hổng đầy đủ, nên vẫn cần một công cụ quét bảo mật riêng cho việc đó.
Nó có tự sửa file của tôi không?
Không. Nó giải thích các phát hiện và đề xuất một sửa đổi nhỏ để bạn xem trước.
Nó có thể kiểm tra những file nào?
Nó hỗ trợ các file requirements.txt, pyproject.toml và package.json.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 144k
- Vị trí xếp hạng
- #675
- Giấy phép
- Apache-2.0
- Cập nhật
- 22/10/2026
Bình luận
- …
Thêm skill từ kho mã này
advisor-orchestrator-worker
144kGiúp agent của bạn chia một tác vụ rất lớn cho nhóm model AI, model mạnh lập kế hoạch và kiểm tra, còn model rẻ hơn làm phần việc.
commit-archaeologist
144kGiúp agent của bạn giải thích lý do một đoạn code tồn tại bằng cách đọc lịch sử git cục bộ, gồm ai đã thêm nó và điều gì thay đổi sau đó.
first-reader
144kGiúp agent của bạn kiểm thử bản nháp bằng cách mô phỏng cách độc giả thật trải nghiệm nó, chỉ ra chỗ họ có thể mất hứng thú và điều họ ghi nhớ.
project-graveyard
144kGiúp agent của bạn quét máy tính để tìm các dự án phụ chưa hoàn thiện, giải thích vì sao từng dự án dừng lại và chọn dự án đáng hoàn thiện nhất.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.