본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)144k · #675

dependency-doctor

하는 일

이 스킬은 고정되지 않은 패키지, 지원이 끊긴 백포트, 중복되거나 충돌하는 항목처럼 흔한 문제를 찾기 위해 의존성 파일 하나를 검토합니다. 설치 중이나 설치 전에 이런 문제를 잡고 싶은 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓requirements나 패키지 파일에 의존성 문제가 있는지 물을 때.
  • ✓패키지 설치가 실패해서 파일 자체의 문제를 배제하고 싶을 때.
  • ✓오래된 버전 고정이나 중복 항목이 의심될 때.

스킬 링크

https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/dependency-doctor/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/dependency-doctor/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.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
자주 묻는 질문

보안 취약점도 확인하나요?

아니요. 전체 취약점 감사가 아니므로, 보안을 위해서는 별도의 보안 스캐너가 여전히 필요합니다.

파일을 스스로 수정하나요?

아니요. 문제를 설명하고 사용자가 먼저 검토할 작은 수정안을 제안합니다.

어떤 파일을 검사할 수 있나요?

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.

repo: Shubhamsaboo/awesome-llm-apps

인기도

GitHub 스타
144k
순위
#675
라이선스
Apache-2.0
업데이트
2026. 10. 22.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