ai-ethics
Responsible AI development and ethical considerations. Use when evaluating AI bias, implementing fairness measures, conducting ethical assessments, or ensuring AI systems align with human values.
What this skill does
# 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 | Principle | Description | |-----------|-------------| | **Fairness** | AI should not discriminate against individuals or groups | | **Transparency** | AI decisions should be explainable | | **Privacy** | Personal data must be protected | | **Accountability** | Clear responsibility for AI outcomes | | **Safety** | AI should not cause harm | | **Human Agency** | Humans 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 Type | Source | Example | |-----------|--------|---------| | Historical | Training data reflects past discrimination | Hiring models favoring male candidates | | Representation | Underrepresented groups in training data | Face recognition failing on darker skin | | Measurement | Proxy variables for protected attributes | ZIP code correlating with race | | Aggregation | One model for diverse populations | Medical model trained only on one ethnicity | | Evaluation | Biased evaluation metrics | Accuracy 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 | Type | Audience | Purpose | |------|----------|---------| | Global | Developers | Understand overall model behavior | | Local | End users | Explain specific decisions | | Counterfactual | Affected parties | What 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 Level | Examples | Requirements | |------------|----------|--------------| | Unacceptable | Social scoring, manipulation | Prohibited | | High | Healthcare, employment, credit | Strict requirements | | Limited | Chatbots | Transparency obligations | | Minimal | Spam filters | No 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 | Pattern | Use Case | Example | |---------|----------|---------| | Human-in-the-Loop | High-stakes decisions | Medical diagnosis confirmation | | Human-on-the-Loop | Monitoring with intervention | Content moderation escalation | | Human-out-of-Loop | Low-risk, high-volume | Spam 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
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.