Interactive wizard to configure platform connections, API keys, and
dependencies for media-agent. Detects available tools, walks through
setup for each platform, tests connections, and writes config files.
Run this before any other media-agent skill.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Interactive wizard to configure platform connections, API keys, and
dependencies for media-agent. Detects available tools, walks through
setup for each platform, tests connections, and writes config files.
Run this before any other media-agent skill.
Configure your media-agent installation. This skill detects available tools,
walks you through API key setup for each platform, tests connections, and
writes the config files.
Prerequisites
Before starting, read the shared library files:
Read lib/adapter-discovery.md for how adapters work
Ask the user if they want to set up their personal writing style.
Use AskUserQuestion:
"Want to set up your writing voice? This helps the system match your personal style instead of sounding like AI."
A) Yes, paste writing samples
B) Yes, describe my style manually
C) Skip for now
Option A: Writing samples
Ask the user to paste 2-3 paragraphs of their own writing (blog posts, READMEs, tweets, etc.).
Use AskUserQuestion:
"Paste a writing sample — anything you've written that sounds like you. Blog post, README, email, tweet thread, 公众号文章 — all work. (Paste one now, I'll ask for more after.)"
Collect 1-3 samples. For each, extract voice traits:
Language patterns (e.g., uses rhetorical questions, starts with anecdotes, uses 口语化 Chinese)
Show the extracted traits to the user for confirmation:
Based on your samples, here's your voice profile:
sentence_length: short
vocabulary: conversational
humor: dry
perspective: first_person
formality: informal
Does this look right? I can adjust any of these.
Option B: Manual style description
Use AskUserQuestion to walk through each trait:
"How long are your typical sentences?" (short and punchy / medium / long and flowing)
Tell the user:
"Voice profile saved. The writing skills will match this style automatically. You can update it anytime by editing content/config/voice.yaml or running /media-setup again."
Step 6: Write Config Files
Write credentials to .env (gitignored):
cat > .env << EOF
# Generated by /media-setup on $(date -u +%Y-%m-%dT%H:%M:%SZ)
DEVTO_API_KEY=<value>
HASHNODE_API_KEY=<value>
HASHNODE_PUBLICATION_ID=<value>
OPENAI_API_KEY=<value>
EOFchmod 600 .env
Write platform config to content/config/platforms.yaml (non-sensitive, git-tracked):
# Generated by /media-setupgithub_pages:repo_path:"<path>"branch:"<branch>"site_url:"<url>"posts_dir:"<dir>"platforms:-devto-hashnode-github-pages
Step 7: Configure git-lfs (Optional)
If the user expects to publish many posts with images:
which git-lfs >/dev/null 2>&1 && echo"[OK] git-lfs available" || echo"[INFO] git-lfs not installed — recommended for repos with >50 posts"
=== media-agent configured! ===
Platforms:
[OK] GitHub Pages → https://username.github.io
[OK] Dev.to → connected as @username
[OK] Hashnode → connected to publication xyz
Image generation:
[OK] OpenAI DALL-E 3
Writing voice:
[OK] Voice profile configured (informal, conversational, first person)
Next steps:
- Run /media-idea to brainstorm your first post
- Run /media to start the full guided workflow
- Or write markdown manually and use /media-publish