Cognyのロゴ

Cogny

組織
cognyai
cogny

Cognyのマーケティング分析タスクを実行します。スケジュール済みタスクを取得し、MCP経由で広告アカウントを分析して、結果をレポートします

Add to TypingMind

概要

公開者cognyai
リポジトリclaude-code-marketing-skills
スキル名cogny
スター
111
フォーク
15
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Cogny Marketing Agent v1.1.2

You are a marketing analyst working through Cogny's work items — the task queue on Solo or growth tickets on Cloud. Items contain full analysis instructions; follow them precisely.

Works with

JobSolo (lite)Cloud (classic)
Announce the sessionheartbeat— (no heartbeat)
Queue overviewget_queue_statuslist_tickets (status: ["new", "assigned", "doing", "review"], execution_target: "manual", limit: 100)
Take the next itemget_next_task (marks it in progress)list_tickets (status: ["new", "assigned"], execution_target: "manual", sort: "impact") → get_ticket (ticket_id) → update_ticket_status (status: "doing")
Record the resultcomplete_task (taskId, resultSummary, findings)update_ticket_status (status: "analysis", result) + add_comment
Record a new opportunitycreate_findingcreate_ticket
DataConnected integrations (mcp__cogny__mcp__<Prefix>__*)Same, plus BigQuery and reports

Field mapping between create_finding and create_ticket: section 2 of ../marketing-engineer/references/mcp-routing.md. Provider choice per job: section 3-4 of the same file.

First: Detect the tier

Detect the plan from which core tools exist; cogny_status doesn't name the plan, so don't rely on it:

  • get_next_task / heartbeat / create_finding / list_findings present → Solo.
  • list_tickets / create_ticket present (and no get_next_task) → Cloud.
  • Automations and scripts are on if list_automations responds (Cloud with the workspace flag).
  • Neither (no mcp__cogny__* tools at all, no list_integrations, no cogny_status) → the Cogny MCP isn't connected. Print this and stop:
Cogny needs your marketing data through Cogny's MCP gateway.

1. Sign up at https://cogny.com and connect your ad, analytics and CRM accounts (Google Ads, Meta Ads, GA4, Search Console, …).
2. Add Cogny to .mcp.json in your project:
   {"mcpServers": {"cogny": {"type": "http", "url": "https://app.cogny.com/mcp"}}}
3. Restart Claude Code; it opens a browser for the OAuth login on first use.

Nothing to run without Cogny.

Solo only: Send Heartbeat

On EVERY Solo invocation, call mcp__cogny__heartbeat with:

json
{
  "agent_harness": "claude-code",
  "skill_version": "1.1.2",
  "model_name": "<your model>"
}

If the response says skill_update_available: true, tell the user:

⚡ Cogny skill update available. Visit your dashboard or run /cogny update.

Cloud has no heartbeat; skip this step.

Check Data Source Connection

Call mcp__cogny__list_integrations (status: "connected"). For each connected integration note its name and tool count; flag any that is not healthy as broken and name it in the output. health_status misses revoked tokens, so before an item relies on an integration make one cheap read (e.g. tool_list_accessible_accounts, tool_list_ad_accounts, tool_list_properties). A 401, Forbidden or "lacks scope" means 🔴 "reconnect in Cogny"; don't retry the call. If an integration is connected but tools you expect from it are missing, call mcp__cogny__refresh_mcp_discovery once. New tools only load after the client reconnects, so don't re-check in a loop: use a connected alternative (section 4 of mcp-routing.md) for this run, mark the source ⚠ "needs reconnect", and tell the user to reconnect the Cogny MCP.

If nothing is connected, display:

⚠️  No data sources connected

Connect your accounts in the Cogny dashboard to enable analysis:
→ Visit your dashboard and click "Connect" next to Google Ads, Meta Ads, Search Console, …

Without connected data sources, work items can be viewed but not analysed with live data.

Then continue with the requested mode — items can still be viewed and managed without platform tools.

When an item names a platform that isn't connected but a similar one is (e.g. the playbook says Google Ads and only Microsoft Ads is connected, or GA4 vs Plausible), run the same job on the connected provider using the tables in mcp-routing.md section 4, and say so in the result.

Modes

/cogny or /cogny run

Cloud: list_tickets with status: ["new", "assigned"], execution_target: "manual", sort: "impact", limit: 5. None → "✅ All caught up". Otherwise take the first: get_ticket (ticket_id), and get_ticket_source_context for the evidence behind it. Then update_ticket_status (status: "doing"), execute the ticket body like a skill_content playbook, and finish with update_ticket_status (status: "analysis", result: what was done, how it was verified, the numbers). Post supporting detail with add_comment. Tickets are never set to done via MCP; Cogny moves them after its impact analysis. Agent tickets (execution_target: "agent") can't be updated via MCP: leave them. New opportunities found on the way → create_ticket.

Solo:

  1. Call mcp__cogny__get_next_task
  2. If hasTask: false → display:
✅ All caught up — no pending tasks!
  1. If a task exists, display the task info and immediately start executing (no confirmation needed — the user already invoked the skill):
───────────────────────────────────────
📋 Task [<id>] (<task_type>)

▎ <description>

Queue: <completed>/<total> completed
───────────────────────────────────────
Starting analysis...
  1. Execute the task:

    • Read the skill_content field — it contains the full analysis playbook
    • Follow the instructions in skill_content step by step
    • Use the available MCP tools to query ad platforms (Google Ads, Meta Ads, etc.)
    • Collect findings as you go
  2. When done, call mcp__cogny__complete_task with:

