agentsclimarketplace

Inclusive language

Skill troykelly/claude-skills/skills/inclusive-language

Use when writing code, documentation, or comments - always use accessible and respectful terminologyFrom its SKILL.md

Install
npx -y skills add troykelly/claude-skills --skill inclusive-language

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 11 stars11 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.1 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

Inclusive Language

Overview

Use respectful, accessible language in all code and documentation.

Core principle: Words matter. Use inclusive terminology.

This applies to: Code, comments, documentation, commit messages, branch names, and all text.

Terminology Guide

Branch Names

Instead ofUse
mastermain
slavereplica, secondary, follower
# Correct
git checkout main
git push origin main

# Repository default branch should be 'main'

Access Control

Instead ofUse
whitelistallowlist, permitlist
blacklistdenylist, blocklist
// Correct
const allowlist = ['[email protected]', '[email protected]'];
const denylist = ['[email protected]'];

function isAllowed(email: string): boolean {
  return allowlist.includes(email) && !denylist.includes(email);
}

Primary/Secondary

Instead ofUse
master/slaveprimary/replica, primary/secondary, leader/follower
master (device)primary, controller, host
slave (device)secondary, peripheral, client
// Correct
interface DatabaseConfig {
  primary: ConnectionString;
  replicas: ConnectionString[];
}

class ReplicationManager {
  private leader: Node;
  private followers: Node[];
}

Gendered Terms

Instead ofUse
man hoursperson hours, work hours
manpowerworkforce, staffing
mankindhumanity, people
guyseveryone, folks, team
he/she (generic)they
// Correct
/**
 * When a user logs in, they receive a session token.
 * The user can then use their token to access resources.
 */

Ability-Related

Instead ofUse
sanity checkvalidity check, confidence check
crazy/insaneunexpected, surprising
blind (as negative)unaware, unnoticed
crippledisable, limit
dumbsilent, without output
// Correct
function validateInput(data: unknown): boolean {
  // Perform validity check on input data
}

// Instead of "sanity check"
function confidenceCheck(result: Result): boolean {
  // Verify result is within expected bounds
}

Violence-Related

Instead ofUse
killstop, terminate, end
abortcancel, stop
hitaccess, call, reach
executerun, perform
nukedelete, remove, clear
// Correct
function terminateProcess(pid: number): void { }
function stopServer(): void { }
function cancelRequest(id: string): void { }

// Acceptable (industry standard)
function executeQuery(sql: string): Result { }

Other Terms

Instead ofUse
dummyplaceholder, sample
nativebuilt-in, core
first-classbuilt-in, fully-supported
grandfather/legacyestablished, existing
grandfathered inexempted, pre-existing

Examples in Context

Configuration

// Correct
interface FeatureFlags {
  allowlist: string[];
  denylist: string[];
}

const replicationConfig = {
  primary: 'db-primary.example.com',
  replicas: [
    'db-replica-1.example.com',
    'db-replica-2.example.com',
  ],
};

Documentation

<!-- Correct -->
# Getting Started

When a user creates an account, they will receive a confirmation email.
They can then set up their profile using their preferred settings.

## Access Control

Use the allowlist to specify approved domains.
Use the denylist to block specific addresses.

Comments

// Correct
// Validity check: ensure the input meets expected format
if (!isValidFormat(input)) {
  throw new ValidationError('Input format is invalid');
}

// Confidence check: verify result is within expected bounds
if (result > MAX_EXPECTED || result < MIN_EXPECTED) {
  logger.warn('Result outside expected range');
}

Error Messages

// Correct
throw new Error('Email address is on the denylist');
throw new Error('Origin not in allowlist');
throw new Error('Request terminated due to timeout');

Applying to Existing Code

When modifying existing code with non-inclusive terms:

Small Scope (Same File)

If you're modifying a function that uses non-inclusive language:

  1. Rename the term as part of your change
  2. Update related documentation
  3. Note in commit message: "Renamed to inclusive terminology"

Large Scope (Multiple Files)

If renaming would touch many files:

  1. Create a separate issue for the terminology update
  2. Complete current work with existing terms
  3. Schedule terminology update as future work

API/Public Interface

If the term is in a public API:

  1. Document the plan for deprecation
  2. Add deprecated alias with new term
  3. Migrate users over time
  4. Remove deprecated term in major version
// Transition approach
/** @deprecated Use allowlist instead */
export const whitelist = allowlist;

export const allowlist: string[] = [];

Commit Messages and Branch Names

# Branch names
feature/issue-123-add-denylist-support  # Correct
fix/issue-456-update-replica-config     # Correct

# Commit messages
"Add email denylist validation"         # Correct
"Update replica failover logic"         # Correct

Checklist

When writing or reviewing code:

  • No master/slave terminology
  • No whitelist/blacklist terminology
  • No gendered language for generic users
  • No ability-related negative terms
  • Documentation uses inclusive language
  • Variable/function names are inclusive
  • Error messages are inclusive
  • Comments are inclusive

Resources

Integration

This skill is applied by:

  • issue-driven-development - Step 7
  • comprehensive-review - Style criterion

This skill ensures:

  • Welcoming codebase
  • Professional standards
  • Accessibility for all contributors

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,790. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.