writing-draft
CommandTransform an outline into prose following style preferences
Capture learnings from successful writing to improve future work
$ npx -y skills add robertguss/claude-code-toolkit --agent claude-code
name: writing:compound description: Capture learnings from successful writing to improve future work argument-hint: "[path to published piece or 'latest']"
Turn this piece's successes into permanent improvements for future writing.
<piece_path> #$ARGUMENTS </piece_path>
If "latest" is provided, find the most recent published/approved piece.
> Each piece of writing should make the next piece easier to write.
This command extracts what worked and encodes it for reuse:
1. Analyze what made this piece work 2. Extract reusable patterns 3. Update style documentation 4. Create templates for similar pieces 5. Log anti-patterns that were edited out
Read the final published version Read all draft versions (v1, v2, etc.) Read review reports Identify: - What changed between drafts - What reviewers praised - What the writer kept unchanged
Use AskUserQuestion:
What made this piece successful? 1. The hook grabbed attention 2. The structure was clear 3. The voice was consistent 4. The examples were concrete 5. Something else: [describe]
Allow multiple selections to understand success factors.
## Hook Extraction **Opening text**: > [First 50-100 words] **Hook type**: [Story/Stat/Tension/Question/Surprise] **Why it worked**: - [Specific reason 1] - [Specific reason 2] **Formula abstracted**: [General pattern that could be reused] **Similar topics it could work for**: - [Topic 1] - [Topic 2]
## Structure Extraction **Pattern used**: [Problem-Solution/Journey/Listicle/Story] **Section breakdown**: 1. [Section type] - [purpose] - [word count] 2. [Section type] - [purpose] - [word count] ... **What made this structure work**: - [Insight 1] - [Insight 2] **Topics this structure fits**: - [Topic type 1] - [Topic type 2]
## Voice Extraction
**Consistent elements identified**:
- Vocabulary patterns: [words/phrases used repeatedly]
- Sentence rhythm: [short-long patterns]
- Tone markers: [specific indicators]
**Voice profile additions**:
```yaml
# New exemplar
exemplars:
- path: "[this piece path]"
why: "[specific voice element demonstrated]"**Prohibited additions** (if anti-patterns found):
### Transition Analysis ```markdown ## Transitions Extraction **Smooth transitions found**: 1. Between [section X] and [section Y]: > "[transition text]" - Type: [causal/contrast/continuation] - Why it worked: [reason] 2. [Continue for notable transitions] **Transition formulas**: - "[Formula 1]" - use when: [context] - "[Formula 2]" - use when: [context]
Create or update files in `docs/patterns/`:
docs/patterns/
├── hooks/
│ └── [hook-type]-[topic].md # New hook pattern
├── structures/
│ └── [pattern-name].md # Structure template
├── transitions/
│ └── common-transitions.md # Append new transitions
└── voice/
└── [voice-name]-exemplars.md # New exemplar reference--- title: "[Pattern Name]" type: [hook/structure/transition/voice] extracted_from: "[original piece path]" created: [timestamp] tags: [topic1, topic2] --- ## Pattern [Description of the pattern] ## Example > [The actual text from the piece] ## When to Use - [Context 1] - [Context 2] ## How to Apply 1. [Step 1] 2. [Step 2] ## Variations - [Variation 1] - [Variation 2]
If voice profile exists, append new learnings:
# Add to exemplars
exemplars:
- path: "[new piece]"
why: "[what it demonstrates]"
# Add to prohibited if anti-patterns found
prohibited:
- "[new prohibited item]"Create a reusable template:
# Template: [Template Name] **Best for**: [Topic types this works for] **Structure**: ## Hook [Hook formula with placeholders] ## Section 1: [Purpose] [Guidance for this section] - Include: [required elements] - Avoid: [anti-patterns] ## Section 2: [Purpose] [Continue pattern...] ## Conclusion [Closing formula] **Word count target**: [range] **Key elements**: [list]
Save to `docs/patterns/structures/[template-name].md`
From review history, identify:
## Anti-Patterns Identified ### Phrases to Avoid - "[Phrase]" - cut because: [reason] - "[Phrase]" - cut because: [reason] ### Structural Issues - [Issue] - fixed by: [solution] ### Claims That Failed Fact-Check - "[Claim type]" - always verify: [specific check]
Add to appropriate style guide or voice profile.
Save to `docs/patterns/compound-log/[date]-[piece-slug].md`:
# Compound Report: [Piece Title] **Date**: [timestamp] **Piece**: [path to original] ## What Worked [Summary of success factors] ## Patterns Extracted - Hook pattern: [saved to path] - Structure template: [saved to path] - Transitions: [X] added to common-transitions.md - Voice exemplar: [added to profile] ## Anti-Patterns Logged - [X] phrases added to prohibited list - [X] structural warnings documented ## Files Updated - `docs/patterns/hooks/[file].md` - `docs/patterns/structures/[file].md` - `docs/patterns/transitions/common-transitions.md` - `.claude/voice-profiles/[name].yaml` ## The Compound Effect This piece adds [X] reusable patterns to your writing system. Next similar piece will benefit f
Extend Claude Code with specialized workflows, automatic formatting, and better defaults. Skills give Claude domain expertise—brainstorming methods, leading a project with worker agents, project wikis, book writing pipelines.
Transform an outline into prose following style preferences
Transform a topic or brief into a researched outline with sources
Exhaustive parallel editorial review of written content
Initialize the current project with Scientific Writer - a deep research and writing tool that combines AI-driven research with…