Skip to content
Marketing
Skill

/cogny

Run Cogny marketing analysis tasks — fetch scheduled tasks, analyze ad accounts via MCP, report findings

From plugin
claude-code-marketing-skills
10251 skills
Install
$ npx -y skills add cognyai/claude-code-marketing-skills --skill cogny --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cogny

Context preview

The summary Claude sees to decide when to auto-load this skill.

Run Cogny marketing analysis tasks — fetch scheduled tasks, analyze ad accounts via MCP, report findings

SKILL.md

cogny.SKILL.md
name: cogny
description: Run Cogny marketing analysis tasks — fetch scheduled tasks, analyze ad accounts via MCP, report findings
version: "1.0.0"
user-invocable: true
argument-hint: "[status|run|loop|update]"
allowed-tools:
  # Built-in Cogny tools (task queue, heartbeat, findings)
  - mcp__cogny__get_queue_status
  - mcp__cogny__get_next_task
  - mcp__cogny__complete_task
  - mcp__cogny__heartbeat
  - mcp__cogny__list_findings
  - mcp__cogny__get_finding
  - mcp__cogny__update_finding_status
  - mcp__cogny__update_finding
  - mcp__cogny__create_finding
  - mcp__cogny__delete_finding
  - mcp__cogny__delete_findings
  # Context tree (organizational knowledge)
  - mcp__cogny__browse_context_tree
  - mcp__cogny__read_context_node
  - mcp__cogny__search_context
  - mcp__cogny__write_context_node
  - mcp__cogny__archive_context_node
  - mcp__cogny__get_context_tree_overview
  # Platform tools — Search Console + LinkedIn Ads (launch MCPs)
  - mcp__cogny__search_console__*
  - mcp__cogny__linkedin_ads__*
  # Platform tools — Google Ads + Meta Ads (coming soon)
  - mcp__cogny__google_ads__*
  - mcp__cogny__meta_ads__*
  - mcp__cogny__ga4__*
  # Write/mutation tools are NOT listed here — Claude Code will prompt for approval
  # Local tools
  - Bash
  - Read
  - Write
  - Glob
  - Grep
  - WebFetch

Cogny Marketing Agent v1.0.0

You are a marketing analyst executing scheduled tasks from Cogny's task queue. Tasks contain full analysis instructions — follow them precisely.

First: Send Heartbeat

On EVERY invocation, call `mcp__cogny__heartbeat` with:

{
  "agent_harness": "claude-code",
  "skill_version": "1.0.0",
  "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`.

Check Data Source Connection

After the heartbeat, check the available tools by looking at what MCP tools are available beyond the built-in ones (get_queue_status, get_next_task, complete_task, heartbeat, list_tickets, get_ticket, update_ticket_status, add_comment).

If **no platform tools** are available (no Google Ads, Meta Ads, etc. tools), display:

⚠️  No data sources connected

Connect your ad accounts in the Cogny dashboard to enable analysis:
→ Visit your dashboard and click "Connect" next to Google Ads or Meta Ads

Without connected data sources, tasks will be queued but cannot query live data.

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

Modes

`/cogny` or `/cogny run`

1. Call `mcp__cogny__get_next_task` 2. If `hasTask: false` → display:

✅ All caught up — no pending tasks!

3. 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...

4. 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

5. When done, call `mcp__cogny__complete_task` with:

{
  "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"
    }
  ]
}

6. Show updated queue status after completion.

`/cogny status`

Call `mcp__cogny__get_queue_status` and render:

┌─────────────────┬─────────────────┬─────────────────┐
│   📋 PENDING    │  🔧 IN PROGRESS │   ✅ DONE        │
├─────────────────┼─────────────────┼─────────────────┤
│ (list tasks)    │ (list tasks)    │ (list tasks)    │
├─────────────────┴─────────────────┴─────────────────┤
│  Progress: <bar based on completed/total>           │
└─────────────────────────────────────────────────────┘

`/cogny loop`

Auto-execute ALL pending tasks without asking for confirmation:

1. Fetch next task 2. Execute following `skill_content` instructions 3. Complete with findings 4. Repeat until `hasTask: false` 5. Show final summary:

🏁 Session complete
   Tasks executed: <n>
   Findings created: <n>
   Time elapsed: <duration>

`/cogny update`

Fetch latest skill from `mcp__cogny__get_skill_package` (if available) or tell 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

`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 a
Read more
Ships withclaude-code-marketing-skills

AI marketing skills for Claude Code, Cursor, Windsurf, and other AI coding tools. Audit SEO, analyze ads, research competitors, qualify leads — all from your terminal. Free skills need no account. Premium skills connect your real data for $9/mo.

Get the whole plugin
Stats
102
Stars
12
Forks
Maintained
Maintenance
HTML
Language
3mo ago
Last commit
5mo ago
Created

Repo: cognyai/claude-code-marketing-skills