Skip to content

Multi-author article and social post generator that writes voice-matched, runnable technical content from a task queue.

CCM score
46 of 100
version
1.0.0
GitHub stars
35
View on GitHub

Own this plugin? Claim it

What it does

  • Adds /article, /social, /batch, and /next commands plus article-writer-agent for writing and batch processing
  • Covers voice profiles from questionnaires or transcript analysis, web research, and multi-language translation
  • Generates runnable companion projects, not snippets, and checks database records with /doctor
  • Designed for authors who publish long-form articles and derived posts for LinkedIn, Instagram, and X/Twitter

Create publication-ready technical articles and social media posts (LinkedIn, Instagram, X/Twitter) with author voice profiles, web research, runnable code examples, and multi-language output. Supports interactive single-article creation, social media post generation, or autonomous batch processing from a task queue.

Add marketplace

/plugin marketplace add mwguerra/claude-code-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install article-writer@mwguerra-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Article Writer

Create technical articles with companion projects and multi-language support.

Quick Start

  1. Determine author (from task or default author in database)
  2. Create folder structure (including code/ folder)
  3. Load author profile from database
  4. Load settings (including article_limits.max_words)
  5. Follow phases: Initialize → Plan → Research → Draft → Companion Project → Integrate → Review → Condense → Translate → Finalize

Workflow Overview

Plan → Research → Draft (initial) → Create Companion Project → Update Draft → Review → Condense → Translate → Finalize
                         ↑                              ↓               ↓
                         └──────── Iterate ─────────────┘               │
                                                                        ↓
                                                            (if over max_words)

Folder Structure

content/articles/YYYY_MM_DD_slug/
├── 00_context/              # author_profile.json
├── 01_planning/             # classification.md, outline.md
├── 02_research/
│   ├── sources.json         # All researched sources
│   └── research_notes.md
├── 03_drafts/
│   ├── draft_v1.{lang}.md   # Initial draft
│   └── draft_v2.{lang}.md   # After companion project integration
├── 04_review/               # checklists
├── 05_assets/images/
├── code/                    # COMPANION PROJECT
│   ├── README.md            # How to run the companion project
│   ├── src/                 # Companion project source code/files
│   └── tests/               # Tests (if applicable)
├── {slug}.{primary_lang}.md # Primary article
└── {slug}.{other_lang}.md   # Translations

Phases

Phase 0: Initialize

  • Get author, generate slug, create folder
  • Create code/ directory for companion project
  • Copy author profile to 00_context/
  • Load article_limits.max_words from settings

Phase 1: Plan

  • Classify article type
  • Create outline
  • Plan companion project type and scope
  • CHECKPOINT: Get approval

Phase 2: Research (Web Search)

  • Search official documentation
  • Find recent news (< 1 year for technical)
  • Record all sources

Phase 3: Draft (Initial)

  • Write initial draft in primary language
  • Mark places where example code will go: <!-- EXAMPLE: description -->
  • Save as 03_drafts/draft_v1.{lang}.md
Applying Author Voice

