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".
In this repository29 other files it gives its agents.
- ads-studioSkill
- blog-post-and-newsletterSkill
- calendarSkill
- chapter-draftingSkill
- character-mergeSkill
- financeSkill
- getting-startedSkill
- manuscript-importSkill
- manuscript-revisionsSkill
- markersSkill
- marketing-studioSkill
- mentionsSkill
- pen-namesSkill
- quick-task-captureSkill
- sales-studioSkill
- social-handoffSkill
- story-bibleSkill
- stos-setupSkill
- tasksSkill
- timelineSkill
- time-trackingSkill
- wordpress-connectSkill
- wordpress-llm-optimizationSkill
- wordpress-pagesSkill
- wordpress-postsSkill
- wordpress-productsSkill
- wordpress-seoSkill
- worldbuilding-mergeSkill
- worldbuildingSkill
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
- Distinctive: line 38
When the source isn't reachable from the user's WordPress server, pass the bytes directly.
- Distinctive: line 64
Do not upload the same file twice if you can reuse an existing one.
- Very specific: line 65
Always pass alt text. WordPress sites should have it for accessibility and SEO.
≈ “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
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 libraryAll 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
alttext. WordPress sites should have it for accessibility and SEO.
Composes well with
wordpress-posts,wordpress-pages,wordpress-products— anywhere afeatured_mediaID is neededblog-post-and-newsletter— generates an image and uploads it as part of the pipeline
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.

