speckit.identity-access
Skill3 starsChanged 45 days agoMITView on GitHub
Identity and Access Engineer - Design and implement secure authentication, authorization, federation, provisioning, sessions, and account lifecycle controls.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Verify issuer, audience, signature, expiry, nonce/state, redirect URI, and required claims before accepting an identity assertion.
- Distinctive: line 34
Use secure, HttpOnly, SameSite cookies for browser sessions when practical.
- Distinctive: line 45
Check object ownership, organization/tenant membership, role state, and scope at the use-case boundary.
- Distinctive: line 60
Use WebAuthn/passkeys through established libraries/platform APIs.
- Very specific: line 70
Test successful and failed login, token/session expiry, CSRF, logout, recovery, disabled account, privilege change, IDOR, role/tenant …
- Distinctive: line 80
Do not invent cryptography, parse unsigned tokens, bypass authorization for support convenience, or log credentials, assertions, recovery …
- Distinctive: line 82
Do not expose a public-client secret or rely on client-side checks for access.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mission
Design identity and access flows that are standards-based, usable, auditable,
and safe under failure. Use this skill for authentication and authorization
architecture; use speckit.security to audit the completed implementation and
speckit.backend to implement service boundaries.
Inputs and Outputs
- Input: Actors, roles/permissions, tenancy, data sensitivity, regulatory constraints, supported clients, session/token storage rules, and lifecycle requirements.
- Output: Identity decision record, actor/permission matrix, flow diagrams, claim and session contract, lifecycle rules, audit event list, and test plan.
Protocol
0. Identity Decision Record
- State authenticators, relying parties, identity provider, trust boundaries, token/session model, credential storage, recovery channel, audit events, and availability/failure behavior before implementation.
- Choose the simplest standards-based flow compatible with the clients. For browser/native delegated login, prefer OAuth 2.0/OIDC authorization code with PKCE; do not use implicit flow or expose client secrets in public clients.
1. Authentication and Sessions
- Verify issuer, audience, signature, expiry, nonce/state, redirect URI, and required claims before accepting an identity assertion. Use short-lived, scoped credentials and rotation/revocation appropriate to the risk.
- Use secure, HttpOnly, SameSite cookies for browser sessions when practical; protect state-changing cookie requests from CSRF. Never put secrets or long-lived credentials in URLs, logs, browser storage, or client bundles.
- Implement rate limits, credential-stuffing defenses, secure password hashing where passwords exist, MFA/passkey enrollment, recovery, logout, session invalidation, and concurrent-session policy deliberately.
2. Authorization and Tenancy
- Model permissions around actions and resources, not UI visibility. Enforce RBAC, ABAC, or policy checks server-side on every sensitive read and write.
- Check object ownership, organization/tenant membership, role state, and scope at the use-case boundary. Never trust a client role, owner ID, or tenant ID.
- Propagate actor, tenant, delegated authority, and correlation context through APIs, jobs, caches, and data access. For tenant systems, add database-level isolation where feasible and test cross-tenant denial explicitly.
- Define privileged/admin break-glass access, approval, audit, expiry, and review. Apply least privilege by default and deny on missing context.
3. Federation and Provisioning
- For enterprise SSO, document OIDC/SAML metadata, claim mapping, domain discovery, IdP-initiated/initiated flow constraints, JIT provisioning, certificate/metadata rotation, and failure mode.
- For SCIM, implement stable external identifiers, idempotent create/update, deprovisioning, group mapping, replay-safe webhooks, and reconciliation.
- Use WebAuthn/passkeys through established libraries/platform APIs; verify origin, RP ID, challenge, user verification, credential binding, and recovery.
4. Lifecycle, Audit, and Verification
- Define invitation, activation, role change, suspension, deletion, data retention, and offboarding behavior. Revoke sessions/tokens promptly after disablement or permission loss.
- Audit authentication, enrollment, recovery, authorization denial, privileged change, federation, and provisioning events without recording secrets.
- Test successful and failed login, token/session expiry, CSRF, logout,
recovery, disabled account, privilege change, IDOR, role/tenant boundaries,
IdP failure, and provisioning retry paths. Review with
speckit.security.
Completion Gate
Identity flows follow official OIDC/OAuth 2.0 standards, session management enforces strict rotation/invalidation, server-side authorization verifies tenant and ownership boundaries on every sensitive call, and all lifecycle events are audited.
Guard Rails
- Do not invent cryptography, parse unsigned tokens, bypass authorization for support convenience, or log credentials, assertions, recovery codes, or PII.
- Do not expose a public-client secret or rely on client-side checks for access.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/bro-skills.mdcCursor rule
- .agents/skills/llms.txtllms.txt
- brandkitSkill
- bro-mcp-loopSkill
- ci-security-scanning-with-strixSkill
- design-taste-frontendSkill
- fix-security-vulnerabilities-with-strixSkill
- full-output-enforcementSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- industrial-brutalist-uiSkill
- managed-pentesting-with-strixSkill
- minimalist-uiSkill
- penetration-testing-with-strixSkill
- ponytailSkill
- redesign-existing-projectsSkill
- speckit.ai-engineerSkill
- speckit.analyzeSkill
- speckit.architectureSkill
- speckit.backendSkill
- speckit.backlogSkill
- speckit.checkerSkill
- speckit.checklistSkill
- speckit.clarifySkill
- speckit.constitutionSkill
- speckit.contentSkill
- speckit.databaseSkill
- speckit.dddSkill
- speckit.debugSkill
- speckit.devopsSkill
- speckit.diffSkill
- speckit.event-realtimeSkill
- speckit.frontendSkill
- speckit.game-embeddedSkill
- speckit.game-native-jsSkill
- speckit.geoSkill
- speckit.identitySkill
- speckit.implementSkill
- speckit.mapSkill
- speckit.migrateSkill
- speckit.payment-fintechSkill
- speckit.planSkill
- speckit.quizmeSkill
- speckit.reviewerSkill
- speckit.roadmapSkill
- speckit.securitySkill
- speckit.seoSkill
- speckit.specifySkill
- speckit.sre-observabilitySkill
- speckit.statusSkill
- speckit.tasksSkill
- speckit.taskstoissuesSkill
- speckit.testerSkill
- speckit.uatSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

