Community code of conduct charter

From CraftOS-dev/craftbot-agent-bundles · View interactive version

Community code of conduct charter is an AI agent skill from the GitHub repository CraftOS-dev/craftbot-agent-bundles. Sources: https://www.contributor-covenant.org/version/2/1/code_of_conduct/ + https://opensource.guide/code-of-conduct/ + https://meta.discourse.org/c/welcome-feedback/24 + https://discord.com/safety

How to use this skill

Skill file

<!--

Sources: https://www.contributor-covenant.org/version/2/1/code_of_conduct/ + https://opensource.guide/code-of-conduct/ + https://meta.discourse.org/c/welcome-feedback/24 + https://discord.com/safety

-->

Community Charter + Code of Conduct — SKILL

Charter (purpose + audience + rules + tone + dispute process) + Code of Conduct (banned behaviors + escalation + enforcement table). Use Contributor Covenant 2.1 as base for OSS; adapt for SaaS / brand / Web3. Publish to Notion source-of-truth + per-platform copy (Discord pinned, Circle About, Slack canvas, Discourse FAQ).

When to use

Trigger phrases: "code of conduct", "community charter", "community rules", "moderation policy", "Contributor Covenant".

Setup

# Notion MCP — source of truth
mcp tool notion.create_page --parent_id $COMM_DB \
  --title "Charter + Code of Conduct" \
  --properties '{"Status": "Draft", "Version": "1.0"}'

# Git for versioning rule packs
mcp tool git-commit.commit \
  --files "policies/CODE_OF_CONDUCT.md" \
  --message "CoC v1.0 — initial draft"

# Vale prose linter for tone consistency
vale --config vale.ini policies/

Workspace prerequisites:

Common recipes

Recipe 1: Charter intake (10 questions)

  1. Purpose — why does this community exist? (one sentence)
  2. Audience — who is the ideal member? (3 archetypes)
  3. Out-of-scope — who is this not for? (filters bad fits early)
  4. Vibe — adjectives (e.g., "rigorous, friendly, opinionated", "calm, beginner-safe")
  5. Self-promotion stance — never / Fridays-only / approved members / open
  6. Politics + off-topic — banned / contained channel / allowed
  7. AI-generated content — banned / labeled / allowed without disclosure
  8. Languages — English-only / multi-lang channels / auto-translated
  9. Mod team — who, decision rights, escalation chain
  10. Enforcement appetite — quick-ban culture vs warning-heavy

Recipe 2: Generate Charter (template)

# $COMMUNITY_NAME — Charter

## Why we exist
$ONE_SENTENCE_PURPOSE.

## Who this is for
- Archetype A: ...
- Archetype B: ...
- Archetype C: ...

## Who this isn't for
- $OUT_OF_SCOPE.

