Evaluate GitHub issues against the repository's code of conduct. Use when: (1) A new issue is created and needs conduct review, (2) Part of issue intake pipeline, (3) Evaluating whether issue content violates community guidelines. If violations are found, sanitizes offending content (including title, body, and comments) while preserving technical substance and notifies the author. Intelligently replaces titles when sanitization renders them meaningless.
72
71%
Does it follow best practices?
Impact
60%
1.07xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/code-of-conduct-check/SKILL.mdYou are a community moderation specialist. Evaluate whether a GitHub issue violates the repository's code of conduct and, if necessary, sanitize it while preserving all technical content.
$0 — Repository identifier (e.g., owner/repo-name)$1 — GitHub issue number$2 — Issue title$3 — Full issue content$4 — GitHub username of issue creatorReview the issue and its comments against the code of conduct and sanitize violations while preserving technical substance.
Read CODE_OF_CONDUCT.md from the repository root, then evaluate the issue title, body, and all comments for violations including:
gh issue view $1 --repo $0 --comments --json commentsReport:
Code of conduct check: PASS
No violations detected in issue #{issue-number} or its comments.Continue pipeline with original issue body.
1. Sanitize the issue title:
[content removed — code of conduct violation]2. Check if sanitization resulted in an empty or meaningless title:
Example:
3. Update the issue title:
gh issue edit $1 --repo $0 --title "NEW_SANITIZED_OR_REPLACED_TITLE"4. Post this exact comment on the issue:
Thank you for your report. Portions of this issue have been edited to comply with our [Code of Conduct](CODE_OF_CONDUCT.md). The technical content of your submission has been preserved in full.
Please review our code of conduct and ensure future submissions adhere to our community guidelines. We appreciate your contribution and want to keep discussions constructive and welcoming for everyone.
If you believe this edit was made in error, please contact the maintainers.Implementation:
gh issue comment $1 --repo $0 --body "Thank you for your report. Portions of this issue have been edited to comply with our [Code of Conduct](CODE_OF_CONDUCT.md). The technical content of your submission has been preserved in full.
Please review our code of conduct and ensure future submissions adhere to our community guidelines. We appreciate your contribution and want to keep discussions constructive and welcoming for everyone.
If you believe this edit was made in error, please contact the maintainers."5. Report:
Code of conduct check: VIOLATION FOUND — ISSUE TITLE SANITIZED
Issue #{issue-number} title has been updated.
New title: [new sanitized or replaced title]
Author notified via comment.1. Sanitize the issue body:
[content removed — code of conduct violation]2. Update the issue with sanitized body:
gh issue edit $1 --repo $0 --body "SANITIZED_BODY_HERE"3. Post this exact comment on the issue:
Thank you for your report. Portions of this issue have been edited to comply with our [Code of Conduct](CODE_OF_CONDUCT.md). The technical content of your submission has been preserved in full.
Please review our code of conduct and ensure future submissions adhere to our community guidelines. We appreciate your contribution and want to keep discussions constructive and welcoming for everyone.
If you believe this edit was made in error, please contact the maintainers.Implementation:
gh issue comment $1 --repo $0 --body "Thank you for your report. Portions of this issue have been edited to comply with our [Code of Conduct](CODE_OF_CONDUCT.md). The technical content of your submission has been preserved in full.
Please review our code of conduct and ensure future submissions adhere to our community guidelines. We appreciate your contribution and want to keep discussions constructive and welcoming for everyone.
If you believe this edit was made in error, please contact the maintainers."4. Report:
Code of conduct check: VIOLATION FOUND — ISSUE BODY SANITIZED
Issue #{issue-number} body has been sanitized.
Author notified via comment.
Updated issue body:
[include full sanitized body for pipeline handoff]For each comment with violations:
1. Sanitize the comment:
[content removed — code of conduct violation]2. Update the comment with sanitized content:
gh api --method PATCH /repos/$0/issues/comments/{comment-id} -f body="SANITIZED_COMMENT_HERE"3. Post this exact reply to the sanitized comment:
Thank you for your report. Portions of this comment have been edited to comply with our [Code of Conduct](CODE_OF_CONDUCT.md). The technical content of your submission has been preserved in full.
Please review our code of conduct and ensure future submissions adhere to our community guidelines. We appreciate your contribution and want to keep discussions constructive and welcoming for everyone.
If you believe this edit was made in error, please contact the maintainers.Implementation:
gh api --method POST /repos/$0/issues/comments/{comment-id}/replies -f body="Thank you for your report. Portions of this comment have been edited to comply with our [Code of Conduct](CODE_OF_CONDUCT.md). The technical content of your submission has been preserved in full.
Please review our code of conduct and ensure future submissions adhere to our community guidelines. We appreciate your contribution and want to keep discussions constructive and welcoming for everyone.
If you believe this edit was made in error, please contact the maintainers."4. Report each sanitized comment:
Code of conduct check: VIOLATION FOUND — COMMENT SANITIZED
Comment {comment-id} by {author} has been sanitized.
Author notified via comment reply.After checking all content, provide a summary:
Code of conduct check: COMPLETE
- Issue title: [PASS/SANITIZED/REPLACED]
- Issue body: [PASS/SANITIZED]
- Comments checked: {count}
- Comments sanitized: {count}6b797b3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.