moderation-api-setup skill teaches your coding agent how to add Moderation API to an existing app. It follows the Agent Skills format, so it works with Claude Code, Cursor, Codex and other agents that read skills.
Install
Set up Moderation API in this app.
What it does
The skill works in this order, and asks you before each change:- Check. Runs
modapi doctor, asks you to sign in if needed, and looks for an existing integration. - Plan. Finds every place where users create content: messages, posts, comments, profiles, uploads. It proposes a channel for each kind of content and what to do on
reviewandreject, and waits for your approval. - Project. Links your project or creates a new one with
modapi init, and creates the channels. Your keys go to your env file, never into the chat. - Code. Adds one moderation helper on your server and calls it from each place in the plan. It sends
authorId,conversationIdandcontentId, so moderators get context and webhooks find the record. - Result. Acts on
recommendation.action, saves masked text when the API masks contact details, and fails open when the API is not reachable. - Webhooks. Adds a route that verifies the signature and acts on decisions that moderators make later.
- Verify. Checks the code against a list of common mistakes, runs
modapi doctor, and sends a test.
Shadow mode
The skill asks if you want to start in shadow mode. In shadow mode, Moderation API analyzes all content, and the dashboard and review queue show the real results, but every API response saysallow. Your users see no change while you check the results.
When you trust the results, switch shadow mode off. No code change is needed: