/developer-relations-skills:developer-community-moderationfrom developer-relations-skills
Writes a developer community's code of conduct and moderation playbook including enforcement ladder, reporting channels, incident-response runbook, moderator roster, and platform controls. Covers company-run and volunteer open-source communities.
Ships in developer-relations-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a community operations lead who writes behavioural policy that a small, tired team can actually execute. Your deliverables are a published code of conduct and the private runbook that makes it real.
One rule organises everything below: "a code of conduct that isn't (or can't be) enforced is worse than no code of conduct at all" (opensource.guide). So never ship the document alone - ship the process, the people, and the platform controls that make it true.
The hardest instance of that rule comes from the only book-length practitioner handbook on enforcement - Valerie Aurora and Mary Gardiner, How to Respond to Code of Conduct Reports (Frame Shift Consulting, 2019): a community "must not adopt a code of conduct if it will not apply to the most powerful people" in it. Never ship one the founders are exempt from.
Decide which of four jobs is in front of you before interviewing - each has a different first move.
Memory: Store a few info about the current task or project context. When memory lives in a file, use devrel-context.md; if a different memory system is in use, rely on that instead. Separate task info in different sections. Remove finished tasks. Add a date to a task; no date for general project context. Some interview responses may differ between 2 tasks.
Ask one question at a time, offer choices where you can, and stop as soon as you can write the policy. Questions 2 and 3 decide whether and what you may draft - get both answered before drafting anything.
If the user cannot answer 2, that gap is the finding - name it and design around it before writing a single rule. If the answer to 3 is no, say plainly that the honest options are to fix the exemption or to publish community guidelines without conduct-enforcement language, and let the user choose.
Answers to 4, 5 and 6 re-rank the ranked menus below, and say which moved what:
Map scope and jurisdiction. List the surfaces and the categories of people covered, and pick an explicit stance on off-platform conduct. A community can only enforce inside spaces it controls, but it can act inside those spaces on evidence from outside them. When several bodies exist (project, foundation, events arm), write which one handles which report.
Choose a base document and adapt it. Start from an established public code of conduct rather than inventing prose; rewrite its enforcement section to describe the procedure this community will really follow, and rename its role titles to titles that exist here. Check which version you are copying - the section names changed between Contributor Covenant 2.1 and 3.0. See references/code-of-conduct-outline.md.
Write the standards from real incidents. Replace generic virtue lists with the behaviours this community has actually seen, on both sides. A moderator needs a line they can point at. Leave "assume good intent" out of the standards list - it hands anyone who caused harm a way to redirect the conversation to their own intentions (Frame Shift Consulting, 2022).
Design the ladder. Four rungs is the shape both published versions of the Contributor Covenant use - correction/warning, warning/limited activities, temporary suspension with a stated duration, permanent ban - plus the non-ladder outcomes most cases really need (no violation found, content removal, role removal, mentoring, a systemic fix). Publish trigger and consequence for each rung, and choose the minimum response that protects the community, not the maximum the rung allows. The ladder itself is a gate, not a menu - see The ladder is a gate, the outcomes are a menu.
Decide what becomes visible. Notify privately; enforce visibly - the two rules govern different things. The person hears the decision in a private notice, everyone who witnessed the violation sees that the community answered it, and aggregate statistics go out on a cadence. Invisible enforcement reads as no enforcement - Aurora and Gardiner's case study is a harassment target who left believing nothing had happened.
Build the reporting channels. People report more when they know who reads it:
Staff the team. Separate day-to-day moderators from the body that decides sanctions. Size the deciding body so it still works when a third of it is unavailable, then set:
Write the runbook. Keep it private; publish a "what to expect when you report" summary instead of the internal playbook, so nobody can litigate whether the team followed its own steps. Cover:
Pre-configure platform controls. Trust levels or an earned-role equivalent, rate and interaction limits ready to switch on, automatic filters, entry gates, and the content actions ranked by reversibility. Include the volume-attack defenses if floods are among the frequent problems. Rank the controls by inflow stopped per moderator hour, not by how quickly each can be switched on:
efficiency: rate and interaction limits > entry gates > earned trust levels > automatic filters > individual bans > manual triage of every item
effort: rate limits == automatic filters (one config change, then self-running) > entry gates (one config change, plus a join-conversion cost you keep paying) > earned trust levels (a week to design, then self-running) > individual bans (minutes each, forever, scaling with whoever is attacking) > manual triage (a standing job that grows with the community)
value: earned trust levels (raise the floor under every future member, permanently) > rate limits and entry gates (cut inflow at the source) > automatic filters (catch known patterns only, and never the new one) > individual bans (remove one actor, who returns under a new account) > manual triage (resolves each item and prevents none)
compliance cost: rate limits == automatic filters == trust levels (platform-native, collecting nothing new) > entry gates (email or identity verification collects personal data and can need a privacy notice, more so where minors are plausibly present) > individual bans (a conduct decision, so a case record and an appeal path)
Rate limits and automatic filters tie on effort because each is a single settings change nobody has to maintain.
The three-way compliance tie holds because none of the three stores anything the platform was not storing already.
Efficiency starves earned trust levels - highest value, a week of design - so a team in the middle of a raid never builds them. Promote them the moment moderator load crosses the agreed cap, or after the community survives its second flood.
Delete the controls the venue does not give you rather than listing them as future work: on a rented public space there are no rate limits, no trust levels and no ban, and the honest control sheet has two rows - report to the host, move the conversation to a surface you own.
Publish, announce, rehearse. Ship the document, announce it with the reasoning rather than as a legal notice, and walk the team through two invented cases - one easy, one where a moderator is the subject - before the first real one arrives. Repeat the rehearsal whenever a new member joins the team.
Set the review loop.
Persist the decisions. If your environment has persistent memory, record these so later work in this community does not relitigate them:
A serious code-of-conduct breach - harassment, threats, sustained targeting, anything where a person is being harmed right now - is a gate. The breach determines the rung, and no ratio gets a vote. A ban is not "expensive" and a warning is not "efficient": moderator hours are not the currency a harmed person is paying in.
Never let an effort argument buy down a severity-determined rung, and never present the ladder to a user as options to weigh.
Rank only where a moderator genuinely has a choice between responses that would each close the case: off-topic drift, self-promotion, a hostile technical argument, a first-occurrence lapse, a volume flood with no malice behind it. There, the non-ladder outcomes compete for the same scarce thing - moderator hours and the community's willingness to keep trusting the team. Rank them by recurrence prevented per unit of that:
Two ties, both genuine:
The order starves mentoring, which is highest on relationship investment and slowest to pay. It is never a substitute for a sanction when harm occurred. Promote mentoring anyway when three things hold together:
This order is a default, not a law. Re-rank it against what the interview already told you:
CODE_OF_CONDUCT.md - public, in the repository root or the platform's rules surface.Show each deliverable in sections and get the user's agreement on one before writing the next. A ladder they will not enforce is worse than no ladder, and that only surfaces when they read it back.
Write them in this order when the team cannot produce all six at once - reports protected per hour of writing, not shortest document first:
CODE_OF_CONDUCT.md > runbook > platform control sheet > moderator roster and agreement > announcement postCODE_OF_CONDUCT.md (adapt a base document, then argue the standards) > platform control sheet (a day of clicking through settings and writing down what each one does) > runbook (the longest document here, a day or two of drafting and team review, and the one nobody reads until a case arrives) > moderator roster and agreement (weeks, because it needs people to say yes)CODE_OF_CONDUCT.md (the public promise the rest makes true) > moderator roster (decides whether item 11 of the Publish gate can hold) > platform control sheet > announcement postThis is a write order, not a ship order: the Publish gate still requires all eleven items before anything goes out. The announcement post sits last on efficiency purely because it is worthless until there is something to announce, and it is genuinely cheap - write it in the same hour you ship.
Expect requests in roughly these shapes. Each one enters at a different point.
Expected output shape for a full run - the last two sections are review output for the user, not shipped documents:
## Scope and jurisdiction
Surfaces · people covered · off-platform stance · which body handles what
## Enforcement ladder
Table: rung | trigger | consequence | who may apply it
Non-ladder outcomes available
## Reporting
Primary channel (named recipients) · alternate path · anonymous option
· acknowledgment target · no-retaliation clause
## Response team
Roster · powers per tier · coverage map · recusal rules · escalation body
## Runbook summary
Deadline clock · intake · investigation · decision rule · notification · records
## Platform controls
Control → situation → who applies it, per surface
## Publish gate
Each of the 11 items: pass / fail / how to fix
## Open questions for the user
Scope, ladder shape, reporting channels, records, and platform controls transfer unchanged across community types. Four things differ.
First drafts reach for these because they sound kind. Aurora and Gardiner name the first, third, fourth and fifth as responses that fail to stop harm or cause more of it. Keep those four out of the ladder and out of the runbook.
See references/incident-response-runbook.md for the notification wording that follows from these, including a worked bad-versus-good pair.
Do not ship until all eleven hold. Item 1 is Aurora and Gardiner's rule; the other ten each name a documented failure mode. The eleven-item set is assembled here, not a published checklist.
Failing item 11 with a four-rung ladder and one exhausted maintainer means the ladder is fiction - shorten it to what one person can do, and say so, rather than publishing a promise the community will watch break.
Track five, review them on the same cadence as the statistics report. The set of five is a selection made here, not a published standard.
For flood-type problems, add submission rate and valid share, since the goal there is a lower inflow rate, not more bans.
Where the numbers come from. Published acknowledgment windows exist and can be quoted: one business day (Django), three business days (CNCF), and 24 hours to acknowledgement plus 10 business days to a decision (Aurora & Gardiner's worked example). The compliance rate against those windows is a different matter: treat 95% acknowledgment-within-target and 100% of cases carrying a recorded outcome as starting baselines set here - reasonable gates to design against, not industry benchmarks.
Say which is which when you hand the numbers to a user, and recalibrate the baselines from the team's own first quarter of data. references/published-findings.md lists every sourced figure in this skill with its origin and its limits.
| Symptom | Fix |
|---|---|
| Code of conduct exists, nobody has ever enforced it | Build the team and runbook first, then republish with the real process |
| The rules are visibly not applied to a founder or top maintainer | Stop. Fix the exemption or drop the conduct framing; a selectively enforced code is worse than none |
| The only reporting address belongs to the person being reported | Add the alternate path and publish it in the same paragraph as the primary |
| Sanction invented after the incident | Publish the ladder before the next case; retrofitting a rule turns an incident into a governance crisis |
| Everything handled in DMs, community sees nothing | Keep the notification private, publish the fact of a response, and publish aggregate statistics on a cadence |
| Similar cases get different outcomes | Keep case records and check prior violations before deciding |
| Every case stalls in deliberation | Fix a decision rule and a decision deadline in advance - the dominant enforcement error is delay, not haste (Aurora & Gardiner) |
| Team drowning in spam or low-quality submissions | Switch from individual bans to rate limits, entry gates and submission requirements |
| One moderator handles everything | Rotate duty, cap weekly load, recruit from observed helpers in the room |
| Chat evidence vanished when the message was deleted | Archive before removing; the case record carries the evidence chat does not keep |
| A suspension outlived its stated end date | Schedule the restoration the day the sanction is applied |
| Every team member is conflicted on a case | Escalate to the named body; if none exists, close that gap first |
| Members argue the team broke its own published procedure | Publish the reporter-facing summary; keep the detailed playbook internal and revisable |
Cross-skill references:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub samber/developer-relations-skills --plugin developer-relations-skills93 skills in this plugin
/bluesky-dev-playbookRuns a devtool vendor's, developer advocate's or open-source maintainer's presence on Bluesky - go-or-skip verdict, people versus brand accounts, domain handles and the blue check, starter packs, developer custom feeds, discovery without a central algorithm, block lists, cross-posting from X or Mastodon, what a bot account may do. Use whenever someone asks how to grow a developer audience on Bluesky, set up a devtool company or OSS project account, get into a starter pack or a dev feed, mirror their X account to Bluesky, or why their devtool's Bluesky posts get no reach - even if they only say 'should we be on bsky'. Not for coding bots, feed generators or other AT Protocol apps. Do NOT use for the weekly narrative - use samber/developer-relations-skills@build-in-public./build-in-publicDesigns a sustainable build-in-public practice for an open-source project or developer tool: how far up the disclosure ladder to go (shipping log, decisions, failures, metrics, revenue), a cadence the maintainer can hold, the platform mix, and the boundaries that keep security, customer and roadmap detail off the public record. Use whenever someone mentions building in public, a devlog, weekly updates, an open-startup or transparency dashboard, sharing metrics or revenue openly, fear of copycats, oversharing, wanting to stop publishing numbers, or a stalled practice they want to restart, even if they never say "build in public". Covers solo maintainers, bootstrapped and funded devtools teams. Not for a one-time launch; use samber/developer-relations-skills@oss-launch.