Subagent Driven Writingのロゴ

Subagent Driven Writing

コミュニティ
binbinao
subagent-driven-writing

Fast iterative writing using fresh subagent per section with two-stage review. Alternative to batch execution.

概要

公開者binbinao
リポジトリdocument-superpowers
スキル名subagent-driven-writing
スター
49
フォーク
14
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    binbinaoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Subagent Driven Writing」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/binbinao/document-superpowers/tree/main/skills/subagent-driven-writing
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/binbinao/document-superpowers.git /tmp/document-superpowers
mkdir -p .claude/skills
cp -r /tmp/document-superpowers/skills/subagent-driven-writing .claude/skills/subagent-driven-writing
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSubagent Driven Writingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSubagent Driven Writingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Subagent Driven Writingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Subagent-Driven Writing

Overview

Dispatch a fresh subagent for each article section, review their output, iterate if needed, then continue. Faster than batch execution when you want tight feedback loops.

Announce at start: "I'm using subagent-driven-writing for fast iterative writing."

Context: Should follow an approved plan from writing-article-plan.

Two-stage review per section:

  1. Spec compliance - Does it follow the plan?
  2. Content quality - Is the writing good?

When to Use This

Use subagent-driven-writing when:

  • You want tight control over each section
  • The article is complex or high-stakes
  • You want to iterate quickly on feedback
  • Sections are interdependent (later sections depend on earlier ones)

Use executing-article-plan instead when:

  • You want to write in focused batches
  • The article is straightforward
  • Sections are largely independent
  • You prefer fewer but longer review sessions

The Process

dot
digraph subagent {
    "Read plan" [shape=box];
    "Spawn subagent for section N" [shape=box];
    "Subagent writes section" [shape=box];
    "Review 1: Spec compliance" [shape=diamond];
    "Review 2: Content quality" [shape=diamond];
    "Save section" [shape=box];
    "More sections?" [shape=diamond];
    "Merge into full draft" [shape=box];
    "Invoke reviewing-article" [shape=doublecircle];

    "Read plan" -> "Spawn subagent for section N";
    "Spawn subagent for section N" -> "Subagent writes section";
    "Subagent writes section" -> "Review 1: Spec compliance";
    "Review 1: Spec compliance" -> "Spawn subagent for section N" [label="fail, retry"];
    "Review 1: Spec compliance" -> "Review 2: Content quality" [label="pass"];
    "Review 2: Content quality" -> "Spawn subagent for section N" [label="needs revision"];
    "Review 2: Content quality" -> "Save section" [label="pass"];
    "Save section" -> "More sections?";
    "More sections?" -> "Spawn subagent for section N" [label="yes"];
    "More sections?" -> "Merge into full draft" [label="no"];
    "Merge into full draft" -> "Invoke reviewing-article";
}

Spawning Subagents

For each section in the plan:

markdown
**Spawning subagent for Section N: [Title]**

Task brief:
- Read plan from: docs/writing/YYYY-MM-DD-<topic>-plan.md
- Focus on: Section N ([Title])
- Write section following plan specifications
- Target word count: XXX
- Maintain tone: [from plan]
- Include all key points
- Save to: docs/writing/drafts/YYYY-MM-DD-<topic>/section-N-<title>.md

Use sessions_spawn:

Write Section N ([Title]) for article [Topic].
Read the plan from docs/writing/YYYY-MM-DD-<topic>-plan.md.
Follow the specifications for Section N exactly:
- Purpose: [from plan]
- Key points: [list]
- Target word count: XXX
- Tone: [style]
Include smooth transition from Section N-1.
Save output to docs/writing/drafts/YYYY-MM-DD-<topic>/section-N-<title>.md with metadata header.

Review Stage 1: Spec Compliance

Check against plan:

  • All key points covered?
  • Word count within range (±10%)?
  • Supporting evidence included?
  • Tone matches guidelines?
  • Transition from previous section present?
  • Transition to next section present?

If fails:

  • Identify specific gaps
  • Spawn new subagent with clarified requirements
  • Include what was missing in new task brief

Example failure:

markdown
**Review failed: Spec compliance**

**Missing:**
- Key point 2 (example of enterprise use case)
- Transition to next section

**Retrying with updated brief...**

Review Stage 2: Content Quality

