Skip to content

ci: add audit-dependencies claude skill#15967

Merged
denolfe merged 6 commits into
mainfrom
ci/audit-dependencies-skill
Mar 17, 2026
Merged

ci: add audit-dependencies claude skill#15967
denolfe merged 6 commits into
mainfrom
ci/audit-dependencies-skill

Conversation

@denolfe

@denolfe denolfe commented Mar 16, 2026

Copy link
Copy Markdown
Member

Overview

Adds a Claude Code skill for fixing dependency audit vulnerabilities, and adds input validation to the audit script. Invoked manually via /audit-dependencies [severity] (defaults to high).

Key Changes

  • New skill at .claude/skills/audit-dependencies/SKILL.md

    • User-invocable only (disable-model-invocation: true), so Claude won't auto-detect or load it.
    • Accepts an optional severity argument (critical|high|moderate|low), defaults to high.
    • Codifies the workflow: run audit script, trace dependency chains, prefer direct bumps over pnpm overrides, research breaking changes, install/build/verify, look up advisories, commit, and create a PR.
    • Includes a graphviz decision flowchart for the bump-vs-override decision.
    • Calls out parallel agent dispatch for breaking change research and advisory lookups.
    • Uses GHSA links (github.com/advisories/GHSA-...) over NVD links in PR bodies.
  • Severity validation in audit-dependencies.sh

    • Validates the severity argument against low, moderate, high, critical. Exits with code 2 on invalid input.

Design Decisions

The skill enforces "direct bump first, override as last resort" because overrides hide version mismatches and can silently break when the parent package updates. Each override requires explicit justification (no patched parent version available, high breaking change risk, or user defers to separate PR).

@denolfe denolfe changed the title chore: add audit-dependencies claude skill ci: add audit-dependencies claude skill Mar 16, 2026
@denolfe denolfe marked this pull request as ready for review March 16, 2026 18:11
@denolfe denolfe enabled auto-merge (squash) March 17, 2026 14:23
@denolfe denolfe merged commit 5efc2ff into main Mar 17, 2026
18 checks passed
@denolfe denolfe deleted the ci/audit-dependencies-skill branch March 17, 2026 14:24
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.80.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants