Skip to content
ai-ethics logo

AI Ethics

ai-ethics

Responsible AI development and ethical considerations. Use when evaluating

SKILL.md

Full skill instructions

AI Ethics

Comprehensive AI ethics skill covering bias detection, fairness assessment, responsible AI development, and regulatory compliance.

When to Use This Skill

  • Evaluating AI models for bias
  • Implementing fairness measures
  • Conducting ethical impact assessments
  • Ensuring regulatory compliance (EU AI Act, etc.)
  • Designing human-in-the-loop systems
  • Creating AI transparency documentation
  • Developing AI governance frameworks

Ethical Principles

Core AI Ethics Principles

PrincipleDescription
FairnessAI should not discriminate against individuals or groups
TransparencyAI decisions should be explainable
PrivacyPersonal data must be protected
AccountabilityClear responsibility for AI outcomes
SafetyAI should not cause harm
Human AgencyHumans should maintain control

Stakeholder Considerations

  • Users: How does this affect people using the system?
  • Subjects: How does this affect people the AI makes decisions about?
  • Society: What are broader societal implications?
  • Environment: What is the environmental impact?

Bias Detection & Mitigation

Types of AI Bias

Bias TypeSourceExample
HistoricalTraining data reflects past discriminationHiring models favoring male candidates
RepresentationUnderrepresented groups in training dataFace recognition failing on darker skin
MeasurementProxy variables for protected attributesZIP code correlating with race
AggregationOne model for diverse populationsMedical model trained only on one ethnicity
EvaluationBiased evaluation metricsAccuracy hiding disparate impact

Fairness Metrics

Group Fairness:

  • Demographic Parity: Equal positive rates across groups
  • Equalized Odds: Equal TPR and FPR across groups
  • Predictive Parity: Equal precision across groups

Individual Fairness:

  • Similar individuals should receive similar predictions
  • Counterfactual fairness: Would outcome change if protected attribute differed?

Bias Mitigation Strategies

Pre-processing:

  • Resampling/​reweighting training data
  • Removing biased features
  • Data augmentation for underrepresented groups

In-processing:

  • Fairness constraints in loss function
  • Adversarial debiasing
  • Fair representation learning

Post-processing:

  • Threshold adjustment per group
  • Calibration
  • Reject option classification

Explainability & Transparency

Explanation Types

TypeAudiencePurpose
GlobalDevelopersUnderstand overall model behavior
LocalEnd usersExplain specific decisions
CounterfactualAffected partiesWhat would need to change for different outcome

Explainability Techniques

  • SHAP: Feature importance values
  • LIME: Local interpretable explanations
  • Attention maps: For neural networks
  • Decision trees: Inherently interpretable
  • Feature importance: Global model understanding

Model Cards

Document for each model:

  • Model purpose and intended use
  • Training data description
  • Performance metrics by subgroup
  • Limitations and ethical considerations
  • Version and update history

AI Governance

AI Risk Assessment

Risk Categories (EU AI Act):

Risk LevelExamplesRequirements
UnacceptableSocial scoring, manipulationProhibited
HighHealthcare, employment, creditStrict requirements
LimitedChatbotsTransparency obligations
MinimalSpam filtersNo requirements

Governance Framework

  1. Policy: Define ethical principles and boundaries
  2. Process: Review and approval workflows
  3. People: Roles and responsibilities (ethics board)
  4. Technology: Tools for monitoring and enforcement

Documentation Requirements

  • Data provenance and lineage
  • Model training documentation
  • Testing and validation results
  • Deployment and monitoring plans
  • Incident response procedures

Human Oversight

Human-in-the-Loop Patterns

PatternUse CaseExample
Human-in-the-LoopHigh-stakes decisionsMedical diagnosis confirmation
Human-on-the-LoopMonitoring with interventionContent moderation escalation
Human-out-of-LoopLow-risk, high-volumeSpam filtering

Designing for Human Control

  • Clear escalation paths
  • Override capabilities
  • Confidence thresholds for automation
  • Audit trails
  • Feedback mechanisms

Privacy Considerations

Data Minimization

  • Collect only necessary data
  • Anonymize when possible
  • Aggregate rather than individual data
  • Delete data when no longer needed

Privacy-Preserving Techniques

  • Differential privacy
  • Federated learning
  • Secure multi-party computation
  • Homomorphic encryption

Environmental Impact

Considerations

  • Training compute requirements
  • Inference energy consumption
  • Hardware lifecycle
  • Data center energy sources

Mitigation

  • Efficient architectures
  • Model distillation
  • Transfer learning
  • Green hosting providers

Reference Files

  • references/​bias_assessment.md - Detailed bias evaluation methodology
  • references/​regulatory_compliance.md - AI regulation requirements

Integration with Other Skills

  • machine-learning - For model development
  • testing - For bias testing
  • documentation - For model cards

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View