multi-model-writer
Unified writing system with intelligent model routing. Default: Claude. Options: GLM-4.7 (cheapest), GPT-4o/mini, Gemini, Grok. Includes browser automation for web interfaces. Cost-aware routing based on task complexity.
What this skill does
# Multi-Model Writer
Intelligent model routing for all writing tasks. **Default is Claude** (you), with fallback to other models when requested or when specific capabilities are needed.
---
## Model Arsenal
```
┌─────────────────────────────────────────────────────────────────────────┐
│ MULTI-MODEL WRITING SYSTEM │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────────┐ │
│ │ DEFAULT │ │
│ │ Claude │ ← All writing goes here first │
│ │ (You) │ Best quality, medical accuracy │
│ └───────┬────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ ALTERNATIVE MODELS │ │
│ ├──────────────┬──────────────┬──────────────┬──────────────────┤ │
│ │ GLM-4.7 │ GPT-4o │ Gemini │ Grok │ │
│ │ $0.10/M │ $10/M │ FREE tier │ $15/M │ │
│ │ Bulk drafts │ Quality │ 1500/day │ Real-time │ │
│ │ Comparison │ Editorial │ Research │ X/Twitter │ │
│ └──────────────┴──────────────┴──────────────┴──────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ BROWSER AUTOMATION │ │
│ │ ChatGPT Web │ Gemini Web │ Uses your Pro subscriptions │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────┘
```
---
## When to Use Which Model
### Claude (DEFAULT) - Use for Everything
- All medical/cardiology content
- YouTube scripts (Hinglish)
- Twitter/X content (English)
- Editorials and newsletters
- Anything requiring accuracy
### GLM-4.7 (Z.AI) - Bulk & Comparison
**Cost:** $0.10/M tokens (100x cheaper than Claude)
**Use when:**
- Generating multiple draft variations
- A/B testing content angles
- Bulk social media post generation
- First drafts for quick iteration
- Cost is a primary concern
```
/write-glm "Generate 5 different hooks for a video about statin myths"
```
### GPT-4o / GPT-4o-mini - Quality Alternative
**Cost:** $0.60/M (mini) or $10/M (4o)
**Use when:**
- You want to compare Claude vs GPT style
- Specific OpenAI capabilities needed
- User explicitly requests "GPT style"
```
/write-gpt "Write an editorial on SGLT2 inhibitors" --model=4o-mini
```
### Gemini - Research & Free Tier
**Cost:** FREE (1500 requests/day via AI Studio)
**Use when:**
- Web research integration
- Fact-checking
- You want Google's knowledge
- Budget is zero
```
/write-gemini "Summarize recent GLP-1 agonist research"
```
### Grok (xAI) - Real-time & X/Twitter
**Cost:** $15/M tokens (expensive)
**Use when:**
- Real-time X/Twitter trends
- Content specifically for X platform
- You want Grok's "unfiltered" style
```
/write-grok "What's trending in cardiology on X right now?"
```
---
## API Configuration
All APIs are configured in `.env`:
```bash
# Check which APIs are configured
cat .env | grep -E "API_KEY|_KEY"
```
### Required Environment Variables
| Variable | Model | Get From |
|----------|-------|----------|
| `ANTHROPIC_API_KEY` | Claude | console.anthropic.com |
| `ZAI_API_KEY` | GLM-4.7 | z.ai |
| `OPENAI_API_KEY` | GPT-4o | platform.openai.com |
| `GOOGLE_API_KEY` | Gemini | aistudio.google.com (FREE) |
| `XAI_API_KEY` | Grok | console.x.ai |
---
## Python Integration
### Direct API Calls
```python
from multi_model_writer import ModelRouter
router = ModelRouter()
# Default (Claude via current session)
response = router.write("Your prompt here")
# Specific model
response = router.write("Your prompt", model="glm-4.7")
response = router.write("Your prompt", model="gpt-4o-mini")
response = router.write("Your prompt", model="gemini")
response = router.write("Your prompt", model="grok")
# Cost-optimized (auto-selects cheapest)
response = router.write("Your prompt", optimize="cost")
# Quality-optimized (auto-selects best for task)
response = router.write("Your prompt", optimize="quality")
```
### Batch Comparison
```python
# Generate same content across multiple models for comparison
results = router.compare(
prompt="Write a tweet about the EMPEROR-Preserved trial",
models=["claude", "glm-4.7", "gpt-4o-mini"]
)
for model, output in results.items():
print(f"\n=== {model} ===")
print(output)
```
---
## Browser Automation (Web Interfaces)
For using your ChatGPT Plus and Gemini Advanced subscriptions:
### Setup
```bash
# Ensure Playwright is installed
pip install playwright
playwright install chromium
```
### Usage
See `browser-automation` skill for detailed instructions.
```
/browser-chat "Your prompt" --target=chatgpt
/browser-chat "Your prompt" --target=gemini
```
---
## Cost Tracking
### Per-Task Estimates
| Task | Tokens | GLM-4.7 | GPT-4o-mini | GPT-4o | Claude |
|------|--------|---------|-------------|--------|--------|
| Tweet | 200 | $0.00004 | $0.00012 | $0.002 | $0.003 |
| Thread (10 tweets) | 2,000 | $0.0004 | $0.0012 | $0.02 | $0.03 |
| Article (1500 words) | 2,500 | $0.0005 | $0.0015 | $0.025 | $0.0375 |
| YouTube Script | 8,000 | $0.0016 | $0.0048 | $0.08 | $0.12 |
| Newsletter | 5,000 | $0.001 | $0.003 | $0.05 | $0.075 |
### Monthly Budget Planning
With $5/month on each:
| Model | Monthly Output |
|-------|----------------|
| GLM-4.7 | ~20,000 articles |
| GPT-4o-mini | ~3,300 articles |
| GPT-4o | ~200 articles |
| Grok | ~130 articles |
| Gemini | UNLIMITED (free tier) |
---
## Slash Commands
| Command | Action |
|---------|--------|
| `/write [prompt]` | Write with Claude (default) |
| `/write-glm [prompt]` | Write with GLM-4.7 |
| `/write-gpt [prompt]` | Write with GPT-4o-mini |
| `/write-gemini [prompt]` | Write with Gemini |
| `/write-grok [prompt]` | Write with Grok |
| `/compare [prompt]` | Compare outputs across models |
| `/browser-chat [prompt]` | Use browser automation |
---
## Workflow Examples
### 1. Draft Iteration (Cost-Optimized)
```
Step 1: Generate 5 hook variations with GLM-4.7 ($0.001)
Step 2: Pick best 2, refine with Claude (default)
Step 3: Final polish with Claude
```
### 2. Quality Comparison
```
Step 1: Write same content with Claude, GPT-4o, GLM-4.7
Step 2: Compare outputs side-by-side
Step 3: Learn which model suits which content type
```
### 3. Bulk Social Media
```
Step 1: Generate 50 tweet variations with GLM-4.7 ($0.001)
Step 2: Filter top 10 manually
Step 3: Polish top 3 with Claude
Step 4: Schedule via your social tools
```
---
## Model Characteristics
### Writing Style Comparison
| Model | Style | Best For |
|-------|-------|----------|
| **Claude** | Precise, nuanced, follows instructions exactly | Medical content, accuracy-critical |
| **GLM-4.7** | Efficient, code-oriented, concise | Bulk generation, structured content |
| **GPT-4o** | Conversational, creative, verbose | Editorials, storytelling |
| **Gemini** | Research-integrated, factual | Summaries, fact-based content |
| **Grok** | Direct, irreverent, real-time aware | Twitter/X content, trending topics |
---
## Integration with Existing Skills
This skill works WITH your existing cardiology skills:
```
1. Use `youtube-script-master` → Routes to Claude by default
2. Use `cardiology-editorial` → Routes to Claude by default
3. Add `--model=glm-4.7` →Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.