oneblackmage/session-scripts / generate_cultural_sessions.py
oneblackmage's picture
download
raw
26.3 kB
#!/usr/bin/env python3
"""
Pixelated Empathy — Cultural Diversity Session Generator
Fills Gap 2: cultural diversity in therapy.
7 dimensions × ~57 sessions = 400 sessions total.
All sessions demonstrate culturally responsive therapy.
Vary turns 10-16. Anti-sycophancy enforced throughout.
Key risk mitigation: cultural stereotype amplification.
- Personas use intersectional identities (within-culture variation)
- Cultural humility directives in therapist system prompt
- No monolithic cultural portrayals
Usage:
python generate_cultural_sessions.py [--categories all] [--sessions-per-category 57] [--resume]
"""
from session_base import run_generation
CATEGORIES = {
"collectivist_family": {
"name": "Collectivist Family Dynamics",
"difficulty": "medium",
"presentations": [
"family obligation vs individual desire — parents expect caregiving, patient wants independence but guilt is crushing",
"arranged marriage pressure — family pushing marriage, patient unsure, doesn't want to disappoint but fears regret",
"eldercare burden — sandwiched between parents' needs and own family, cultural expectation to never delegate",
"filial piety conflict — moved away from family, guilt about not being present, family implies betrayal",
"honor and shame — family reputation affecting personal choices, can't date/major in what they want",
],
"patient_personas": [
{
"age": "27",
"gender": "female",
"occupation": "pharmacist",
"presenting": "Parents expect her to move home and care for aging father, she has a career and partner here, guilt is consuming her",
},
{
"age": "31",
"gender": "male",
"occupation": "engineer",
"presenting": "Family in India pushing arranged marriage, he's unsure, doesn't want to disappoint but fears lifetime regret",
},
{
"age": "35",
"gender": "female",
"occupation": "doctor",
"presenting": "Caring for mother with dementia, can't afford home aide, family says it's her duty, she's burning out",
},
{
"age": "24",
"gender": "male",
"occupation": "graduate student",
"presenting": "Moved across country for PhD, family implies he's abandoning them, sends money home, feels torn",
},
],
"therapist_techniques": [
"cultural genogram — map family expectations across generations, identify patterns",
"acculturation assessment — where is patient on the independence/obligation spectrum, what's their choice",
"differentiation of self — distinguish cultural values from individual desires without rejecting either",
"narrative reframing — honor the cultural value while exploring the patient's autonomy within it",
"guilt vs obligation — distinguish healthy obligation from manipulative guilt, set compassionate boundaries",
"bicultural identity integration — find synthesis, not either/or, between cultural expectation and personal need",
],
"therapist_prompt_addon": (
"You practice cultural humility. You never assume a cultural norm applies to this specific person. "
"You explore the patient's own relationship to their cultural values — they may embrace, reject, or "
"hold ambivalence about them. You don't pathologize collectivist values, but you also don't treat "
"them as immutable. You help patients find their own path within (or alongside) their cultural framework."
),
},
"immigration_acculturation": {
"name": "Immigration & Acculturation",
"difficulty": "medium-high",
"presentations": [
"language barrier in therapy — patient struggles to express emotional nuance in English, fears being misunderstood",
"reverse culture shock — visiting home country and feeling foreign, neither place feels like home anymore",
"generational acculturation gap — parent clinging to home culture, child assimilating fast, relationship fracturing",
"immigration trauma — left home under duress, unprocessed, now triggering daily life stressors",
"identity erasure — code-switching so much at work that they've lost sense of who they actually are",
],
"patient_personas": [
{
"age": "33",
"gender": "female",
"occupation": "software engineer",
"presenting": "Moved from Brazil 5 years ago, struggles to express emotional complexity in English, feels therapy won't work in second language",
},
{
"age": "28",
"gender": "male",
"occupation": "restaurant manager",
"presenting": "Visited Nigeria for first time in 10 years, felt like a foreigner there too, neither place is home",
},
{
"age": "45",
"gender": "female",
"occupation": "cleaning service owner",
"presenting": "Teenage daughter won't speak Spanish at home, dresses differently, mother feels she's losing her daughter",
},
{
"age": "38",
"gender": "male",
"occupation": "delivery driver",
"presenting": "Fled Syria 6 years ago, never talked about it, now having panic attacks when he sees certain news footage",
},
{
"age": "26",
"gender": "non-binary",
"occupation": "graphic designer",
"presenting": "Code-switches at work so much they don't know which version is real, feeling like a stranger to themselves",
},
],
"therapist_techniques": [
"acculturative stress framework — name the stress of navigating two cultures, validate it as real",
"narrative exposure therapy — gently invite the immigration story when patient is ready, not before",
"bicultural competence — identify what's gained from each culture, build integrated identity",
"language validation — invite expressions in native language, explore what English can't capture",
"generational bridging — help parent understand child's acculturation isn't rejection of parent",
"identity reconstruction — who are you when no one is watching, what stays constant across contexts",
],
"therapist_prompt_addon": (
"You understand acculturation is not linear and not the same for everyone. You never assume "
"the patient wants to assimilate OR maintain their home culture — you explore their actual "
"experience. You're sensitive to immigration trauma without forcing it into every conversation. "
"You validate the grief of losing a homeland while not romanticizing it."
),
},
"religious_spiritual": {
"name": "Religious & Spiritual Integration",
"difficulty": "medium",
"presentations": [
"faith crisis after loss — 'God took my child, how do I pray now?', faith was the foundation and now it's broken",
"religious scrupulosity — OCD-like religious obsessions, 'am I sinning by thinking this?', prayer becomes compulsion",
"spiritual bypassing by community — 'just pray about it' from church/community when patient needs real help",
"leaving faith — losing entire social network and identity after deconversion, grief and anger",
"LGBTQ+ and religious — told by faith community that identity is sin, internal conflict between faith and self",
"cultural healing practices — patient uses traditional healing alongside therapy, wants integration not replacement",
],
"patient_personas": [
{
"age": "42",
"gender": "female",
"occupation": "teacher",
"presenting": "Lost 6-year-old to cancer, was devout her whole life, can't pray anymore, feels abandoned by God",
},
{
"age": "29",
"gender": "male",
"occupation": "accountant",
"presenting": "Spends 3 hours daily in prayer/confession rituals, terrified every thought is a sin, exhausted",
},
{
"age": "35",
"gender": "female",
"occupation": "social worker",
"presenting": "Church told her anxiety is 'lack of faith', stopped taking meds, now spiraling, wants to reconcile faith and mental health",
},
{
"age": "24",
"gender": "male",
"occupation": "barista",
"presenting": "Left evangelical church 2 years ago, lost all friends, angry at the community but also grieving the belonging",
},
{
"age": "19",
"gender": "female",
"occupation": "student",
"presenting": "Gay and Catholic, family says it's a phase, priest says it's a test, she loves her faith but it doesn't love her back",
},
{
"age": "50",
"gender": "female",
"occupation": "healer/community elder",
"presenting": "Uses traditional Indigenous healing practices, wants to combine with therapy, wary of Western system pathologizing her practices",
},
],
"therapist_techniques": [
"spiritual assessment — explore patient's current relationship with faith, not assuming belief or non-belief",
"meaning-making — where is God/faith in this experience, what has shifted, what remains",
"scrupulosity differentiation — distinguish genuine faith from OCD-driven religious compulsion",
"grief of faith loss — validate that deconversion is a real loss, not just intellectual change",
"identity integration — help LGBTQ+ patient hold faith and identity, or grieve the impossibility of both",
"cultural integration — honor traditional healing, find complementary relationship, not replacement hierarchy",
],
"therapist_prompt_addon": (
"You respect religious and spiritual experience as potentially meaningful, not inherently pathological. "
"You never push a patient toward or away from faith. You distinguish genuine spiritual struggle from "
"mental health conditions (scrupulosity OCD, religious delusions). You honor traditional and Indigenous "
"healing practices as potentially beneficial and do not position Western therapy as superior."
),
},
"indigenous_healing": {
"name": "Indigenous & Traditional Healing",
"difficulty": "medium-high",
"presentations": [
"historical trauma — patient carries grief from community history, doesn't know why they feel heavy all the time",
"medicine vs traditional healing — doctor says take meds, elder says ceremony, patient feels caught between systems",
"reconnection to culture — patient was adopted out or disconnected, trying to reconnect, feeling like an outsider in own culture",
"land and identity — displacement from ancestral land is core to the distress, therapy that ignores this misses the point",
"two-eyed seeing — patient actively practices both Western and traditional healing, wants a therapist who respects both",
],
"patient_personas": [
{
"age": "38",
"gender": "female",
"occupation": "community health worker",
"presenting": "Heavy sadness she can't explain, community carries same weight, only makes sense when she learned about residential schools",
},
{
"age": "55",
"gender": "male",
"occupation": "fisher/welder",
"presenting": "Doctor says take antidepressants, elder says he needs a sweat lodge, he respects both but doesn't know which way to turn",
},
{
"age": "22",
"gender": "female",
"occupation": "university student",
"presenting": "Adopted out at birth, reconnecting with tribe, doesn't know the language or ceremonies, feels like a stranger",
},
{
"age": "47",
"gender": "non-binary",
"occupation": "artist",
"presenting": "Community displaced from land 3 generations ago, everything feels rootless, therapy focusing on 'coping skills' feels beside the point",
},
{
"age": "31",
"gender": "male",
"occupation": "teacher",
"presenting": "Uses traditional ceremonies and therapy, frustrated when therapists dismiss the ceremonies as 'coping mechanisms'",
},
],
"therapist_techniques": [
"historical trauma framework — name the communal grief, connect personal pain to collective experience",
"two-eyed seeing — hold Western and Indigenous knowledge as complementary, not competing",
"cultural connection — support reconnection at patient's pace, not as a treatment protocol",
"land-based acknowledgment — recognize displacement as real trauma, not metaphor",
"community-centered — the individual's healing exists within community healing, not isolated from it",
"respect for ceremony — honor traditional practices without appropriating or explaining them away",
],
"therapist_prompt_addon": (
"You practice from a place of cultural humility. You recognize historical and intergenerational trauma "
"as real, not as abstract concepts. You do not position Western therapy as the answer to wounds created "
"by Western systems. You respect traditional healing practices and Indigenous knowledge as valid in "
"their own right. You follow the patient's lead on what healing means for them."
),
},
"disability_identity": {
"name": "Disability Identity & Experience",
"difficulty": "medium",
"presentations": [
"newly disabled — acquired disability recently, grieving the old self, identity fractured",
"invisible disability — chronic illness no one believes, 'but you look fine', gaslit by medical system",
"disability pride — patient embraces disability identity, frustrated by therapy that frames disability as deficit",
"caregiver burnout — parent of disabled child, exhausted, society offers no support, guilt about needing space",
"intersectional disability — disabled AND a person of color / queer / immigrant, multiple marginalizations compound",
],
"patient_personas": [
{
"age": "30",
"gender": "male",
"occupation": "former athlete",
"presenting": "Spinal cord injury 8 months ago, wheelchair user, grieving the body he had, doesn't recognize himself",
},
{
"age": "28",
"gender": "female",
"occupation": "teacher",
"presenting": "Fibromyalgia, constant pain, colleagues think she's lazy, doctor said 'try yoga', she's angry and exhausted",
},
{
"age": "34",
"gender": "non-binary",
"occupation": "advocate/speaker",
"presenting": "Autistic, proud of neurodivergent identity, frustrated that therapy tries to 'fix' them instead of supporting them",
},
{
"age": "42",
"gender": "female",
"occupation": "retail manager",
"presenting": "Son with severe autism, hasn't slept in years, husband left, she's breaking but guilt about even thinking about respite",
},
{
"age": "25",
"gender": "female",
"occupation": "student",
"presenting": "Deaf, Black, woman — triple marginalization, audism AND racism AND sexism, tired of explaining, wants to just be human for an hour",
},
],
"therapist_techniques": [
"grief work — validate the loss of the old self, don't rush toward acceptance",
"social model of disability — frame barriers as societal, not personal deficit",
"disability identity development — explore pride, shame, and everything between, at patient's pace",
"caregiver support — validate the exhaustion, address guilt about self-care, build sustainable support",
"intersectionality — hold multiple marginalized identities simultaneously, don't rank oppressions",
"accessibility-first therapy — ensure the therapeutic space itself accommodates, not just the conversation",
],
"therapist_prompt_addon": (
"You use the social model of disability — barriers are societal, not personal deficits. You never frame "
"disability as something to 'overcome' or 'fix.' You respect disability identity and pride. You "
"understand invisible disabilities are real. You hold space for grief AND pride in the same session. "
"You recognize the compounded marginalization of intersectional disabled experience."
),
},
"lgbtq_specific": {
"name": "LGBTQ+ Specific Therapy",
"difficulty": "medium",
"presentations": [
"coming out to family — terrified, family is religious or conservative, risk of being disowned",
"transition support — patient is trans, navigating medical system, family reactions, workplace disclosure",
"internalized homophobia — grew up in anti-gay environment, still hears the voices, can't fully accept self",
"chosen family — biological family rejected them, building chosen family but it's fragile, attachment wounds surface",
"bisexual erasure — told they're 'really gay' or 'really straight' by both communities, identity invalidated everywhere",
"queer parenting — raising kids, questions from school, other parents, navigating identity and parenting simultaneously",
],
"patient_personas": [
{
"age": "22",
"gender": "male",
"occupation": "student",
"presenting": "Wants to come out to conservative immigrant parents, terrified of being disowned, they've been distant and he knows why",
},
{
"age": "30",
"gender": "trans woman",
"occupation": "nurse",
"presenting": "Transitioning, lost her partner of 5 years, parents won't use her name, navigating medical gatekeeping while grieving",
},
{
"age": "35",
"gender": "male",
"occupation": "lawyer",
"presenting": "Out for 10 years but still hears his father's voice calling him an abomination, can't fully accept love from his husband",
},
{
"age": "27",
"gender": "non-binary",
"occupation": "artist",
"presenting": "Family cut contact 3 years ago, built chosen family but keeps pushing people away, afraid of being abandoned again",
},
{
"age": "29",
"gender": "female",
"occupation": "therapist",
"presenting": "Bisexual, told by lesbian friends she's 'in denial', told by straight friends she's 'experimenting', tired of being nobody's real",
},
{
"age": "38",
"gender": "trans man",
"occupation": "teacher",
"presenting": "Raising 2 kids with his husband, other parents avoid them, kids getting questions at school, he's angry and protective",
},
],
"therapist_techniques": [
"identity affirmation — center the patient's identity as valid, not as a 'phase' or 'confusion'",
"minority stress framework — name the chronic stress of living in a stigmatizing environment, not individual pathology",
"coming out readiness assessment — explore safety, support, timing — patient decides, therapist supports",
"internalized stigma work — identify the voices, trace them to their source, challenge them with compassion",
"chosen family attachment — explore attachment patterns in chosen family, understand how rejection shapes bonding",
"bisexual validation — explicitly center bi+ identity as real and complete, not partial or transitional",
],
"therapist_prompt_addon": (
"You are deeply LGBTQ+ affirming. You never treat identity as a phase, confusion, or disorder. You understand "
"minority stress — the chronic toll of stigma is real, not just 'sensitivity.' You distinguish internalized "
"stigma from personal values. You respect chosen family as real family. You hold trans-specific concerns "
"(medical gatekeeping, name/pronoun stress) as valid clinical material, not distractions from 'real' issues."
),
},
"socioeconomic_barriers": {
"name": "Socioeconomic Barriers to Care",
"difficulty": "medium-high",
"presentations": [
"can't afford therapy — patient finally found a therapist but can't sustain it, therapy feels like a luxury",
"working class stigma — family says 'we don't do therapy', patient feels like a traitor for seeking help",
"system navigation burnout — spent months fighting insurance, disability claims, housing — now depressed on top of it",
"poverty-related depression — can't separate depression from the reality of not having enough money",
"intergenerational poverty trauma — family has been poor for generations, patient carries inherited shame and survival patterns",
],
"patient_personas": [
{
"age": "32",
"gender": "female",
"occupation": "home health aide",
"presenting": "Finally found a therapist but can't afford $80/session even with sliding scale, feels she's failing herself",
},
{
"age": "45",
"gender": "male",
"occupation": "warehouse worker",
"presenting": "Family says 'we don't do therapy, we work,' he feels like a traitor for even talking about feelings, let alone paying for it",
},
{
"age": "28",
"gender": "non-binary",
"occupation": "gig worker",
"presenting": "Spent 6 months fighting disability claim denial while depressed, now has depression AND system burnout, can't separate them",
},
{
"age": "38",
"gender": "female",
"occupation": "single mother/fast food",
"presenting": "Can't pay rent this month, therapist says 'practice self-care', she can't even shower alone, the gap is devastating",
},
{
"age": "24",
"gender": "male",
"occupation": "construction laborer",
"presenting": "First in family to go to therapy, parents say 'we survived without it', he feels shame about needing help AND about the money",
},
],
"therapist_techniques": [
"material conditions validation — name poverty as a real condition, not a cognitive distortion",
"resource navigation — help access sliding scale, community mental health, insurance advocacy",
"class-sensitive reframing — 'self-care' looks different when you're surviving, not lazy",
"intergenerational pattern awareness — explore family survival patterns, how seeking help breaks or continues them",
"shame deconstruction — separate 'I need help' from 'I'm weak,' challenge class-based therapy stigma",
"sustainable coping — focus on what's possible within constraints, not ideal-world solutions",
],
"therapist_prompt_addon": (
"You understand that poverty is a material condition, not a mindset. You never recommend 'self-care' "
"without acknowledging the patient's economic reality. You don't pathologize survival strategies. "
"You're practical — sliding scale, community resources, insurance navigation. You recognize class "
"stigma around therapy as real. You don't assume the patient has time, money, or stability. You meet "
"them where they are, including if 'where they are' is 'can barely be here.'"
),
},
}
def main():
run_generation(
categories_dict=CATEGORIES,
output_dir="data/cultural_sessions",
output_filename="cultural_sessions.jsonl",
session_id_prefix="cultural",
source_family="cultural_diversity",
default_sessions_per_category=57,
description="Cultural Diversity Therapy Session Generation",
)
if __name__ == "__main__":
main()

Xet Storage Details

Size:
26.3 kB
·
Xet hash:
1d26cf896304a08f0e55c7e234fc0f68c9e2e762507859b3586d63df6f00b11e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.