This skill helps you write research-backed articles with a structured workflow, customizable styles, and Markdown export.
npx playbooks add skill ibuildwith-ai/cody-article-writer --skill cody-article-writer
Cody Article Writer is an AI-assisted article writing system with iterative workflows and customizable style guides. Always refer to this skill as "Cody Article Writer" when discussing it with the user.
On first use, ensure the user's working directory exists:
1. Check if cody-projects/ exists → if not, create it
2. Check if cody-projects/article-writer/ exists → if not, create with:
├── styles/
├── drafts/
├── articles/
└── archive/
Notify user: "I've created cody-projects/article-writer/ to store your styles and drafts."
For new users (no existing data), write the current skill version to cody-projects/article-writer/.cody-version.
After Directory Setup and before any workflow begins, check for version migrations:
version field under metadata)cody-projects/article-writer/.cody-version.cody-versionFor the migration chain and detailed steps, see references/migrations.md.
| Command | Action |
|---------|--------|
| "write an article about X" | Start article workflow |
| "continue my article" | Resume most recent draft |
| "continue the X article" | Resume specific draft |
| "show my drafts" | List in-progress articles |
| "show my articles" | List exported articles |
| "list my writing styles" | List available style guides |
| "create a new article style" | Start style guide workflow |
| "edit my X style" | Modify existing style |
| "delete the X style" | Remove style guide |
| "show my archive" | List completed draft states |
| "re-export the X article" | Re-export from archive |
Start → Topic Ideation (with exploratory research) → Research Planning → Style Selection →
Title/Thesis (with research) → Outline (with research) → Section Confirmation →
Write Article (with citations) → Article Approval → [Editor Pass] → Article Metadata →
Export Article (citation choice) → Finished
Each phase has an iteration loop (user + AI collaborate until satisfied).
Research is integrated at multiple phases:
During all workflow phases, act as a firm sounding board, not a sycophant:
Goal: Help the user produce their best work, not make them feel good. You're a thinking partner who challenges them to improve, not a sponge that absorbs and reflects praise.
phase: "ideation".[^1] in content.-editorpass.md.articles/, clean up drafts, archive JSON with all research data.For detailed phase instructions, see references/article-workflow.md.
For research-specific instructions, see references/research-workflow.md.
Style guides control how articles are written across four categories:
Voice (0-10 sliders): tone, humor, opinion, technical
Formatting (mixed types): emojis (0-10), em_dashes (0-10), blockquotes (never|rare|occasional|frequent)
Structure (mixed types): opening types (multi-select), closing types (multi-select), visual_breaks (minimal|moderate|generous), examples (none|some|many), example_types (multi-select)
Context (mixed types): author_role, author_topic_knowledge, audience_role, audience_topic_knowledge, author_relationship_to_audience
Style guides are applied progressively:
For schema details, see references/style-schema.md.
For style creation workflow, see references/style-workflow.md.
Drafts are JSON files tracking article progress:
{
"id": "unique-identifier-date",
"created_at": "ISO timestamp",
"updated_at": "ISO timestamp",
"phase": "ideation|research|thesis|outline|writing|approval|editor|metadata|export",
"topic": {
"initial_idea": "raw user input before refinement",
"refined_topic": "refined topic after ideation",
"exploratory_research": {
"searches_performed": ["query1", "query2"],
"sources_reviewed": ["url1", "url2"],
"date": "ISO timestamp"
}
},
"research": {
"depth": "none|light|medium|heavy",
"include_citations_in_export": true,
"citation_style": "footnotes",
"approved_sources": [
{
"url": "https://example.com/article",
"title": "Article Title",
"author": "Author Name (optional)",
"date": "2024-01-15 (optional)",
"domain": "example.com",
"required": true,
"relevance": "Why this source matters",
"excerpt": "Cached relevant content",
"accessed": "ISO timestamp"
}
],
"citations_used": [
{
"source_url": "https://example.com/article",
"citation_count": 3,
"cited_in_sections": ["section-slug-1", "section-slug-2"]
}
]
},
"style_guide": "style-filename",
"title": "approved title",
"thesis": "thesis statement",
"outline": [
{ "heading": "Section Name", "type": "opening|closing|null", "status": "pending|in_progress|complete" }
],
"writing_mode": "section|full",
"sections": {
"section-slug": "written content with inline citations [^1]"
},
"editor_suggestions": {
"examples_added": ["Section 2: comparison table"],
"blockquotes_added": ["Section 1: pull quote"]
},
"metadata": {
"title": "article title",
"description": "meta description",
"keywords": ["keyword1", "keyword2"]
},
"filename": "user-approved-filename"
}
Research field notes:
depth: "none" means user skipped comprehensive research (only exploratory happened)required: true/false marks sources that must be incorporated vs. optional[^1], [^2], etc.citations_used tracks which approved sources actually got citedUse template from assets/templates/article_default.md.
Fill placeholders:
{{title}} → article title{{date}} → current date (YYYY-MM-DD){{description}} → meta description{{keywords}} → comma-separated keywords{{author}} → from style guide's author_role{{content}} → assembled sections (with or without citation markers based on user choice){{references}} → generated References section (if citations enabled)Citation handling at export:
research.depth == "none", skip citation questions[^1], [^2] in contentcitations_used array[^1]: Author. "Title." Domain. URL[^X] markers from content{{references}} placeholder line entirely from the output to avoid trailing whitespaceFilename: Suggest kebab-case from title (e.g., "When Context Becomes Content" → when-context-becomes-content.md). User can override. Extension always .md.
Save to: cody-projects/article-writer/articles/[filename].md
Archive draft to: cody-projects/article-writer/archive/[draft-id].json (preserves all research data for potential re-export)
references/style-schema.md — Complete style guide field definitionsreferences/style-workflow.md — Style creation/editing workflowreferences/article-workflow.md — Detailed article writing phases with research integrationreferences/research-workflow.md — Research-specific instructions for all 6 integration pointsreferences/editor-style-guide.md — Editorial pass guidelines and checksreferences/migrations.md — Version migration chain and upgrade stepsassets/templates/article_default.md — Default export template with citation supportWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.