home / skills / ehtbanton / claudeskillsrepo / 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-generatorReview the files below or copy the command above to add this skill to your agents.
---
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.
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.
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.
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.