agentleFS
TrecekTrecek/useful-claude-skills/.claude/skills/exp-lens-governance-risk/SKILL.md

exp-lens-governance-risk

Skill1 starsChanged 8 months agoMITView on GitHub

Create a risk register and stakeholder impact assessment for experiments with deployment implications. Governance lens answering "What risks arise from acting on this result?

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for …

    line 30
  2. Distinctive:

    Treat absent limitation disclosure as a finding requiring explicit flagging

    line 35
  3. Very specific:

    BEFORE creating any diagram, LOAD the /mermaid skill using the Skill tool - this is MANDATORY

    line 37
  4. Distinctive:

    Look for: deploy, production, release, ship, launch, serve, recommend, decision

    line 49
  5. Distinctive:

    Look for: subgroup, demographic, gender, age, language, region, minority, disparity, fairness, bias

    line 53
  6. Distinctive:

    Look for: harm, risk, safety, toxicity, bias, error_rate, false_positive, false_negative, fail

    line 57
  7. Distinctive:

    Look for: monitor, alert, feedback, drift, degrade, revert, rollback, canary, A/B

    line 61
  8. Distinctive:

    Look for: limitation, caveat, does_not, cannot, future_work, out_of_scope, assumption

    line 65
  9. Distinctive:

    Use the mermaid skill conventions with:

    line 91
  10. Very specific:

    Write the output to: temp/exp-lens-governance-risk/exp_diag_governance_risk_{YYYY-MM-DD_HHMMSS}.md

    line 108
  11. Distinctive:

    Before creating the diagram, verify:

    line 215

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Governance Risk Experimental Design Lens

Philosophical Mode: Governance Primary Question: "What risks arise from acting on this result?" Focus: Deployment Risks, Subgroup Harms, Monitoring Plans, Limitation Disclosure, Responsible Decision-Making

When to Use

  • AI evaluation with deployment implications
  • Experiments whose results will affect real users
  • Safety-relevant benchmarks
  • User invokes /exp-lens-governance-risk or /make-experiment-diag governance

Critical Constraints

NEVER:

  • Modify any source code files
  • Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for themselves

ALWAYS:

  • Identify subgroups for whom the experimental evidence may not generalize
  • Assess decision sufficiency — does the experiment actually answer the deployment question?
  • Treat absent limitation disclosure as a finding requiring explicit flagging
  • Distinguish risks that are monitored from risks that are merely acknowledged
  • BEFORE creating any diagram, LOAD the /mermaid skill using the Skill tool - this is MANDATORY

Analysis Workflow

Step 1: Launch Parallel Exploration Subagents

Spawn Explore subagents to investigate:

Intended Use & Deployment Context

  • Find how experimental results will be used in practice
  • Look for: deploy, production, release, ship, launch, serve, recommend, decision

Subgroup & Fairness Analysis

  • Find whether results are disaggregated by relevant subgroups
  • Look for: subgroup, demographic, gender, age, language, region, minority, disparity, fairness, bias

Harm & Risk Metrics

  • Find metrics that measure potential harms
  • Look for: harm, risk, safety, toxicity, bias, error_rate, false_positive, false_negative, fail

Monitoring & Feedback Plans

  • Find plans for post-deployment monitoring
  • Look for: monitor, alert, feedback, drift, degrade, revert, rollback, canary, A/B

Limitation Disclosure

  • Find explicit disclosure of what the experiment does NOT show
  • Look for: limitation, caveat, does_not, cannot, future_work, out_of_scope, assumption

Step 2: Build Risk Register

Build the risk register. For each potential action based on experimental results, identify:

  1. Who is affected?
  2. What could go wrong?
  3. How severe?
  4. How likely?
  5. What monitoring would detect it?
  6. What evidence does the experiment provide to assess this risk?

Classify risks by severity x likelihood.

Step 3: Analyze Decision Sufficiency

CRITICAL — Analyze Decision Sufficiency: For every deployment or decision that the experimental results would inform:

  • Does the experiment provide sufficient evidence for this specific decision?
  • What additional evidence would be needed?
  • Are there subgroups for whom the evidence is insufficient?

Step 4: Create the Diagram (Optional)

This is primarily an argumentative lens. Create an optional risk-flow diagram only when the risk pathways are complex enough to benefit from visualization.

Use the mermaid skill conventions with:

Direction: TB (results flow down through decisions to impacts)

