Access Lifecycle skill for Claude

Use when preparing or running a user access review, checking that leavers lost their access, finding orphaned or ownerless service accounts, answering an auditor's access-control request for SOC 2, ISO 27001, PCI DSS, HIPAA or NIST 800-53, or checking whether a finished review campaign will hold up. Diffs the HR roster against account exports, tests the campaign for coverage, self-review, unremoved revokes and rubber-stamping, and maps every exception to the controls it breaks.

Access Lifecycle SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

Access Lifecycle

Portability: 3 stdlib scripts, no network, no IdP or HR connection. Export CSV, run, keep the output as evidence. Not audit advice. Periods and thresholds are your policy; the scripts make you state them.

Access reviews fail audits in four ordinary ways: the review ran on an incomplete export, someone approved their own access, a revoke was decided and never carried out, and leavers kept working accounts nobody looked at. Each script catches one class of these before the auditor does.

Workflow

# 1 - Diff: who has access that the HR roster says they should not?
python scripts/access_diff.py --roster hr_roster.csv --accounts accounts.csv \
  --inactive-days 90 --privileged-review-days 90 --as-of 2026-10-31
# 2 - Campaign: did the review cover everything, and did the revokes happen?
python scripts/access_review_campaign.py --decisions campaign.csv --population accounts.csv \
  --remediation-days 10 --close-date 2026-10-20
# 3 - Map: which controls do the exceptions break, and what evidence do you keep?
python scripts/control_evidence_mapper.py --diff diff.json --campaign campaign.json --framework soc2,iso27001

Step 1 joins each account to the roster on employee ID, then email. A terminated person with an enabled account is a blocker; one who logged in after their exit date is a worse one. Accounts that match nobody are orphans; service accounts need a named owner. Inactivity and privileged-review age use your periods.

Step 2 checks the campaign against the export it was built from. An enabled account missing from the campaign means the review did not cover the population, whatever the sign-off sheet says. It also catches undecided lines, self-review, revokes not removed inside your window, late decisions, and a reviewer who kept every line of a large batch at machine speed.

Step 3 turns findings into a per-control table: FAIL, EXCEPTIONS, NO_EXCEPTIONS, PARTLY_TESTED, NOT_TESTED or NOT_COVERED, each with what an auditor tests and the evidence to keep. There is no PASS.

The gates block on (exit 4)

  1. A leaver with an enabled account, or any login after the exit date.
  2. A privileged orphan account, or a privileged service account with no owner.
  3. An enabled account the campaign never reviewed.
  4. An undecided line, a self-review, or a decision with no reviewer named.
  5. A revoke or modify with no removal recorded past your remediation window.

Hard rules

  • Periods are policy. --inactive-days and --remediation-days have no default. PCI DSS 8.2.6 says 90 days; your policy may differ.
  • Prove removals by re-export. A closed ticket is not evidence the access is gone.
  • The export is evidence too. Keep the query, the pull time and the row count (PCAOB AS 1105.10).
  • A rubber-stamp flag is a signal, not proof. Ask the reviewer what they checked; do not call it fraud.
  • No PASS from a script. Operating effectiveness is the auditor's conclusion.

Scripts

ScriptRoleExit codes
scripts/access_diff.pyRoster vs account export: leavers, orphans, ownerless service accounts, movers, privileged review age, inactivity0 clean · 2 findings · 3 bad input · 4 blocked
scripts/access_review_campaign.pyPopulation coverage, undecided, self-review, unremoved revokes, late decisions, rubber-stamp signal0 · 2 · 3 · 4 incomplete
scripts/control_evidence_mapper.pyFindings → per-control status for ISO 27001, SOC 2, NIST 800-53, PCI DSS, HIPAA, SOX IPE0 · 2 exceptions · 3 · 4 fail

All support --help, --sample and --output json.

References and assets

How to install Access Lifecycle

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/ra-qm-team/skills/access-lifecycle#main ~/.claude/skills/access-lifecycle

Codex

npx degit alirezarezvani/claude-skills/ra-qm-team/skills/access-lifecycle#main ~/.codex/skills/access-lifecycle

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Access Lifecycle skill do?

Use when preparing or running a user access review, checking that leavers lost their access, finding orphaned or ownerless service accounts, answering an auditor's access-control request for SOC 2, ISO 27001, PCI DSS, HIPAA or NIST 800-53, or checking whether a finished review campaign will hold up. Diffs the HR roster against account exports, tests the campaign for coverage, self-review, unremoved revokes and rubber-stamping, and maps every exception to the controls it breaks.

+How do I install Access Lifecycle in Claude Code?

Copy the skill folder into ~/.claude/skills/access-lifecycle, for example with "npx degit alirezarezvani/claude-skills/ra-qm-team/skills/access-lifecycle#main ~/.claude/skills/access-lifecycle". Claude Code loads it automatically and uses it when a task matches.

+Does Access Lifecycle work with ChatGPT or Codex?

Yes. Access Lifecycle uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/access-lifecycle. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Access Lifecycle free?

Access Lifecycle is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related testing & code review skills

  1. Agent Browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms,…

    vercel-labs/agent-browser★ 53k
  2. Playwright

    Official

    Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction,…

    openai/skills★ 29k
  3. Playwright Skill

    Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive…

    lackeyjb/playwright-skill★ 3.3k
  4. Adversarial Reviewer

    Tough, critical review of a diff or PR before merge, through hostile reviewer personas that catch shared blind spots.

    alirezarezvani/claude-skills★ 30k
  5. Agent Run Forensics

    Use when asked why an agent did something, what a past session or run changed, whether tests really passed, or to verify a session summary.

    alirezarezvani/claude-skills★ 30k
  6. Browserstack

    Use when running Playwright tests on BrowserStack or across a browser matrix ('browserstack', 'cross-browser', 'test on safari or firefox',…

    alirezarezvani/claude-skills★ 30k
  7. Caio Review

    Use for /c-level-agents:caio-review, or to challenge a plan involving AI (no eval set, API vs fine-tune vs self-host, EU AI Act class).

    alirezarezvani/claude-skills★ 30k
  8. Cco Review

    Challenge a churn, retention, segment or CS hiring plan. Use whenever asked or /c-level-agents:cco-review.

    alirezarezvani/claude-skills★ 30k
  9. Cdo Review

    Use for /c-level-agents:cdo-review, or to challenge a plan touching training-data rights, data architecture or data monetization.

    alirezarezvani/claude-skills★ 30k

See all testing & code review skills →

More skills from alirezarezvani

  1. Ad Creative

    Use for any ad copy request (RSA headlines, Meta, LinkedIn or TikTok ads, bulk variations), before writing.

    alirezarezvani/claude-skills★ 30k
  2. Aeo

    Use when content should be cited by ChatGPT, Perplexity, Claude or Gemini (answer engine optimization), before rewriting it.

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.