Content Optimizer logo

Content Optimizer

Community
minicoohei
content-optimizer

コンテンツのA/Bテスト・自己改善ループを支援するプランナースキル。 市場トレンド調査 → 仮説生成 → 実験設計 → メトリクス収集 → 分析改善の全サイクルをカバー。 「コンテンツを最適化」「投稿を改善したい」「トレンド分析して投稿案を作って」「エンゲージメント改善」等のリクエストで発動。

Overview

Publisherminicoohei
Repositoryai-agent-camp
Skill namecontent-optimizer
Stars
346
Forks
13
Bundled files
9
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by minicoohei on GitHub. Read the source before you install it.

Installation

Install the Content Optimizer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/minicoohei/ai-agent-camp/tree/main/.claude/skills/content-optimizer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/minicoohei/ai-agent-camp.git /tmp/ai-agent-camp
mkdir -p .claude/skills
cp -r /tmp/ai-agent-camp/.claude/skills/content-optimizer .claude/skills/content-optimizer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Content Optimizer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Content Optimizer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Content Optimizer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Content Performance Optimizer - コンテンツ自己改善ループ

Description

5ソース(X, Google検索, Google Trends, Reddit/HN, 競合アカウント)から市場データを収集し、 LLMで統合分析して仮説とA/Bバリアントを自動生成します。 生成した投稿バリアントをTypefullyにドラフト登録し、投稿後のパフォーマンスを測定・学習することで、 コンテンツの継続的な自己改善サイクルを実現します。

ワークフロー概要

① 市場調査 → ② 仮説生成 → ③ バリアント作成 → ④ 投稿(Typefully) → ⑤ メトリクス収集 → ⑥ 分析・学習 → ①に戻る

クイックスタート

bash
# 仮説生成(トレンド調査→仮説→バリアント一気通貫)
python skills/content-optimizer/scripts/hypothesis_generator.py --topic "AIエージェント" --channel x_twitter

# メトリクス収集(投稿後のパフォーマンス測定)
python skills/content-optimizer/scripts/collect_metrics.py --tweet-ids "123,456" --experiment-id exp-001

# ドライラン(API呼び出しなし)
python skills/content-optimizer/scripts/hypothesis_generator.py --topic "SaaS" --dry-run

スクリプト一覧

スクリプト用途
hypothesis_generator.py市場調査→仮説生成→バリアント作成
collect_metrics.pyツイートメトリクス収集・バリアント比較
typefully_client.pyTypefully API v2 クライアント

hypothesis_generator.py Parameters

ParameterRequiredDefaultDescription
--topic, -tYes-調査トピック
--channel, -cNox_twitterチャネル: x_twitter, email, linkedin
--competitorsNo-競合アカウント(カンマ区切り)
--lang, -lNoja言語: ja, en, all
--days, -dNo7調査期間
--num-hypothesesNo5生成する仮説数
--auto-draftNofalseTypefullyにドラフト自動作成
--output, -oNooutput/content-optimizer/出力先
--dry-runNofalseAPI呼び出しなしでプレビュー
--testNofalseセルフテスト

collect_metrics.py Parameters

ParameterRequiredDefaultDescription
--tweet-idsNo-メトリクス取得対象ツイートID(カンマ区切り)
--usernameNo-ユーザーの直近投稿を取得
--experiment-idNo-実験IDで紐付けて比較
--days-afterNo3投稿後何日分のメトリクスを取得
--output, -oNooutput/content-optimizer/出力先
--testNofalseセルフテスト

データソース

ソースAPI取得データ環境変数
X (Twitter)X API v2 Recent Searchバズ投稿(エンゲージメント上位)X_BEARER_TOKEN
Google 検索Gemini Google Search groundingトレンド記事・ベストプラクティスGEMINI_API_KEY
Google TrendsGemini grounding経由検索ボリューム推移・急上昇トピックGEMINI_API_KEY
Reddit / HNReddit JSON API + HN Algolia APIコミュニティ議論・センチメント不要
競合アカウントX API v2 User Tweets競合の高パフォーマンス投稿X_BEARER_TOKEN

出力フォーマット

output/content-optimizer/hypotheses/YYYYMMDD_HHMMSS_{topic}/
├── market_report.md       # トレンドレポート
├── hypotheses.yaml        # 仮説リスト(優先度付き)
├── experiment_design.yaml # 実験設計書
├── raw_data.json          # 全ソースの生データ
└── drafts/                # A/Bバリアント投稿案
    ├── variant_a.md
    └── variant_b.md

環境設定

必須環境変数

bash
# .env に追加
X_BEARER_TOKEN=your_x_bearer_token_here   # X API v2 検索・ユーザー取得
GEMINI_API_KEY=your_gemini_api_key_here   # Google Search grounding + LLM分析

オプション環境変数

bash
TYPEFULLY_API_KEY=your_typefully_key_here  # --auto-draft オプション使用時

取得方法

自己改善ループの使い方

  1. hypothesis_generator.py でトレンド分析 → 仮説 → バリアント生成
  2. Typefully で A/B バリアントを投稿(手動 or --auto-draft フラグ)
  3. 2-3日後に collect_metrics.py でパフォーマンス測定
  4. 結果を踏まえて次の仮説を生成(学習が蓄積される)

使用例

bash
# AIエージェントについてX向けに仮説生成(日本語)
python skills/content-optimizer/scripts/hypothesis_generator.py \
  --topic "AIエージェント" --channel x_twitter --lang ja

# 競合アカウントも調査してバリアントをTypefullyに自動登録
python skills/content-optimizer/scripts/hypothesis_generator.py \
  --topic "SaaS" --competitors "user_a,user_b" --auto-draft

# 英語でLinkedIn向けコンテンツを5仮説生成
python skills/content-optimizer/scripts/hypothesis_generator.py \
  --topic "productivity" --channel linkedin --lang en --num-hypotheses 5

# ツイートID指定でメトリクス収集
python skills/content-optimizer/scripts/collect_metrics.py \
  --tweet-ids "1234567890,0987654321" --experiment-id exp-001

# ユーザーの直近投稿を取得して分析
python skills/content-optimizer/scripts/collect_metrics.py \
  --username myaccount --days-after 7

# dry-run でどんなデータが取れるか確認
python skills/content-optimizer/scripts/hypothesis_generator.py \
  --topic "生成AI" --dry-run

依存関係

text
requests>=2.28.0
python-dotenv>=0.19.0
pyyaml>=6.0
google-genai>=0.5.0

Related Skills

  • x-research — X検索データの収集
  • ab-test-setup — 実験設計の詳細フレームワーク
  • social-content — SNSコンテンツ戦略
  • content-strategy — コンテンツ計画
  • analytics-tracking — メトリクス計測

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Content Optimizer AI skill do?

コンテンツのA/Bテスト・自己改善ループを支援するプランナースキル。 市場トレンド調査 → 仮説生成 → 実験設計 → メトリクス収集 → 分析改善の全サイクルをカバー。 「コンテンツを最適化」「投稿を改善したい」「トレンド分析して投稿案を作って」「エンゲージメント改善」等のリクエストで発動。

Why use Content Optimizer on TypingMind?

Because you install it once and use it with any model. Content Optimizer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Content Optimizer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/minicoohei/ai-agent-camp/tree/main/.claude/skills/content-optimizer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Content Optimizer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Content Optimizer?

As many as you like. As long as a model supports skills, you can use Content Optimizer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Content Optimizer AI skill free?

It is published on GitHub by minicoohei. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