/client-admin:generate-installerfrom client-admin
Produce a pre-composed install command (Mac bash + Windows PowerShell one-liners) for a client admin to distribute to their team. The one-liner decrypts the shared credentials from the Claude Desktop marketplace sync. Use when the admin is ready to onboard employees. Never run this as an employee — the admin will send you a command.
Ships in client-admin. 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.
Last Edited: 2026-05-07
Execute this skill directly. Do not enter plan mode. Do not expose detection logic, context rules, or internal derivation steps to the user. The user should see only: what you found, what you need from them, and the finished result.
/client-admin:generate-installer
/client-admin:generate-installer <slug> # master-repo-only: shortcut when you know which client
/client-admin:manage-credentials (encrypted credentials pushed; passphrase in hand) and are ready to distribute install commands to your team./client-admin:manage-credentials. Do that first: it encrypts credentials.env.age, pushes it to the harness repo, and gives you the passphrase that employees will need. The install command this skill emits is useless without that file synced through Claude Desktop.This skill emits install commands for the entire team. Its intended audience is client admins and consultants (coaching admins through the flow). Employees typing /client-admin:generate-installer out of curiosity is still a risk — the install block they'd get back references credentials the admin hasn't authorized them to distribute. Keep the gate.
Post-migration, the programmatic admin signals (gh auth, GITHUB_TOKEN rc-marker) are gone — nothing on an admin's machine is guaranteed to look different from an employee's. clients.json is the only automatic signal that survives. Admins typically run this from their own Claude Code session without clients.json, so the skill falls back to conversational confirmation. Single question keeps employee-refusal intact without blocking admins.
# Post-migration signals:
# - clients.json in $PWD → consultant (certain)
# - .claude-plugin/marketplace.json in $PWD → admin OR consultant
# (admin working inside their harness checkout, or consultant inside a client repo)
# - Neither present → unknown — ask the user
if [ -f clients.json ]; then
ROLE=consultant
elif [ -f .claude-plugin/marketplace.json ]; then
ROLE=admin_or_consultant
else
ROLE=unknown
fi
If ROLE=unknown, ask the user ONE question (no multi-step triage):
Quick check before I generate anything — who's running this: admin, consultant, or employee?
Employee refusal text:
This skill is for the admin who distributes the harness, not for team members who use it. It emits install commands that reference encrypted credentials employees aren't authorized to redistribute — your admin issues those.
If you're trying to install the harness on your own machine, ask your admin to send you the install command (they'll run
/client-admin:generate-installerthemselves and share the result).
Otherwise continue to the detection below.
Try these context rules in order; the first that succeeds wins.
Context A — Master repo (consultant): clients.json exists in $PWD.
if [ -f clients.json ]; then
jq -r '.clients[] | "\(.name)\t\(.repo)\t\(.status)"' clients.json
fi
If a slug arg was given, match it against .name; else ask the user which client. Display client names titlecased (e.g., test-client → "Test Client"), not raw slugs. Capture .repo.
Context B — Client repo (admin with the harness checked out): .claude-plugin/marketplace.json exists in $PWD.
if [ -f .claude-plugin/marketplace.json ]; then
jq -r '.name' .claude-plugin/marketplace.json
git config --get remote.origin.url
fi
Extract <org>/<repo> from the remote URL (strip https://github.com/ prefix and .git suffix).
Context C — Installed harness (admin's own machine): Read ~/.claude/plugins/known_marketplaces.json (the runtime registry — more reliable than settings.json which may be empty after a UI-based add).
jq -r 'to_entries[] | "\(.key)\t\(.value.source.url)"' ~/.claude/plugins/known_marketplaces.json
For each entry, check whether ~/.claude/plugins/marketplaces/<name>/credentials/ exists — only client harness repos have this directory; marketplace catalogs do not. Exclude entries without it. Display qualifying entries by the name field from .claude-plugin/marketplace.json titlecased, not the repo slug. If exactly one qualifies, use it automatically. If multiple, ask the user which.
If none of A/B/C produce a repo, tell the user: "I couldn't detect a client repo. Are you running this from your master repo, from inside a client's harness repo, or on a machine with the harness installed?"
CLIENT_REPO="<org>/<repo>" # from above
REPO_NAME="${CLIENT_REPO##*/}"
MARKETPLACE_NAME="${REPO_NAME%-claude-harness}"
MARKETPLACE_NAME="${MARKETPLACE_NAME%-harness}"
Must match what bootstrap.sh / bootstrap.ps1 / /onboard-client derive. If Context B surfaced a marketplace.json name that differs, the repo was onboarded before the Option C migration — flag it to the user and use the derived value anyway.
Execute these steps in order. Each step is a beat in the conversation — tell the user what's happening and what you need.
After running the detection logic above, tell the user what you found:
Generating install commands for [CLIENT_NAME] (
org/repo).
If detection failed or found multiple clients, ask the user to clarify. Keep it to one question.
This skill emits one install message but the team needs two secrets alongside it, both shared through the team's password manager:
credentials.env.age file on each employee machine.<client>-harness-pat.Client harness repos are private by default, including InsideScale's harness. Treat the PAT as required.
Before emitting anything, confirm the admin has actually encrypted + pushed credentials:
Have you run
/client-admin:manage-credentialsyet? It encryptscredentials.env.age, pushes it to the harness repo (so Claude Desktop can sync it to employee machines), and gives you the passphrase to send employees separately.Also confirm: have you generated the read-only GitHub PAT and shared it with the team via your password manager (per ADMIN.md Phase 1, Step 3b)? Employees need it to add the private marketplace in Claude Desktop.
If they haven't done either, stop here and prompt them to finish before continuing.
If they have, do not ask for a secret channel and do not ask them to paste the passphrase into chat. Use the placeholder path:
Great. I'll leave
<PASSPHRASE>in the output as a placeholder. Before you send the passphrase message, replace it with the real value from your password manager. The passphrase should not touch this chat.
Always use the <PASSPHRASE> marker in Step 3 and add an admin-facing reminder to substitute before sending.
Substitute <CLIENT_NAME>, <ORG>/<REPO>, and <MARKETPLACE_NAME> always. Leave the literal <PASSPHRASE> marker in the passphrase block; the admin fills it in from the password manager before sharing.
Frame the output for the admin first. The admin needs to know the block below is what they forward to their team — NOT what they run themselves. Lead with one short framing sentence addressed to the admin, then output the forwardable block. Without the framing, admins read the recipient-facing "To install the <CLIENT_NAME>…" line and get confused about whose instructions they're looking at.
Add an admin-facing line above the passphrase block: "Before sending, replace <PASSPHRASE> with the real value from your password manager — fill it in when you're drafting the outgoing password-manager item, not back into this chat."
Output format — emit in this exact structure. Each section is its own block so the admin can copy each part independently.
Admin framing (prose, not forwarded to employees):
Here's what to forward to your team. Copy each section in order — intro, then the command for their machine, then the after-install note. Send the passphrase separately through your password manager, and make sure the read-only GitHub PAT is shared there too.
Intro — copy this first:
To install the <CLIENT_NAME> Claude Code harness:
Before running the command below: add the `<ORG>/<REPO>` marketplace in Claude Desktop (Customize → Personal plugins → + → Create plugin → Add marketplace).
Two things to know about the marketplace add:
1. The first add will FAIL — the repo is private. Claude Desktop will then prompt you for a GitHub PAT. Paste the read-only PAT your admin shared in your password manager (separately from the passphrase). Desktop retries with the token and succeeds.
2. Once synced, the plugin Directory opens. Click the "+" next to BOTH plugins (<MARKETPLACE_NAME> and tools) to install them.
Wait for sync to complete (green checkmark) before running the command below. Otherwise the install errors with "marketplace not synced yet".
Mac / Linux — open Terminal, paste this line, press Enter:
bash <(curl -fsSL https://raw.githubusercontent.com/Palisades-Labs/claude-harness-installer/main/bootstrap.sh) --decrypt <ORG>/<REPO>
Windows — open PowerShell, paste all four lines below together, press Enter:
$env:DECRYPT_MODE='1'
$env:CLIENT_REPO='<ORG>/<REPO>'
Set-ExecutionPolicy -Scope Process Bypass -Force
iwr -useb https://raw.githubusercontent.com/Palisades-Labs/claude-harness-installer/main/bootstrap.ps1 | iex
After install — copy this last:
After the install completes, open a NEW terminal (or new PowerShell window) and run: claude
Then add the passphrase block for the admin to send through the password manager (separate message):
Send the passphrase below through your password manager — separately from the install message above:
<PASSPHRASE>The employee types or pastes it when prompted. It is not echoed and does not appear in their shell history.
Paste-robustness rule (critical): The Mac/Linux form is a single statement — bash <(curl ...) --decrypt <org>/<repo> has no inline env vars, so visual wrapping in Slack/email doesn't split interdependent lines. The Windows form still has three setup statements plus the iwr|iex call; keep each on its own line — do NOT collapse them into a single long line. Chat and email clients soft-wrap long commands and users' paste behavior often captures the visual wrap as real newlines, splitting the command into broken fragments. The multi-statement form is robust to wrap because each statement stands alone. Do not shorten the PowerShell block to a one-liner under any circumstance.
After the install block, print:
API key rotation
----------------
To add a new API key or rotate an existing one (Tavily, Avoma, or any other), run `/client-admin:manage-credentials`, update the key, and push. Employees do not need a new passphrase if you keep the same one, but they do need to wait for Claude Desktop marketplace sync, re-run the same install command, enter the same passphrase, and open a new terminal. Sync fetches the updated encrypted file; the install command refreshes their local usable credentials.
If you rotate the passphrase itself, re-run `/client-admin:generate-installer` and redistribute both the install command and the new passphrase; employees re-run the one-liner to decrypt under the new passphrase.
bootstrap.sh and bootstrap.ps1 arg parsing in the claude-harness-installer repo. The current contract:
bootstrap.sh --decrypt <org>/<repo>bootstrap.ps1 -Decrypt -Repo <org>/<repo> (locally) OR $env:DECRYPT_MODE='1'; $env:CLIENT_REPO='<org>/<repo>'; iwr|iex (one-liner form; param() binding is skipped under iex so the script reads $env:DECRYPT_MODE and $env:CLIENT_REPO as fallbacks).
When either bootstrap changes its invocation, update the template above.bootstrap.sh, bootstrap.ps1, and /onboard-client. All four must derive marketplace names identically: basename(repo) with any trailing -claude-harness stripped, then any trailing -harness stripped (handles both naming conventions).jq — used on the operator's machine to parse clients.json and ~/.claude/settings.json during detection. Post-migration, bootstrap.sh / bootstrap.ps1 no longer install prereqs (they're decrypt-only), so jq must come from base tooling.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub palisades-labs/marketplace-admin --plugin client-admin