crier
Cross-post blog content to platforms with the crier MCP tools. Publishes one file (pass its path) or finds what needs cross-posting; holds the canonical rules for rewrites, approval, paste/import platforms, and failure recovery.
- License 许可
- MIT
- 最近更新
- 2026-10-23
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- crier
- description
- Cross-post blog content to platforms with the crier MCP tools. Publishes one file (pass its path) or finds what needs cross-posting; holds the canonical rules for rewrites, approval, paste/import platforms, and failure recovery.
- argument-hint
- [content file, e.g. content/post/my-post/index.md]
03 SKILL.md 正文
Crier Cross-Posting
Crier cross-posts blog content; the blog is the source of truth. Crier's MCP
tools do the mechanics (publish, track, validate); Claude does the judgment
(rewrites, platform voice, asking the user). This skill is the single home for
the rules below: /crier:chronicler and the cross-poster agent follow it.
Arguments: $ARGUMENTS
Workflow
- A file was given: publish that one file (steps 1-5 below).
- No file: run
crier_search(since="1m")andcrier_missing(platforms=<targets>), show what is unposted grouped by post, and ask which post to do. For a date-scoped batch catch-up, use/crier:chroniclerinstead.
- Targets. Call
crier_doctor(). The API targets are the platforms whosestatusis"healthy";manual_modeandimport_modeplatforms are handled by hand (see below); skiperrorplatforms and tell the user to fix their config. Never hardcode a platform list. - Limits. Read the
crier://platformsMCP resource. Per platform it givesmode,max_content_length, andis_short_form. A platform needs a rewrite whenis_short_formis true. Never hardcode limits. - Validate and check status.
crier_check(file, platforms=<targets>)(skip the file on errors) andcrier_article(file)(skip platforms it is already on; "Article not found" means it is on none). - Approve. Draft rewrites for the short-form targets, show the user the plan (platforms, each rewrite with its character count) and get explicit approval. Never publish without it.
- Publish each approved platform with the two-step flow, then report a table of platform, status, URL.
Two-step publish
crier_publish(file, platform)(addrewrite_content=<rewrite>, rewrite_author="claude-code"for short-form) returns apreviewand aconfirmation_token. Ifpreview.already_publishedis true, stop: do not confirm. Checkpreview.unrecorded_publication(see Failures).crier_publish(file, platform, confirmation_token=<token>)executes. The token carries the file, platform, and rewrite; step-2 arguments other than the token are ignored, so the rewrite need not be repeated. Tokens expire after 5 minutes: request a new preview if one does.
dry_run=True is a separate no-side-effects preview with no token; it cannot
start the two-step flow. crier_publish refuses manual and import mode
platforms.
Rewrites (short-form platforms)
- Lead with insight, not summary. Open with the most specific or provocative idea in the article. Read the article first.
- No meta-language. Not "New blog post", "I wrote about", "Check out my latest", "In this article, I explore".
- Never include the URL. Crier appends
\n\n<canonical URL>itself. - Budget for that URL. The limit applies to rewrite plus URL, so the budget
is
max_content_length - (len(canonical_url) + 2). The step-1 preview'sbody_lengthis the rewrite's length: check it against the budget before confirming. A rewrite over the raw limit fails at preview; one that only overflows once the URL is added fails at the confirmed publish. - Not generic. If it could describe any article or just restates the title, rewrite it.
Platform voice: Bluesky is conversational and personal, one punch. Mastodon is slightly more formal and technical, and can carry more nuance. Twitter is Bluesky with less room.
Good example. Article: "pagevault: Hiding an Encryption Platform Inside HTML". Bluesky: "What if a single HTML file could encrypt anything you drop into it? No backend, no JS libraries. Just the browser's Web Crypto API and some careful engineering."
Manual (paste) and import platforms
These are never published by a tool call, and never recorded until the user says the post exists.
- Manual mode (
crier_doctorstatusmanual_mode): write the rewrite (budget as above), then show the user the exact text to paste: the rewrite, a blank line, and the canonical URL. Ask them to post it and give you the post URL. - Import mode (
import_mode, typically Medium): give the user the canonical URL to import on the platform, and ask for the resulting post URL.
Only after the user confirms it is posted, record it:
crier_record(title, platform, platform_id="manual", # "import" for import mode
url=<post url>, canonical_url=<canonical>, source_file=<file>,
rewritten=True, rewrite_author="claude-code", posted_content=<rewrite>)
platform_id must be set (crier counts a publication only when it has one);
omit the three rewrite fields for an import. Never use the CLI's --yes: it
records a manual post as done before anything was posted.
Failures
A failed crier_publish comes in three shapes:
{"error": "..."}at step 1 (validation: rewrite too long, mode, missing key, unreadable receipt): nothing was sent. Fix the cause and preview again.{"error": "Publish failed: ..."}at step 2: nothing reached the platform. Retry after fixing the cause (auth, length, rate limit). For a short-form platform, retry with the same approvedrewrite_content.{"error": "Published remotely but registry recording failed: ...", "remote_published": true, "article_id": ..., "url": ...}: the post IS live; only the registry write failed, and crier saved a recovery receipt. Request a fresh preview: ifunrecorded_publicationis set, confirming records the live post from the receipt (result"recovered": true) without reposting. If it is null, do NOT confirm (short-form platforms have no update path, so a confirm would double-post); instead callcrier_record(title, platform, platform_id=<article_id>, url=<url>, canonical_url=<canonical>, source_file=<file>), plusrewritten=True, rewrite_author="claude-code", posted_content=<rewrite>for a short-form post. Count it as published.
Retrying old failures. List them with crier_failures(). Retry short-form
failures through crier_publish with a rewrite (write a new one and get it
approved if the original is gone): the MCP path checks the recovery receipt
before any remote write. The CLI crier audit --retry (preview with
--dry-run) also checks receipts, but it retries every recorded failure and
re-publishes WITHOUT any rewrite, so a short-form failure would post crier's
generic title-and-description text. Use it only when every remaining failure is
on a long-form platform.
Bulk work and agents
Agents cannot ask the user anything (Claude Code removes AskUserQuestion from subagents), so asking happens in the main session.
- cross-poster: for many publishes. Get approval for the exact posts,
platforms, and rewrites FIRST, then pass that scope (with the rewrites) in the
launch prompt. It publishes exactly that and returns anything else under
## Decisions Needed; put those to the user with AskUserQuestion. - auditor: read-only analysis (gaps, performance, staleness, failures). It
ends with a numbered recommendations menu; present it and act on the answer.
When it recommends drift repair, run
crier_reconcile()(dry-run) here, show theuntracked_liveandgone_from_platformbuckets, and only callcrier_reconcile(apply=True)after the user approves.
Platform notes
- Dev.to sanitizes tags: lowercase, alphanumeric only (no hyphens), max 4.
- Medium is usually import mode; check
crier_doctorrather than assuming.
04 同仓库更多 Skills
worldsmith-methodology
Use when working in a project with a worldbuilding documentation ecosystem (docs/ or lore/ directory). Provides the documentation-first methodology: canonical hierarchy, doc roles (timeline, lore, characters, systems), propagation discipline, and the dual canonical and exploratory workflow.
prose-craft
Use when writing fiction, editing fiction prose, reviewing chapters, or drafting scenes. Covers prose craft, dialogue mechanics, scene structure, and common failure modes in AI-assisted fiction. Trigger phrases: "write fiction", "edit chapter", "prose review", "scene draft", "dialogue check", "fiction craft", "edit this scene", "review my prose".
vista
This skill should be used when the user asks about research directions, open problems, future work, or follow-up research from the academic literature. Trigger phrases include "open problems in X", "what's next for Y", "future work for paper Z", "research directions on T", "salient follow-up research", "what should I work on next in", "find me follow-up research unrelated to my prior work", "broad survey of W", "neglected directions in V". Routes the request to the right Vista MCP tool, reads back the structured paper sections, and synthesizes research directions in the conversation.
synthesize
Make a research-agent run conclude and write synthesis.md (outcome, key findings, failed approaches, open questions, recommendations). Signals a live researcher to wrap up, or launches one in synthesis mode when none is running. Use when results are good enough or the agent is stalling.
status
Show the current state of a research-agent run from .research/: liveness, cycles and budget, sub-problem and hypothesis statuses, eval trend, current focus, and branches. Read-only.
resume
Resume an interrupted research-agent run from .research/. Re-launches the researcher to reload its structured state and continue from the current focus, optionally on a named branch or with a new budget. Use after a session restart, crash, or explicit pause.