Skip to content
Skill

Content moderation gate

Gates user posts against a written content policy using per-category scores

Content moderation gate is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
440
Last commit
License
MIT
Listing updated

Similar skills

About Content moderation gate

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".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Content moderation gate 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.

More from mrmps/classifier-dev

  1. Sorts many texts into your own labels in one call, with a confidence per answer

    • Open source
    • 440 GitHub stars
    • Developer tools
  2. Lets a browser or desktop agent pick its next action from on-screen elements

    • Open source
    • 440 GitHub stars
    • Browser automation
  3. Sorts each page of a multi-document intake packet by type before extraction

    • Open source
    • 440 GitHub stars
    • Files and documents
  4. Sorts a downloads folder into invoice, receipt and contract folders with an undo log

    • Open source
    • 440 GitHub stars
    • Files and documents
  5. Pre-filters long headline and feed lists against a written brief before reading

    • Open source
    • 440 GitHub stars
    • Files and documents