npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

python-infra-audit-cc

v1.1.0

Published

Python infrastructure audit skill for Claude Code — audit projects against a known-good blueprint

Readme

python-infra-audit-cc

Audit Python project infrastructure against a known-good blueprint — as a Claude Code slash command.

Checks ruff, pyright, pre-commit, CI/CD, pyproject.toml, uv, Docker, Makefile, Alembic, and environment/secrets configuration against production-tested standards.

Install

npx python-infra-audit-cc

This installs globally to ~/.claude/. For a project-local install:

npx python-infra-audit-cc --local

Usage

In Claude Code:

/infra:audit           # Audit all detected areas
/infra:audit ruff      # Audit only ruff config
/infra:audit ci docker # Audit CI and Docker

/infra:fix             # Fix all critical + warning findings
/infra:fix critical    # Fix only critical findings
/infra:fix warnings    # Fix only warnings

/infra:status          # Show last audit/fix score and trend

What it checks

| Area | What's audited | |------|---------------| | ruff | Rule selection, security rules (S), import sorting (I), per-file ignores | | pyright | Type checking mode, Python version match, venv config | | pre-commit | Hook presence, ruff + ruff-format hooks | | CI/CD | Lint job, test job, format check, trigger config | | pyproject | Build backend, requires-python, dev dependencies | | uv | Lock file presence, gitignore status, workspace config | | Docker | SHA256-pinned images, frozen installs, layer ordering | | Makefile | Standard targets (help, test, deploy, etc.) | | Alembic | sqlalchemy.url blank, model imports, env var usage | | env | .env in gitignore, example.env exists, no committed secrets | | deadcode | Unused functions, variables, imports, classes via vulture |

Output

Produces a scored report (0-10) with findings classified as:

  • CRITICAL (-2 pts): Security risks, missing essential config
  • WARNING (-0.5 pts): Best-practice deviations
  • INFO (0 pts): Suggestions, legitimate alternatives

Update

/infra:update

Or directly:

npx python-infra-audit-cc@latest

Uninstall

npx python-infra-audit-cc --global --uninstall

How it works

The installer copies skill files into your ~/.claude/ directory:

  • commands/infra/audit.md — Audit slash command
  • commands/infra/fix.md — Auto-fix slash command
  • commands/infra/status.md — Status dashboard slash command
  • commands/infra/update.md — Self-update command
  • infra/blueprint.md — The standards reference document
  • infra/blueprints/ci.yml — Canonical CI workflow template
  • infra/blueprints/renovate.yml — Canonical Renovate config template
  • infra/scripts/detect.sh — Project detection script (frameworks, tools, config files)
  • infra/scripts/verify.sh — CI/CD verification script
  • hooks/infra-check-update.js — Background update checker (runs on session start)

It additively merges its hook into settings.json alongside any existing hooks (e.g., GSD).

Audit history is stored per-project in ~/.claude/infra/history/ and persists across updates and uninstalls.

Local modifications

If you customize any installed files, the installer detects changes on update and backs them up to infra-audit-local-patches/ before overwriting.

Contributing

See RELEASING.md for development setup and publishing instructions.

License

MIT