agentleFS
chellehonikerchellehoniker/claude-code-storytelleros/skills/wordpress-media/SKILL.md

wordpress-media

Skill1 starsChanged 12 days agoMITView on GitHub

Use when the user wants to upload, list, or manage images on their connected WordPress site, or set a featured image on a post or page. Triggers on "upload this image to WordPress", "use this as the featured image", "add to my media library", "list my recent uploads".

The file

We split this skill into the rules it gives an agent

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

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the source isn't reachable from the user's WordPress server, pass the bytes directly.

    line 38
  2. Distinctive:

    Do not upload the same file twice if you can reuse an existing one.

    line 64
  3. Very specific:

    Always pass alt text. WordPress sites should have it for accessibility and SEO.

    line 65

≈ “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.

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

WordPress media

Images and files in the connected WordPress site's media library. Most often used as featured images for posts and pages.

Tools

stos_wp_media_list({ page, per_page })
stos_wp_media_get({ id })
stos_wp_media_create({ fields: { url?, data_base64?, filename?, mime?, title?, alt? } })
stos_wp_media_delete({ id })   // no force option over the connector; if WordPress refuses, the author deletes the file in their media library

All tools take an optional penNameId — the user can connect one WordPress site per pen name plus an account default. Omit for the account default; pass a pen name id (from stos_pen_names_list) to act on that pen name's site. When the user has multiple pen names and it's ambiguous which site they mean, ask.

Two upload modes

URL ingest (preferred)

Pass a public URL — WordPress fetches and stores the bytes.

const media = await stos_wp_media_create({
  fields: {
    url: "https://example.com/cover.jpg",
    alt: "Book cover for Demon at Dusk",
  }
});

Inline base64 (firewalled / non-public sources)

When the source isn't reachable from the user's WordPress server, pass the bytes directly.

stos_wp_media_create({
  fields: {
    filename: "cover.jpg",
    mime: "image/jpeg",
    data_base64: "...",     // base64-encoded image bytes
    alt: "Book cover",
    title: "Demon at Dusk cover",
  }
});

Featured image flow

// 1. Upload
const media = await stos_wp_media_create({ fields: { url: "https://...", alt: "..." } });

// 2. Attach
stos_wp_posts_update({ id: postId, fields: { featured_media: media.id } });

Anti-patterns

  • Do not upload the same file twice if you can reuse an existing one. List first, upload only when nothing matches.
  • Always pass alt text. WordPress sites should have it for accessibility and SEO.

Composes well with

  • wordpress-posts, wordpress-pages, wordpress-products — anywhere a featured_media ID is needed
  • blog-post-and-newsletter — generates an image and uploads it as part of the pipeline

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.