/identity-skills:auth-flow-tracingfrom identity-skills
Use when a sign-in, token, session or identity flow spans more than one service or a vendor and you must explain what happens to the request end to end, or why it fails in between. Follows the identity backwards from where it is used to where it was proven, step by step.
Ships in identity-skills. 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.
A request carries an identity: this user, in this tenant, at this assurance level, for this audience. On the way to the code that acts on it, that identity changes form many times — a password becomes a session, a session becomes a token, a token becomes a header or a service credential — and every change of form is a place where it can be lost, distorted or forged. This skill follows that one identity and writes down each change of form.
Where the project has an identity-surfaces local skill, use it to name places
and owners; where it has a protected-seams registry, mark the steps it names.
Neither is required: with both empty, the trace finds its steps in code and
config and reports which ones it could not confirm.
Write one sentence: which facts about the caller the decision point needs, and where that decision point is — the handler, policy check or vendor rule that finally acts on the identity. "The refund handler needs the member's account ID and tenant, with step-up done in the last ten minutes." One identity, one decision point, per trace.
Start at the decision point and repeatedly ask where did this come from? Each answer is a step. Keep going until you reach the origin, the place where the user or service actually proved who it is: a credential check, a vendor assertion, a signed service credential. Read code and config for each answer — middleware, gateway rules, handlers, outbound calls, vendor redirects and callbacks. For each step, record:
Walking backwards keeps the trace on what the decision depends on. Branches that never feed it can be named and left out.
A step is a weak link when it accepts what arrives without proof — a header
or claim set upstream and never verified here — or when the identity leaves
meaning less, or more, than it arrived meaning. Each weak link is reported even
if nothing is broken today: it is an impersonation path waiting for a caller.
Label every step with the auth-seams gain it guards and any registry entry it
matches.
Mark the latest step where the identity is still what the decision point needs (last intact) and the earliest where it is not (first wrong). The break lies between them; narrow the gap until they are adjacent. Typical breaks: a claim not carried, an audience that does not match, clock skew, a cookie not sent across a domain, a redirect outside an allow list. Prefer evidence — a log line, a config value, a test — over inference, and label which is which.
If the capability map offers logs or traces (mcp:logs, an APM tool), confirm
the order of steps and the break with aggregate, opaque-ID evidence. Without one,
hand the operator the exact search to run and read back what they paste. Never
paste a token or cookie into the trace; refer to it by kind (see
identity-ground-rules).
## Identity journey — <what must arrive> at <decision point>
Origin: <where the identity is proven>
Covers / leaves out: <branches included and excluded>
### Chain of custody (decision point first)
| Step | Where | Owner | Arrives as | Proven by | Vouched for by | Leaves as | Lost or added | Seam |
|---|---|---|---|---|---|---|---|---|
### Weak links
- step N: <what is accepted unproven, or how meaning shifts> — <fact / inference, source>
### Break (failures only)
Last intact: step N. First wrong: step M. Cause: <...> — <fact / inference, source>
### Claim meanings
- <claim or header>: set at step N, read at steps M..K, means <...>
### Sources
- used: <repos, configs, logs, traces>
- missing: <steps not confirmed, and what would reach them>
### Follow-ups
- <fix, test to add, owner to involve, seam entry to propose>
The chain is a durable artifact: opaque IDs and logical names only.
| Mode | When | Output |
|---|---|---|
| Quick | a "what vouches for what" answer | chain with arrives-as / leaves-as, unconfirmed steps flagged |
| Thorough | a failure, a design change, or a security review | full chain, weak links, break bracket, claim meanings, follow-ups |
| Critique | an existing trace or design doc | steps missing, trust never proven, claim meanings out of date |
identity-surface-map for unknown places and owners; auth-seams for
classifying each step; identity-vendor-config when the break is in vendor
configuration; Crew's incident-runbook-template when the trace becomes an
incident report.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/account-investigationUse when investigating a possible account takeover, a user acting as or receiving mail for another user, wrong-account attribution, a stuck sign-in or sign-up state, or a few flagged accounts. Read-only and hypothesis-driven; rivals tested by the cheapest telling evidence, PII-safe output./auth-funnel-signaturesUse when interpreting auth or MFA funnel telemetry, building a funnel baseline, or judging whether a spike is an attack, a deploy or noise. Derives baselines and anomaly signatures from whatever events exist, grades signal reliability and rules out confounders first./auth-seamsUse when a diff touches tokens, sessions, policy checks, identity claims, sign-in, MFA, recovery or federation flows, or trust boundaries such as webhooks and tenant filters. Classifies crossings by attacker gain, routes by the project's seams registry, seeds it./identity-ground-rulesUse when designing or reviewing authentication, authorization, session or identity-data work, or before any task that may touch personal data. States portable identity non-negotiables and the canonical PII and indicator rules every identity-skills skill defers to./identity-surface-mapUse when asked where identity lives, who owns an auth service or integration, or when scoping or routing identity work across services, shared code and vendor config. Maps surfaces by facts and the organisation's own dimensions, and proposes the identity-surfaces registry./identity-vendor-configUse when reviewing a change to identity-vendor configuration held as code (identity provider, customer identity platform, policy engine), or checking live vendor state against it. A per-object ledger of writers, live, code and pending state; next steps follow from what either side winning costs.npx claudepluginhub pixeloven/crew --plugin identity-skills