media-agent
CLAUDE.md6 starsChanged 8 months agoMITView on GitHub
Open-source Claude Code skill pack for developer content creation and multi-platform publishing. A set of Claude Code skills that let developers write content once and publish to multiple platforms with intelligent per-platform adaptation. Write in conversation, publish everywhere. v1.0 (ready): GitHub Pages (git push), Dev.to (API key), Hashnode (API key + GraphQL) v1.1 (skeleton included): Twitter/X (API v2 thread), 微信公众号 (WeChat MP API, HTML) v2 (planned): 小红书, 知乎, Medium All content passes through a humanization layer defined in lib/humanize.md: -…
- Reads credentials
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 34
Sub-skills: must read lib/*.md partials at the start before proceeding
- Very specific: line 47
All content passes through a humanization layer defined in lib/humanize.md:
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
media-agent
Open-source Claude Code skill pack for developer content creation and multi-platform publishing.
What this is
A set of Claude Code skills that let developers write content once and publish to multiple platforms with intelligent per-platform adaptation. Write in conversation, publish everywhere.
Architecture
skills/— Claude Code skills (SKILL.md format)lib/— Shared markdown partials that skills read at runtime via the Read tooladapters/— Platform adapters (adapter.yaml + format.md + publish.sh per platform)content/— User's content (posts, config, assets)test/— Adapter contract validation and manifest tests
Skills
| Skill | Purpose |
/media | Master orchestrator — full guided workflow |
/media-setup | Configure platform connections and API keys |
/media-idea | Brainstorm topics, outlines, hooks |
/media-write | Guided co-creation writing + variant generation |
/media-image | Generate and resize images for each platform |
/media-publish | Publish to all configured platforms |
Key conventions
- Credentials live in
.env(gitignored), never inplatforms.yaml - Manifest (
manifest.yaml) tracks publish status per platform. Always validate after writing. Use atomic writes (write to .tmp, then mv). - Adapters are self-contained directories. Each has 3 files:
adapter.yaml,format.md,publish.sh - publish.sh is invoked with env var isolation: only the declared
auth_env_varis passed - Sub-skills must read
lib/*.mdpartials at the start before proceeding - Orchestrator (
/media) is a thin sequencer (~500 lines). Sub-skills are the canonical implementations.
Platform adapters
v1.0 (ready): GitHub Pages (git push), Dev.to (API key), Hashnode (API key + GraphQL)
v1.1 (skeleton included): Twitter/X (API v2 thread), 微信公众号 (WeChat MP API, HTML)
v2 (planned): 小红书, 知乎, Medium
Humanization (de-AI writing)
All content passes through a humanization layer defined in lib/humanize.md:
- 29 AI writing patterns detected and rewritten (based on Wikipedia's WikiProject AI Cleanup)
- Chinese-specific de-AI rules (去AI味): anti-成语堆砌, 口语化, structural de-rigidification
- Voice calibration via
content/config/voice.yaml— provide writing samples to match personal style - Applied during drafting (rules active while writing) and as a dedicated audit pass before variant generation
Image generation
Configurable backend via IMAGE_PROVIDER in .env:
openai(default) — GPT Image, general-purposeflux— Replicate Flux 2, best photorealismideogram— Ideogram v3, best text-in-image accuracy
Diagrams use excalidraw-skill (hand-drawn style).
Running tests
bash test/validate-adapters.sh
bash test/manifest-roundtrip.shDoes 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.

