dependency-doctor
하는 일
이 스킬은 고정되지 않은 패키지, 지원이 끊긴 백포트, 중복되거나 충돌하는 항목처럼 흔한 문제를 찾기 위해 의존성 파일 하나를 검토합니다. 설치 중이나 설치 전에 이런 문제를 잡고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓requirements나 패키지 파일에 의존성 문제가 있는지 물을 때.
- ✓패키지 설치가 실패해서 파일 자체의 문제를 배제하고 싶을 때.
- ✓오래된 버전 고정이나 중복 항목이 의심될 때.
스킬 링크
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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.