An Agent Skill that turns any coding agent (Claude Code, Codex, OpenCode, …, or a Prism agent) into a Mirantis Agent Platform admin — grounded in the platform's MCP admin surface so it can install, set up, and govern the platform (projects, policies, connections, agents, spending, audit) without you knowing the internals.
The skill lives in mirantis-agent-platform-admin/:
the agent-facing runbook is SKILL.md, with
deep detail in references/. Humans
don't need to read those.
Works in any Agent Skills client (Claude Code, Codex, OpenCode, … — CLI or desktop app). Just paste this prompt; the agent installs the skill itself and follows it:
Install the Mirantis Agent Platform admin skill from https://github.com/lensapp/mirantis-agent-platform-admin-skill/tree/main/mirantis-agent-platform-admin and follow it to set up Mirantis Agent Platform.
(The URL points at the skill folder, not the repo root — that's what lets an installer grab the skill directly instead of hunting for it.)
The agent installs this skill (so it's reusable — your ongoing Mirantis Agent
Platform admin) and follows SKILL.md to stand up the platform and launch a
first agent (Prism), handing you both URLs at the end.
- Install this skill so it's reusable — point your installer at the skill
folder URL (
…/tree/main/mirantis-agent-platform-admin), not the repo root, so it grabs the skill directly instead of hunting for it:npx skills add https://github.com/lensapp/mirantis-agent-platform-admin-skill/tree/main/mirantis-agent-platform-admin -g -a <your-agent> --copy(-a claude-code|codex|cursor| …;-g= user-level, discovered by both the CLI and the desktop app; the shorthandlensapp/mirantis-agent-platform-admin-skillalso works for this CLI). Can't install it? Just readmirantis-agent-platform-admin/SKILL.md+mirantis-agent-platform-admin/references/*.mdfrom this repo and follow them directly. - Then read
mirantis-agent-platform-admin/SKILL.mdand follow it. For an install request it walks minikube → Helm → activate → onboard, ending with a summary and both URLs. Run the install yourself (or read the files directly) — don't just paste thenpxcommand back into the user's chat.
Then connect the agent to your platform's MCP and sign in (OIDC gives it full admin — no API token to manage):
# Claude Code
claude mcp add --transport http lens-agents <publicUrl>/mcp # e.g. http://localhost:3002/mcp
claude mcp login lens-agents
# Codex
codex mcp add lens-agents --url <publicUrl>/mcp
codex mcp login lens-agentsComplete the sign-in in your system browser (not an embedded one). Now just talk to the agent: "set up my Mirantis Agent Platform", "give me a Kubernetes SRE agent", "integrate our reservations system over MCP".
Installed skills are local copies — they don't auto-update. To refresh to the latest version, re-run the update:
npx skills update mirantis-agent-platform-admin # or: npx skills add lensapp/mirantis-agent-platform-admin-skill -a <agent> --copyIf the agent's guidance ever looks out of step with the platform, that's the fix.
The skill was renamed from lens-agents-admin. If you installed it under the old
name, delete the lens-agents-admin folder from your agent's skills directory
and add the skill again with the command above.
The agent administers the platform as you (your OIDC session). The web admin UI at
<publicUrl>remains — use it to validate and observe what the agent did.
A managed Prism agent can carry this skill too, so it can explain the platform and do its project-scoped work. Drop the bundle into the sandbox's skills dir — the catalog hot-reloads on the next turn (no restart):
- Via the agent (recommended): ask the running agent over its own chat to
install the skill into
/data/skills/mirantis-agent-platform-admin/from this repo, or seed the/datavolume before launch. (The platformshell_*tools run in a fresh sandbox as the caller, not inside the agent's container, so they can't write there.) - Or point
PRISM_SKILLS_DIRat a pre-seeded mount.
Give it an admin persona (no code) with the agent's own tools: rename_self
("Platform Admin") + update_soul, or set AGENT_NAME at create_sandbox time.
Making a seeded Prism a project admin ("Odin"). A sandbox's default identity is capped at project MEMBER, so a seeded Prism can explain the platform and do project-scoped work but isn't an admin out of the box. To make it one, grant it the project's built-in
nexus-apiconnector with a project-admin API token as the connector credential (connectors[].credentialIdin its policy): the platform dispatches that connector's first-party tools as the token's principal, so Odin gets native admin tools (create_policy,create_sandbox, …) while the token stays server-side — never in its env. It gets only the api-token-visible tools; OIDC-only steps, including creating that credential, need a human. No prism-agent code, no env token. Odin's authority is exactly the token's scope (scope it least-privilege;revoke_api_tokenis the kill switch). Full runbook:mirantis-agent-platform-admin/references/playbooks.mdplaybook 6.
This skill does not re-document tool parameters — an agent already gets
authoritative schemas from tools/list (over MCP) and the REST OpenAPI at
<publicUrl>/v1/openapi.json. The skill carries what those specs can't: the
platform mental model, cross-cutting rules, gotchas, correct sequencing, the
install path, and how to configure the managed agents it launches. So it ages
well (no parameter drift).
The skill lives in the mirantis-agent-platform-admin/
directory (named to match the skill's name, per the
agentskills.io spec — this is what
makes npx skills add copy the whole bundle, references included, rather than
just SKILL.md):
mirantis-agent-platform-admin/
SKILL.md # runbook + router: mental model, connect, "read the live schema", reference map, rules
references/
concepts.md # the WHY — governance model, Mode 1/2, autonomy-vs-policy, honest limitations
architecture.md # internals: two MCP endpoints, sandbox-as-principal, the two proxies, network policy, TTLs
install-local.md # stand up the whole platform on minikube (any of the six inference backends), then onboard
rbac.md # who administers (OIDC org-admin / project-admin token / sandbox) — read before acting
tenancy.md # orgs, projects, project members, API tokens, workload identity
policies.md # policy + binding semantics (ceiling/clip/drift, people-vs-sandbox axes)
inference.md # managed inference: backends, metering boundary, PII fail modes, env traps
credentials.md # credential injection model (decoy/boundary)
connections.md # Kubernetes clusters, AWS connections
mcp-connectors.md # upstream MCP servers, their credentials, HTTP connectors
agents.md # launch AND configure a managed (Prism) agent
governance.md # spending limits, usage/cost, audit trail
gotchas.md # fail-open/closed cheat-sheet, thresholds, caps, reserved names
playbooks.md # ordered recipes for the common jobs
Facts trace to the platform docs + source; if the platform changes, re-sync this skill (params stay current automatically via the live specs).