Use ALL author profile data when writing:

  1. Manual Profile Data

    • tone.formality: 1=very casual, 10=very formal
    • tone.opinionated: 1=always hedge, 10=strong opinions
    • phrases.signature: Use naturally (don't overdo)
    • phrases.avoid: Never use these
    • vocabulary.use_freely: Assume reader knows these
    • vocabulary.always_explain: Explain on first use
  2. Voice Analysis Data (if present in voice_analysis)

    • sentence_structure.avg_length: Target this sentence length
    • sentence_structure.variety: Match style (short/moderate/long)
    • communication_style: Reflect top traits in tone
    • characteristic_expressions: Sprinkle these naturally
    • sentence_starters: Use these patterns
    • signature_vocabulary: Prefer these words

Example:

For author with:

{
  "tone": { "formality": 4, "opinionated": 7 },
  "voice_analysis": {
    "sentence_structure": { "avg_length": 14, "variety": "moderate" },
    "communication_style": [{ "trait": "enthusiasm", "percentage": 32 }],
    "characteristic_expressions": ["na prática", "o ponto é"],
    "sentence_starters": ["Então", "O interessante é"]
  }
}

Write with:

  • Conversational but confident tone
  • Medium sentences (~14 words)
  • Enthusiastic energy
  • Occasional "na prática" and "o ponto é"
  • Some sentences starting with "Então" or "O interessante é"

Phase 4: Create Companion Project ⭐

Use Skill(companion-project-creator) for this phase

CRITICAL: Companion projects must be COMPLETE, RUNNABLE, and VERIFIED.

A Laravel companion project is a FULL Laravel installation. A Node companion project is a FULL Node project.

The companion project is NOT complete until you have actually run and tested it.

Step 1: Load Companion Project Defaults from Settings

Load settings from database first:

# View defaults for the companion project type
bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/show.ts settings code

Or read JSON and extract:

// Settings are loaded from the database via show.ts or article-stats.ts
const codeDefaults = settings.companion_project_defaults.code;
// codeDefaults.scaffold_command
// codeDefaults.verification.install_command
// codeDefaults.verification.run_command
// codeDefaults.verification.test_command
Step 2: Merge with Article Overrides

If article task has companion_project field, those values override settings defaults.

Step 3: Execute Scaffold Command
# From settings.companion_project_defaults.code.scaffold_command
composer create-project laravel/laravel code --prefer-dist
Step 4: Add Article-Specific Code

Add your custom code on top of the scaffolded project:

  • Models, Controllers, Routes
  • Migrations, Seeders
  • Tests

Never create partial projects with just a few files.

Step 5: VERIFY (Mandatory) ⚠️

You MUST actually run these commands and confirm they succeed:

cd code

# 1. Install dependencies - MUST SUCCEED
composer install
# ✓ Check: No errors, vendor/ directory exists

# 2. Setup - MUST SUCCEED
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate
# ✓ Check: No errors

# 3. Run application - MUST START
php artisan serve &
# ✓ Check: "Server running on http://127.0.0.1:8000"
# Stop the server after confirming

# 4. Run tests - ALL MUST PASS
php artisan test
# ✓ Check: "Tests: X passed" with 0 failures

If ANY step fails:

  1. Read the error message
  2. Fix the code
  3. Re-run verification from step 1
  4. Repeat until ALL steps pass

DO NOT proceed to Phase 5 until verification passes.

Companion Project Types
Article TopicProject TypeWhat to Create
Laravel/PHP codecodeFull Laravel project via composer create-project
JavaScript/NodenodeFull Node project via npm init
PythonpythonFull Python project with venv
DevOps/DockerconfigComplete docker-compose setup
ArchitecturediagramComplete Mermaid diagrams
Project managementdocumentComplete templates + filled examples
Verification Checklist

Before proceeding to Phase 5:

  • Scaffold command executed successfully
  • All article-specific code added
  • install_command succeeded (vendor/node_modules exists)
  • run_command starts application without errors
  • test_command runs with 0 failures
  • README.md explains setup and usage
For Code Companion Projects (Laravel)
code/
├── README.md              # Setup and run instructions
├── app/
│   └── ...                # Minimal app code
├── database/
│   ├── migrations/
│   └── seeders/
├── tests/
│   └── Feature/           # Pest tests for main features
├── composer.json
└── .env.example           # SQLite by default

Standards for Laravel companion projects:

  • Use SQLite (no external DB needed)
  • Use Pest for tests
  • Include at least 2-3 tests for main features
  • Add comments referencing article: // See article section: "Rate Limiting Basics"
  • Keep dependencies minimal
  • Include setup script if complex
For Document Companion Projects
code/
├── README.md              # What the documents demonstrate
├── templates/
│   └── ...                # Reusable templates
└── examples/
    └── ...                # Filled-in examples

Phase 5: Integrate Companion Project into Draft

  • Replace <!-- EXAMPLE: --> markers with actual code snippets
  • Add file references: "See code/app/Models/Post.php"
  • Add run instructions in appropriate sections
  • Save as 03_drafts/draft_v2.{lang}.md

Phase 6: Review (Comprehensive)

Review the article as a whole:

  1. Explanation Flow

    • Does the narrative flow logically?
    • Are concepts introduced before being used?
    • Does the companion project appear at the right time?
  2. Companion Project Integration

    • Do code snippets match the full companion project?
    • Are file paths correct?
    • Can readers follow along?
  3. Voice Compliance

    • Matches author's formality level?
    • Uses signature phrases appropriately?
    • Avoids forbidden phrases?
    • Opinions expressed match author's positions?
    • If voice_analysis present:
      • Sentence length matches avg_length?
      • Communication style traits reflected?
      • Characteristic expressions used (not overused)?
  4. Technical Accuracy

    • Code snippets are correct?
    • Companion project actually runs?
    • Tests pass?
  5. Completeness

    • All outline points covered?
    • Sources properly cited?
    • Companion project fully demonstrates topic?

CHECKPOINT: Confirm article + companion project are ready

Phase 6b: Condense (Word Limit Enforcement) ⚠️

This phase is MANDATORY if article exceeds max_words from settings.

Step 1: Check Word Count
# Count words in article (excluding frontmatter and code blocks)
# Frontmatter: lines between first --- and second ---
# Code blocks: lines between ``` markers

# Simple word count of prose content only:
sed '/^---$/,/^---$/d; /^```/,/^```$/d' draft_v2.{lang}.md | wc -w
Step 2: Load Word Limit from Settings
# Read max_words from settings
bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/show.ts settings
# Or read JSON directly:
# bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/show.ts settings
Step 3: Condense if Over Limit

If word count > max_words:

  1. Identify Condensation Targets (in order of priority):

    • Redundant explanations of the same concept
    • Overly verbose transitions
    • Repeated caveats or disclaimers
    • Extended tangents not central to the topic
    • Excessive examples when fewer would suffice
  2. Condensation Techniques (preserve quality):

    • Combine related paragraphs
    • Replace lengthy explanations with concise summaries
    • Convert verbose lists to compact bullet points
    • Remove filler words and phrases
    • Tighten sentence structure
  3. CRITICAL: Preserve Author Voice

    • Keep signature phrases and expressions
    • Maintain the same tone (formality level)
    • Preserve the author's opinion style
    • Keep characteristic sentence structures
    • Retain enthusiasm/energy level from voice profile
  4. DO NOT Remove:

    • Code examples or snippets (these don't count toward word limit)
    • Critical technical explanations
    • Prerequisites or setup instructions
    • Safety warnings or important notes
    • References to the companion project
Step 4: Verify Condensed Version

After condensing:

  • Word count is now ≤ max_words
  • Article still reads naturally (not choppy)
  • All key points are preserved
  • Technical accuracy maintained
  • Author voice is consistent throughout
  • Flow and narrative structure intact
Step 5: Save Condensed Draft
# Save as draft_v3 (condensed version)
# 03_drafts/draft_v3.{lang}.md

If unable to condense below max_words without quality loss:

  • Document the reason in the task
  • Note the final word count achieved
  • Flag for human review

CHECKPOINT: Article is within word limit while maintaining quality

Phase 7: Translate

  • Create versions for other languages
  • Keep code snippets unchanged
  • Translate comments in code if needed

Phase 8: Finalize

  • Write final article with frontmatter
  • Update database with:
    • output_files
    • sources_used
    • companion_project info
  • Verify companion project README is complete

When to Skip Companion Projects

Only skip if a companion project makes absolutely no sense:

  • Pure opinion pieces with no actionable content
  • News/announcement summaries
  • Historical retrospectives
  • Philosophical discussions

If skipping, document in task:

{
  "companion_project": {
    "skipped": true,
    "skip_reason": "Opinion piece with no actionable code or templates"
  }
}

Companion Project README Template

# Companion Project: [Topic]

Demonstrates [what this companion project shows] from the article "[Article Title]".

## Requirements

- PHP 8.2+
- Composer
- (any other requirements)

## Setup

\`\`\`bash
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
\`\`\`

## Run Tests

\`\`\`bash
php artisan test
\`\`\`

## Key Files

| File | Description |
|------|-------------|
| `app/Models/Post.php` | Demonstrates eager loading |
| `tests/Feature/QueryTest.php` | Tests N+1 detection |

## Article Reference

This companion project accompanies the article:
- **Title**: [Article Title]
- **Section**: See "Implementing Eager Loading" section

Companion Project Comments Style

<?php
// ===========================================
// ARTICLE: Rate Limiting in Laravel 11
// SECTION: Creating Custom Rate Limiters
// ===========================================

namespace App\Providers;

use Illuminate\Support\Facades\RateLimiter;

class AppServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        // Custom rate limiter for API endpoints
        // See article section: "Dynamic Rate Limits"
        RateLimiter::for('api', function (Request $request) {
            return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
        });
    }
}

Recording Companion Project in Task

{
  "companion_project": {
    "type": "code",
    "path": "code/",
    "description": "Minimal Laravel app demonstrating rate limiting",
    "technologies": ["Laravel 11", "SQLite", "Pest 3"],
    "has_tests": true,
    "files": [
      "app/Providers/AppServiceProvider.php",
      "routes/api.php",
      "tests/Feature/RateLimitTest.php"
    ],
    "run_instructions": "composer install && php artisan test"
  }
}

References

Readme

Article Writer Plugin

Create high-quality technical articles with authentic author voice, web research, practical examples, and multi-language support.

Documentation

DocumentDescription
docs/COMMANDS.mdComplete command reference
docs/PROCESS.mdStep-by-step workflow guide

Architecture

All data is stored in a single SQLite database (.article_writer/article_writer.db) using Bun's built-in bun:sqlite - zero external dependencies. The database uses WAL mode for concurrent reads and foreign keys for referential integrity.

┌─────────────────────────────────────────────┐
│           article_writer.db                 │
├─────────────┬──────────────┬────────────────┤
│  authors    │  articles    │  settings      │
│  (profiles) │  (queue)     │  (config)      │
├─────────────┴──────────────┴────────────────┤
│  metadata  │  schema_version │  articles_fts │
└─────────────────────────────────────────────┘

Features

  • Authentic Voice: Extract voice patterns from transcripts OR create profiles manually
  • Multi-Author: Support multiple authors with distinct voices
  • Multi-Language: Write in primary language, auto-translate to others
  • Web Research: Automatic source gathering and citation
  • Verified Examples: Full runnable applications that are actually tested before completion
  • Social Media: Create platform-optimized posts for LinkedIn, Instagram, and X/Twitter
  • Batch Processing: Queue and process multiple articles
  • SQLite Backend: Zero external dependencies, WAL mode, FTS5 full-text search

Quick Start

1. Initialize

/article-writer:init

Creates: .article_writer/ folder with SQLite database, schemas, and default settings.

2. Create Author

Option A - Manual questionnaire:

/article-writer:author add

Option B - Extract from transcripts (recommended):

/article-writer:author analyze --speaker "Your Name" podcast.txt

3. Verify Setup

# View your author
/article-writer:author list

# View settings
/article-writer:settings show

4. Write Articles

/article-writer:article implementing rate limiting in Laravel

Social Media Posts

Create platform-optimized content for LinkedIn, Instagram, and X/Twitter — standalone or derived from blog articles.

# Standalone posts
/article-writer:social linkedin "Why rate limiting matters"
/article-writer:social instagram "5 Laravel tips"
/article-writer:social x "The future of PHP"

# Derive from existing blog article (all 3 platforms)
/article-writer:social all derive 42

Each platform has distinct formatting, length limits, and tone adjustments applied automatically to the author's base voice:

PlatformLengthTone Shift
LinkedIn200-1300 wordsSlightly more formal
Instagram2200 char caption + carouselMore casual, opinionated
X/Twitter280 char tweets / threadsCasual, punchy, opinionated

Derived posts are stored in a social/ subfolder inside the source blog article's folder.

Commands Reference

CommandDescriptionDetails
/article-writer:initInitialize plugindocs/COMMANDS.md#init
/article-writer:author addCreate author (questionnaire)docs/COMMANDS.md#author
/article-writer:author analyzeExtract voice from transcriptsdocs/COMMANDS.md#author
/article-writer:author listList all authorsdocs/COMMANDS.md#author
/article-writer:author show <id>Show author detailsdocs/COMMANDS.md#author
/article-writer:settings showShow all settingsdocs/COMMANDS.md#settings
/article-writer:settings show <type>Show companion project type defaultsdocs/COMMANDS.md#settings
/article-writer:settings setModify a settingdocs/COMMANDS.md#settings
/article-writer:article <topic>Create single articledocs/COMMANDS.md#article
/article-writer:social <platform> <topic>Create social media postsdocs/COMMANDS.md#social
/article-writer:nextGet next pending articledocs/COMMANDS.md#next
/article-writer:queue statusShow queue summarydocs/COMMANDS.md#queue
/article-writer:batch <n>Process n articlesdocs/COMMANDS.md#batch
/article-writer:doctorValidate database recordsdocs/COMMANDS.md#doctor

Data Storage

TablePurposeView Command
authorsAuthor profiles/article-writer:author list
settingsCompanion project defaults + article limits/article-writer:settings show
articlesArticle queue (blog + social)/article-writer:queue status
metadataVersion and timestamp tracking(internal)
articles_ftsFull-text search index(internal)

All data lives in a single file: .article_writer/article_writer.db

Author Profiles

Two Ways to Create Authors

Manual Questionnaire
/article-writer:author add

Claude asks about: identity, languages, tone, vocabulary, phrases, opinions.

Voice Extraction (Recommended)
# List speakers in transcript
/article-writer:author analyze --list-speakers podcast.txt

# Extract voice patterns
/article-writer:author analyze --speaker "John Smith" podcast.txt interview.txt

What gets extracted:

  • Sentence structure and length
  • Communication style (enthusiastic, analytical, direct, etc.)
  • Characteristic expressions
  • Signature vocabulary
  • Common sentence starters

Supported transcript formats: Plain text, timestamped, WhatsApp, SRT subtitles.

View Authors

# List all
/article-writer:author list

# Show one in detail
/article-writer:author show mwguerra

Settings

View Settings

# Show all
/article-writer:settings show

# Show specific type
/article-writer:settings show code

Modify Settings

# Change Laravel version
/article-writer:settings set code.technologies '["Laravel 11", "Pest 3", "SQLite"]'

# Change scaffold command
/article-writer:settings set code.scaffold_command "composer create-project laravel/laravel:^11.0 code"

# Set word limit
/article-writer:settings set article_limits.max_words 5000

Reset Settings

/article-writer:settings reset              # Reset all
/article-writer:settings reset-type code    # Reset just code

Project Structure

After initialization:

your-project/
├── .article_writer/
│   ├── schemas/
│   │   ├── article-tasks.schema.json
│   │   ├── authors.schema.json
│   │   └── settings.schema.json
│   └── article_writer.db
├── content/
│   └── articles/
│       └── 2025_01_15_rate-limiting/
│           ├── code/                     # Complete companion project
│           ├── rate-limiting.pt_BR.md    # Primary
│           └── rate-limiting.en_US.md    # Translation
└── docs/

Practical Companion Projects

Companion projects must be COMPLETE and RUNNABLE, not snippets.

A Laravel companion project is a full Laravel installation:

cd code && composer install && php artisan serve
# Visit http://localhost:8000

Companion project types:

TypeWhat Gets Created
codeFull application (Laravel, Node, etc.)
nodeNode.js application
pythonPython script/application
documentTemplates + filled-in samples
diagramValid Mermaid diagrams
configWorking docker-compose setup
scriptExecutable bash scripts
datasetData files + schemas

Migration from JSON

If upgrading from a previous JSON-based version:

# Check what would be migrated
bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/migrate.ts --check

# Run migration
bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/migrate.ts

# Rollback if needed
bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/migrate.ts --rollback

The migration:

  • Reads all 3 JSON files (article_tasks.json, authors.json, settings.json)
  • Creates the SQLite database with all tables and indexes
  • Inserts all data preserving IDs and relationships
  • Renames JSON files to .json.migrated (safety net)

Troubleshooting

Validate Database

/article-writer:doctor

Checks database integrity, validates all records, and offers to fix issues.

Check Initialization

/article-writer:init --check

Shows what's missing without creating anything.

Reset Settings

/article-writer:settings reset

Resets to plugin defaults.

Requirements

  • Bun runtime (for scripts and bun:sqlite)
  • Claude Code with plugin support

Scripts Reference

ScriptPurpose
scripts/init.tsInitialize plugin
scripts/show.tsView authors, settings, queue
scripts/config.tsModify settings
scripts/queue.tsQueue management
scripts/article-stats.tsQueue stats and status updates
scripts/doctor.tsValidate and fix database
scripts/migrate.tsMigrate from JSON to SQLite
scripts/create-article-folder.tsCreate article folder structure
scripts/voice-extractor.tsExtract voice from transcripts
scripts/db.tsShared database module

Database Schema

Tables

TableKey ColumnsDescription
authorsid (PK), name, languages (JSON), tone_formality, tone_opinionated, vocabulary (JSON), phrases (JSON), sort_orderAuthor profiles
articlesid (PK), title, status, area, difficulty, author_id (FK), platform, derived_from (FK), platform_data (JSON), output_files (JSON), sources_used (JSON)Article queue with CHECK constraints on all enums
settingsid=1, article_limits (JSON), companion_project_defaults (JSON), platform_defaults (JSON)Singleton configuration
metadataid=1, version, last_updatedPlugin metadata
articles_ftstitle, subject, tagsFTS5 full-text search (auto-synced via triggers)

Key Design Decisions

  • Scalar columns for frequently-queried fields (status, area, difficulty) with CHECK constraints
  • JSON columns for complex nested data (voice_analysis, companion_project, output_files)
  • sort_order on authors: lowest = default author
  • WAL mode for concurrent read access
  • FTS5 virtual table with insert/update/delete triggers for full-text search

Skills Reference

SkillPurposeLocation
article-writerFull article creation workflowskills/article-writer/SKILL.md
author-profileAuthor managementskills/author-profile/SKILL.md
voice-extractorVoice extraction from transcriptsskills/voice-extractor/SKILL.md
companion-project-creatorCreate complete companion projectsskills/companion-project-creator/SKILL.md
social-post-writerSocial media post creationskills/social-post-writer/SKILL.md
queueQueue operationsskills/queue/SKILL.md

Further Reading

Details

Marketplace
mwguerra/claude-code-plugins
Source
article-writer
Category
Content Creation
Keywords
content, writing, technical, articles, blog, documentation, publishing, research, voice-profile, transcription, laravel, php, automation, batch-processing, multi-language, multilingual, examples, agent, social-media, linkedin, instagram, twitter, x
Listed since
Apr 7, 2026

Questions

What does the article-writer plugin do for Claude Code?

The article-writer plugin creates technical articles and social media posts for LinkedIn, Instagram and X/Twitter, using author voice profiles, web research and runnable code examples. It supports interactive single-article creation, social post generation, or batch processing from a queue. Its data is stored in a single SQLite database.

How do I install the article-writer plugin?

Run /plugin marketplace add mwguerra/claude-code-plugins inside Claude Code first to add the marketplace. Then run /plugin install article-writer@mwguerra-marketplace to install the article-writer plugin.

Where does article-writer rank in the Writing & Content category?

The article-writer plugin is listed in the Writing & Content category on Claude Marketplaces, alongside humanizer, content-research-writer, internal-comms, textcortex-automation and avoid-ai-writing. It stands out by combining blog articles with social media posts and author voice extraction from transcripts.

How do I create a social media post with article-writer?

Use /article-writer:social followed by a platform and a topic, such as /article-writer:social linkedin "Why rate limiting matters". Use the platform all with derive and an article ID to create posts for LinkedIn, Instagram and X/Twitter from an existing blog article.

More from mwguerra/claude-code-plugins

All 18

Similar to article-writer

More Writing & Content