/devops-skills:artifact-and-dependency-managementfrom devops-skills
Manages build artifacts and third-party dependencies via private registries, lockfiles, version pinning, retention policies, and automated updates. Helps avoid supply-chain incidents.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every build depends on two kinds of external input: third-party packages pulled in at build time (npm, PyPI, Maven, NuGet, etc.) and the artifacts your own pipelines produce (binaries, container images, packages). Left unmanaged, both become sources of instability and risk — an upstream package can be yanked, compromised, or silently change behavior between builds, and your own artifact storage can grow unbounded or lose the exact-version traceability needed to know what's actually deployed. This skill covers running a private registry/proxy for dependencies, pinning and locking versions, and keeping first-party artifact storage clean and trustworthy.
package-lock.json,
poetry.lock/requirements.txt with pinned hashes, go.sum) to make
builds reproducible.package-lock.json lockfileVersion 2/3), pip with
--require-hashes or Poetry/Pipenv, Go ≥ 1.16 (go.sum verified by
default via GOSUMDB unless explicitly disabled), Maven/Gradle with
dependency lock files or checksum verification enabled.latest) are exempt from
cleanup.Put a pull-through proxy/mirror in front of public registries
rather than having every build reach the public internet directly.
Example Artifactory/Nexus-style virtual repo config (conceptual): a
npm-remote repo proxying registry.npmjs.org, cached locally, with a
npm-virtual repo combining it with your private npm-local packages.
Point CI and developer machines at the virtual repo:
npm config set registry https://artifacts.example.com/api/npm/npm-virtual/
This gives resilience against upstream outages/deletions (cached copies survive), a single point to apply security scanning, and traceability of exactly which package versions were ever pulled.
Commit lockfiles and enforce them in CI so builds are reproducible byte-for-byte on dependency resolution, not just "same version range":
npm ci # fails if package-lock.json is out of sync, unlike npm install
pip install --require-hashes -r requirements.txt
npm ci (not npm install) in CI is important: it errors out if the
lockfile and package.json disagree, instead of silently re-resolving.
Pin direct dependencies to specific versions in manifests and let
the lockfile pin transitive dependencies; avoid unpinned ranges
(^1.2.3/*) for anything security- or stability-sensitive in
production services. Fully floating ranges are more defensible in
short-lived tooling than in a service's runtime dependency tree.
Automate update PRs, but gate them with CI, not blind auto-merge:
renovate.json example enabling automerge only for patch-level, CI-passing
updates:
{
"extends": ["config:recommended"],
"packageRules": [
{
"matchUpdateTypes": ["patch"],
"automerge": true
},
{
"matchUpdateTypes": ["major"],
"automerge": false,
"labels": ["needs-manual-review"]
}
]
}
Route major-version bumps to a human; let CI (full test suite) be the actual gate for automerge, not just "Renovate opened it."
Respond to a yanked/compromised upstream package deliberately:
confirm the pinned version in your lockfile isn't the affected one; if
it is, pin to a known-good version explicitly in the manifest, purge
the proxy's cached copy if your registry tool supports it, and re-run
npm ci/equivalent to confirm the resolved tree no longer includes it.
Because builds go through your proxy's cache, you are not silently
exposed to a package being deleted out from under you mid-incident —
but you must still act if the version you already have cached is the
bad one.
Define and enforce artifact retention so storage doesn't grow
unbounded and old, unreferenced artifacts don't accumulate risk
(stale, unpatched images sitting in a registry indefinitely). Example
GitHub Container Registry cleanup via a scheduled workflow using
actions/delete-package-versions:
on:
schedule:
- cron: "0 3 * * 0"
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v5
with:
package-name: "payments-api"
package-type: "container"
min-versions-to-keep: 20
delete-only-untagged-versions: true
Always exclude tags matching your release scheme (v*, stable) from
deletion, and prefer delete-only-untagged-versions/dry-run modes
before enabling deletion of tagged versions.
Audit what's actually in use vs. what's stored. Periodically cross reference deployed image digests/package versions against what's in the registry so retention policy decisions are based on real usage, not guesses.
npm ci, pip --require-hashes, go.sum) rather than trusting that a
version number alone means identical bytes — registries can, in
principle, be compromised or misconfigured.Symptom: A build that passed last week fails today with no code
changes, due to a transitive dependency resolving to a new (breaking)
version.
Fix: This indicates missing or unenforced lockfiles — commit the
lockfile, and run the package manager's strict/CI install mode
(npm ci, pip install --require-hashes) so resolution can't silently
drift between runs.
Symptom: An upstream package is deleted/yanked from the public registry and every build across the org breaks simultaneously. Fix: This is exactly what a pull-through proxy/mirror with local caching prevents — if you don't have one yet, stand one up, and in the interim, vendor or manually re-host the specific version needed to unblock builds.
Symptom: Dependabot/Renovate opens dozens of PRs and the team either ignores all of them or auto-merges all of them without review. Fix: Configure update-type-based rules (auto-merge patch-level updates gated on CI passing; require human review for minor/major) rather than treating every update PR identically.
Symptom: Container registry storage costs/quota keep growing and
nobody can tell which images are safe to delete.
Fix: Introduce a retention policy keyed on tag pattern and age
(e.g., keep all v* release tags indefinitely, purge untagged/
build-SHA images older than 90 days), and dry-run the cleanup job
before enabling actual deletion.
Symptom: A "hotfix" dependency version pin gets left in place indefinitely after the underlying issue is fixed upstream, silently blocking future updates. Fix: File a follow-up ticket whenever you add an emergency pin, and review pinned/overridden versions periodically (e.g., each quarter) to confirm they're still necessary.
Scenario: [email protected], a transitive dependency of
payments-api, is unpublished from the public npm registry mid-morning,
and the team's CI starts failing npm ci with a 404.
artifacts.example.com/api/npm/npm-virtual/
(a caching proxy) rather than registry.npmjs.org directly, builds
that already resolved and cached 3.2.1 continue to succeed —
confirm this by checking the proxy's cache for the tarball.package.json ("left-pad-style-lib": "3.2.0", the
last known-good published version) and run npm install once to
regenerate package-lock.json, then commit the lockfile update.npm ci (strict mode) passes in CI with the updated lockfile
before merging, and verify the retention/cleanup job hasn't
inadvertently purged the cached 3.2.1 tarball your proxy needs to
keep serving historical builds that still reference it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin devops-skills16 skills in this plugin
/blue-green-canary-deploymentsDesigns and executes progressive delivery strategies — blue-green cutover, canary rollout, and traffic-shifted releases — with automated health checks and rollback triggers, typically on Kubernetes. Use when the user asks to "reduce deployment risk," "set up canary/blue-green deployments," "do a zero-downtime release," "gradually shift traffic to a new version," or "automatically roll back a bad deploy."
/ci-access-and-credential-lifecycle-managementManages the lifecycle of one-off/temporary repo and environment access grants and CI service-account credentials — granting time-boxed access for a specific task, revoking it reliably when the task ends, and rotating CI service-account tokens/keys before they expire or become stale. Use when the user asks to "give a contractor temporary repo access," "grant one-off access to the production environment," "rotate our CI service account token/API key," "find and revoke stale CI credentials," or "our CI token is about to expire, what do we do."
/ci-cd-pipeline-designDesigns and troubleshoots CI/CD pipelines (GitHub Actions, GitLab CI, or equivalent) including stage layout, caching, parallelization, quality gates, and secrets handling. Use when the user asks to "set up a CI/CD pipeline," "add a build/test/deploy workflow," "fix a failing pipeline stage," "speed up CI," "add branch protection / required checks," or "design a deployment pipeline" for an application or infrastructure repo.
Other plugins' skills for the same job