شعار Ethics Governance

Ethics Governance

المجتمع
Tibsfox
ethics-governance

Bias detection and mitigation, fairness metrics, privacy frameworks, consent models, transparency requirements, and accountability structures for data science practice. Covers algorithmic bias sources, disparate impact testing, differential privacy, GDPR principles, model cards, datasheets for datasets, responsible AI frameworks, and the organizational governance needed to make ethics actionable. Use when auditing models for bias, designing privacy-preserving systems, establishing governance processes, or evaluating the social impact of data-driven decisions.

نظرة عامة

الناشرTibsfox
المستودعgsd-skill-creator
اسم المهارةethics-governance
النجوم
70
التفريعات
9
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Tibsfox على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Ethics Governance في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/ethics-governance
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/data-science/ethics-governance .claude/skills/ethics-governance
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Ethics Governance في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Ethics Governance تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Ethics Governance بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Ethics and Governance in Data Science

Data science operates on people's data, affects people's lives, and encodes human decisions into automated systems. Ethics in data science is not an afterthought or a compliance checkbox -- it is a design requirement. Ruha Benjamin's concept of the "New Jim Code" names the reality that automated systems can reproduce and amplify existing social inequalities while appearing objective. This skill covers the principles, frameworks, and practices that make ethical data science concrete and actionable.

Agent affinity: benjamin (bias audit, fairness analysis, ethical review), nightingale (routing ethics queries), cairo (communicating ethical findings)

Concept IDs: data-privacy-consent, data-algorithmic-bias, data-data-ownership, data-responsible-practice

Sources of Bias

Where Bias Enters the Pipeline

Bias can enter at every stage of the data science workflow. It is not a property of algorithms alone -- it is a property of the system: data, design decisions, deployment context, and feedback loops.

StageBias typeExample
Problem formulationFraming biasDefining "success" as engagement maximizes addictive behavior
Data collectionSelection biasTraining a facial recognition system on predominantly light-skinned faces
Data labelingAnnotation biasLabelers' cultural assumptions influence what counts as "toxic" speech
Feature engineeringProxy biasZIP code encodes race due to residential segregation
Model trainingOptimization biasMinimizing overall error ignores disparate performance across subgroups
EvaluationMetric biasReporting aggregate accuracy hides poor performance on minority groups
DeploymentAutomation biasDecision-makers defer to model output without scrutiny
Feedback loopsAmplification biasPredictive policing increases patrols in targeted areas, generating more arrests, confirming the model

Historical Bias vs. Representation Bias

  • Historical bias: The world is unequal, and data reflects that inequality. A hiring model trained on historical decisions inherits past discrimination. Even a "perfect" model of biased reality produces biased outputs.
  • Representation bias: The training data does not represent the deployment population. A speech recognition system trained on American English performs poorly on other dialects. This is not a bug in the algorithm -- it is a gap in the data.

Both are real. Neither is solved by "better algorithms" alone. The fix requires changes to data collection, problem formulation, and deployment monitoring.

Fairness Metrics

Impossibility Theorem

Chouldechova (2017) and Kleinberg, Mullainathan, and Raghavan (2016) independently proved that three natural fairness criteria cannot all be satisfied simultaneously when base rates differ between groups:

  1. Calibration: Among those predicted positive, the fraction truly positive is the same across groups.
  2. Equal false positive rate: The rate of incorrectly predicting positive is the same across groups.
  3. Equal false negative rate: The rate of incorrectly predicting negative is the same across groups.

When the base rate (actual positive rate) differs between groups, satisfying any two of these requires violating the third. This is not a technical limitation to be solved -- it is a value judgment about which type of error matters more. The choice must be made explicitly, not hidden inside a loss function.

Common Fairness Definitions

MetricDefinitionWhen appropriate
Demographic parityP(positive prediction) is equal across groupsWhen the prediction itself causes differential treatment
Equalized oddsTPR and FPR are equal across groupsWhen false positives and false negatives have different costs
Equal opportunityTPR is equal across groups (weaker than equalized odds)When false negatives are the primary concern (e.g., loan approval for qualified applicants)
Predictive parityPrecision is equal across groupsWhen the model's positive predictions trigger consequential actions
Individual fairnessSimilar individuals receive similar predictionsWhen you can define a meaningful similarity metric
Counterfactual fairnessPrediction would be the same in a counterfactual world where the individual belonged to a different groupWhen causal reasoning is possible and the causal model is trusted

Measuring Disparate Impact

