Overview
Use Claude Code to build a small site where visitors post short anonymous notes about AI, held for a moderator, with a scripted claude -p pass that flags posts and suggests topic groups.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Prerequisites
- Claude Code, a hosting service and database of your choice, and someone available to moderate pending notes.
How It Works
Describe the site to Claude Code in plain language: a single page where visitors submit a short anonymous note about what they hope or fear from AI, with no accounts, no names and no stored IP addresses, and a wall that shows only approved notes. Ask it to plan the approach first, then build the submission form, a database table with a pending, approved or rejected status, and a password-protected moderator page. Next, ask it to write a small script that sends pending notes to claude -p with --output-format json and a JSON schema, returning a suggested flag (abusive, personal data, off topic or fine) and a topic label for each note. The moderator reads every suggestion and approves or rejects each note; only approved notes appear on the wall, grouped by topic. Run the tests Claude Code writes, try the form yourself, and deploy only after you have reviewed the code.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Check the prerequisitesClaude Code, a hosting service and database of your choice, and someone available to moderate pending notes.
- Gather your detailsCollect what the prompt asks for: Site name, Maximum note length, Question visitors answer.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Build a moderated anonymous note wall
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Plan, then build, a small web app called [Site name] where visitors submit an anonymous note of up to [Maximum note length] characters answering [Question visitors answer]. Store no names or IP addresses. New notes start as pending. Add a password-protected moderator page to approve or reject notes, and show only approved notes on the public wall, grouped by topic. Write a script that sends pending notes to claude -p with a JSON schema and returns a suggested flag and topic label for each note; the script must never approve or publish a note. Write tests and show me the plan before you start coding.Keep a person approving every note before it appears on the wall; the claude -p script only suggests a flag and a topic label. Review the code and test the form before you deploy.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Claude Code overview says you can describe what you want in plain language and that it plans the approach, writes the code across multiple files and verifies it works. The headless page shows claude -p running non-interactively and returning output that conforms to a JSON schema with --json-schema. The pages say nothing about moderation quality or topic grouping, so a person reviews every note before it is published.
Limitations and Considerations
Keep the human approval step from the steps above, add rate limits, and check the privacy rules that apply where you host it. Each claude -p call has a cost; with --output-format json the response includes an estimated total_cost_usd, which can differ from your actual bill. Choose hosting and a database yourself and review the generated code before deploying. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Claude Code helps you build features, fix bugs, and automate development tasks.
- You describe what you want in plain language, and Claude Code plans the approach, writes the code across multiple files, and verifies it works.
- Run Claude Code programmatically - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Adding -p to a claude command runs it non-interactively.
- With --output-format json and --json-schema, the structured output conforming to the schema is returned in the structured_output field.
- With --output-format json the response includes total_cost_usd, a client-side estimate that can differ from your actual bill.

