/article-writer:doctor --check | --fix | --interactivefrom article-writer
Validates and repairs SQLite database records against defined schemas. Supports --check (report only), --fix (auto-fix), and --interactive (prompt per issue).
Ships in article-writer. Installing the plugin adds it to Claude Code.
Validate and repair records in the SQLite database (.article_writer/article_writer.db).
Tables validated:
authors - Author profilessettings - Global configurationarticles - Article queueDocumentation: docs/COMMANDS.md
# Interactive mode (default) - ask for each issue
/article-writer:doctor
# Check only - report issues without fixing
/article-writer:doctor --check
# Auto-fix - fix with defaults, no prompts
/article-writer:doctor --fix
Runs: bun run "${CLAUDE_PLUGIN_ROOT}"/scripts/doctor.ts [--check | --fix]
PRAGMA integrity_checkPRAGMA foreign_key_check for referential integrity| Issue | Auto-Fix Action |
|---|---|
| Missing required string | Set to "" or ask user |
| Missing required array | Set to [] |
| Missing status | Set to "pending" |
| Missing created_at | Set to current timestamp |
| Invalid enum value | Ask user to select valid option |
| Wrong field type | Attempt conversion or ask user |
| Unknown fields | Report (keep by default) |
| Missing author reference | Use default author or ask |
When issues require user input:
🔍 Article Writer Doctor
========================
Checking database integrity...
✓ Database integrity: OK
✓ Foreign key constraints: OK
Validating authors...
✓ 2 authors valid
Validating settings...
✓ Settings valid
Validating articles...
Article #3: Missing 'created_at' field
→ Auto-fix: Set to "2025-01-15T10:00:00Z"? [Y/n]
Article #5: Invalid status "wip"
→ Valid options: pending, in_progress, draft, review, published, archived
→ Select replacement: [1-6]
Summary:
Checked: 10 articles, 2 authors, settings
Issues found: 3
Fixed: 2
✅ Database has been repaired
.article_writer/schemas/What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub mwguerra/claude-code-plugins --plugin article-writer9 commands in this plugin
/articleCreate ArticleCreate a new technical article with web research, practical companion projects, and multi-language output/authorAuthor ManagementManage author profiles - add manually, extract voice from transcripts, list, show, edit, or remove authors/batchBatch Article ProcessingProcess multiple articles from the queue autonomously with filtering by count, area, author, or difficulty/initInitialize Article WriterInitialize article-writer plugin - creates config folder, schemas, and default settings/nextNext ArticleGet the next pending article from the queue to work on/queueArticle Queue ManagementView article queue status, list pending/completed articles with filters, and show task detailsOther plugins' commands for the same job