BD

binbinao/document-superpowers

Developer tools
44ย stars ํ’ˆ์งˆ 40 ํŠธ๋ Œ๋“œ 40

๐Ÿ“ Document writing skills for AI agents (Claude Code / Cursor / CodeBuddy) โ€” 4-stage workflow: Brainstorm โ†’ Plan โ†’ Execute โ†’ Review. Inspired by obra/superpowers. GitHub 44โ˜….

๊ฐœ์š”

๐Ÿ“„ : binbinao.github.io/resume/projects/document-superpowers/ A complete document writing workflow for your AI writing agents, inspired by obra/superpowers code development methodology. Document Superpowers transforms your AI from a "just write something" tool into a systematic writing partner. It enforces a proven four-stage process that produces higher-quality articles, blog posts, and documentation. When you ask your AI to write something, it doesn't just start typing. Instead: 1. - It steps back and asks what you're really trying to communicate. Who's the audience? What's the core message? What should readers do after reading? 2. - Once it understands the topic, it creates a detailed outline breaking the article into manageable sections (150-400 words each), complete with key points, evidence needs, and transitions. 3. - It writes section by section, with self-checks and validation at each step. You get checkpoints every 2-3 sections to review progress. 4.

README

๐Ÿ“„ Deep-dive case study with metrics, highlights, and architecture: binbinao.github.io/resume/projects/document-superpowers/

Document Superpowers

A complete document writing workflow for your AI writing agents, inspired by obra/superpowers code development methodology.

Overview

Document Superpowers transforms your AI from a โ€œjust write somethingโ€ tool into a systematic writing partner. It enforces a proven four-stage process that produces higher-quality articles, blog posts, and documentation.

How It Works

When you ask your AI to write something, it doesnโ€™t just start typing. Instead:

  1. Brainstorming - It steps back and asks what youโ€™re really trying to communicate. Whoโ€™s the audience? Whatโ€™s the core message? What should readers do after reading?

  2. Planning - Once it understands the topic, it creates a detailed outline breaking the article into manageable sections (150-400 words each), complete with key points, evidence needs, and transitions.

  3. Execution - It writes section by section, with self-checks and validation at each step. You get checkpoints every 2-3 sections to review progress.

  4. Review - Systematic four-pass review covering logic, evidence, flow, and polish. Every issue gets categorized, documented, and fixed.

The result? Professional-quality writing thatโ€™s actually readable, well-structured, and achieves its purpose.

The Four-Stage Workflow

๐Ÿ’ก Brainstorming โ†’ ๐Ÿ“‹ Planning โ†’ โœ๏ธ Execution โ†’ ๐Ÿ” Review

Each stage has strict gates - you canโ€™t skip ahead without completing the previous stage. No more โ€œIโ€™ll just wing itโ€ articles.

Skills Library

Core Workflow

  • brainstorming - Socratic topic exploration and brief creation
  • writing-article-plan - Detailed section-by-section outline with research checklist
  • executing-article-plan - Batch writing with human checkpoints
  • reviewing-article - Multi-pass systematic review (logic โ†’ evidence โ†’ flow โ†’ polish)

Advanced

  • subagent-driven-writing - Fast iteration with fresh subagent per section and two-stage review

Philosophy

  • Structured over ad-hoc - Process prevents wasted effort
  • Incremental validation - Catch issues early with frequent checkpoints
  • Evidence-based - Every claim needs support
  • Reader-first - Always know who youโ€™re writing for and what they need
  • YAGNI for content - Cut ruthlessly, say only what matters

Installation

Claude Code

# Clone to Claude Code global skills directory
git clone https://github.com/binbinao/document-superpowers.git ~/.claude/skills/document-superpowers

After cloning, add skill references in ~/.claude/CLAUDE.md or your projectโ€™s .claude/CLAUDE.md:

## Skills
- ~/.claude/skills/document-superpowers/skills/brainstorming/SKILL.md
- ~/.claude/skills/document-superpowers/skills/writing-article-plan/SKILL.md
- ~/.claude/skills/document-superpowers/skills/executing-article-plan/SKILL.md
- ~/.claude/skills/document-superpowers/skills/reviewing-article/SKILL.md
- ~/.claude/skills/document-superpowers/skills/subagent-driven-writing/SKILL.md

Cursor

# Clone to Cursor global skills directory
git clone https://github.com/binbinao/document-superpowers.git ~/.cursor/skills/document-superpowers

# Or clone to project-level directory
git clone https://github.com/binbinao/document-superpowers.git .cursor/skills/document-superpowers

After cloning, add the skill paths in Cursorโ€™s Rules or Agent Settings.

Codebuddy (CLI)

# Clone to Codebuddy global skills directory
git clone https://github.com/binbinao/document-superpowers.git ~/.codebuddy/skills/document-superpowers