Check writing quality:

  • Logic clear and sound?
  • Evidence supports claims?
  • Paragraphs well-structured (2-4 sentences)?
  • Sentence variety (not all same length/structure)?
  • Active voice used where appropriate?
  • No jargon without explanation?
  • Smooth reading experience?

If needs revision:

  • Identify specific issues
  • Spawn new subagent with feedback
  • Include what needs improvement

Example revision:

markdown
**Review: Content quality needs improvement**

**Issues:**
1. Paragraph 2 uses passive voice heavily
2. Example in paragraph 3 doesn't clearly support the point
3. Transition to next section is abrupt

**Revising...**

If passes:

  • Save section with approval note
  • Continue to next section

Section Approval Format

markdown
## Section N Review: ✅ APPROVED

**Spec Compliance:** PASS
- All key points covered ✓
- Word count: XXX (target: XXX, within range) ✓
- Evidence included ✓
- Tone matches ✓
- Transitions present ✓

**Content Quality:** PASS
- Logic clear ✓
- Evidence strong ✓
- Well-structured ✓
- Smooth reading ✓

**Saved to:** docs/writing/drafts/YYYY-MM-DD-<topic>/section-N-<title>.md

**Continuing to Section N+1...**

Handling Interdependencies

When sections depend on each other:

markdown
**Note:** Section 4 references the example from Section 2.

**Subagent task includes:**
- Read Section 2 draft before writing
- Reference the [specific example] when discussing [topic]
- Maintain consistency with terminology used in Section 2

Context passing:

  • Each subagent gets the plan + all completed sections
  • Explicitly note dependencies in task brief
  • Include specific cross-references needed

Progress Tracking

After each section:

markdown
## Progress: Section N/M Complete

**Completed:**
- ✅ Section 1: Introduction (152 words)
- ✅ Section 2: First Argument (298 words)
- ✅ Section 3: Second Argument (305 words)

**Current:**
- 🔄 Section 4: Third Argument (in progress)

**Remaining:**
- ⏳ Section 5: Conclusion

**Stats:**
- Current word count: 755
- Target word count: 1200
- Progress: 63%

After All Sections

Merge and transition:

markdown
**All sections complete! 🎉**

**Section Summary:**
- Section 1: ✅ (152 words)
- Section 2: ✅ (298 words)
- Section 3: ✅ (305 words)
- Section 4: ✅ (289 words)
- Section 5: ✅ (163 words)

**Total:** 1207 words (target: 1200)

**Merging into full draft...**

Saved to: docs/writing/YYYY-MM-DD-<topic>-draft.md

**Next:** Invoke reviewing-article for systematic review

Then:

  • REQUIRED SUB-SKILL: Use document-superpowers:reviewing-article

Key Differences from Batch Execution

Subagent-DrivenBatch Execution
Fresh subagent per sectionOne agent writes all sections
Review after each sectionReview every 2-3 sections
Tight feedback loopFewer interruptions
Better for complex articlesBetter for simple articles
More overhead (spawning)Less overhead
Easier to course-correctMore focused flow state

Troubleshooting

If subagent consistently fails spec compliance:

  • Plan may be unclear - revise plan
  • Requirements may be contradictory - clarify plan
  • Word count may be unrealistic - adjust target

If subagent produces low-quality content:

  • Add more specific tone/style examples
  • Include writing samples in task brief
  • Specify common pitfalls to avoid

If reviews take too long:

  • Create review checklist template
  • Focus on critical issues only
  • Consider switching to batch execution

Key Principles

  • Fresh subagent = fresh perspective - Each section gets unbiased writing
  • Two-stage review = quality control - Spec first, then quality
  • Pass context explicitly - Don't assume subagent knows prior sections
  • Iterate quickly - Fast feedback beats batch-and-hope
  • Track progress visibly - Know where you are in the process
  • Don't over-review - Good enough to move forward is good enough

よくある質問

AIスキル「Subagent Driven Writing」では何ができますか?

Fast iterative writing using fresh subagent per section with two-stage review. Alternative to batch execution.

TypingMindでSubagent Driven Writingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Subagent Driven Writingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSubagent Driven Writingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/binbinao/document-superpowers/tree/main/skills/subagent-driven-writingを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Subagent Driven Writingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Subagent Driven Writingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSubagent Driven Writingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Subagent Driven Writing」は無料ですか?

binbinaoがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