/jfrog:jfrog-package-curationfrom JFrog
Checks package safety and availability via JFrog Artifactory, downloads curated packages, and troubleshoots curation failures like ETARGET, 403, or blocked policies.
Ships in JFrog. 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.
Read when SKILL.md points to them.
../jfrog/SKILL.md for JFrog Platform concepts, domain model, CLI setup, and API patterns.where filters, read ../jfrog/references/onemodel-graphql.md (schema fetch workflow) and ../jfrog/references/onemodel-query-examples.md (Public packages, Stored packages). Regenerate or verify queries against GET "$JFROG_URL/onemodel/api/v1/supergraph/schema" when examples fail validation.ETARGET (npm), "no matching distribution" (pip), NU1102 (NuGet), a version missing/stripped from the registry, 403 / "blocked by curation policy", or an approved waiver not taking effect → go to Troubleshoot a failure below.Requires the JFrog MCP curation tools (
jfs_curation_*); nojfCLI equivalent is used in this path. See the skill'scompatibilitynote.
Root-causing a curation-attributable failure (ETARGET, 403, a version
missing from the index, a waiver not taking effect) is a multi-step
investigation — preflight checks, the two-gate model, symptom classification,
then a full RCA procedure. It doesn't belong inline here since a plain
download never touches it. Open
references/rca-procedure.md and follow it from
the top — one file, covering preflight, the #1 RULE, the two-gate model,
symptom classification (Step 0), and the RCA itself (Steps 1–4, worked
examples, gotchas).
flowchart TD
A[User requests package check / download] --> B{Package in Public Catalog?}
B -->|Yes| C[Get latest version from Catalog]
B -->|No| D{Package in JFrog Platform Stored Packages?}
D -->|Yes| E[Get latest version from Stored Packages]
D -->|No| F[Package not found — stop]
C --> G{Latest version in JFrog Platform?}
E --> G
G -->|Yes| H[Safe — download from JFrog Platform]
G -->|No| I{Curation entitled?}
I -->|Yes| J[Check curation policy via API]
I -->|No| K[Download via remote repo]
J -->|200 Allowed| K
J -->|403 Blocked| M[Report curation blocked — see Troubleshoot a failure]
Several steps in this workflow are independent and can run in parallel to reduce total latency:
getPackage) and Stored Packages (getPackage) in
parallel. Use whichever returns data; if the Public Catalog returns a hit,
prefer its latestVersion for Step 2./api/system/version) in parallel. Both are independent reads — the
curation result is needed immediately if the JFrog Platform check returns
empty.When issuing parallel Shell calls, each jf api call authenticates
independently against the active jf config server; no shell state needs
to be passed between calls.
Search the Public Catalog first via OneModel GraphQL, then fall back to Stored Packages if not found.
Execute the query through jf api as described in
../jfrog/references/onemodel-graphql.md; refer to
../jfrog/references/onemodel-query-examples.md for concrete query shapes.
When package type is known (e.g. npm, maven, pypi), use
publicPackages.getPackage(type:, name:) (see Get a public package).
Include the latestVersion { version } selection set — latestVersion is
an object, not a scalar.
When type is unknown, use publicPackages.searchPackages with
nameContains (see Search public packages). Add type: when the user
narrows the ecosystem.
type and latestVersion.version. Proceed to Step 2.storedPackages.searchPackages or storedPackages.getPackage (see
Stored packages domain in onemodel-query-examples.md). Prefer
filtering by type when known; if not, use nameContains alone.
type and latestVersionName (or derive a version from
versionsConnection). Proceed to Step 2.If multiple results with different type values, ask the user which package
type they mean.
| Source | Version field |
|---|---|
| Public Catalog | latestVersion.version (object selection required) |
| JFrog Platform Stored Packages | latestVersionName on StoredPackage, or highest entry from versionsConnection |
Query stored package versions using storedPackages.searchPackageVersions
with a hasPackageWith filter (see ../jfrog/references/onemodel-query-examples.md
→ Search stored package versions). Add a version filter for the specific
version from Step 2, and request locationsConnection to get repository
details (repositoryKey, repositoryType, leadArtifactPath).
Execute the query through jf api (see
../jfrog/references/onemodel-graphql.md for the invocation pattern).
Use the location info from Step 3. Binary artifact downloads go through
jf rt dl — not jf api. jf api is the unified entry point for the
JFrog REST APIs (metadata, admin, curation, etc.) and does not expose the
-L / -o flags needed to stream binary content through a redirect chain.
<target> must be a full file path (e.g.
./downloads/lodash-4.18.1.tgz), not a bare directory. jf rt dl --flat
treats the target as a file name; passing a directory causes a misleading
"open path: is a directory" error.
repositoryType | Strategy |
|---|---|
local or federated | jf rt dl "<repositoryKey>/<leadArtifactPath>" <target-file> --flat |
remote | jf rt dl against the base remote repo (strip any trailing -cache) — it transparently triggers the remote fetch when the artifact is not yet cached |
local / federated / remote download:
jf rt dl "<baseRepoKey>/<leadArtifactPath>" <target-file> --flat
Resolving the remote repo key: The repositoryKey returned by OneModel
for remote locations often already ends in -cache (e.g.
devNPM-remote-cache). jf rt dl needs the base remote repo name
(without -cache). Strip the -cache suffix when present (e.g.
devNPM-remote-cache → devNPM-remote). If the key does not end in
-cache, use it as-is.
See the Protocol endpoints table below for the package-type-specific path format inside the repo.
jf api /artifactory/api/system/version \
| jq '.addons | index("curation") != null'
true → curation is entitled. Proceed to Step 6a.false → curation not available. Proceed to Step 6b.When curation is entitled, use the Xray curation API to check whether the package version is allowed across all repositories before downloading.
JF_TMP=$(mktemp -d) && echo "$JF_TMP"
RESPONSE_FILE="${JF_TMP:?}/curation-status.json"
PAYLOAD_FILE="${JF_TMP:?}/curation-payload.json"
STDERR_FILE="${JF_TMP:?}/curation-err.log"
jq -n \
--arg type "<TYPE>" \
--arg name "<NAME>" \
--arg version "<VERSION>" \
'{packageType:$type, packageName:$name, packageVersion:$version}' \
> "$PAYLOAD_FILE"
set +e
jf api /xray/api/v1/curation/package_status/all_repos \
-X POST -H "Content-Type: application/json" \
--input "$PAYLOAD_FILE" \
> "$RESPONSE_FILE" 2> "$STDERR_FILE"
RC=$?
set -e
echo "RC=$RC"
The files live in a private mktemp -d directory (mode 0700, unpredictable
name), so another account on a shared host cannot pre-plant, symlink or read
them. Never write them to predictable /tmp/<name>-$$ paths. ${JF_TMP:?}
aborts if the variable is unset rather than writing to /.
Supported packageType values: npm, pypi, maven, go, nuget,
docker, gradle.
Interpreting the result with jf api: unlike plain curl, jf api
surfaces the HTTP result through its exit code and a
"<hh:mm:ss> [Warn] ... returned 4xx/5xx" line on stderr (not a
%{http_code} suffix in stdout). The response body is always written to
stdout. Parse both. Variables do not survive across Shell calls, so the
snippet re-sets them from the values printed above:
JF_TMP=<echoed directory>
RESPONSE_FILE="${JF_TMP:?}/curation-status.json"
STDERR_FILE="${JF_TMP:?}/curation-err.log"
RC=<printed RC>
if [ "$RC" -eq 0 ]; then
echo "Package is allowed by curation."
elif grep -q 'returned 403' "$STDERR_FILE"; then
echo "Blocked by curation policy:"
cat "$RESPONSE_FILE"
else
echo "Curation check failed (rc=$RC):"
cat "$STDERR_FILE"
fi
rm -rf -- "${JF_TMP:?}"
Evaluate the outcome:
returned 403 on stderr → package is blocked by a curation
policy. The response body explains which policy rule blocked it. Report
the block reason to the user and stop — do not attempt to download. For
root-cause detail beyond the block reason (why this version specifically,
whether a waiver applies, what to use instead), see Troubleshoot a
failure above.When curation is not entitled and the package is not in the JFrog Platform, download directly through a remote repo.
Find a remote repo of the right package type:
jf api \
"/artifactory/api/repositories?type=remote&packageType=<TYPE>" \
| jq '.[].key'
Download — use jf rt dl against the base remote repo (without
-cache); it handles both cached and uncached artifacts:
jf rt dl "<repo>/<artifact-path>" <target-file> --flat
Use these path patterns when leadArtifactPath is not available from
OneModel. The leading <repo>/ is the base repo key you pass to jf rt dl.
| Type | jf rt dl target pattern |
|---|---|
npm | <repo>/<pkg>/-/<pkg>-<version>.tgz |
pypi | <repo>/<pkg>/<version>/<pkg>-<version>.tar.gz |
maven | <repo>/<group-path>/<artifact>/<version>/<artifact>-<version>.jar |
go | <repo>/<module>/@v/<version>.zip |
jf api: jf api is for REST APIs, not binary
content. It does not follow redirects transparently into a binary payload
and does not expose -L / -o. Always use jf rt dl (against the base
remote repo, not the -cache one) for the actual artifact download.jf rt dl and uncached remotes: jf rt dl "<remote>/<path>" —
targeting the base remote repo rather than <remote>-cache/<path> —
transparently triggers the remote fetch and caches the artifact. Do not
try to pre-query the proxy via jf api.jf rt dl --flat target must be a file path: When downloading a
single artifact, pass a full output file path (e.g.
./downloads/lodash-4.18.1.tgz), not a directory. The CLI opens the target
path as a file; a directory causes a cryptic "open path: is a directory"
error that retries four times before failing. Derive the filename from
leadArtifactPath (take the segment after the last /)./xray/api/v1/curation/package_status/all_repos (via jf api). Do not
prefix it with /artifactory.jf api: the 200/403 signal comes
from jf api's exit code plus a returned NNN line on stderr,
not from a %{http_code} appended to stdout. Capture stderr to a file
(2> "$STDERR_FILE") and branch on RC + grep 'returned 403' as shown
in Step 6a.npm, pypi, maven, go, nuget, docker, gradle. Other values
will return an error.What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/jfrogInteract with the JFrog Platform via the JFrog CLI, JFrog MCP server and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, sast, or any JFrog product name. Do NOT use this skill to install, add, remove, list, or manage MCP servers./jfrog-ai-catalogDiscover, search, install, update, remove, and publish agent skills and plugins hosted in the JFrog AI Catalog (Artifactory) via the JFrog CLI (`jf skills`, `jf agent plugins`) and JFrog Agent Guard. Use whenever the user asks what skills or plugins are available or installed, wants to browse/search the catalog, see versions, install/update/uninstall/delete a skill or plugin, publish/upload/release one to JFrog / Artifactory / the AI Catalog, or list the AI Catalog (skill/plugin governance) policies — allow-lists, malicious-skill checks — that apply to skills in a project. Do NOT use this skill for MCP servers (that's jfrog-mcp-management, even when the user says "policy" or "approved"), for Xray or curation "blocked by policy" package errors (that's jfrog-package-curation), or for Xray policies and watches (that's the base jfrog skill).Generated from the plugin's indexed repository (jfrog/claude-plugin) — no native marketplace selected
npx claudepluginhub p/jfrog-jfrogOther plugins' skills for the same job