paste this link into your ai. it will know what to do.
Run the AI safety checklist for an AI feature or agent at any SDLC phase: intake, design, build, eval, launch, monitoring, or incident review.
AI Safety across the SDLC
Use this skill whenever someone is building, reviewing, launching or operating an AI feature or agent and wants it checked against the AI safety checklist. It works at any single phase, or end to end.
The output is always a concrete artifact for that phase (a filled form, a doc section, an eval plan, a go/no-go table, a metrics spec, a new test case). Never just recite the checklist back.
Step 1: Establish the phase and the risk tier
Work out from the request and any attached material (PRD, design doc, code, eval results, incident report) which phase the project is in. Ask only if it truly can't be inferred.
| Phase | Typical signals |
|---|---|
| 1 Define / intake | idea, PRD, "we want to use AI for…" |
| 2 Data and context | data sources, RAG, prompts, connectors |
| 3 Design | architecture, design doc, tool list, agent flow |
| 4 Build | code, PR, prompt files |
| 5 Evaluate | test sets, eval results, "is it ready?" |
| 6 Deploy / launch | launch review, rollout plan |
| 7 Monitor | production metrics, dashboards |
| 8 Improve / incident | bug, complaint, post-mortem |
Assign a risk tier (state it and why in one line; the user can override):
- Tier 1: read-only, internal, a human reads every output. Bold items only.
- Tier 2: customer-facing, or output informs money, health, legal, tax or employment decisions. All items.
- Tier 3: the AI takes actions (sends, pays, deletes, writes to systems). All items plus a red-team before launch.
If earlier phases were never done (e.g. a launch review with no defined thresholds), say so and fill the gap first. A launch can't pass against thresholds that were never set.
Step 2: Run that phase's checklist
For each item mark Pass / Gap / N/A with one line of evidence from the material. Never mark Pass without evidence; missing info is a Gap. Then produce the phase artifact.
Phase 1: Define
- What the AI decides vs. what a human decides is written down
- Risk tier and a named owner
- Worst plausible failure and who is harmed
- Success metric, plus how it could be gamed
- Pass/fail thresholds agreed now (accuracy, catch rate, false-alarm rate, fairness gap)
- Affected groups for fairness testing
Artifact: Intake safety card: tier + reason, owner, decision split table (AI / human), worst failure, metric + gaming risk, thresholds table, groups to test.
Phase 2: Data and context
- Every input source listed and marked trusted / untrusted (web pages, emails, uploads, tool outputs and other users' content are untrusted)
- No secrets, credentials or personal data in prompts unless documented
- Representation gaps in data checked
- Retention and logging rules decided
Artifact: Data map: table of source | trusted? | contains PII? | how it reaches the model | filter applied.
Phase 3: Design
- Least privilege: each tool and scope justified; read-only by default
- Human approval before any irreversible or external action
- Untrusted input passes an injection filter before the model
- Untrusted content fenced as data, separate from instructions
- Factual output must cite sources; uncited claims flagged
- Action budget (max spend / writes / steps per run)
- Dry-run mode and undo path per action type
- Fails closed when a check errors
Artifact: "Safety" section for the design doc: permissions table (tool | scope | why needed | approval required?), threat model covering prompt injection, data exfiltration, over-broad permissions, hallucination, bias, each with its mitigation, plus the open gaps.
Phase 4: Build
- Every step logged: input, tool call, output, decision
- Prompt states scope, refusals and "say when unsure"
- Uncertainty shown to the user
- Secrets from a vault; timeouts, retries, rate limits
Artifact: Code-review safety notes: findings as file/line | issue | fix. If code is available, read it and cite specifics.
Phase 5: Evaluate
- Accuracy on a fixed test set; baseline recorded
- Planted-error test: does the safety layer catch known mistakes?
- Injection test: attacks + benign look-alikes; report catches AND false alarms
- Fairness test: swap names, zip codes, gender, language in identical prompts
- Cheating check: passed by deleting tests, hardcoding, skipping steps?
- Out-of-distribution inputs (messy scans, other languages, empty files)
- Red-team (Tier 3)
Artifact: Eval plan + CI gate: table of eval | dataset | metric | threshold | blocks merge? Where possible, write the actual test cases (at least 5 per eval, including benign look-alikes) and a CI step that fails the build below threshold.
Phase 6: Deploy / launch
- Staged rollout with a tested kill switch
- Model and prompt versions pinned; changes re-run evals
- Users told it's AI and how to report problems
- Review queue staffed for flagged outputs; on-call owner named
Artifact: Go/no-go table: each threshold from Phase 1 vs. the measured result, verdict per row, overall recommendation. Any missed threshold or open Tier 3 red-team finding = no-go unless the owner signs a named exception.
Phase 7: Monitor
- Track flag rate, human override rate, injection trips, complaints, cost per task
- Weekly sample review of unflagged outputs
- Rubber-stamping watch: approval time, override rate near zero
- Drift alerts with agreed bounds
Artifact: Metrics spec: metric | source (e.g. audit log) | normal range | alert threshold | who gets paged.
Phase 8: Improve / incident
- The incident becomes a permanent eval case
- Post-mortem uses the step logs
- Which checklist item would have caught it, and why it didn't
- Quarterly: permissions re-check, red-team re-run, unused tools removed
Artifact: Incident entry: what happened, root cause mapped to a checklist phase/item, the new eval case written out in full, follow-up owner and date.
Step 3: Report
Lead with the verdict, then the artifact, then the gaps:
- One line: phase, tier, and overall status (Ready / Ready with gaps / Blocked).
- The phase artifact.
- Gaps ranked by severity, each with a concrete fix and suggested owner.
- What the next phase will need, so the team can prepare.
Keep it direct and executable. Prefer tables. No generic advice that isn't tied to this project.
Seatbelt mapping (if the project uses the ai-safety-seatbelt repo)
| Need | Seatbelt piece |
|---|---|
| Injection filter (Phase 3) | seatbelt.tripwire.Tripwire |
| Grounding / citations (Phase 3) | seatbelt/checks.py |
| Human approval gate (Phase 3) | seatbelt/gate.py, release() is the only way out |
| Step logging (Phase 4) | Gate JSONL audit log |
| Evals (Phase 5) | evals/run_evals.py, evals/run_tripwire_evals.py |
| Monitoring (Phase 7) | audit log -> flag, override and input-trip rates |
| Incident -> eval (Phase 8) | add cases to evals/cases.py or evals/injection_cases.py |
When a gap is covered by a seatbelt module, recommend the module and show the few lines needed to wire it in.
keep it where your ai can reach it.
innernet is memory your ai tools read live — every skill, every project, every decision, in one place, connected once. save this skill to yours, or publish one of your own as a link like this.