/devops-skills:jfrog-artifactory-configurationfrom devops-skills
Configures JFrog Artifactory repository types (local/remote/virtual), multi-region replication, retention/cleanup policies, and Xray security scanning. Useful when setting up Artifactory or comparing it with Sonatype Nexus.
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.
JFrog Artifactory is a commercial (with a free Community/JCR tier) artifact registry serving the same core need as Nexus — one server for otherwise disparate package ecosystems (npm, Maven, Docker, PyPI, NuGet, Go, and many more) — using an equivalent but differently-named three-tier repository model: local (your own published artifacts, equivalent to Nexus's "hosted"), remote (a caching proxy to an upstream registry, equivalent to Nexus's "proxy"), and virtual (an aggregating endpoint clients connect to, equivalent to Nexus's "group"). Where Artifactory differentiates most in practice is multi-region replication (built-in, first-class support for keeping repositories in sync across geographically distributed Artifactory instances) and its tight, same-vendor integration with JFrog Xray for security and license scanning of stored artifacts. This skill covers configuring Artifactory itself — for the vendor-neutral registry concepts this applies to, see artifact-and-dependency-management, and for the comparable open-source-rooted alternative, see sonatype-nexus-repository-configuration, which this skill cross-references throughout rather than repeating.
Create a remote repository for each upstream public registry, analogous to a Nexus proxy repository:
Administration → Repositories → Remote → Create repository
Package type: npm
Repository key: npm-remote
URL: https://registry.npmjs.org
Artifactory's remote repositories cache responses the same way Nexus proxy repositories do — the caching behavior itself is functionally equivalent between the two products; the naming ("remote" vs. "proxy") is the main surface difference to keep straight when moving between them.
Create a local repository for artifacts your own pipelines publish:
Administration → Repositories → Local → Create repository
Package type: docker
Repository key: docker-local
Docker in Artifactory does not require a dedicated connector port per repository the way Nexus does — Artifactory routes Docker traffic by repository path/subdomain instead, which is a genuine operational difference worth knowing before assuming Nexus's port-per-repository convention carries over.
Create a virtual repository aggregating local and remote repositories into the single endpoint clients actually use:
Administration → Repositories → Virtual → Create repository
Package type: npm
Repository key: npm-virtual
Repositories: npm-local, npm-remote (order matters — local first)
As with Nexus's group repository, list the local repository ahead of the remote/proxy repository so an internal package name can't accidentally resolve to a same-named public package — the same dependency-confusion risk applies regardless of vendor.
Point CI and developers at the virtual repository URL, never at individual local/remote repositories:
npm config set registry https://artifactory.example.com/artifactory/api/npm/npm-virtual/
docker login artifactory.example.com
docker pull artifactory.example.com/docker-virtual/myapp:1.4.2
Configure multi-region replication for a repository that needs a low-latency local copy at a second site, choosing push (source instance initiates) or pull (target instance initiates) replication depending on which side should own scheduling:
// Push replication config (conceptual — set via UI or REST API)
{
"repoKey": "maven-local",
"targetUrl": "https://artifactory-eu.example.com/artifactory/maven-local",
"cronExp": "0 0 */6 * * ?",
"enableEventReplication": true
}
enableEventReplication: true triggers near-real-time replication on
artifact upload/delete events, in addition to the scheduled cronExp
sync — rely on event replication for freshness and the cron schedule as
a reconciliation backstop, not the other way around.
Define a retention/cleanup policy to remove old build artifacts, superseded snapshots, or untagged Docker images:
Administration → Repositories → Retention Policy (or the newer
"Cleanup Policies" UI depending on version) → Create policy
Repository: docker-local
Criteria: Keep last N tags per image; delete images not pulled in 90 days
Exclude explicitly-tagged release versions (v*, stable, latest if
meaningful in your workflow) from any age/pull-based cleanup rule, the
same exclusion discipline described in
artifact-and-dependency-management.
Connect JFrog Xray for scanning artifacts already in Artifactory —
mention this as a distinct capability rather than assuming it's
automatic: Xray scans artifacts stored in Artifactory repositories
(and their dependency graphs) against vulnerability and license
databases, and can block a docker pull/npm install of a
policy-violating artifact via a configured Xray watch/policy. This is
scanning stored artifacts, distinct from scanning source code before
it's built (SAST) or scanning a dependency manifest before it's
published — see
software-composition-analysis-sca
for the vendor-neutral SCA concept and
snyk-vulnerability-and-license-scanning
for a comparable commercial scanner covering similar license-policy
ground from a different product.
Scope publish (deploy) permissions separately from read/pull permissions via Artifactory's permission-target model, applied per-repository or per-repository-pattern, mirroring the least-privilege publish/read separation in artifact-and-dependency-management.
latest) the same way as for Nexus — an unscoped age-based cleanup
policy is equally destructive regardless of vendor.Symptom: A team migrating from Nexus to Artifactory (or vice versa) assumes "proxy" and "remote" repositories behave differently and spends time re-architecting repository structure unnecessarily. Fix: They're functionally equivalent concepts under different vendor terminology — map Nexus hosted → Artifactory local, Nexus proxy → Artifactory remote, Nexus group → Artifactory virtual, and carry over the same member-ordering and cleanup-policy discipline rather than re-designing from scratch.
Symptom: Docker pulls fail intermittently after migrating from Nexus, where each Docker repository had its own connector port, to Artifactory. Fix: Artifactory doesn't use per-repository ports for Docker the way Nexus does — it routes by repository path/subdomain instead. Update client configuration (registry URL structure) to match Artifactory's routing model rather than trying to replicate Nexus's port-per-repository scheme.
Symptom: A remote site served a stale (pre-update) artifact for
several hours after a new version was published at the primary site.
Fix: Check whether event-based replication (enableEventReplication)
is actually enabled, not just the scheduled cron replication — a
cron-only setup means the remote site is stale for up to the full
interval between scheduled runs by design, not a bug.
Symptom: Enabling an Xray blocking policy immediately breaks builds across many unrelated teams that were previously pulling from the affected repository without issue. Fix: Roll out a new or tightened Xray policy in watch/report-only mode first, review the resulting findings against real usage, and only switch to blocking once the policy's false-positive rate is understood — the same phased-rollout discipline used for any new blocking security gate.
Symptom: Someone assumes multi-region replication or Xray scanning is available on the free Community Edition (JCR) and it silently isn't configurable in the UI. Fix: Confirm the current tier's feature set against JFrog's own documentation before planning around a specific capability — these are commonly paid-tier features, and JCR's feature set is intentionally narrower than Pro/SaaS.
Scenario: A global engineering org with teams in the US and EU standardizes on Artifactory for Docker and Maven artifacts, replicating a shared Maven local repository to an EU instance for low-latency reads, with Xray scanning gating pulls on critical vulnerabilities.
Repositories (US primary instance):
maven-local (local) — published releases and snapshots
maven-remote (remote → repo.maven.apache.org)
maven-virtual (virtual: [maven-local, maven-remote])
docker-local (local)
docker-remote (remote → registry-1.docker.io)
docker-virtual (virtual: [docker-local, docker-remote])
Replication (US → EU, push, event-based plus 6-hour cron backstop):
{
"repoKey": "maven-local",
"targetUrl": "https://artifactory-eu.example.com/artifactory/maven-local",
"cronExp": "0 0 */6 * * ?",
"enableEventReplication": true
}
EU-based build agents point at artifactory-eu.example.com's
maven-virtual for reads, getting near-real-time replicated artifacts
without a transatlantic round trip on every dependency resolution.
Xray policy (watch-only for 30 days, then switched to blocking):
Watch: "maven-local-critical-cves"
Repositories: maven-local
Policy: fail build on CVSS >= 9.0 with an available fix
Mode: report-only for first 30 days → block after review
After the 30-day report-only period surfaces no unexpected false positives against real usage, the watch is switched to blocking mode, so a newly-published artifact with a critical, fixable vulnerability is rejected by Xray before any consumer can pull it — while artifacts already resolved before the block was enabled are handled through the normal SCA remediation/triage workflow instead of being retroactively purged.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin devops-skills16 skills in this plugin
/artifact-and-dependency-managementManages build artifacts and third-party dependencies through a private registry/proxy with lockfiles, version pinning, retention policies, and automated update workflows. Use when the user asks to "set up an artifact repository," "configure a package registry proxy/mirror," "pin/lock dependency versions," "clean up old artifacts," "handle a dependency update / Dependabot-Renovate PR," or "avoid a left-pad-style supply-chain incident."
/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.
/container-build-and-releaseBuilds, tags, scans, and publishes container images with reproducible, minimal, multi-stage Dockerfiles and a defensible tagging/release scheme. Use when the user asks to "write a Dockerfile," "reduce image size," "set up multi-arch builds," "tag and push a container image," "add image scanning to the pipeline," or "publish a release image to a registry."
/devops-delivery-metrics-and-dora-analysisMeasures and interprets the DORA four keys — deployment frequency, lead time for changes, mean time to restore (MTTR), and change failure rate — including how to compute each one correctly, common measurement pitfalls (vanity metrics, gaming the numbers, misclassifying a rollback), and how to use the results to drive process improvement rather than individual blame. Use when the user asks to "set up DORA metrics," "measure our deployment frequency/lead time," "what's our change failure rate," "are we an elite/high/medium/low performer," or "use delivery metrics to improve, not to blame the team."
Other plugins' skills for the same job