home / skills / ehtbanton / claudeskillsrepo / code-of-conduct-generator

code-of-conduct-generator skill

/code-of-conduct-generator

This skill generates a complete CODE_OF_CONDUCT.md using Contributor Covenant 2.1 for open source projects and communities.

npx playbooks add skill ehtbanton/claudeskillsrepo --skill code-of-conduct-generator

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
675 B
---
name: code-of-conduct-generator
description: Generate CODE_OF_CONDUCT.md files based on Contributor Covenant. Triggers on "create code of conduct", "generate code_of_conduct.md", "community guidelines", "contributor covenant".
---

# Code of Conduct Generator

Generate CODE_OF_CONDUCT.md based on Contributor Covenant.

## Output Requirements

**File Output:** `CODE_OF_CONDUCT.md`
**Format:** Markdown
**Standards:** Contributor Covenant 2.1

## When Invoked

Immediately generate a complete Code of Conduct file.

## Example Invocations

**Prompt:** "Create code of conduct for open source project"
**Output:** Complete `CODE_OF_CONDUCT.md` with Contributor Covenant.

Overview

This skill generates a ready-to-use CODE_OF_CONDUCT.md file based on the Contributor Covenant v2.1. It produces a complete, standards-compliant community code of conduct formatted in Markdown and tailored for immediate inclusion in a repository. The output is focused, clear, and suitable for open source and private projects seeking a strong community standard.

How this skill works

When triggered by phrases like "create code of conduct" or "generate code_of_conduct.md", the skill builds a full CODE_OF_CONDUCT.md document that follows Contributor Covenant 2.1 wording and structure. The generated file includes scope, expected behavior, enforcement policy, reporting instructions, and contact placeholders that you can customize. It returns the complete Markdown content so you can paste or save it directly to your project.

When to use it

  • Starting a new open source project and you need an official community guideline.
  • Adding a code of conduct to an existing repository to set clear behavior expectations.
  • Preparing a conference, event, or meetup that requires community standards.
  • Standardizing conduct across multiple projects in an organization.
  • Providing maintainers and contributors with a clear enforcement process.

Best practices

  • Review and customize contact names, email addresses, and reporting channels before publishing.
  • Include links to your project's governance and security policies if applicable.
  • Announce the adopted code of conduct prominently in your README and contributing docs.
  • Ensure maintainers and moderators are informed on enforcement steps and escalation.
  • Keep a public changelog when you update the code of conduct to preserve transparency.

Example use cases

  • Quickly add a Contributor Covenant v2.1 CODE_OF_CONDUCT.md to a new repository.
  • Generate a baseline code of conduct for an organization to adapt per team.
  • Create event-specific conduct guidance derived from Contributor Covenant wording.
  • Provide a standardized document for legal or community review prior to release.

FAQ

Can I customize the generated text?

Yes. The skill outputs standard Contributor Covenant v2.1 text with placeholders for contact and reporting details that you should edit to match your project.

Does the skill handle enforcement procedures?

The skill includes recommended enforcement sections and reporting templates, but you should define the exact internal procedures and roles for your project.