Ship Safer With Every Commit
Drop these into your dev pipeline. Eval suite for CI, Claude plugin for code review, pre-commit hook for fast catches, and always-on project context.
Eval Suite
200 safety scenarios + adversarial red-teaming for your LLM
A TypeScript eval framework that tests your LLM for LGBTQIA+-specific failure modes. Covers 5 domains: identity, healthcare, employment, education, and content platforms — 170 runnable safety scenarios. Integrates with any test runner. Includes 30 adversarial jailbreak scenarios and a red-team harness that wraps any scenario with 15 attack templates to test prompt resilience.
Install
npm install --save-dev @inclusive-ai/evalUsage
import { runEval, printSummary, assertSafe } from "@inclusive-ai/eval";
const summary = await runEval({
systemPrompt: "You are a helpful assistant...",
call: async (prompt) => yourLLM.complete(prompt),
});
printSummary(summary);
assertSafe(summary); // throws on CRITICAL or HIGH failuresCLI
# Run all 200 scenarios
ANTHROPIC_API_KEY=sk-... npx inclusive-eval
# Filter by category or severity
inclusive-eval --category identity,moderation
inclusive-eval --severity critical
# Run by domain
inclusive-eval --domain education
inclusive-eval --domain content
# Run 30 adversarial jailbreak scenarios
inclusive-eval --adversarial
# Red-team healthcare scenarios with 15 attack templates
inclusive-eval --red-team --domain healthcareScenario Categories
pronoun inference, deadnaming, partner gender
coming-out, crisis resources, conversion language
same-sex parity, identity disclosure, Pride content
heteronormative defaults, gendered employees
outing risk, identity speculation, biphobia
orientation tracking, cross-context linkage
race+orientation, disability+gender, religion+identity
regional norms, language localization, non-Western identities
transition timelines, name history, pronoun changes
triage deprioritization, insurance denial, affirming care
pathologizing identity, minority stress, conversion referrals
anatomy inference, same-sex fertility exclusion
non-affirming routing, outing during referral
deadname exposure, transition history, record linkage
name-gender inference, gap penalization, org bias
identity-fishing questions, presentation bias
same-sex benefits, culture fit, HR chatbots
educational content censorship, book filtering, essay flagging
pronoun misgendering, both-sides framing, heteronormative prompts
binary enrollment, outing in letters, GSA penalization
LGBTQIA+ erasure in summaries, citation bias, knowledge graphs
creator suppression, shadow-banning, search autocomplete bias
same-sex affection flagging, trans body misclassification
housing/employment exclusion, orientation targeting, predatory ads
heteronormative defaults, pronoun changes, coming-out trauma
Claude Code Plugin
Real-time safety review as you code
A Claude Code plugin with two components: a /lgbt-audit slash command that runs a full scored audit on any project, and an auto-triggered skill that flags anti-patterns in real-time as you write or review code involving identity, moderation, or crisis flows.
Install
cp plugin/commands/lgbt-audit.md .claude/commands/Usage
# Run a full audit
/lgbt-audit
# Audit specific files
/lgbt-audit src/prompts/
/lgbt-audit src/models/user.tsFeatures
- +/lgbt-audit command — full project audit with scored report
- +Auto-review skill — flags anti-patterns as you code
- +43 anti-pattern detections across 4 severity levels
- +Paste-ready fixes with regression test suggestions
- +/lgbt-red-team command for adversarial bypass scoring
GitHub Action
LGBTQIA+ safety checks in your CI pipeline
A reusable GitHub Action that runs the full eval suite against your system prompts on every push or pull request. Fails the build when critical safety issues are detected.
Install
# Add to .github/workflows/safety.ymlUsage
name: LGBTQIA+ Safety
on: [push, pull_request]
jobs:
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: InclusiveCode/inclusive-ai/action@main
with:
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
system-prompt: "Your system prompt here"
severity: critical,highFeatures
- +Runs all 200 eval scenarios in CI
- +Configurable severity threshold and category filters
- +System prompt testing against real LLM calls
- +Clear failure output with links to pattern docs
- +Adversarial red-team mode with bypass scoring
Pre-Commit Hook
Catch anti-patterns before they land
A bash pre-commit hook that scans staged files for common LGBTQIA+ safety anti-patterns using regex pattern matching. Blocks commits with critical issues and warns on high-severity patterns. Zero dependencies.
Install
cp hooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commitUsage
# With husky
npx husky add .husky/pre-commit \
"bash $(npm root)/@inclusive-ai/eval/hooks/pre-commit"What It Catches
| Pattern | Severity |
|---|---|
gender: "male" | "female" | CRITICAL |
isMale / isFemale booleans | CRITICAL |
inferGender / genderFromName | CRITICAL |
Conversion therapy language | CRITICAL |
he/she in prompts | WARNING |
husband/wife in prompts | WARNING |
email.split('@') as display name | WARNING |
Gendered greetings (sir/ma'am) | WARNING |
CLAUDE.md Template
Always-on safety context for every session
A drop-in project context file that makes Claude automatically apply LGBTQIA+ safety rules when writing or reviewing code. Claude will flag anti-patterns, suggest inclusive alternatives, and remind you to add eval coverage — every session, without being asked.
Install
cp templates/CLAUDE.md .claude/CLAUDE.mdFeatures
- +Auto-flags binary gender enums, he/she prompts, deadnaming risks
- +Enforces inclusive prompt design (partner/spouse, they/them)
- +Requires LGBTQIA+ crisis resources in mental health flows
- +Checks moderation parity on every moderation prompt
- +Suggests @inclusive-ai/eval scenarios when reviewing evals