agentleFS
Minara-AIMinara-AI/media-agent/skills/media-write/SKILL.md

media-write

Skill7 starsChanged 8 months agoMITView on GitHub

Guided co-creation writing skill. Interviews the user, drafts content section by section, generates platform-specific variants from shared source. Creates the content manifest. Works with a brief from /media-idea or accepts freeform input.

The file

Show its rules and text

We split this skill into the rules it gives an agent

27 rules. About 0 are common, 10 are distinctive, and 17 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 17

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write content collaboratively, then generate platform-specific variants.

    line 20
  2. Distinctive:

    Before starting, read these shared library files:

    line 24
  3. Very specific:

    Read lib/adapter-discovery.md for adapter format.md location

    line 25
  4. Very specific:

    Read lib/manifest-ops.md for manifest creation

    line 26
  5. Very specific:

    Read lib/humanize.md for de-AI writing rules (MUST read before any writing)

    line 27
  6. Very specific:

    Check if a brief exists from /media-idea:

    line 31
  7. Distinctive:

    If a brief exists, read it and show the user:

    line 36
  8. Distinctive:

    If no brief exists, ask the user via AskUserQuestion:

    line 39
  9. Distinctive:

    Use AskUserQuestion: "How does this section look?"

    line 65
  10. Very specific:

    The file is the source of truth: All approved content lives in source.md.

    line 73
  11. Very specific:

    Apply lib/humanize.md rules from the start: Do not draft in AI-speak and fix later.

    line 78
  12. Very specific:

    Write in the user's voice (if brand voice is configured in content/config/voice.yaml, read it first)

    line 79
  13. Distinctive:

    Use clear headers (## for sections, ### for subsections)

    line 81
  14. Distinctive:

    Keep paragraphs concise (3-5 sentences)

    line 82
  15. Very specific:

    Add image placeholders where visuals would help: !description

    line 83
  16. Very specific:

    Avoid the 29 AI patterns listed in lib/humanize.md — no significance inflation, no AI vocabulary, no filler phrases

    line 84
  17. Distinctive:

    After the user approves the full draft, run a dedicated de-AI pass before generating variants.

    line 98
  18. Very specific:

    Read the complete source.md.

    line 103
  19. Very specific:

    Read the adapter's format.md:

    line 131
  20. Distinctive:

    Add platform-specific elements (canonical URL, tags, etc.)

    line 140
  21. Very specific:

    Write the variant to <post_dir>/variants/<name>.md

    line 142
  22. Very specific:

    Create manifest.yaml following the format in lib/manifest-ops.md:

    line 146
  23. Very specific:

    Use the atomic write pattern from lib/manifest-ops.md.

    line 167
  24. Very specific:

    When invoked with --update flag or on a post that already has source.md:

    line 187
  25. Very specific:

    Read the existing source.md and manifest.yaml

    line 189
  26. Distinctive:

    Ask what the user wants to change

    line 190
  27. Very specific:

    Do NOT overwrite variants with status published unless the user explicitly confirms

    line 194

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

/media-write — Guided Writing & Variant Generation

Write content collaboratively, then generate platform-specific variants.

Prerequisites

Before starting, read these shared library files:

  • Read lib/adapter-discovery.md for adapter format.md location
  • Read lib/manifest-ops.md for manifest creation
  • Read lib/humanize.md for de-AI writing rules (MUST read before any writing)

Step 1: Get the Brief

Check if a brief exists from /media-idea:

ls -t content/posts/*/brief.yaml 2>/dev/null | head -1

If a brief exists, read it and show the user:

  • Topic, angle, outline, target platforms

If no brief exists, ask the user via AskUserQuestion:

  1. "What do you want to write about?"
  2. "Who is the audience?" (developers, beginners, specific community)
  3. "Which platforms should we target?" (show configured platforms)

Step 2: Create Post Directory

SLUG=$(echo "<title>" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//' | sed 's/-$//')
DATE=$(date +%Y-%m-%d)
POST_DIR="content/posts/${DATE}-${SLUG}"
mkdir -p "$POST_DIR/assets" "$POST_DIR/variants"

Step 3: Guided Section-by-Section Writing

Work through the article section by section:

Interaction model

  1. Propose an outline based on the brief/topic. Use AskUserQuestion: "Here's my proposed outline for '<title>'. Approve or suggest changes?" Show 4-7 sections with one-line descriptions.
  2. For each section:
    • Propose the section content in chat (2-4 paragraphs)
    • Use AskUserQuestion: "How does this section look?"
      • A) Approve — move to next section
      • B) Shorter / more concise
      • C) More technical / add code examples
      • D) Different angle (provide feedback)
    • On approval, append the section to source.md using the Write or Edit tool
    • User can say "go back to section N" to revise earlier sections
  3. The file is the source of truth. All approved content lives in source.md. Chat is the collaboration channel for drafting and feedback.

Writing guidelines

  • Apply lib/humanize.md rules from the start. Do not draft in AI-speak and fix later.
  • Write in the user's voice (if brand voice is configured in content/config/voice.yaml, read it first)
  • Include code examples where relevant for a developer audience
  • Use clear headers (## for sections, ### for subsections)
  • Keep paragraphs concise (3-5 sentences)
  • Add image placeholders where visuals would help: ![description](assets/placeholder.png)
  • Avoid the 29 AI patterns listed in lib/humanize.md — no significance inflation, no AI vocabulary, no filler phrases
  • For Chinese content, follow the 中文去AI味 section: use 口语化 tone, avoid 成语堆砌, add personal perspective

Step 4: Finalize Source

Once all sections are approved, read the complete source.md back to confirm.

Use AskUserQuestion: "Here's the complete article. Ready to generate platform variants?"

  • A) Yes, generate variants
  • B) I want to edit more (specify which section)

Step 5: Humanization Audit

After the user approves the full draft, run a dedicated de-AI pass before generating variants.

Process

  1. Re-read lib/humanize.md to refresh the pattern list.
  2. Read the complete source.md.
  3. Scan for each of the 29 AI writing patterns. For Chinese content, also apply the 中文去AI味 checks.
  4. For each flagged passage, rewrite it following the "Fix" column in the pattern table.
  5. Show the user a summary of changes:
    Humanization audit — <N> patterns found and fixed:
      - Section 2: removed significance inflation ("pivotal moment" → "useful")
      - Section 4: replaced AI vocabulary ("leverage" → "use")
      - Section 5: removed filler phrase ("It's worth noting that")
  6. Use AskUserQuestion: "Here are the humanization edits. Accept all, or review individually?"
    • A) Accept all
    • B) Review each change
    • C) Skip humanization (keep original)
  7. Apply accepted changes to source.md.

Voice calibration (optional)

If content/config/voice.yaml exists:

  • Compare the draft against the user's writing samples
  • Adjust sentence length, vocabulary level, and tone to match
  • Voice.yaml traits take priority over generic humanization rules

Step 6: Generate Platform Variants

For each configured platform adapter:

  1. Read the adapter's format.md:
    cat adapters/<name>/format.md
  2. Following the adaptation rules in format.md, generate the variant from source.md:
    • Apply frontmatter template
    • Adapt content structure (length, tone, format)
    • Convert image paths as needed
    • Add platform-specific elements (canonical URL, tags, etc.)
  3. Write the variant to <post_dir>/variants/<name>.md

Step 7: Create Manifest

Create manifest.yaml following the format in lib/manifest-ops.md:

title: "<title>"
created: <ISO 8601 now>
updated: <ISO 8601 now>
source: source.md
tags: [<from brief or article>]
language: en
canonical_url: ""

assets: []

variants:
  <for each adapter>:
    file: variants/<name>.md
    format: <from adapter.yaml content_format>
    status: draft
    error: null

Use the atomic write pattern from lib/manifest-ops.md.

Step 8: Summary

Article written and variants generated:

  source.md — <word count> words
  variants/devto.md — Dev.to format (draft)
  variants/hashnode.md — Hashnode format (draft)
  variants/github-pages.md — GitHub Pages format (draft)

Next steps:
  - Run /media-image to generate illustrations
  - Run /media-publish to publish to all platforms
  - Or run /media-publish --dry-run to preview first

Updating Existing Content

When invoked with --update flag or on a post that already has source.md:

  1. Read the existing source.md and manifest.yaml
  2. Ask what the user wants to change
  3. Edit the relevant sections
  4. Regenerate ONLY the variant files (re-read each adapter's format.md and re-adapt)
  5. Reset variant statuses to draft for regenerated variants
  6. Do NOT overwrite variants with status published unless the user explicitly confirms

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.