access-lifecycle
What it does
This skill checks who has access to your systems against your employee list, and prepares evidence for audits. It is for IT, security and compliance staff who run access reviews.
When to use it
- ✓When you are preparing or running a user access review.
- ✓When you need to confirm that people who left the company have lost their access.
- ✓When an auditor asks for access-control evidence for SOC 2, ISO 27001 or a similar standard.
Skill link
https://github.com/alirezarezvani/claude-skills/blob/main/ra-qm-team/access-lifecycle/skills/access-lifecycle/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Compare our HR employee list with the account export and tell me who still has access after leaving.”
5 new skills a week. 1 minute to read.
How it works
The agent runs three checks. It matches accounts to the employee roster, tests whether the review covered everything, and maps any gaps to the controls and evidence auditors expect. It works from exported files, with no live connection.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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)
- A leaver with an enabled account, or any login after the exit date.
- A privileged orphan account, or a privileged service account with no owner.
- An enabled account the campaign never reviewed.
- An undecided line, a self-review, or a decision with no reviewer named.
- A revoke or modify with no removal recorded past your remediation window.
Hard rules
- Periods are policy.
--inactive-daysand--remediation-dayshave 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
| Script | Role | Exit codes |
|---|---|---|
scripts/access_diff.py |
Roster vs account export: leavers, orphans, ownerless service accounts, movers, privileged review age, inactivity | 0 clean · 2 findings · 3 bad input · 4 blocked |
scripts/access_review_campaign.py |
Population coverage, undecided, self-review, unremoved revokes, late decisions, rubber-stamp signal | 0 · 2 · 3 · 4 incomplete |
scripts/control_evidence_mapper.py |
Findings → per-control status for ISO 27001, SOC 2, NIST 800-53, PCI DSS, HIPAA, SOX IPE | 0 · 2 exceptions · 3 · 4 fail |
All support --help, --sample and --output json.
References and assets
references/joiner_mover_leaver_standards.md— what each framework requires for provisioning, change and removal (7 sources)references/access_review_campaigns.md— population, reviewers, cadence, remediation, what auditors reject (6 sources)references/control_crosswalk.md— finding codes to controls across six frameworks, with the caveats (7 sources)assets/hr_roster.example.csv,assets/accounts.example.csv,assets/campaign.example.csv— input formatsassets/access_review_signoff.md— campaign sign-off with the evidence fields a reviewer fills in
FAQ
Does it connect to my HR or login system?
No. You export CSV files, and the scripts run on those files without a network connection.
Which standards does it cover?
It covers frameworks such as SOC 2, ISO 27001, PCI DSS, HIPAA and NIST 800-53.
Does it set my access policy?
No. You set the periods and thresholds, and the scripts ask you to state them. The skill is not audit advice.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9725
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.