Minimal diagram structure:

  • Experimental Results → Decisions → Stakeholder Impacts

Node Styling:

  • cli class: Experimental results
  • handler class: Decisions
  • output class: Positive impacts
  • gap class: Harms and risks
  • detector class: Monitoring and safeguards
  • stateNode class: Stakeholder groups

Step 5: Write Output

Write the output to: temp/exp-lens-governance-risk/exp_diag_governance_risk_{YYYY-MM-DD_HHMMSS}.md


Output Template

# Governance Risk Analysis: {Experiment Name}

**Lens:** Governance Risk (Governance)
**Question:** What risks arise from acting on this result?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}

## Risk Register

| Risk | Severity | Likelihood | Affected Group | Mitigation | Monitoring |
|------|----------|------------|----------------|------------|------------|
| {risk} | {Critical/High/Medium/Low} | {High/Medium/Low} | {group} | {mitigation} | {monitoring plan} |

## Decision Sufficiency Assessment

| Decision | Evidence Required | Evidence Available | Sufficient? | Gap |
|----------|------------------|--------------------|-------------|-----|
| {decision} | {what is needed} | {what exists} | {Yes/No/Partial} | {missing evidence} |

## Subgroup Analysis Gaps

| Subgroup | Evidence Available | Evidence Needed | Risk of Extrapolation |
|----------|-------------------|-----------------|----------------------|
| {subgroup} | {available} | {needed} | {Low/Medium/High} |

## Risk-Flow Diagram (Optional)

```mermaid
%%{init: {'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60, 'curve': 'basis'}}}%%
graph TB
    %% CLASS DEFINITIONS %%
    classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;
    classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;
    classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;
    classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;
    classDef newComponent fill:#2e7d32,stroke:#81c784,stroke-width:2px,color:#fff;
    classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
    classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;
    classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;
    classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;

    RESULTS["Experimental Results<br/>━━━━━━━━━━<br/>Performance metrics<br/>and findings"]

    DECISION["Deployment Decision<br/>━━━━━━━━━━<br/>Ship / scale / recommend<br/>based on results"]

    MONITOR["Monitoring & Safeguards<br/>━━━━━━━━━━<br/>Drift detection, alerts,<br/>rollback triggers"]

    subgraph Stakeholders ["STAKEHOLDER IMPACTS"]
        direction TB
        BENEFIT["Positive Impacts<br/>━━━━━━━━━━<br/>Users who benefit<br/>from deployment"]
        HARM["Harms & Risks<br/>━━━━━━━━━━<br/>Affected groups<br/>and failure modes"]
    end

    subgraph Groups ["STAKEHOLDER GROUPS"]
        direction TB
        MAJOR["Majority Group<br/>━━━━━━━━━━<br/>Primary experimental<br/>population"]
        MINOR["Minority Subgroups<br/>━━━━━━━━━━<br/>Groups with limited<br/>experimental coverage"]
    end

    RESULTS --> DECISION
    DECISION --> MONITOR
    DECISION --> BENEFIT
    DECISION --> HARM
    MAJOR --> BENEFIT
    MINOR --> HARM
    MONITOR -.->|"detects"| HARM

    %% CLASS ASSIGNMENTS %%
    class RESULTS cli;
    class DECISION handler;
    class MONITOR detector;
    class BENEFIT output;
    class HARM gap;
    class MAJOR,MINOR stateNode;

Limitation Disclosure Audit

LimitationDisclosed?Severity if IgnoredRecommendation
{limitation}{Yes/No/Partial}{Low/Medium/High}{action needed}

Responsible Deployment Checklist

  • Subgroup performance disaggregated and reported
  • Deployment context matches experimental context
  • Monitoring plan defined before deployment
  • Rollback criteria specified
  • Limitations explicitly disclosed to decision-makers
  • Affected communities consulted or considered

Key Findings

  • {Description of most critical risks and decision sufficiency gaps}

---

## Pre-Diagram Checklist

Before creating the diagram, verify:

- [ ] LOADED `/mermaid` skill using the Skill tool
- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)
- [ ] Diagram will include a color legend table

---

## Related Skills

- `/make-experiment-diag` - Parent skill for lens selection
- `/mermaid` - MUST BE LOADED before creating diagram
- `/exp-lens-validity-threats` - For internal validity and alternative explanations
- `/exp-lens-measurement-validity` - For whether metrics measure what matters

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.