# Content moderation gate

> Content moderation gate is an open-source agent skill for security. Gates user posts against a written content policy using per-category scores. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mrmps/classifier-dev/tree/main/skills/content-moderation-gate
- **Repository:** https://github.com/mrmps/classifier-dev
- **GitHub stars:** 440
- **License:** MIT
- **Skill name:** content-moderation-gate
- **Collection:** https://github.com/mrmps/classifier-dev
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill sets up a pre-publication check for user-generated text. It turns a written moderation policy into a set of labels, sends a batch of posts to the classifier.dev API in a single multi-label call, and reads back a score for every category rather than a single verdict. The agent then applies a band-based decision: high scores lead to action, middle scores go to a human review queue, and low scores publish while the score is kept for later reports.

The skill spells out how to write labels so they are disjoint and phrased as concrete violations, how to add a none-of-these label so clean posts do not fall into the nearest category, and how to use an instructions field to exempt quoting or reporting a violation. It also describes a hard-block rule for categories such as sexual content involving a minor, which are held for a human regardless of other scores, along with logging guidance that records counts and bands rather than post bodies.

The workflow expects a policy.json file, a shell environment with curl and jq, and access to the classifier.dev HTTP endpoint. It is a plain instruction set with no bundled scripts.

## When your agent uses it

> Check user-generated text against a written policy before it is published. One multi-label call scores every policy category independently, the band sets severity, only the middle band reaches a human queue, and hard-block categories are held whatever the score says. Use when a comment box, feed or chat product needs "moderation", "policy enforcement", "flag bad posts", or an answer to "what do we do with the borderline ones".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mrmps/classifier-dev/tree/HEAD/skills/content-moderation-gate)
- [License: MIT](https://github.com/mrmps/classifier-dev/tree/HEAD/skills/content-moderation-gate)

## Features

- **Policy to labels:** Guidance for turning a written moderation policy into disjoint, enforceable classification labels.
- **Multi-label batch scoring:** Scores every policy category independently for up to 1,000 posts in one API call.
- **Band-based decisions:** Maps the highest category score to act, human review, or publish bands.
- **Hard-block categories:** Holds posts in designated categories for human review regardless of other scores.
- **Score-based gating:** Explains why decisions should read the full scores array rather than the labels list.
- **Privacy-aware logging:** Records counts and bands per batch and keeps post bodies out of metrics and alerts.

## Good for

- Check new comments on a forum before they are published
- Flag borderline posts in a chat product for moderator review
- Hold posts that may involve harassment, spam or unsafe advice
- Measure how often moderators agree with automated severity bands
- Route self-harm signals to a support flow instead of punishment

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/content-moderation-gate` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/content-moderation-gate &&
cp -R "$tmp/skills/content-moderation-gate" ~/.claude/skills/content-moderation-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/content-moderation-gate` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/content-moderation-gate` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/content-moderation-gate &&
cp -R "$tmp/skills/content-moderation-gate" ~/.agents/skills/content-moderation-gate &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/content-moderation-gate` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/content-moderation-gate` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/content-moderation-gate &&
cp -R "$tmp/skills/content-moderation-gate" ~/.cursor/skills/content-moderation-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/content-moderation-gate` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mrmps/classifier-dev.git --path skills/content-moderation-gate
```

Or copy the folder to `~/.gemini/skills/content-moderation-gate` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/content-moderation-gate`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/content-moderation-gate &&
cp -R "$tmp/skills/content-moderation-gate" ~/.copilot/skills/content-moderation-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/content-moderation-gate` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mrmps/classifier-dev.git
```

Then copy `classifier-dev/skills/content-moderation-gate` into your agent's skills folder as `content-moderation-gate`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Content moderation gate need to run?

It calls the classifier.dev HTTP endpoint with a policy.json file, and the examples use curl and jq. Access to that API is required.

### Does Content moderation gate publish or remove posts by itself?

It defines the decision bands and hard-block rules, but the decisions are applied by your own product code. The skill says it gates publication and does not replace reporting, appeals or policy ownership.

### Why gate on scores instead of labels?

The labels array only includes categories at 0.7 and above, so a borderline post can show no labels while still scoring in the human review band. The skill recommends reading the full scores array.

### Does Content moderation gate handle images or links?

No. The skill states it reads text only and is not for images, audio, video or links, nor for legal determinations or age verification.

### How do I install Content moderation gate in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/content-moderation-gate to use it in all your projects, or to .claude/skills/content-moderation-gate in one project.

### Does Content moderation gate run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Content moderation gate?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Content moderation gate?

The closest alternatives to Content moderation gate are Prompt injection guard, Nemotron policy generator, Security model, Agent governance and Content security policy.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Prompt injection guard](https://ai-powered.com/skills/prompt-injection-guard): Prompt injection guard is an open-source agent skill for security.
- [Nemotron policy generator](https://ai-powered.com/skills/nemotron-policy-generator): Nemotron policy generator is an open-source agent skill for security.
- [Security model](https://ai-powered.com/skills/security-model): Security model is an open-source agent skill for security.
- [Agent governance](https://ai-powered.com/skills/agent-governance): Agent governance is an open-source agent skill for ai models and llm tooling.
- [Content security policy](https://ai-powered.com/skills/content-security-policy): Content security policy is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security is an open-source agent skill for security.
- [Tool call permission gate](https://ai-powered.com/skills/tool-call-permission-gate): Tool call permission gate is an open-source agent skill for security.
- [Vibe publication leak guard](https://ai-powered.com/skills/vibe-publication-leak-guard): Vibe publication leak guard is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/content-moderation-gate
