auth-incident-triage

auth-incident-triage is a skill for Claude Code, Codex from sky-cloak/skycloak-mcp. It costs 62 tokens per session (1,168 once invoked), scanned A, original, Apache-2.0.

A read-only workflow for investigating sudden authentication failures on a Skycloak-managed Keycloak cluster. Keycloak is software that manages user login, single sign-on, and access permissions.

In plain words
What is it for?
Use it when users cannot log in, login failures increase, or single sign-on stops working. It checks the affected users and apps, cluster health, logs, and authentication trends.
Why use it?
It separates an infrastructure outage, an attack, and a configuration change before deeper investigation begins.

Skill for Claude CodeCodex

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

Good fit Use it when users cannot log in, login failures increase, or single sign-on stops working. It checks the affected users and apps, cluster health, logs, and authentication trends.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sky-cloak/skycloak-mcp/auth-incident-triage
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 auth-incident-triage
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 auth-incident-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/sky-cloak/skycloak-mcp/auth-incident-triage/github.svg)](https://agentmods.dev/skills/sky-cloak/skycloak-mcp/auth-incident-triage)
Your own site
<a href="https://agentmods.dev/skills/sky-cloak/skycloak-mcp/auth-incident-triage"><img src="https://agentmods.dev/badge/skills/sky-cloak/skycloak-mcp/auth-incident-triage/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 auth-incident-triage

Your own site · 80×15
<a href="https://agentmods.dev/skills/sky-cloak/skycloak-mcp/auth-incident-triage"><img src="https://agentmods.dev/badge/skills/sky-cloak/skycloak-mcp/auth-incident-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,168 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.00062 $0.01168
Opus 5 $0.00031 $0.00584
Sonnet 5 $0.00012 $0.00234
Haiku 4.5 $0.00006 $0.00117

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

Security

Grade A, and why

auth-incident-triage 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 7d 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/auth-incident-triage/SKILL.md · 101 lines

How it starts

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

Authentication incident triage

"Users cannot log in" has three root-cause families: the platform is unhealthy, someone is attacking, or someone changed something. The fastest triage decides between those families first and only then digs. This workflow is strictly read-only: gather, correlate, conclude, recommend. Take no corrective action from inside it.

Step 1: scope the blast radius

Before any tool call, pin down from the reporter: all users or a subset? One application or all of them? Interactive logins, token refreshes, or both? Since exactly when? The answers pick the branch below, and "since exactly when" is the single most valuable fact you can get.

Step 2: rule the platform in or out

  1. skycloak_get_cluster: if status is not available, this is a platform incident. Note the status, stop configuration hunting, and escalate to Skycloak support; nothing in realm config fixes an unavailable cluster.
  2. skycloak_get_logs: restarts, database errors, or out-of-memory kills near the onset time mean platform first, config second.
  3. skycloak_get_cluster_insights with type=authentication: a cliff in the success rate at a precise timestamp corroborates the reported onset and often dates it better than the reporter can.

Step 3: read the failures themselves

Call skycloak_query_events with category=user for the affected realm, with types=["LOGIN_ERROR"] to cut the health-check noise and start_time set to before the onset: without it the query only reaches back 24 hours, and a quiet result then means nothing. limit is capped at 100 per call, so page with offset rather than asking for more. Group failures by error, ip_address, username and client_id. The shape of the grouping is the diagnosis:

  • One IP, many usernames: password spraying. Check skycloak_get_security_logs to see whether the WAF is already blocking the source; if the noise is getting through, that is the finding.
  • Many IPs, one or few usernames: credential stuffing against specific accounts. The account owners need a reset; the edge needs rate limiting.
  • One client_id failing with invalid client credentials: a service is using a rotated or expired secret. This is a deployment problem, not an attack. skycloak_list_application_sessions shows how much live traffic the client still carries.
  • A spike of user-not-found: usually an identity-provider or username format change upstream, not users forgetting who they are.
  • Errors naming an identity provider: move to Step 5.

Read the full file on GitHub · 101 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. 7d ago Changed · +8 lines 794bb1f82cad
  2. 11d ago First seen · 93 lines · 62 tokens per session scan A e6d8276c9276

Subscribe to this mod's changes

auth-incident-triage is a skill published in the GitHub repository sky-cloak/skycloak-mcp (0 stars, last pushed 5d ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,168 once invoked, about $0.0003 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.