Phase Buildのロゴ

Phase Build

コミュニティ
XuanRanL
phase-build

Run Phase Build — section drafting (N parallel agents), fact-check, citation injection, assembly. Use when research.json and outline.json exist and need to write the actual article body. Triggered by /seo-blog build, "draft the article now", "write the body".

概要

公開者XuanRanL
リポジトリloamwright-SEO-Skill
スキル名phase-build
スター
52
フォーク
9
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Phase Build Orchestrator

Convert outline.json → full markdown draft via parallel section writers + fact verification.

Inputs

Required in workspace/{task_id}/:

  • state.json
  • research.json
  • angle.json (from format-selector + topic-angle-selector)
  • outline.json (from outline-architect)

Stages

1. section-drafter (parallel N=outline.sections.length)
   - Spawn N independent subagents via Task tool
   - Each gets: ONE section spec + 800-word context summary of others
   - Each writes markdown + claims[] + citation_capsule
   - Tool whitelist: Read, Write ONLY (no WebFetch, no Bash)
   - Output: workspace/{task}/sections/{0..N-1}.json
   
2. citation-capsule-builder
   - Verify each H2 has 40-60 word AI-quotable block
   - Princeton GEO requirement (+28-41% AI citation rate)

3. chart-generator (if outline.sections[].needs_table)
   - Generate ≥2 markdown tables OR XSS-safe SVG charts
   - At least 1 in front 50% of article

4. fact-check-and-citation
   - For each [claim:cN_S] marker: Crossref → Tavily → HEAD check
   - Build References section (APA 7, ≤10 entries)
   - Replace markers with (Author, Year) in-text
   - Output: workspace/{task}/citations.json

5. assembly (scripts/build/assemble.py)
   - Concatenate: Abstract → Key Takeaways → ToC → Body → FAQ → Conclusion → References
   - Anchor links auto-generated for ToC
   - Mandatory-H2 coverage is enforced by scripts/lint/mandatory_sections_check.py,
     which reads THIS project's `business-context.json :: mandatory_sections` (assemble.py
     imports `_load_mandatory_sections` from it). Do NOT substitute
     markdown_structure_check.py here: it carries a HARDCODED section table and would
     override the project contract (see feedback_project_contract_not_hardcoded_labels).
     It remains available as a standalone structural report, not as this stage's gate.
   - Output: workspace/{task}/draft.md (frontmatter Stage: build-done)

Parallel execution pattern

Section drafter spawns subagents in single Task batch:

python
tasks = []
for section in outline.sections:
    tasks.append({
        "subagent_type": "writer",
        "section_spec": section,
        "context_summary": summarize_others(outline, section),
        "primary_keyword": state.brief.primary_keyword,
        "format_id": angle.format_id,
        "modifiers": angle.modifiers,
        "references_to_load": [
            "style/voices/" + brand_voice_choice,
            "style/banned-words.md",
            "style/ai-tells-43.md",
            "style/em-dash-prohibition.md",
            "seo/citation-capsules-princeton.md"
        ]
    })

results = parallel_dispatch(tasks)  # 1 round-trip, N writers

Hard constraints (enforced post-section)

Each section must pass self_check:

  • word_count within [budget × 0.9, budget × 1.1]
  • em_dash_count == 0
  • banned_words_found == false
  • ai_tells_found == false
  • has citation_capsule of 40-60 words
  • contains claims with hint_query for fact-checker

Otherwise section is rejected and drafter retried (max 2 retries per section).

Post-build lint (mandatory before handoff to Optimize)

bash
# Section completeness — catches writer subagent silent dropout (6/50 sections
# dropped in 2026-05-22 batch). Run immediately after Stage 1 parallel dispatch
# returns, BEFORE Stage 4 fact-check.
python -m scripts.lint.section_completeness_check --workspace {task_id} --json
# exit 0 = all sections present; exit 1 = missing or extra
# Auto-writes to workspace/{task_id}/section-completeness.json (file-bus)
# Missing indices → re-dispatch writer subagent for each before proceeding.

Output

  • workspace/{task}/sections/*.json (N files, schemas/section.schema.json)
  • workspace/{task}/citations.json (schemas/citations.schema.json)
  • workspace/{task}/draft.md (markdown with frontmatter Stage: build-done)

Handoff

recommended_next_skill: "phase-optimize"

See also

  • subskills/build/section-drafter/SKILL.md
  • subskills/build/fact-check-and-citation/SKILL.md
  • subskills/build/citation-capsule-builder/SKILL.md
  • agents/writer.md
  • agents/fact-checker.md

よくある質問

AIスキル「Phase Build」では何ができますか?

Run Phase Build — section drafting (N parallel agents), fact-check, citation injection, assembly. Use when research.json and outline.json exist and need to write the actual article body. Triggered by /seo-blog build, "draft the article now", "write the body".

TypingMindでPhase Buildを使うメリットは何ですか?

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

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

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

Phase Buildを使えるAIモデルはどれですか?

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

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

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

AIスキル「Phase Build」は無料ですか?

はい。XuanRanLがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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