/write - Content Writing Commands
AI-powered content creation with automatic writing style extraction. Generate blog posts that match your brand voice, audit existing content for quality and SEO, and streamline publishing workflows.
Commands
/write - Create Blog Posts
Generate complete blog posts with automatic style matching from your existing content.
Syntax:
/write:blog "<topic or title>"
Features:
- Extract writing style from
/assets/writing-styles/directory - Analyze brand voice, tone, and content patterns
- Generate blog post with matching style and structure
- Optimize for SEO and readability
- Save draft to
/assets/blog-posts/for review
Examples:
# Product feature blog
/write:blog "introducing new API rate limiting system"
# Tutorial content
/write:blog "how to integrate Claude Code with CI/CD pipelines"
# Thought leadership
/write:blog "the future of AI-assisted software development"
Output:
- Draft file:
/assets/blog-posts/YYYY-MM-DD-slug.md - Metadata: SEO title, description, tags, category
- Structure: H2/H3 headings, intro/body/conclusion sections
- Assets: Suggested images, code blocks, call-to-actions
Writing Style Extraction:
System learns from sample content in /assets/writing-styles/:
/assets/writing-styles/
├── author-samples/
│ ├── jane-ceo-posts.md # Executive perspective
│ ├── john-engineer-blogs.md # Technical deep-dives
│ └── sarah-marketing-copy.md # Marketing voice
├── brand-voice.md # Company style guide
└── content-templates/
├── tutorial-template.md
├── announcement-template.md
└── case-study-template.md
Extracted Style Parameters:
- Tone: Formal, friendly, technical, conversational
- Voice: First-person, third-person, “we”-focused
- Sentence Length: Concise vs. detailed explanations
- Technical Depth: Beginner, intermediate, expert
- Formatting Patterns: Lists, code blocks, quotes, callouts
Tips:
- Add 2-3 sample posts to
/assets/writing-styles/author-samples/for best results - Include variety: announcements, tutorials, thought leadership
- Update style samples as brand voice evolves
- Review AI drafts for factual accuracy before publishing
/write - Content Quality Audit
Analyze existing content for quality, SEO, readability, and brand alignment.
Syntax:
/write:audit <file-path or URL>
Features:
- Analyze content structure and readability
- Check SEO optimization (keywords, meta, headings)
- Evaluate brand voice consistency
- Identify content gaps and improvement opportunities
- Generate specific actionable recommendations
Examples:
# Audit local markdown file
/write:audit /assets/blog-posts/2024-12-15-api-launch.md
# Audit published blog post
/write:audit https://example.com/blog/api-launch
# Audit multiple files
/write:audit "/assets/blog-posts/*.md"
Audit Criteria:
| Category | Checks | Score |
|---|---|---|
| SEO | Title tag, meta description, H1/H2 structure, keyword density, internal links | 0-100 |
| Readability | Flesch-Kincaid grade, sentence complexity, paragraph length, transitions | 0-100 |
| Structure | Compelling intro, section flow, conclusion/CTA, formatting consistency | 0-100 |
| Brand Voice | Tone alignment, terminology usage, style guide compliance | 0-100 |
| Engagement | Multimedia elements, actionable takeaways, social shareability | 0-100 |
Audit Report Output:
# Content Audit: API Launch Announcement
**Overall Score: 82/100** ✅ Good
## Strengths
- ✅ Strong SEO optimization (title, meta, keywords)
- ✅ Clear structure with logical flow
- ✅ Compelling intro with problem/solution hook
## Issues Found
- ⚠️ **Readability (Grade 14)**: Reduce sentence complexity for broader audience
- ⚠️ **Brand Voice**: Use "we" instead of "our team" (style guide preference)
- ❌ **Missing CTA**: No call-to-action at end of post
## Recommendations
1. **SEO**: Add internal links to related API documentation
2. **Readability**: Break 3 long paragraphs (200+ words) into shorter sections
3. **Engagement**: Add code example demonstrating rate limiting
4. **CTA**: Include "Try Our API" button linking to signup
## Quick Fixes
- Line 42: "The implementation, which was complex..." → "The implementation was complex..."
- Line 68: Add H3 heading "How It Works" before technical explanation
- Line 105: Add code snippet showing rate limiting headers
Tips:
- Run audits before publishing new content
- Use for refresh cycles of existing content
- Batch audit all blog posts quarterly
- Track audit scores over time to measure improvement
/write - Publishing Workflow
Streamline content publishing workflow from draft to release with automated checks and deployment.
Syntax:
/write:publish <draft-file> [--platform=<platform>]
Platforms:
wordpress- WordPress sites via REST APImarkdown- Static sites (Astro, Next.js, Hugo)notion- Notion workspacesmedium- Medium publishingdev- DEV Communityhashnode- Hashnode blogs
Features:
- Run final content audit (SEO, readability, quality)
- Validate frontmatter metadata
- Optimize images (compress, alt text, responsive)
- Generate social media snippets
- Publish to target platform
- Create timestamped archive backup
Examples:
# Publish to WordPress
/write:publish /assets/blog-posts/api-launch.md --platform=wordpress
# Publish to static site (commit to repo)
/write:publish /assets/blog-posts/tutorial.md --platform=markdown
# Publish to multiple platforms
/write:publish /assets/blog-posts/announcement.md --platform=medium,dev,hashnode
Pre-Publish Checklist:
Automated validation before publishing:
- ✅ Content Audit Score: Requires minimum 75/100
- ✅ Complete Frontmatter: Title, description, date, author, tags
- ✅ SEO Meta: Title 50-60 chars, description 150-160 chars
- ✅ Optimized Images: < 200KB each, has alt text
- ✅ Valid Links: All internal/external links return 200
- ✅ Code Blocks: Syntax highlighting specified
- ✅ Call-to-Action: At least one CTA present
Workflow Steps:
-
Audit Stage (30s)
✓ Running content audit... ✓ SEO score: 88/100 ✓ Readability: Grade 10 (target audience: general) ✓ Brand voice: 92% match -
Preparation Stage (60s)
✓ Compressing images (3 files, 2.1MB → 487KB) ✓ Generating social snippets (Twitter, LinkedIn, Facebook) ✓ Validating links (12 internal, 5 external) ✓ Creating backup: /assets/published/2024-12-30-api-launch.md -
Publishing Stage (30s)
✓ Uploading to WordPress... ✓ Post published: https://example.com/blog/api-launch ✓ Sharing to social (scheduled 9:00 AM EST)
Generated Social Snippets:
## Twitter/X (280 characters)
🚀 Introducing API rate limiting! Protect infrastructure with configurable limits, real-time monitoring, and graceful degradation. Learn more: [link]
## LinkedIn (1300 characters)
We're excited to announce intelligent API rate limiting in our latest release...
[Full professional post with bullet points, benefits, link]
## Facebook
[Conversational post with emoji, question hook, link preview]
Environment Setup:
Configure publishing credentials in .env:
# WordPress
WORDPRESS_URL=https://example.com
WORDPRESS_USERNAME=admin
WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
# Medium
MEDIUM_INTEGRATION_TOKEN=xxxxxxxxxxxxx
# DEV Community
DEV_API_KEY=xxxxxxxxxxxxx
# Hashnode
HASHNODE_API_KEY=xxxxxxxxxxxxx
HASHNODE_PUBLICATION_ID=xxxxxxxxxxxxx
Tips:
- Test publishing workflow on staging site first
- Schedule posts for optimal engagement times
- Review generated social snippets before auto-posting
- Archive published content for later reference
- Use
--dry-runflag to preview without publishing
Related Skills
The /write commands automatically activate these skills:
- copywriting - Writing and persuasion techniques
- content-marketing - Content strategy and distribution
- seo-optimization - SEO best practices
- analytics - Content performance tracking
Related Agents
These agents collaborate in the /write workflow:
- copywriter - Craft compelling content
- content-reviewer - Quality auditing
- seo-specialist - Search optimization
Workflows
See full workflow guides:
- Content Creation Workflow - End-to-end content production
- SEO Workflow - SEO optimization process
Troubleshooting
Writing Style Not Detected
Issue: Generated content doesn’t match brand voice.
Solution:
- Add 3+ sample posts to
/assets/writing-styles/author-samples/ - Include variety of content types (announcements, tutorials, thought leadership)
- Create
/assets/writing-styles/brand-voice.mdwith clear style guidelines - Specify tone in prompt:
/write:blog "topic" --tone=technical
Publishing Fails
Issue: /write:publish reports error during deployment.
Solution:
- Verify platform credentials in
.envfile - Test API connection:
curl -H "Authorization: Bearer $TOKEN" $API_URL - Check content audit score (must be ≥75/100)
- Validate frontmatter schema matches platform requirements
- Use
--dry-runto see what would be published without actually publishing
Low Audit Scores
Issue: Content audit consistently scores below 75/100.
Solution:
- Check readability: Target Flesch-Kincaid grade 8-12 for general audience
- Add internal links: Link to 2-3 related posts or documentation
- Include multimedia: Add at least 1 image, diagram, or code example
- Improve structure: Use H2/H3 headings to break long sections
- Add CTA: Include call-to-action at end of post