/colophon-skills:colophon-moderate-mentionsfrom colophon-skills
Review a colophon site's received webmentions for spam/abuse and distill the bad ones into small, general glob rules in the committed blocklist (.colophon/webmention-block.yml), so moderation survives the cache's full regenerate. Use when the user asks to moderate, clean up, or block webmention spam/replies.
Ships in colophon-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Received webmentions are third-party content, so some will be spam or abuse. colophon's
moderation is a declarative, committed blocklist of glob rules over a mention's attributes,
applied at webmention fetch (and again at build). It must be declarative because fetch
fully regenerates the cache each run — editing the generated JSON is pointless, it gets
overwritten. Your job: find the bad mentions and turn them into the smallest, most general
rules that catch them (and their likely siblings) without catching legitimate replies.
The user wants to moderate inbound mentions — "block this spammer", "clean up the replies",
"my webmentions have spam". Not for sending (that's webmention send).
This skill drives the colophon CLI. Before the first command, confirm it's installed:
command -v colophon || echo "colophon not found"
If missing, stop and offer the install — don't install silently:
go install github.com/jmylchreest/colophon/cmd/colophon@latest (or a release binary).
Refresh and inspect the current mentions:
colophon webmention fetch -v # pulls + applies the existing blocklist; writes the cache
Then read .colophon/cache/webmentions/**/*.json — each is {target, mentions: [{type, author{name,url,photo}, url, content, published}]}.
Classify. For each mention decide: keep (genuine reply/like/repost), or block (spam, abuse, link farms, off-topic promotion). When unsure, lean keep and surface it to the user — false positives silence real people.
Distill, don't enumerate. This is the point of the skill: instead of listing every bad URL, find the pattern and write one rule. Prefer, in order:
- "*.spam.example"- author.url: "https://troll.example/*"- content: "*free crypto*"- type: "bookmark"Collapse several individual bad mentions into the fewest rules that cover them. Keep the list small and effective — re-read existing rules and merge rather than append duplicates.
Write the blocklist at .colophon/webmention-block.yml (create if absent). It's a YAML
list; each item is a bare string (matches the author/source domain or author URL) or a
{field: glob} mapping. Fields: domain, url, author.name, author.url, content,
type. Globs use * (any run) and ? (one char), case-insensitive, anchored to the value.
# .colophon/webmention-block.yml — committed; survives fetch's full regenerate
- "*.linkfarm.example"
- author.url: "https://troll.example/*"
- content: "*casino*"
Verify the rules catch what you intended and nothing else:
colophon webmention fetch -v # re-run: the log shows "blocked N"; confirm the count
Spot-check the cache that a legitimate reply you expected to keep is still present.
Commit the blocklist (it's authoritative and must travel with the repo) and publish the refreshed mentions:
git add .colophon/webmention-block.yml
colophon webmention publish --env production --allow-publish # deploys only _mentions/
fetch won't return it. The committed blocklist is the version-controlled,
reproducible path and the right home for anything recurring.live display mode ships the glob rules to the browser for client-side filtering, so a
domain/author.url/content glob works there too; field precision and any future semantic
rules apply server-side only.published date or one-off urls unless truly necessary — those don't
generalise and bloat the list.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jmylchreest/colophon --plugin colophon-skills6 skills in this plugin
/colophon-crosslinkAdd cross-references between colophon posts — wikilinks and "related posts" — so entries connect to each other. Use when the user asks to link posts together, add related/see-also links, or wire up internal references on their colophon blog./colophon-editRevise an existing colophon blog post — retitle, expand a section, tighten, or fix — while preserving the author's voice and the frontmatter contract. Use when the user asks to edit, rewrite, expand, shorten, or fix an existing post on their colophon site./colophon-metadataFill or improve a colophon post's metadata — the description, the seo: block (title/description/keywords/social), tags reusing the site's existing vocabulary, and (rarely) a glossary entry for genuinely obscure jargon. Use when the user asks to add SEO, a summary/description, social copy, tags, or a glossary definition to a post./colophon-publishPreview, validate, and publish a colophon site — run doctor, build, serve a local preview, and deploy to the configured publishers. Use when the user asks to preview, build, check, deploy, or publish their colophon blog./colophon-writeWrite a new blog post (or page) for a colophon site in a chosen author's byline and persona's voice. Use when the user asks to draft, write, or create a new post/article/entry for their colophon blog. colophon supplies the voice context and scaffolds the file; you write the prose.