# Or clone to project-level directory
git clone https://github.com/binbinao/document-superpowers.git .codebuddy/skills/document-superpowers

After cloning, add the skill paths in Codebuddyโ€™s configuration.

Gemini CLI

# Clone to Gemini CLI config directory
git clone https://github.com/binbinao/document-superpowers.git ~/.gemini/skills/document-superpowers

Add skill references in ~/.gemini/GEMINI.md or your projectโ€™s GEMINI.md:

## Skills
- ~/.gemini/skills/document-superpowers/skills/brainstorming/SKILL.md
- ~/.gemini/skills/document-superpowers/skills/writing-article-plan/SKILL.md
- ~/.gemini/skills/document-superpowers/skills/executing-article-plan/SKILL.md
- ~/.gemini/skills/document-superpowers/skills/reviewing-article/SKILL.md
- ~/.gemini/skills/document-superpowers/skills/subagent-driven-writing/SKILL.md

OpenClaw

# Option 1: Clone to your workspace skills directory
git clone https://github.com/binbinao/document-superpowers.git ~/.openclaw/skills/document-superpowers

# Option 2: Install via OpenClaw skills manager (if available)
openclaw skills install document-superpowers

Other Platforms

Copy the skills/ directory into your AI agentโ€™s skills folder according to your platformโ€™s documentation.

Quick Start

1. Start with an Idea

"I want to write about [topic]"

Your agent will automatically invoke the brainstorming skill and start asking questions.

2. Answer Questions

The agent asks one question at a time to understand:

  • Whoโ€™s your audience?
  • Whatโ€™s the main message?
  • What action should readers take?
  • Any constraints (length, tone, format)?

3. Review the Brief

Once it understands your topic, it presents a brief covering:

  • Audience persona
  • Purpose and core message
  • Key supporting points
  • Tone and style

Approve or request revisions.

4. Get the Plan

After brief approval, it creates a detailed outline:

  • Section breakdown with word counts
  • Key points per section
  • Supporting evidence needs
  • Transitions between sections

5. Choose Execution Mode

Batch execution (default):

  • Write 2-3 sections at a time
  • Checkpoint for review
  • Continue until complete
  • Good for: straightforward articles, focused writing sessions

Subagent-driven (advanced):

  • Fresh subagent per section
  • Two-stage review (spec + quality)
  • Tight feedback loop
  • Good for: complex articles, high-stakes content

6. Review and Polish

Systematic four-pass review:

  1. Logic - Is the argument sound?
  2. Evidence - Are claims supported?
  3. Flow - Does it read smoothly?
  4. Polish - Grammar, formatting, style

Issues get categorized (critical/moderate/minor) and fixed systematically.

7. Publish

Your final article is saved with:

  • Full review log documenting all changes
  • Metadata (word count, reading time, audience)
  • Ready-to-publish format

Example Workflow

User: "I want to write a blog post about why engineers should write documentation"

Agent: [invokes brainstorming]
"Let me understand what you're building. Who's your target audience - junior engineers, senior engineers, or engineering managers?"

User: "Senior engineers who hate writing docs"

Agent: "Got it. What do you want them to do after reading - start writing better docs, advocate for documentation culture, or something else?"

User: "Change their mind that documentation is valuable"

Agent: [continues questions...]
Agent: [presents brief...]
Agent: [gets approval...]
Agent: [creates plan...]
Agent: [offers execution choice...]

User: "Batch execution"

Agent: [writes sections 1-3...]
Agent: "Checkpoint: Sections 1-3 complete (612 words). Continue?"

User: "Yes"

Agent: [writes sections 4-5...]
Agent: "Draft complete! Ready for review?"

User: "Yes"

Agent: [runs four-pass review...]
Agent: "Review complete. 2 critical issues found and fixed. Final article ready!"

Documentation

Additional documentation is available in the docs/ directory:

docs/
โ”œโ”€โ”€ DEVELOPMENT.md                      # Development overview & architecture details
โ”œโ”€โ”€ SUMMARY.md                          # Implementation summary & project statistics
โ””โ”€โ”€ examples/
    โ””โ”€โ”€ typescript-blog-post.md         # Complete end-to-end writing walkthrough
Document Description
DEVELOPMENT.md In-depth development guide covering project architecture, skill design, workflow details, and extension points
SUMMARY.md Implementation summary with project statistics, file inventory, and feature highlights
typescript-blog-post.md A complete example walkthrough: writing a TypeScript blog post from brainstorming to final review

Writing Project File Structure

During a writing project, the workflow generates the following files:

