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

legacy-impact-audit

v0.2.25

Published

πŸ” Blast radius & caller analysis for legacy Java. Heuristic-ranked impact audit β€” npm-installable agent skill for OpenCode, Codex, Claude Code, Copilot, Gemini & DeepCode.

Readme

legacy-impact-audit

npm npm downloads License: MIT

legacy-impact-audit is a Codex skill and deterministic helper toolkit for low-token impact analysis in legacy Java or mixed enterprise repositories.

npm install -g legacy-impact-audit

Current version: 0.2.25

It is designed for repositories where full dependency graphs are unavailable, stale, too expensive to build, or unreliable for daily change work.

What It Does

The workflow uses a cheap-to-expensive funnel:

  1. Search with rg across source/config files.
  2. Filter noise and rank candidate callers with deterministic Python heuristics.
  3. Generate a small LLM packet for semantic confirmation.
  4. Validate audit artifacts in hooks or CI before review/test planning.

The scripts do not call an LLM. The agent performs semantic confirmation only after the candidate set has been reduced.

Repository Layout

legacy-impact-audit/
  SKILL.md
  agents/openai.yaml
  scripts/impact_audit.py
  scripts/validate_impact_audit.py
  scripts/precommit-impact-reminder.sh
  scripts/sensitive-scan-gate.sh
  references/hook-patterns.md
  references/llm-verification-template.md
portable/
  install-kit.py
  install-kit.sh
  install-kit.ps1
  INSTALL-SAMPLES.md
docs/
  agent-install-matrix.md
  workflow-test-guide.md
  install-codex.md
  install-claude.md
  install-opencode.md
  install-gemini.md
  install-copilot.md
  install-deepcode.md
examples/
  AGENTS-impact-audit.md
  test-prompt.md
  workflow-test-prompt.md
  mock-legacy-java/
.github/workflows/ci.yml
AI-SELF-INSTALL.md
AGENT-INSTALL.md
NO-PYTHON-INSTALL.md
CHANGELOG.md
VERSION

Install

npm install -g legacy-impact-audit

The postinstall script auto-detects your agent (OpenCode, Codex, or Claude Code) and installs the skill. Done.

Prerequisites: python (or python3) and ripgrep (rg) must be available in PATH.

For Codex specifically, this kit now relies on ~/.codex/AGENTS.md plus the installed skill directory. It does not require a Codex SessionStart hook.

Project scope

legacy-impact-audit install --project .

This writes an AGENTS.md instruction block and installs the skill into .opencode/skills/.

Alternative installers

Python is not required for installation. It is required later to run the deterministic audit scripts. legacy-impact-audit version # show version


Requires Node.js 18+. This copies the skill files to the correct agent skill directory.

### Python installer

```bash
python3 portable/install-kit.py --agent codex --scope user --force

No-Python installers

sh portable/install-kit.sh --agent codex --scope user --force
powershell -ExecutionPolicy Bypass -File portable/install-kit.ps1 -Agent codex -Scope user -Force

Install for every supported user-level agent target:

python3 portable/install-kit.py --agent all --scope user --force

For full no-Python installation options, see NO-PYTHON-INSTALL.md.

For agent-readable installation steps, see AGENT-INSTALL.md.

For fully self-directed AI installation, give the agent AI-SELF-INSTALL.md or the prompt in examples/ai-self-install-prompt.md.

For per-agent installation details, see:

Quick Scan

Run from a target repository:

python3 "$HOME/.codex/skills/legacy-impact-audit/scripts/impact_audit.py" scan \
  --root . \
  --module-path path/to/module \
  --symbol METHOD_NAME \
  --owner-class OWNER_CLASS \
  --owner-package com.example.package \
  --definition-file path/to/OwnerClass.java \
  --encoding utf-8

Outputs:

.ai/legacy-impact-audit/impact-report.md
.ai/legacy-impact-audit/llm-packet.md
.ai/legacy-impact-audit/impact-scan.json

If the result is REFINE_REQUIRED, do not perform semantic analysis yet. Re-run with a narrower module, owner class, owner package, or definition file.

Mandatory Gate Usage

For teams using this as a mandatory process gate:

  1. Run impact audit before finalizing the implementation plan.
  2. Run impact audit again after code changes and before functional test design or code review.
  3. Derive functional and regression test scope from confirmed real_dependency and possible_dependency candidates.
  4. Use validate_impact_audit.py in pre-commit, pre-push, or CI to block missing/stale/refine-required audit artifacts.

An AGENTS.md snippet is available in examples/AGENTS-impact-audit.md.

For local-only sensitive term blocking, use legacy-impact-audit/scripts/sensitive-scan-gate.sh with an untracked pattern file under .git/hooks. See hook patterns.

Workflow Test Fixture

Use docs/workflow-test-guide.md and examples/workflow-test-prompt.md to validate the full workflow with another AI agent. The mock project lives in examples/mock-legacy-java.

Validate In Hooks Or CI

These hook references are Git hooks / CI gates for repositories. They are not a Codex startup hook.

python3 "$HOME/.codex/skills/legacy-impact-audit/scripts/validate_impact_audit.py" \
  --root . \
  --mode staged \
  --max-age-minutes 240

Modes:

  • staged: validate staged source/config changes, useful for pre-commit.
  • worktree: validate unstaged worktree changes.
  • all: validate all changes against HEAD, useful for pre-push or CI.

For stricter review gates:

python3 "$HOME/.codex/skills/legacy-impact-audit/scripts/validate_impact_audit.py" \
  --root . \
  --mode all \
  --require-verdicts

This requires .ai/legacy-impact-audit/semantic-verdict.md to exist.

Requirements

  • Installation: Python is optional. Use portable/install-kit.py, portable/install-kit.sh, portable/install-kit.ps1, or manual copy.
  • Audit execution: Python 3.10 or newer is recommended.
  • Search: rg / ripgrep must be available in PATH. Run rg --version before first use on a fresh machine.
  • Git is required for validator diff modes.
  • Mixed-encoding repositories can pass --encoding, for example --encoding utf-8, --encoding gbk, or --encoding auto.

License

MIT. See LICENSE.

CI

The included GitHub Actions workflow runs smoke tests for Python and no-Python installers, compiles scripts, runs a scan, and validates generated artifacts.

Publishing Notes

This repository is ready to publish as a GitHub project.