agentleFS
advisorppc-orgadvisorppc-org/advisorseo-claude-plugin/skills/publish-to-wordpress/SKILL.md

publish-to-wordpress

Skill0 starsChanged 2 months agoMITView on GitHub

Use when an article held in AdvisorSEO should go to a WordPress site — for example "publish that post", "push the draft live", "send the article to WordPress", "stage it as a WordPress draft first", or "is the WordPress connection working". Runs the draft, review, confirm, publish flow, always showing a preview of exactly what would be sent before anything goes live.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not confirm on an implied yes, a general earlier approval, or your own judgement that the article is good.

    line 61
  2. Distinctive:

    If the person asks to skip the preview, do the preview anyway and show it.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Send an approved article to WordPress

This is the one flow that changes a live website. It runs in four beats — draft, review, confirm, publish — and the preview beat is never skipped, never merged into the confirm beat, and never run in the same turn as the confirm without the person answering in between.

1. Find the draft

  • gravity_list_content(site_id=..., status="draft") — the site's articles as metadata only: title, slug, status, word count, SEO score. status filters to draft, approved or published.
  • gravity_list_content(content_id=...) — that single page in full, including its HTML and markdown body. This is the call that gets you the article itself; the list call never returns a body.

2. Review it with the person

Show them the article and its meta fields. Check the obvious things before anything leaves the workspace:

  • The title and meta description read like the business, not like filler.
  • The target keyword is actually used, and not stuffed.
  • Links and claims are real.
  • Nothing in the body is a placeholder.

Fix anything they flag with gravity_save_content(content_id=..., ...) — preview first, then confirm=true. Every edit snapshots the previous body as a version, so a bad edit is recoverable.

3. Mark it approved

WordPress will only accept a page whose status is approved or published.

  • gravity_save_content(content_id=..., status="approved") — preview, then confirm. Approving also stamps the approval time.

4. Preview the publish — always

  • gravity_publish_wordpress(content_id, wp_status="publish") without confirm. This tests the WordPress connection and returns exactly what would be published. It sends nothing.

Show that preview to the person in full. If the connection test fails, stop and report it — the site's WordPress address and stored sign-in details are set on the site record with gravity_update_site, and fixing them is their call, not yours.

5. Publish only on an explicit go-ahead

  • gravity_publish_wordpress(content_id, wp_status="publish", confirm=true) — live on the site.
  • wp_status="draft" instead stages the article inside WordPress for a human to press publish there. When the person is unsure, or it is the first article to this site, offer the WordPress draft route first.

Do not confirm on an implied yes, a general earlier approval, or your own judgement that the article is good. The go-ahead must be for this article, in this turn.

6. Verify

  • gravity_list_content(site_id=..., status="published") — the page should now be listed as published.
  • Report the live URL that came back, and note the publish in what you tell the person.

If the person asks to skip the preview, do the preview anyway and show it. It costs one call and it is the only thing standing between a draft and somebody's live website.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.