blog-publish
Skill0 starsChanged 53 days agoMITView on GitHub
Publishing mechanics for blog articles: creating drafts, uploading the reviewed hero/inline/OG images, swapping image placeholders, flipping drafts to published, and recording state — all via the plugin's cms.mjs script. Use when publishing a written article, uploading blog images, listing drafts, or when the user runs /seoblog:publish.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- SwiftyJunnos/skillstheir own version, first seen Nov 1, 2026
- huytieu/COG-second-braintheir own version, first seen Oct 25, 2026
- illsdsd/claude-skillstheir own version, first seen Oct 15, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- huytieu/COG-second-brain★ 1.3ksame name
- SwiftyJunnos/skills★ 1same name
- illsdsd/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- blog-imagesSkill
- humanizeSkill
- seoblog-humanizeSkill
- seoblog-publishSkill
- seoblog-setupSkill
- seo-blogSkill
- seoblog-statusSkill
- seo-researchSkill
- seo-writingSkill
- social-articleSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read runtime instructions before running scripts.
- Very specific: line 15
All remote calls go through cms.mjs (stdout = one JSON line, stderr = progress):
- Distinctive: line 21
Write article/patch JSON to a temp file first — body HTML never goes on argv.
- Very specific: line 77
Verify with cms.mjs get --id <articleId> (articles-api only) and print the live URL.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Read runtime instructions before running scripts.
Blog publishing mechanics
All remote calls go through cms.mjs (stdout = one JSON line, stderr = progress):
node "${SEOBLOG_PLUGIN_ROOT}/scripts/cms.mjs" <list|create|update|get|upload-image> --site <id> …Write article/patch JSON to a temp file first — body HTML never goes on argv.
Images
Counts, cost, prompt craft and the generate → review → fix loop live in the
blog-images skill (gen-image.mjs). Cost is $0.15 per fal call — base
images × $0.15, plus up to imageReviewRounds fix rounds per image. Note the
estimate in your progress output, then proceed — no approval step.
Publish-draft sequence
- Create the draft — write
article.json({title, body, excerpt, author, status: "draft", tags, metaDescription}) to a temp dir, thencms.mjs create --site <id> --file article.json→{id, slug}.statusis ALWAYS "draft" here. - Generate + review images — per blog-images: hero
--purpose hero(16:9), inline--purpose inline(16:9 or 4:3, per placement), og--purpose og(auto-crops to exactly 1200×630). Round files are<slug>-<purpose>.rN.jpg; after the review loop copy the winning round to the canonical kebab-case name<slug>-<purpose>.jpg. - Upload — per image, the canonical file only (never a
.rNor.srcfile — the basename can surface in public URLs):cms.mjs upload-image --site <id> --id <articleId> --file <slug>-<purpose>.jpg --purpose <p> --alt "…"→{imageUrl, path}. Alt text is required for hero and inline. - Swap placeholders — build the patched body: replace each
<!-- IMAGE: … -->with<img src="<path>" alt="…" />, matching each image to the most relevant placeholder. Use the returnedpathverbatim — the server decides its form: root-relative on Postgres-backed sites, an absolute CDN URL on object-storage-backed sites and Shopify. The hero and OG images are NOT inserted into the body — the site renders them from their purpose slots. Thencms.mjs update --site <id> --id <articleId> --file patch.jsonwith{"body": "…"}. If images were skipped, strip the placeholder comments the same way. - Record state — update
~/.config/seoblog/state/<siteId>.json: append to articleHistory ({id, slug, title, keywords, status: "draft", wordCount, createdAt}), mark the run's keywords "completed" with the articleId, set lastRunAt.
Publish flip (/seoblog:publish)
The write flow ends at draft + report and never asks about publishing; the flip only happens via /seoblog:publish or when the user's prompt explicitly said to publish.
- List drafts:
cms.mjs list --site <id> --status draft --exclude-assets.--exclude-assetshides SocialCue image-holder drafts (slugsc-assets-*, tagsocialcue-assets, created by /seoblog:socialcue to host post images). Never flip one of those: if a named target is an asset holder, refuse and explain that it is image storage for a SocialCue post. - Show the user title and live-URL-to-be (
<baseUrl>/blog/<slug>). Previewing drafts is the site's job, not this plugin's — point the user at whatever their site provides (e.g. plugmyplugin.com shows drafts at the live URL to signed-in admins; WordPress/Shopify have their own draft previews). Never construct a preview URL or put the API key in a URL. - Flip:
cms.mjs update --site <id> --id <articleId> --file patch.jsonwith{"status": "published"}. - Verify with
cms.mjs get --id <articleId>(articles-api only) and print the live URL. Update the article's status in the state file.
Asset-holder drafts (from /seoblog:socialcue)
socialcue.mjs host-images creates one draft per SocialCue post whose only
job is to give that post's images public URLs (the upload endpoint hangs off
an article id). Recognise them by slug prefix sc-assets- or tag
socialcue-assets; always pass --exclude-assets to cms.mjs list in the
blog flows, never publish them, and never count them as blog content.
Per-CMS notes
- articles-api — the generic contract; plugmyplugin.com implements it,
including
purpose=og. - wordpress — same wire contract, served by the Cue Up WordPress plugin (NOT the vanilla WP REST API). Behaves identically to articles-api.
- shopify — native Admin API. Hero = the article's featured image. Inline
and OG uploads land in Shopify Files and return CDN URLs; Shopify has no OG
slot, so mention in the run report that the OG image is in Files and the
theme controls og:image.
getis not supported; verify vialist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