The four-fifths rule (EEOC, 1978): if the selection rate for a protected group is less than 80% of the rate for the most-selected group, there is evidence of adverse impact.

Disparate impact ratio = (selection rate for protected group) / (selection rate for most-selected group)

If this ratio < 0.8, investigate. This is a screening heuristic, not a legal standard -- but it is widely used as a first check.

Privacy

Privacy Principles (GDPR Framework)

PrincipleMeaningPractical implication
LawfulnessLegal basis for processingDocument the legal basis (consent, legitimate interest, contract, etc.)
Purpose limitationCollect for specified purposes onlyDo not repurpose data without new consent or legal basis
Data minimizationCollect only what is necessaryEvery field in the dataset should have a documented purpose
AccuracyKeep data correct and currentProvide mechanisms for correction; audit data quality
Storage limitationDo not keep data longer than neededDefine retention periods; delete when expired
Integrity and confidentialityProtect against unauthorized accessEncryption, access controls, audit logs
AccountabilityDemonstrate complianceDocumentation, impact assessments, designated roles

Anonymization Techniques

TechniqueHow it worksLimitation
SuppressionRemove identifying fieldsRemaining fields may be quasi-identifiers
GeneralizationReplace specific values with ranges (age 34 -> 30-39)Reduces data utility
k-AnonymityEvery record is indistinguishable from at least k-1 others on quasi-identifiersVulnerable to homogeneity and background knowledge attacks
l-DiversityEach equivalence class has at least l distinct sensitive valuesBetter than k-anonymity but still vulnerable
t-ClosenessDistribution of sensitive attribute in each class is close to overall distributionStrong but complex to implement
Differential privacyAdd calibrated noise so no individual's inclusion changes the output significantlyMathematical guarantee; degrades with composition

Differential Privacy

Differential privacy (Dwork, 2006) provides a mathematical guarantee: the output of an analysis is approximately the same whether any individual is in the dataset or not.

The privacy budget epsilon controls the tradeoff: smaller epsilon = stronger privacy = more noise = less accuracy. Epsilon is spent with each query, and it does not regenerate -- this is the composition theorem.

Practical deployment: Apple (emoji usage), Google (Chrome usage), US Census (2020). Each chose an epsilon value that balanced utility and privacy for their specific context. There is no universally "correct" epsilon.

Consent

Informed Consent Requirements

  1. Purpose: What the data will be used for, in plain language.
  2. Scope: What data is collected and how long it is retained.
  3. Rights: How to access, correct, or delete data.
  4. Risks: Potential consequences of participation.
  5. Voluntariness: Participation is optional; no penalty for declining.
  6. Third parties: Whether data is shared and with whom.

Consent Models

ModelDescriptionStrengthWeakness
Opt-inUser actively agrees before data is collectedRespects autonomyLower participation rates
Opt-outData is collected by default; user can withdrawHigher participationDefault bias; many users never opt out
Dynamic consentOngoing, granular control over data usesMaximum user controlComplex to implement; user fatigue
Broad consentConsent for a category of future usesEnables secondary researchVague; user may not understand implications
Tiered consentMultiple options (e.g., anonymized only, full research use)User chooses comfort levelMore complex consent forms

When Consent Is Insufficient

Consent does not make harmful uses ethical. If a system causes disparate impact, user consent to data collection does not excuse the harm. Similarly, consent from one population does not extend to another. Consent is necessary but not sufficient.

Transparency and Accountability

Model Cards

Mitchell et al. (2019) proposed model cards as standardized documentation for deployed models:

SectionContents
Model detailsArchitecture, training data, version, owner
Intended usePrimary use cases, out-of-scope uses
FactorsDemographic groups, environmental conditions, instrumentation
MetricsPerformance metrics overall and disaggregated by group
Training dataSource, size, preprocessing, known limitations
Evaluation dataSource, demographics, relationship to deployment population
Ethical considerationsKnown biases, risks, mitigation strategies
Caveats and recommendationsKnown limitations, suggested monitoring

Datasheets for Datasets

Gebru et al. (2021) proposed datasheets as standardized documentation for datasets, covering: motivation, composition, collection process, preprocessing, uses, distribution, and maintenance.

Why this matters: A model is only as good as its data. Without dataset documentation, users cannot assess whether the data is appropriate for their task.

Algorithmic Impact Assessment

