zeugnis-dependency-audit
Use when the user asks to audit declared dependencies for hallucinated, nonexistent, or typosquat-adjacent packages, wants zeugnis's dependency audit run, or asks whether package.json/requirements.txt/pyproject.toml/Cargo.toml/go.mod/Gemfile entries actually exist. Performs bounded, read-only registry lookups with a mandatory-unless-flagged independent verification pass.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- zeugnis-dependency-audit
- description
- Use when the user asks to audit declared dependencies for hallucinated, nonexistent, or typosquat-adjacent packages, wants zeugnis's dependency audit run, or asks whether package.json/requirements.txt/pyproject.toml/Cargo.toml/go.mod/Gemfile entries actually exist. Performs bounded, read-only registry lookups with a mandatory-unless-flagged independent verification pass.
03 SKILL.md 正文
Audit this repository's declared dependencies for hallucination and
typosquat-adjacent naming. The registry lookups themselves — and their
timeout bound, and the rule that an unreachable registry is reported as
skipped rather than any kind of verdict — are enforced by
scripts/dependency_audit.py and scripts/lib/registry.py, not by these
instructions. Your job is to orchestrate the agent judgment layer around
that deterministic core and present the result.
Steps
- Determine
repo_root, andtimeout_seconds(default 10; only override if the user or adependency_audit.timeout_secondssetting says otherwise — never silently raise it past 60). - Determine whether the user explicitly asked to skip verification
(
skip_verification: true). If they did not say so explicitly, treat it asfalse— verification runs by default. - Optionally, for judgment calls the deterministic parser can't make on
its own (ambiguous or scoped/private-looking package names, names that
look engineered rather than organically typo'd), dispatch the
dependency-auditoragent in Find mode over the repo's manifest files. Ask it to return{"findings": [...]}in the shared finding schema. Write its output to a scratch file, e.g.${CLAUDE_PLUGIN_ROOT}/../analysis/zeugnis/tmp/agent_findings.json(or any scratch path — it is only ever read once, by the next step). - Run:
This single invocation performs the manifest parse, the bounded registry lookups, the typosquat heuristic, the mandatory-unless-flagged independent re-check of every finding (including any you supplied viapython3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/dependency_audit.py" <repo_root> \ --timeout-seconds <N> \ [--skip-verification] \ [--agent-findings <path-from-step-3>]--agent-findings— they get the same re-check, never taken on faith), and writesanalysis/zeugnis/reports/DEPENDENCY_AUDIT.mdandanalysis/zeugnis/dependency_audit_summary.jsonin the shared finding schema. - Report the finding count and the top few findings to the user, and
point them at the report path. If any findings have
category: "registry-unreachable", say so explicitly and note they are not evidence of anything — just an unconfirmed lookup — never phrase them as "these might be hallucinated."
What NOT to do
- Do not call a registry yourself with
curl/pip index/npm view— always go through the script, which is the only place the timeout bound and the skip-vs-verdict classification are enforced. - Do not skip step 4's verification behavior by omitting the script's own
re-check — there is no flag for that;
--skip-verificationon this script controls the SAME verification the rule requires, and omitting the flag (the default) is what keeps it mandatory. - Do not report a
not_foundlookup outcome as "hallucinated" without noting it survived independent re-verification — that's what makes it a confirmed finding rather than a first-pass guess.
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.