## How we behave
- Be specific over vague — share actual code, screenshots, links.
- Lead with curiosity — assume good intent.
- No-promo zone except on $PROMO_DAY. (See #promo-friday.)
- Disagreement is healthy; contempt is not.

## How decisions happen
- Day-to-day: mod team consensus.
- Policy changes: 7-day RFC in #meta with member input.
- Disputes: escalation chain → mod → lead mod → owner.

## Living document
Charter rev'd quarterly. Member feedback channel: #meta-suggestions.

Recipe 3: Generate Code of Conduct (Contributor Covenant 2.1 base)

# Code of Conduct

## Our Pledge
[Contributor Covenant 2.1 pledge — verbatim]

## Our Standards
**Examples of positive behavior:**
- Demonstrating empathy and kindness
- Respecting differing opinions, viewpoints, experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility, apologizing, learning from mistakes

**Examples of unacceptable behavior:**
- Trolling, insulting / derogatory comments
- Public or private harassment
- Publishing private info ("doxing")
- Sexualized language / imagery, sexual attention
- AI-generated content posted without disclosure
- Spam, self-promo outside designated channels
- Sustained off-topic derailment

## Enforcement
Reports: $REPORT_EMAIL or DM to mod role.
Response SLA: acknowledged in 24h; resolved in 7d.

## Enforcement Ladder
| Tier | Behavior | Action |
|---|---|---|
| 1 | Minor (off-topic, light tone) | Private warning |
| 2 | Repeated minor / single rude | 24h mute + warning |
| 3 | Harassment / doxing / hate speech | Permanent ban, no appeal |
| 4 | Spam / scam / bot | Immediate ban + IP/domain flag |

## Attribution
Adapted from Contributor Covenant v2.1.

Recipe 4: Per-platform publish

# Discord — pinned in #rules + welcome reaction-gate
mcp tool discord-mcp-full.create_message \
  --channel_id $RULES_CH \
  --content "$(cat policies/CODE_OF_CONDUCT.md)" \
  --pin true

# Circle — pin in "About" + create per-space rule
curl -X POST -H "Authorization: Bearer $CIRCLE_TOKEN" \
  https://app.circle.so/api/v1/community/about \
  -d "{\"body\": $(jq -Rs . < policies/CHARTER.md)}"

# Slack — canvas in #welcome
mcp tool slack.canvases_create \
  --channel_id $WELCOME --title "Code of Conduct" \
  --content "$(cat policies/CODE_OF_CONDUCT.md)"

# Discourse — FAQ page
curl -X PUT -H "Api-Key: $DISCOURSE_KEY" -H "Api-Username: $USERNAME" \
  -d "title=Community Guidelines&raw=$(cat policies/CODE_OF_CONDUCT.md)" \
  https://forum.brand.com/admin/site_texts/faq.json

Recipe 5: Discord welcome-screen reaction-gate

# Member must react ✅ to charter pin before being given Verified role
mcp tool discord-mcp-full.add_reaction \
  --channel_id $RULES_CH --message_id $RULES_PIN --emoji "✅"

# Reaction handler (via Carl-bot reaction-roles)
# emoji ✅ → role 'Verified' → grants access to all other channels

Recipe 6: Slack canvas + acknowledgement

# Pin canvas + custom field "CoC ack" on profile
mcp tool slack.users_profile_set \
  --user_id $USER_ID \
  --profile '{"fields": {"Xf123": {"value": "CoC acknowledged 2026-06-15"}}}'

Recipe 7: Discourse trust-level alignment

Discourse TL0→TL4 maps cleanly to enforcement ladder:

Configure: Admin → Settings → "Trust levels" → align with CoC.

Recipe 8: AI-content disclosure rule

**AI-Generated Content Rule (added 2026-01-15)**

Posts wholly or substantially generated by AI must:
1. Disclose at the top: `*Drafted with AI*`
2. Be tagged `#ai-content`
3. Be limited to relevant channels (`#ai-experiments`, `#ai-help`)

Repeated undisclosed AI posts → tier 2 enforcement.

Recipe 9: Vale style check on rule docs

# vale.ini
StylesPath = styles
MinAlertLevel = suggestion
[*.md]
BasedOnStyles = write-good, alex
write-good.E-Prime = NO
alex.Profanity = YES
vale policies/
# Run pre-commit to keep policies welcoming + accessible.

Recipe 10: Quarterly review cron

# Pull-request reminder every 90 days
from datetime import datetime, timedelta

def needs_review(doc_path):
    last_reviewed = git_last_modified(doc_path)
    return datetime.now() - last_reviewed > timedelta(days=90)

for p in glob('policies/*.md'):
    if needs_review(p):
        notify_slack(f"Policy stale: {p} — needs quarterly review")

Examples

Example 1: New OSS dev-tool community

Goal: Open-source SDK with 50 contributors, going public on GitHub Discussions + Discord.

Steps:

  1. Charter intake (Recipe 1) — purpose: "ship + support dev-tool", vibe: "rigorous, technical, code-first".
  2. CoC = Contributor Covenant 2.1 verbatim + ladder (Recipe 3).
  3. Publish to CODE_OF_CONDUCT.md in repo + Discord pin + Discourse FAQ (Recipe 4).
  4. Discord reaction-gate ✅ for Verified role (Recipe 5).
  5. Quarterly review cron (Recipe 10).

Result: Mod team can point to ladder when enforcing; member onboarding hits 30% activation.

Example 2: B2C creator paid Discord

Goal: 1k-member paid Discord around a YouTuber's audience.

Steps:

  1. Charter intake — vibe: "casual, friendly, no-toxicity"; politics banned; AI labeled.
  2. CoC abbreviated to 5 rules + 4-tier ladder.
  3. Publish to Discord pin + DM to existing members.
  4. Carl-bot reaction-role for Verified (Recipe 5).
  5. AI-disclosure rule added (Recipe 8).

Result: 3-month mod-incidents down 60% via clearer rules.

Edge cases / gotchas

Sources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.