Before deploying a model that affects people's lives:

  1. Identify affected populations. Who does this system affect? Who is most vulnerable?
  2. Assess potential harms. What happens when the model is wrong? Are errors distributed equitably?
  3. Evaluate alternatives. Is automation necessary? Would a simpler rule or human judgment be more appropriate?
  4. Plan monitoring. How will you detect degradation, drift, or emerging bias after deployment?
  5. Establish recourse. How can affected individuals challenge or appeal automated decisions?

Organizational Governance

Building an Ethics Practice

Ethics is not a one-time review. It requires ongoing organizational commitment:

  • Ethics review board: Multidisciplinary group (data scientists, ethicists, domain experts, community representatives) that reviews high-risk projects before deployment.
  • Bias bounty programs: Internal or external programs that reward finding bias in deployed systems.
  • Incident response: Process for handling ethical incidents (biased output discovered in production, privacy breach, consent violation).
  • Training: Regular ethics training for all team members, not just compliance officers.
  • Diverse teams: Teams with diverse backgrounds are more likely to identify blind spots in data, design, and deployment.

Responsible AI Frameworks

FrameworkSourceKey contribution
Fairness, Accountability, Transparency (FAccT)ACM ConferenceAcademic research community and standards
Responsible AI PracticesGooglePractical guidelines for industry
Ethics Guidelines for Trustworthy AIEU High-Level Expert GroupSeven requirements including human agency, robustness, privacy
Algorithmic Accountability ActUS proposed legislationRequires impact assessments for automated critical decisions
Race After TechnologyRuha BenjaminCritical examination of how technology reproduces racial inequality

Common Mistakes

MistakeWhy it failsFix
"The algorithm is objective"Algorithms encode human decisions in data, features, and metricsAudit for bias; algorithms inherit their creators' and data's biases
Ethics as compliance checkboxChecking a box does not prevent harmBuild ethics into the design process, not just the review process
Aggregate metrics only95% accuracy overall can mask 70% accuracy for a subgroupAlways disaggregate metrics by protected groups
Anonymization = privacyRe-identification is possible from "anonymized" dataUse differential privacy or formal anonymization guarantees
"We didn't intend bias"Intent does not determine impactMeasure impact, not intent
Consent theaterLong, unreadable consent forms do not constitute informed consentPlain language, layered disclosure, genuine choice

Cross-References

  • benjamin agent: Primary agent for bias audit, fairness analysis, and ethical review of data science work products.
  • nightingale agent: Department chair who routes ethics-related queries and ensures ethical review is integrated into the workflow.
  • cairo agent: Communicating ethical findings to non-technical stakeholders through visualization and narrative.
  • fisher agent: Experimental design ethics -- informed consent for A/B tests, stopping rules for harmful treatments.
  • data-visualization skill: Honest visualization practices that avoid misleading representations.
  • experimental-design-ds skill: Ethical experimental design, including human subjects considerations.
  • data-wrangling skill: Data quality and provenance documentation that supports ethical practice.

References

  • Benjamin, R. (2019). Race After Technology. Polity Press.
  • O'Neil, C. (2016). Weapons of Math Destruction. Crown.
  • Barocas, S., Hardt, M., & Narayanan, A. (2019). Fairness and Machine Learning. fairmlbook.org.
  • Dwork, C. (2006). "Differential Privacy." ICALP, 1-12.
  • Mitchell, M. et al. (2019). "Model Cards for Model Reporting." Proceedings of FAccT, 220-229.
  • Gebru, T. et al. (2021). "Datasheets for Datasets." Communications of the ACM, 64(12), 86-92.
  • Chouldechova, A. (2017). "Fair Prediction with Disparate Impact." Big Data, 5(2), 153-163.
  • Kleinberg, J., Mullainathan, S., & Raghavan, M. (2016). "Inherent Trade-Offs in the Fair Determination of Risk Scores." Proceedings of ITCS.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Ethics Governance؟

Bias detection and mitigation, fairness metrics, privacy frameworks, consent models, transparency requirements, and accountability structures for data science practice. Covers algorithmic bias sources, disparate impact testing, differential privacy, GDPR principles, model cards, datasheets for datasets, responsible AI frameworks, and the organizational governance needed to make ethics actionable. Use when auditing models for bias, designing privacy-preserving systems, establishing governance processes, or evaluating the social impact of data-driven decisions.

لماذا تستخدم Ethics Governance على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Ethics Governance عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Ethics Governance في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/ethics-governance. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Ethics Governance؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Ethics Governance؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Ethics Governance معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Ethics Governance مجانية؟

نشرها Tibsfox على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