agentleFS
hmctshmcts/claude/.claude/skills/dependency-audit/SKILL.md

dependency-audit

Skill1 starsChanged 7 months agoMITView on GitHub

Audit dependency versions across CP repositories. Use when checking for version mismatches, outdated libraries, or parent POM alignment across context services.

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-audit, container-audit and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • briiirussellSkill

    api-audit

    Audit REST, GraphQL, and RPC APIs against the OWASP API Security Top 10 (2023). Use when the user mentions 'API security,' 'API audit,' 'BOLA,' 'broken object level authorization,' 'BFLA,' 'function-level authorization,' 'mass assignment,' 'API rate limiting,' 'GraphQL security,' 'REST security,' 'API authentication,' 'API authorization,' 'excessive data exposure,' or needs to review API endpoints for security weaknesses.

    Also in 3 projects that use this

  • grichaSkill

    container-audit

    Audit local Docker images and running containers for hardening issues before deploy — privileged flags, root users, stale base images, missing resource limits. Use for pre-deploy container review.

    Also in 3 projects that use this

  • vbrevikSkill

    secret-scan

    Scan git repositories for leaked secrets (API keys, passwords, tokens, certificates) using gitleaks. Detects secrets in git history and current code. Produces STIG V-ID-tagged findings that feed into /stig-compliance as pipeline evidence. Use when (1) reviewing code changes for accidental secret commits, (2) auditing git history for previously committed secrets, (3) /stig-compliance review needs secret detection evidence. Works air-gapped.

    Also in 3 projects that use this

  • UnitOneAISkill

    threat-modeling

    Runs a structured STRIDE threat model on any system design, API specification, or codebase. Auto-invoked when the user discusses architecture, shares a system diagram or design document, or asks "what could go wrong?" Produces threat actor profiles, component-threat matrix, a threat register with STRIDE classification, data-flow diagram template, trust boundary identification, and prioritized mitigations mapped to MITRE ATT&CK techniques.

    Also in 4 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 4 projects that use this

  • renfei-designSkill

    a11y-audit

    Audit Figma designs for WCAG accessibility issues — color contrast, minimum font size, touch target sizing, and missing text alternatives. Use when asked to check accessibility, audit contrast ratios, find a11y issues, verify WCAG compliance, or review designs for accessibility problems. Scans nodes, analyzes offline, and annotates issues in Figma.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before upgrading a shared library to find all consumers

    line 15
  2. Distinctive:

    Ask the user what to audit:

    line 21
  3. Very specific:

    Read pom.xml from each repo root and extract:

    line 32
  4. Very specific:

    Read build.gradle and extract:

    line 51

“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dependency Audit

Scans CP repositories for dependency version inconsistencies, outdated libraries, and parent POM alignment issues.

When to Use

  • User asks to "check dependency versions", "audit dependencies", "find version mismatches"
  • User wants to verify a specific library version across all repos
  • User wants to check parent POM chain alignment
  • Before upgrading a shared library to find all consumers

Process

Step 1: Determine Scope

Ask the user what to audit:

  • All context services — scan all cpp-context-* repos
  • Specific repos — scan named repositories
  • Specific dependency — find all usages of a named dependency
  • Parent POM chain — verify super-pom → parent-pom → service alignment

Step 2: Extract Version Information

For Maven repos (cpp-context-*, cp-*)

Read pom.xml from each repo root and extract:

  1. Parent POM — <parent> groupId, artifactId, version
  2. Properties — <properties> block for version properties
  3. Direct dependencies — any <dependency> with explicit versions (not managed)
  4. Plugin versions — any plugins with explicit versions

Key properties to check across the parent POM chain:

PropertyDefined inControls
cpp.framework.versionService POMcp-framework-libraries version
cpp.microservice-framework.versionService POMcp-microservice-framework version
cpp.event-store.versionService POMcp-event-store version
cpp.file-service.versionService POMcp-file-service version
cpp.platform-libraries.versionService POMcpp-platform-libraries version

For Gradle repos (cp-audit-*, cp-auth-*, cpp-mbd-*)

Read build.gradle and extract:

  1. Plugin versions — Spring Boot, dependency-management
  2. Dependencies — implementation, testImplementation blocks
  3. Ext properties — version variables

For Node repos (cpp-ui-*)

Read package.json and extract:

  1. Angular version — @angular/core
  2. Key dependencies — ngrx, govuk-frontend, ngx-bootstrap
  3. Node/npm versions — engines field or .nvmrc

Step 3: Compare and Report

Generate a report grouped by finding type:

## Dependency Audit Report

### Parent POM Versions
| Repo | Parent Artifact | Parent Version |
|------|----------------|----------------|
| cpp-context-hearing | cp-maven-parent-pom | 1.2.3 |
| cpp-context-resulting | cp-maven-parent-pom | 1.2.4 |
...

### Framework Library Versions
| Repo | framework | microservice-fw | event-store | platform-libs |
|------|-----------|-----------------|-------------|----------------|
...

### Version Mismatches (Action Required)
- **cp-framework-libraries**: 5 repos on 2.1.0, 3 repos on 2.0.8 (latest: 2.1.0)
- **Spring Boot**: gradle repos split between 3.4.1 and 3.4.2

### Outdated Dependencies
- **[repo]**: dependency X is N versions behind latest

Step 4: Recommend Actions

For each mismatch, provide:

  • Which repos need updating
  • The target version
  • Whether it's a breaking change (major version bump)
  • Suggested update order (shared libraries first, then consumers)

Tips

  • The parent POM chain is: cp-maven-super-pom → cp-maven-parent-pom → cp-maven-framework-parent-pom → service POM
  • cp-maven-common-bom manages transitive dependency versions — check it for the canonical version of third-party libs
  • Renovate bot creates automated PRs for dependency updates — check for open Renovate PRs before manually updating
  • Framework library version changes often require coordinated releases across multiple context services

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.