keycloak-migration-doctor

keycloak-migration-doctor is a skill for Claude Code, Codex from sky-cloak/skycloak-mcp. It costs 72 tokens per session (1,507 once invoked), scanned A, original, Apache-2.0.

A guide for checking and diagnosing Keycloak data moves on a Skycloak-managed cluster. Keycloak is software that manages user accounts and login settings; a realm is one isolated set of those settings.

In plain words
What is it for?
Use it before exporting, importing, or migrating a whole cluster or realm, and when one of those jobs fails or stalls.
Why use it?
It explains failures that the dashboard reports only as a retry-limit message by checking the detailed error recorded in the job.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before exporting, importing, or migrating a whole cluster or realm, and when one of those jobs fails or stalls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sky-cloak/skycloak-mcp --skill keycloak-migration-doctor
Clone the repo
git clone --depth 1 https://github.com/sky-cloak/skycloak-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for keycloak-migration-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor/github.svg)](https://agentmods.dev/skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor)
Your own site
<a href="https://agentmods.dev/skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor"><img src="https://agentmods.dev/badge/skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for keycloak-migration-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor"><img src="https://agentmods.dev/badge/skills/sky-cloak/skycloak-mcp/keycloak-migration-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01507
Opus 5 $0.00036 $0.00754
Sonnet 5 $0.00014 $0.00301
Haiku 4.5 $0.00007 $0.00151

Measured 12d ago against content hash ff062180dc2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

keycloak-migration-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/tools/skills/keycloak-migration-doctor/SKILL.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Keycloak migration doctor

Export and import failures look opaque because the dashboard notice is generic: "Job has reached the specified backoff limit" is a retry counter, not a cause. The cause is usually in the job record already, in the error_message field that skycloak_get_export, skycloak_get_realm_export and skycloak_get_realm_import all return. Reading it is the single highest-value step here. If a job has already failed, go straight to Diagnose; if the move has not run yet, start with Preflight.

Preflight: before an export, import or migration

  1. Pin down the unit with the user: a whole-cluster database dump (skycloak_create_export), one realm's archive (skycloak_create_realm_export), or a realm import into Skycloak (skycloak_create_realm_import). Find the cluster with skycloak_list_clusters, then skycloak_get_cluster: it must be available, and note its Keycloak version, because an archive from a newer major does not import into an older target.
  2. For an import, call skycloak_list_realms on the target: the import refuses a realm-name collision with a 409 rather than overwriting, so a taken name is better discovered now than on migration day.
  3. Check the known blockers, all taken from support history:
    • Script-based authorization policies. Current Keycloak only loads JavaScript policies packaged in a deployed scripts JAR, so realms whose clients still carry admin-console script policies fail; the classic offender is a policy named "Default Policy" that old versions auto-created on authorization-enabled clients. No tool lists client policies, so use skycloak_list_applications to enumerate the clients and have the user clear script policies under each client's Authorization > Policies in the admin console. The dry run below catches any they miss.
    • The legacy /auth path. Keycloak dropped the /auth URL prefix in 17 and Skycloak clusters serve the modern paths, so anything with the old prefix hard-coded breaks after the move even though the import itself succeeds. Ask now.
    • partial-export never includes users. Keycloak's built-in partial export excludes users by design. A plan of "partial export, import, log in" fails at the login, not the import; users need a full realm export.
    • Feature flags. If the source relies on a Keycloak feature flag, check skycloak_list_cluster_features. A flag absent from that list is reserved for the platform operator; escalate rather than promise it.
  4. Dry run now. The cheapest preflight is running the export today and polling it: a failure with error_message in hand this week beats the same failure on migration day. Realm archives are always encrypted: ask the user for a password, never invent one, and say the same password is needed again at import.

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 117 lines · 72 tokens per session scan A ff062180dc2f

Subscribe to this mod's changes

keycloak-migration-doctor is a skill published in the GitHub repository sky-cloak/skycloak-mcp (0 stars, last pushed 5d ago), licensed Apache-2.0. It adds 72 tokens to every session and 1,507 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

zeroid

MANUAL TRIGGER ONLY: invoke only when user types /zeroid. Identity infrastructure for AI agents — register identities, issue tokens, delegate to sub-agents, revoke credentials, and manage credential policies via the Zeroid REST API.

highflame-ai/zeroid · 51 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

explain-error

Explain an error message with optional context.

gridctl/gridctl · 11 tokens

configuring-oauth2-authorization-flow

Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token.

26zl/cybersec-toolkit · 44 tokens

configuring-ldap-security-hardening

Harden LDAP directory services against common attacks including credential harvesting, LDAP injection, anonymous binding, and channel binding bypass. Covers LDAPS enforcement, channel binding, LDAP si.

26zl/cybersec-toolkit · 41 tokens