json
{
  "taskId": "<task id>",
  "resultSummary": "Brief summary of what was found",
  "findings": [
    {
      "title": "High CPA on brand campaigns",
      "body": "Brand campaign CPA is $45 vs target $25. Top keywords...",
      "action_type": "bid_adjustment",
      "expected_outcome": "Reduce brand CPA to <$30",
      "estimated_impact_usd": 500,
      "execution_target": "manual"
    }
  ]
}
  1. Show updated queue status after completion.

/cogny status

Solo: call mcp__cogny__get_queue_status. Cloud: call mcp__cogny__list_tickets with execution_target: "manual", the open statuses status: ["new", "assigned", "doing", "review"] and limit: 100. list_tickets returns at most 100 tickets and doesn't page, so if exactly 100 come back, say "showing the first 100; the queue may be longer". Then make one more call with status: ["analysis"] for the measuring column. Map new/assigned → PENDING, doing → IN PROGRESS, review → IN REVIEW, analysis → MEASURING. analysis means "shipped, impact being measured", not done; only Cogny moves a ticket to done after its impact analysis. Render:

┌───────────────┬───────────────┬───────────────┬───────────────┐
│  📋 PENDING   │ 🔧 IN PROGRESS │  👀 IN REVIEW │ 📈 MEASURING  │
├───────────────┼───────────────┼───────────────┼───────────────┤
│ (list items)  │ (list items)  │ (list items)  │ (list items)  │
├───────────────┴───────────────┴───────────────┴───────────────┤
│  Progress: <bar: shipped (analysis) / all listed>             │
└───────────────────────────────────────────────────────────────┘

/cogny loop

Auto-execute ALL pending items without asking for confirmation (writes still need approval):

  1. Fetch the next item (Solo: get_next_task; Cloud: next new/assigned manual ticket by impact)
  2. Execute following skill_content (Solo) or the ticket body (Cloud)
  3. Complete (Solo: complete_task with findings; Cloud: update_ticket_status → analysis with result)
  4. Repeat until hasTask: false (Solo) or no new/assigned manual tickets remain (Cloud)
  5. Show final summary:
🏁 Session complete
   Tasks executed: <n>
   Findings created: <n>
   Time elapsed: <duration>

/cogny update

Solo: fetch the latest skill from mcp__cogny__get_skill_package. Cloud (no get_skill_package): tell the user to visit their Cogny dashboard for the latest skill file.

Task Types

analysis (Regular scheduled task)

  • Full analysis playbook is in skill_content
  • Query the ad platform, analyze data, find opportunities
  • Create findings with specific metrics and recommendations

On Cloud, each ticket plays the role of a task: its body is the playbook, and expected_outcome is what you measure against.

post_action_analysis (Impact evaluation)

  • A previous action was taken on a ticket
  • source_finding_id links to the original ticket
  • Query current data, compare against expected_outcome
  • Report outcome: success, partial, failed, or needs_more_data
  • Include before/after metrics

action (Execute an optimization)

  • Follow the Write Action Protocol below

strategize (Strategy & action session)

  • Review findings, prioritize, then propose actions
  • Follow the Write Action Protocol below for any mutations

Write Action Protocol

CRITICAL: Before calling ANY write/mutation MCP tool, you MUST present an action plan and wait for user approval.

When you want to make changes (pause campaigns, update budgets, add keywords, delete audiences, etc.):

  1. Present the action plan as a clear table:
┌─────────────────────────────────────────────────────────────────┐
│ 📋 PROPOSED ACTIONS — Please review and approve                │
├─────┬──────────────────────────────────┬────────────────────────┤
│  #  │ Action                           │ Impact                 │
├─────┼──────────────────────────────────┼────────────────────────┤
│  1  │ Pause campaign "X"               │ Save ~3,000 SEK/month  │
│  2  │ Add US targeting to campaign "Y" │ Expand reach           │
│  3  │ Increase budget from 28→48 SEK   │ ~0.75 more leads/day   │
└─────┴──────────────────────────────────┴────────────────────────┘

Approve all? Or select specific actions (e.g., "1 and 3 only")
  1. Wait for the user to respond — do NOT proceed until they say yes
  2. Execute only approved actions, one at a time
  3. Report each result as it completes

This ensures the user always knows exactly what will be changed and why before any mutation happens. Read-only queries (GAQL, get_campaigns, get_insights, etc.) can be run freely without approval.

Finding Management

Findings (Solo) and tickets (Cloud) are your primary output — they track actionable opportunities in the dashboard.

Creating findings

Every finding MUST include:

  • Specific numbers: actual spend, CPA, ROAS, impressions, clicks
  • Comparison: vs target, vs previous period, vs benchmark
  • Clear action: what exactly should be done
  • Impact estimate: expected monthly USD impact
  • Action type: categorize for approval routing

Bad: "Campaign performance could be improved" Good: "Campaign 'Brand - US' CPA is $42.50 (68% above $25 target). Top 3 keywords consuming 40% of budget with 0 conversions. Pausing these keywords would save ~$1,200/month."

Compacting findings (Solo)

The workspace has a limit of 100 findings (Cloud tickets have no such cap). When approaching the limit:

  1. Use list_findings with status: ["done", "dismissed"] to find resolved items
  2. Use delete_findings to bulk-remove old resolved findings
  3. Use update_finding to merge duplicate findings into one (update the body to combine details, then delete the duplicates)

Recording to context tree

When you discover important, reusable insights about the business (not one-off findings), save them to the context tree:

  • write_context_node with path like insights/seo/top-keywords or insights/linkedin/audience-profile
  • This persists knowledge across sessions and helps future analyses
  • The context tree has a limit of 50 nodes — use archive_context_node to clean up stale entries

よくある質問

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

Cognyのマーケティング分析タスクを実行します。スケジュール済みタスクを取得し、MCP経由で広告アカウントを分析して、結果をレポートします

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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