Publish a Wriai article to the website's CMS, submit it to Google Indexing and share it on connected social channels - with a preview and confirmation before every step. Needs Wriai.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Publish?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/boxiboxi-publish)
---
name: publish
description: Publish a Wriai article to the website's CMS, submit it to Google Indexing and share it on connected social channels - with a preview and confirmation before every step. Needs Wriai.
license: MIT
metadata:
author: Wriai
version: 0.2.0
---
<!-- shared: wriai-connection.md, vi-writing-rules.md -->
# Publish, index and share
This skill changes live websites and social accounts. Read `references/wriai-connection.md` first and follow its confirmation rules strictly: **preview, ask, wait for a clear yes, then act.**
## Step 0: tier
Call `wriai_get_account`.
- Free tier: explain that publishing needs Wriai (WordPress, Shopify, Ghost, Haravan, Sapo, custom API and more, plus Google Indexing and 10+ social networks), show the setup hint, and stop. If the user has an article from the `write` skill, remind them it is saved and can be pasted into their CMS by hand.
## Step 1: find the article
- An article ID from the `write` skill (pipeline) or the user: `wriai_get_article_status`. It must be finished (`progress` 100, status not GENERATING/PROCESSING).
- An article written in the chat (Markdown) with no Wriai ID: Wriai can only publish its own articles. Offer to create it through the `write` skill's pipeline, or let the user paste it into the CMS.
## Step 2: prepare
1. `wriai_list_sites` → confirm the target site (the article's site by default).
2. `wriai_get_site_taxonomies` with the site ID → suggest a category that fits the topic. If the list is empty, the CMS default category is used.
3. Last checks: title, meta description, slug, featured image, focus keyword. Fix with `wriai_update_article` (free) only after telling the user.
## Step 3: confirm publishing
Show one preview block and ask:
```
Publish to: example.com (WordPress)
Title: ...
URL slug: /...
Category: ...
Featured image: yes/no
Google Indexing: yes (+500 credits)
Internal links: added automatically
Cost: 500 credits (+500 with indexing)
```
Only on a clear yes: `wriai_publish_article` with `articleId`, `categoryId` if chosen, `autoIndex`, `autoInternalLink: true`.
Report the live `postUrl`, indexing result and credits charged. If it fails, show the error code and the likely fix (`CMS_NOT_CONFIGURED` → connect the CMS in Wriai website settings; `PUBLISH_IN_PROGRESS` → wait and check status; `ARTICLE_NOT_READY` → wait for generation).
## Step 4: indexing for other URLs (optional)
If the user wants other URLs submitted (updated pages, older posts): `wriai_get_indexing_quota` (free) to show remaining daily quota, then confirm the URL list and cost (500 per URL) before `wriai_submit_indexing`.
## Step 5: social (optional)
1. `wriai_list_social_channels`. Show channels with status; skip channels with `ERROR` or `EXPIRED` and say why.
2. Write one post per platform from the article (in the article's language; Vietnamese rules apply):
- Facebook: hook line, 3-5 short lines of value, question or CTA.
- LinkedIn: professional angle, a lesson or data point, 3-5 short paragraphs.
- Threads / Bluesky / Mastodon: under ~450 characters, one idea.
- Telegram / Discord (`community`): short summary with bullets.
- Tumblr / Dev.to / WordPress (`blog`): title + 2-3 paragraph excerpt.
- No invented claims; no absolute claims without proof.
3. Preview all posts with the channel list, the link, image, first-comment setting and cost (500 per channel that posts successfully). Let the user edit.
4. On a clear yes: `wriai_publish_social` with `channelIds`, `contents` keyed by platform (`facebook`, `linkedin`, `threads`, `blog`, `community`…), `url`, `imageUrl` (the article's featured image), `articleId`, `title`.
5. Report each channel's result and post URL. For failed channels, show the error and suggest reconnecting the channel in Wriai > Social.
`wriai_social_history` (free) shows earlier posts if the user asks what was already shared.
## Finish
Summary: live URL, indexing status, social posts with links, total credits used, remaining balance. Suggest checking the page in Search Console in a few days and running `audit` on the new URL.