/jfrog:jfrog-initfrom JFrog
Walks through a fixed checklist to set up and verify the JFrog plugin, guiding the user through fixes for missing Node.js, JFrog CLI, config, and MCP connectivity.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
First output must be a tool call, not text. No "I'll start..." preamble.
Walks a fixed, ordered checklist and stops at the first non-passing result, guiding
the user through the matching fix before re-checking. Every detector in
scripts/ is idempotent, read-only, JSON-emitting, and implemented in
Node (.mjs), so the same detector runs unmodified on macOS, Linux, and
Windows. Step 3's and Step 4's web-login use this skill's own local .mjs scripts,
same as every other step. The one interactive fix step that isn't a Node
script at all is Step 1's Node install itself — a missing Node can't run
a .mjs installer, so that one step branches on OS or shell directly.
Approval model — every user-approval point is detailed in its own Step
below (exact wording, AskUserQuestion payloads, forbidden phrases);
this is just the map:
node — AskUserQuestion Yes/No before auto-installing (Step 1).jf (JFrog CLI) — AskUserQuestion Yes/No before auto-installing
(Step 2).jf config — AskUserQuestion picker (web login, in-session, vs.
access token, which never enters this conversation) (Step 3, and
Step 4 for a different AI Governance server).AskUserQuestion asks
whether the AI Governance server is the same server or a different
one; then "keep <KEY>?" or a picker with the first two enumerated
projects, "No AI Catalog" and "Other" (Step 4).mcp.jfrog write (both unattended, no
AskUserQuestion — see references/script-invocation.md); and Step 7's
headers-helper install and Claude Code config writes (same, see references/marketplace-setup.md).Step 1's nvm install and jfrog-install-jf-cli.mjs, Step 3's and
Step 4's web-login scripts, Step 4's jfrog-ai-governance-config.mjs set
call, and Step 7's jfrog-add-claude-marketplace.mjs call are
deliberately not in allowed-tools and will raise the harness's
own approval prompt — intended, not a misconfiguration; see
references/script-invocation.md.
${CLAUDE_SKILL_DIR} placeholder (do this FIRST)${CLAUDE_SKILL_DIR} is this skill's own absolute directory — the
folder holding this SKILL.md, scripts/, and references/. Every
node "${CLAUDE_SKILL_DIR}/scripts/…" command below needs it resolved
first.
references/mcp-plugin-config.md). On OpenCode specifically, it
announces its own real path in its own preamble — use that value
directly instead of hunting for it.export CLAUDE_SKILL_DIR="<absolute path to this skill's directory>"
ls "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jf-cli.mjs"
node invocation instead of ${CLAUDE_SKILL_DIR}.Skipping this fails silently rather than loudly — see
references/script-invocation.md for why. Step 0 resolves script
paths; Step 5's JFROG_INIT_HARNESS resolves harness detection.
Non-Claude harnesses need both.
; rc=$?; true bash / ; $rc=$LASTEXITCODE; exit 0 PowerShell — see
references/invoking-and-output-rules.md's "Invoking scripts" section). A
bare success-forcer with no capture hides every failure/ask result as success.AskUserQuestion Yes/No before auto-installing
Node (Step 1) or jf (Step 2); AskUserQuestion picker for
web-login vs. token (Step 3, and Step 4 for a different AI Governance
server); AskUserQuestion for the AI Governance server and project
(Step 4). Everything else is read-only except Step 4's save of the AI
Governance server and project, Step 5's
placeholder substitution (plus OpenCode mcp.jfrog write, and the
kiro-cli ~/.kiro/settings/mcp.json / Junie ~/.junie/mcp/mcp.json
merge), and Step 7's headers-helper install and Claude Code config writes.references/invoking-and-output-rules.md's "Customer-facing output" section.<server-id> for Steps 4 and 5 is the jf CLI default server and
always comes from the shared resolver (explicit arg → isDefault →
sole configured server → ask) — never invented, never jf's own
fallback. Steps 6 and 7 use <ai-governance-server-id> from Step 4.
See Resolving <server-id>.jf's own process or in-memory for one fetch call. Step 7
stores none: Claude Code's marketplace config names a helper that asks
jf at request time — see
Step 7 and
Non-goals.../jfrog/SKILL.md's prerequisites — do not
run its environment check as a gate before starting this walk.Steps: 1 → 2 → 3 → 4 → 5 → 6 → 7
../jfrog/SKILL.md for foundational
context — JFrog Platform concepts and terminology, and the
Server selection rules
this skill's own "Resolving <server-id>" section (below) follows the
same never-guess/never-infer philosophy of, via its own mechanism.jf is
already installed at a working version — /jfrog-init is what gets a
user from nothing installed to that point. Do not run the base skill's
environment check as a gate before starting this walk; Steps 1-4 below
are this skill's own, more granular equivalent (Node, jf CLI install,
connection, credentials) purpose-built for the "nothing works yet" case.JFROG_CLI_USER_AGENT, unlike the
base skill's invariant — see runJf() in scripts/lib/jf.mjs for why
(telemetry-only impact).Stop and read references/invoking-and-output-rules.md in full before running
any command in this walk — required behavior, not optional
background. It covers three things:
; rc=$?; true appended, and every Step's branch
table below keys off that captured exit code.references/flow-diagram.md for the full map.node --version / npx --version directlyjf) installed? — scripts/jfrog-detect-jf-cli.mjsjf connected to a server? — scripts/jfrog-detect-jf-config.mjsscripts/jfrog-detect-server-ping.mjs [server-id], then scripts/jfrog-ai-governance-config.mjsscripts/jfrog-detect-jfrog-mcp.mjs [server-id], then is the JFrog MCP server enabled on this JPD? — scripts/jfrog-detect-jfrog-mcp-responding.mjs [server-id] (non-blocking)
scripts/jfrog-detect-opencode-mcp-auth.mjs, runs only when Step 5
exits 0 and the harness is OpenCodescripts/jfrog-detect-catalog-runtime.mjs [ai-governance-server-id]scripts/jfrog-add-claude-marketplace.mjs [ai-governance-server-id] [ai-governance-project], Claude Code onlyRun detectors in this exact order and stop at the first non-passing
result — except Step 5 going into failure/error (see Step 5), Step 5b entirely
(see Step 5b), Step 6's
"not entitled" and "catalog unreachable" outcomes (see Step 6), and
Step 7 entirely (see Step 7), all four non-blocking. Step
1 has no script — a Node script can't verify Node exists — so every
step after it is written in Node and can assume Node is present. The
JPD URL is read directly from
jf config; there is no separate
JFROG_PLATFORM_URL env var. The AI Governance project is asked every
walk in Step 4 (a project saved earlier for that server is offered
first); Step 6's catalog probe takes no
project argument — it only checks catalog reachability and entitlement
for the AI Governance server.
<server-id> for Steps 4 and 5Steps 4 and 5 run against the jf CLI default server. Order (used by
every detector that takes [server-id] — resolved
through the single shared scripts/jfrog-resolve-jf-server.mjs):
"isDefault": true in ~/.jfrog/jfrog-cli.conf.v6
— resolved automatically via scripts/jfrog-resolve-jf-server.mjs.candidates
list of the configured server IDs. Stop and read
references/server-picker.md in full — it has the exact
AskUserQuestion payload for showing the user the actual servers to
pick from; do not paraphrase or invent your own prompt. Never invent
a server, never rely on jf's own fallback.Steps 6 and 7 run against the AI Governance server and always get
<ai-governance-server-id> from Step 4, so they never ask.
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-telemetry.mjs" report jfrog-init start; true
node --version; true
npx --version; true
The first line reports the run's start to JFrog usage telemetry and
prints nothing: run it once per walk, before the two checks (if Node is
missing, once Node is installed). It isn't part of the check: read the
result from the node and npx lines only, and ignore anything the
first line prints.
No script — Node's own binary is the only thing that can answer
"is Node installed", so there's nothing a script would check that
these two commands don't already answer directly. Checked first
because every other script in this walk — including every other
detector — is a Node program. npx matters because the JFrog MCP
server (mcpServers.jfrog, Step 5) is launched via npx @jfrog/agent-guard — no npx means the MCP entry can't start,
regardless of everything else.
Read the output yourself, no JSON to parse:
command not found: node) → not usable:
Node.js (or npx) is not installed / the install is broken.node --version prints a version like v16.2.0 → parse the major
number yourself. < 18 → too old: "Node.js <version> is too old —
jfrog-init requires Node ≥ 18."node --version ≥ 18 and npx --version succeeds → proceed to
Step 2.Never paste the raw shell output. Translate to plain English —
"npx is not installed" not `command not found`, "Node.js v16 is
too old" not the version string verbatim. The raw output is for your
reasoning, not for the user.
On failure, stop and read references/node-install-prompt.md in full
before responding to the user. It has the exact AskUserQuestion
payload, the forbidden phrases, and the install commands — required
behavior, not optional background. Even on the install path there's no
detector script: a missing Node can't run a .mjs installer, so the
install is a bash/PowerShell command the model runs directly.
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jf-cli.mjs"; rc=$?; true
reason: "missing" → jf not found on PATH → stop
and read references/jf-cli-install-prompt.md in full — required
behavior, not optional background.reason: "broken" → jf is on PATH but hung or
failed to run → stop and read references/jf-cli-install-prompt.md
in full — it has a separate payload for this case; required
behavior, not optional background.reason: "outdated" → jf installed but below the
required minimum version → stop and read
references/jf-cli-update-prompt.md in full — required behavior,
not optional background.Read references/jf-cli-install-internals.md for the full plan
A/B/C breakdown — why this walk uses npm install -g jfrog-cli-v2-jf
instead of the base skill's OS-specific install docs, and how the
fallback to a checksum-verified direct binary download works.
jf connected to a server?node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jf-config.mjs"; rc=$?; true
Checked here (right after installing jf) so the JFrog CLI is
finished — install + auth — before the walk moves on to any other
prereqs. Keeps the "get jf working" story in one contiguous block
from the user's point of view.
This step does not pick or validate any specific server — it only
checks that jf config show returns at least one configured server,
regardless of how many there are or whether one is marked isDefault.
If multiple servers are configured with none marked default, that
ambiguity is surfaced starting at Step 4, not here — see "Resolving
<server-id> for Steps 4 and 5" above.
jf is installed but not connected to any
server. Stop and read references/jf-config-auth-picker.md in
full before responding to the user — the Step 3 section has the
exact web-login-vs-token AskUserQuestion, this skill's own local
web-login script copies (no cross-skill call into the base jfrog
skill), and the token command template — required behavior, not
optional background.node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-server-ping.mjs" "[server-id]"; rc=$?; true
Stop and read references/jf-config-auth-picker.md's "Step 4's full
branch table" section in full — the two sub-checks and the required
exit-code branches (credentials-only fix on Exit 1, Exit 2 still
blocks) — required behavior, not optional background.
Once the ping passes, the ping's JSON names the jf CLI default server in
serverId and gives its URL in jpdUrl.
The AI Governance server is the JFrog Platform server (a jf CLI server ID)
that governs the user's AI assets: its AI Catalog lists the skills, plugins
and MCP servers they may use, and Agent Guard, where the organization has
turned it on, enforces that. The AI Governance project is the JFrog project
on that server that scopes the AI Catalog: which skills, plugins and MCP
servers the user sees and may install. Both are saved in setup.json in
the JFrog CLI home directory, separately from the jf CLI default server;
the AI Governance server can be the same server as that default or a
different one.
Read and change the file only through jfrog-ai-governance-config.mjs.
This skill is where the user chooses both. Step 4 asks which server is the
AI Governance server — the jf CLI default server or a different one, which
Step 4 then connects — and which project on it the user works in, or that
they don't use AI Catalog, in which case no project is saved. The other JFrog skills and
the hooks then read both from setup.json. The JFrog MCP plugin (Step 5)
keeps using the jf CLI default server either way; Step 6 checks the AI
Catalog on the AI Governance server. Settle both, then save them:
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-ai-governance-config.mjs" get; rc=$?; true
If status is corrupt, tell the user in one line that <path>
isn't valid and will be replaced, then go on as if nothing was saved.references/ai-governance-server.md in full, then
ask which server it is and which project, as that file says. It ends
with <ai-governance-server-id> (the AI Governance server's ID,
already pinged) and <ai-governance-project> (its project key, or
empty when the user doesn't use AI Catalog).node "${CLAUDE_SKILL_DIR}/scripts/jfrog-ai-governance-config.mjs" set "<ai-governance-server-id>" "<ai-governance-project>" --force; rc=$?; true
When <ai-governance-project> is empty, pass --no-project in place
of "<ai-governance-project>".
--force is expected here: it saves the AI Governance server and
project in setup.json, replacing what is saved there or a broken
file. It does not change jf CLI logins, MCP entries or marketplaces.
The script reads the server's URL from jf config itself.
invalid project key line → the project key was
rejected (this command accepts project keys only): ask for the key
again as ai-governance-server.md says, then run this save command
again (once; see that file). Any other exit 2 → show its error line
and stop.If you are Kiro, Kiro CLI, Copilot in VS Code, or Devin, run only the matching command below. Silent, like every other setup command in this walk. (Devin identifies itself from system instructions; no env var carries the signal.)
JFROG_INIT_HARNESS=kiro node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jfrog-mcp.mjs" "[server-id]"; rc=$?; true
JFROG_INIT_HARNESS=kiro-cli node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jfrog-mcp.mjs" "[server-id]"; rc=$?; true
JFROG_INIT_HARNESS=vscode node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jfrog-mcp.mjs" "[server-id]"; rc=$?; true
JFROG_INIT_HARNESS=devin node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jfrog-mcp.mjs" "[server-id]"; rc=$?; true
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-jfrog-mcp.mjs" "[server-id]"; rc=$?; true
Pass the jf CLI default server's <server-id> from Step 4 (empty string
if Step 4 resolved it silently via default/single-server) — this reuses
it for the placeholder fix instead of re-resolving from scratch.
Read-only against the JFrog plugin's mcp.json, with exceptions: substituting
an unresolved ${JFROG_PLATFORM_URL} / ${JFROG_URL} placeholder (Cursor / VS Code /
Claude Code), writing a mcp.jfrog entry on OpenCode (which has no plugin-owned file),
and adding the jfrog entry to the tool's own global MCP config for kiro-cli
(~/.kiro/settings/mcp.json) and Junie (~/.junie/mcp/mcp.json) (see
references/mcp-plugin-config.md).
If the file already holds a real JPD url (e.g. https://company1.jfrog.io/mcp) and its host differs from the jf config JPD (e.g. company2.jfrog.io),
edit that file's jfrog entry url to https://<jf config JPD host>/mcp (JSON edit, keep the rest). Same host: leave it.
Stop and read references/mcp-plugin-config.md in full — substitution mechanics,
per-harness paths, exit-code branches (Exit 1/3 non-blocking, Exit 2 the one that
still blocks), and its MCP-responding probe (server enabled + signed in) —
required behavior, not optional.
Runs only when Step 5 exits 0 — the exit code, not the JSON
status field — and the harness is OpenCode. Determine the harness
the same way Step 7 does, with detectHarness():
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-resolve-mcp-config.mjs" --harness
If it returns anything other than opencode, or Step 5 didn't exit 0,
skip this step silently — same treatment as Step 7's preconditions
below. Otherwise, run:
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-opencode-mcp-auth.mjs"; rc=$?; true
Stop and read references/mcp-plugin-config.md in full for what
this checks, why a non-empty auth-file key isn't proof of a working
token, and the exit-code meanings.
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-detect-catalog-runtime.mjs" "<ai-governance-server-id>"; rc=$?; true
Stop and read references/catalog-runtime-branches.md in full —
the two sub-checks (anonymous reachability, authenticated entitlement)
and the required exit-code branches (Exit 1 "not hosted/unreachable"
and Exit 4 "not entitled" are both non-blocking) —
required behavior, not optional background.
Two preconditions, in this order. Step 6 must have passed (Exit 0) — the
marketplace is served by the same AI Catalog that Step 6 probes, so
after a non-blocking failure there (unreachable, or not entitled) there is
nothing to register. Then, Claude Code only — check the current
harness by reusing detectHarness() from
scripts/jfrog-resolve-mcp-config.mjs (the same export Step 5b already
uses), e.g.
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-resolve-mcp-config.mjs" --harness.
If either precondition fails, skip this step silently — never run
the script below, no AskUserQuestion, no note anywhere, not even in
the Final Summary. Treat it exactly as if Step 7 didn't exist for this
walk.
Otherwise run:
node "${CLAUDE_SKILL_DIR}/scripts/jfrog-add-claude-marketplace.mjs" "<ai-governance-server-id>" "<ai-governance-project>"; rc=$?; true
This also runs when no project was chosen in Step 4: Step 6 found the AI Catalog available on this server, and the marketplace needs no project.
Stop and read references/marketplace-setup.md in full before
acting on the exit code — required behavior, not optional
background.
Successfully added marketplace: <marketplace-name> — extract
<marketplace-name> for the Final Summary's trailing line.Read references/final-summary-rendering.md in full for the exact
recap checklist format, the ⚠️ wording rule per outstanding step, and
the lines that follow the checklist.
Read references/batch-walk.md in full for jfrog-detect-all.mjs's
exact semantics — the non-blocking exceptions, the JSON summary
fields, and how it saves the AI Governance server and project.
Read references/out-of-scope.md in full for the exact list — IDE
plugin/VS Code hook install, first-MCP wizard, exporting the project
to a shell, AI Catalog role grants, and access-token handling.
/jfrog-init — checklistAt a glance invariants:
; rc=$?; true bash / ; $rc=$LASTEXITCODE; exit 0 PowerShell) — never a
bare success-forcer with no captureAskUserQuestion before auto-installing Node (Step 1) or jf
(Step 2); picker for web-login vs. token (Step 3, and Step 4 for a
different AI Governance server); AI Governance server and project
questions (Step 4)<server-id> for Steps 4 and 5 comes only from the shared resolver —
never invented, never jf's own fallbackjfrog-ai-governance-config.mjs set … --forcereport jfrog-init start first in Step 1../jfrog/SKILL.md for context; do not run its
environment check as a gate before this walkreferences/ai-governance-server.md (opens in a new tab)references/batch-walk.md (opens in a new tab)references/catalog-runtime-branches.md (opens in a new tab)references/final-summary-rendering.md (opens in a new tab)references/flow-diagram.md (opens in a new tab)references/how-to-ask-user.md (opens in a new tab)references/invoking-and-output-rules.md (opens in a new tab)references/jf-cli-install-internals.md (opens in a new tab)references/jf-cli-install-prompt.md (opens in a new tab)references/jf-cli-update-prompt.md (opens in a new tab)references/jf-config-auth-picker.md (opens in a new tab)references/marketplace-setup.md (opens in a new tab)references/mcp-plugin-config.md (opens in a new tab)references/node-install-prompt.md (opens in a new tab)references/out-of-scope.md (opens in a new tab)references/project-picker.md (opens in a new tab)references/script-invocation.md (opens in a new tab)references/server-picker.md (opens in a new tab)scripts/jfrog-add-claude-marketplace.mjs (opens in a new tab)scripts/jfrog-ai-governance-config.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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)./jfrog-mcp-managementUse to install, list, or remove MCP servers, and to discover which MCPs the user can install — including questions about available, approved, or allowed MCPs for a project. That governed catalog is the authoritative answer; do not answer those questions from local IDE/settings allowlists alone. Use whenever the user wants to add/enable/install/list/remove/uninstall/configure an MCP or write/update the agent's MCP config — even if they name a package like `@scope/pkg` and even without saying "MCP" or "JFrog". Never install an MCP any other way. All of this goes through the JFrog Agent Guard (npx @jfrog/agent-guard)./jfrog-migrate-mcpsConvert the MCPs in this agent harness's MCP config files that the JFrog AI Catalog approves so they run through JFrog Agent Guard, or undo the last migration with the restore argument. Supports Claude Code, Cursor and VS Code./jfrog-package-curationCheck/download a package (npm, Maven, PyPI, Go...) via JFrog — safe, allowed, curated? Or: package op fails/blocked (ETARGET, 403, blocked by curation policy, missing version, waiver) — root cause it. Checks the JFrog Public Catalog and stored packages for a version, interprets catalog security signals, and downloads through Artifactory (JFrog Platform locations, remote cache, curation-aware package managers, or repo proxy). Do NOT use for pure CVE or vulnerability lookups (e.g. "details on CVE-2021-23337") — those are handled by the jfrog skill's Public security domain queries without this workflow. Do NOT use for installing, listing, or approving MCP servers/tools (even when named like a package, e.g. `@scope/pkg`) — that's `jfrog-mcp-management`./jfrog-reference-architectureGuides JFrog Platform topology, sizing (RPM, t-shirt templates), deployment, multi-site use cases, SaaS vs self-managed, HA, air-gapped, and disaster recovery using the official Reference Architecture site as the sole source of facts. Use this skill when the user asks how to size Artifactory or Xray, which deployment pattern to choose, single vs multi site, active-active, active-passive, CI/CD separation, Helm/Kubernetes install planning, or reference architecture (live WebFetch from jfrog.com/reference-architecture). Do NOT use for artifact search or download, repository or permission admin, CVE or vulnerability lookups, live jf CLI operations against their instance, or package curation — use the jfrog base skill or jfrog-package-curation instead.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