docs/writing/
โ”œโ”€โ”€ YYYY-MM-DD-topic-brief.md          # Approved topic brief
โ”œโ”€โ”€ YYYY-MM-DD-topic-plan.md           # Detailed outline
โ”œโ”€โ”€ drafts/
โ”‚   โ””โ”€โ”€ YYYY-MM-DD-topic/
โ”‚       โ”œโ”€โ”€ section-1-intro.md         # Individual section drafts
โ”‚       โ”œโ”€โ”€ section-2-argument.md
โ”‚       โ””โ”€โ”€ ...
โ”œโ”€โ”€ YYYY-MM-DD-topic-draft.md          # Merged full draft
โ”œโ”€โ”€ YYYY-MM-DD-topic-review.md         # Review log
โ””โ”€โ”€ YYYY-MM-DD-topic-final.md          # Published version

Everything is version-controlled and traceable.

Comparison to Code Superpowers

Code (superpowers) Content (document-superpowers)
brainstorming โ†’ design doc brainstorming โ†’ topic brief
writing-plans โ†’ implementation plan writing-article-plan โ†’ article outline
executing-plans โ†’ code executing-article-plan โ†’ draft
requesting-code-review reviewing-article
TDD (red-green-refactor) write-check-revise
Git worktrees Section drafts
Subagent per task Subagent per section

Key Principles

1. No โ€œJust Write Itโ€

Every article goes through the full process, even โ€œsimpleโ€ blog posts. Simple topics can have short briefs (a few sentences), but you MUST present and approve the brief before writing.

2. One Question at a Time

The agent never overwhelms you with multiple questions. Brainstorming is a conversation, not a form to fill out.

3. Bite-Sized Sections

Sections are 150-400 words - small enough to write in one sitting (15-30 minutes), large enough to develop an idea.

4. Checkpoints, Not Marathons

Review after every 2-3 sections. Catch issues early rather than discovering problems in a 3000-word wall of text.

5. Four-Pass Review

Each pass focuses on one dimension:

  • Logic (is it sound?)
  • Evidence (is it supported?)
  • Flow (is it smooth?)
  • Polish (is it clean?)

Mixing concerns makes issues harder to spot.

6. Document Everything

Every stage produces artifacts:

  • Brief (topic understanding)
  • Plan (writing blueprint)
  • Section drafts (incremental progress)
  • Review log (all issues and fixes)
  • Final article (publication-ready)

Tips for Success

For Writers

Trust the process - It feels slower at first, but produces better results faster than iterative rewrites.

Be specific in brainstorming - The clearer your answers, the better the brief.

Review checkpoints seriously - Donโ€™t just rubber-stamp. Actually read the sections.

Save the review log - Itโ€™s valuable documentation of your writing decisions.

For AI Agents

Enforce the gates - Never skip brainstorming, even for โ€œsimpleโ€ articles.

Ask better questions - Multiple choice > open-ended when possible.

Self-check rigorously - Catch your own issues before human review.

Preserve what works - Donโ€™t over-edit during review. Fix problems, keep strengths.

Advanced Usage

Custom Templates

Create templates for specific document types:

skills/brainstorming/templates/
โ”œโ”€โ”€ blog-post.md
โ”œโ”€โ”€ technical-guide.md
โ”œโ”€โ”€ api-documentation.md
โ””โ”€โ”€ research-paper.md

Style Guides

Add organization-specific style guidelines:

skills/reviewing-article/style-guides/
โ”œโ”€โ”€ ap-style.md
โ”œโ”€โ”€ company-voice.md
โ””โ”€โ”€ technical-writing.md

Integration

Use with other skills:

  • research skills - Gather evidence during planning
  • SEO skills - Optimize during review
  • publishing skills - Deploy after finalization

Contributing

Skills live directly in this repository. To contribute:

  1. Fork the repository
  2. Create a branch for your improvement
  3. Follow the existing skill structure (see skills/writing-skills/ in obra/superpowers for guidelines)
  4. Test with real writing projects
  5. Submit a PR

Troubleshooting

Agent skips brainstorming:

  • Check that skill descriptions are properly registered
  • Ensure HARD-GATE instructions are present in SKILL.md

Sections too long/short:

  • Adjust word targets in the plan
  • Review if key points need more/less development

Review finds nothing:

  • This might indicate shallow review
  • Try providing specific examples of what to look for

Subagent fails repeatedly:

  • Plan may be unclear - revise specifications
  • Task brief may need more context
  • Consider switching to batch execution

License

MIT License - see LICENSE file for details

Inspiration

This project is heavily inspired by obra/superpowers by Jesse Vincent. The systematic, gate-driven approach from code development translates beautifully to content creation.

Support


Happy writing! ๐Ÿ“

View this README on GitHub

์ถ”์ฒœ ๋„๊ตฌ

๋‹ค๋ฅธ ํ‚ค์›Œ๋“œ๋ฅผ ์ž…๋ ฅํ•˜๊ฑฐ๋‚˜ ํ•„ํ„ฐ๋ฅผ ์ œ๊ฑฐํ•ด ๋ณด์„ธ์š”.

์„ค์น˜

npx skillfish add binbinao/document-superpowers