Claude-skill-registry check_deps

ソースコード内のimportとpyproject.tomlの依存関係の整合性をチェックする

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/check-deps-tatsuki-washimi-gwexpy" ~/.claude/skills/majiayu000-claude-skill-registry-check-deps && rm -rf "$T"
manifest: skills/data/check-deps-tatsuki-washimi-gwexpy/SKILL.md
source content

Check Dependencies

This skill verifies that all imported packages are declared in the project dependencies.

Instructions

  1. Scan Imports:

    • Use
      grep
      or a script to find all
      import ...
      and
      from ... import
      statements in
      gwexpy/
      .
    • Extract top-level package names (e.g., from
      numpy.linalg
      get
      numpy
      ).
  2. Read Configuration:

    • Read
      dependencies
      and
      project.optional-dependencies
      sections in
      pyproject.toml
      .
  3. Compare:

    • Identify packages imported but missing from configuration (Potential
      ModuleNotFoundError
      ).
    • Identify packages in configuration but never imported (Bloat).
    • Note: Ignore standard library modules (e.g.,
      os
      ,
      sys
      ,
      typing
      ) and dev dependencies used only in
      tests/
      .
  4. Report:

    • List missing dependencies.
    • List potentially unused dependencies.