Openseo project setup

From MoizIbnYousaf/marketing-cli · View interactive version

Openseo project setup is an AI agent skill from the GitHub repository MoizIbnYousaf/marketing-cli. Bind this repo to an OpenSEO project and prepare the local SEO state directories. Use this skill when starting SEO work on a fresh project, when `.seo/openseo.json` does not exist yet, when the OpenSEO project id is unknown, or when Google Search Console needs connecting before keyword or rank work

How to use this skill

Skill file

OpenSEO Project Setup

Bind the current repo to an OpenSEO project so every other openseo-* skill has a stable project id, and prepare mktg's local SEO state contract. This is a one-time-per-repo handshake, not an audit and not research.

On Activation

Run these steps in order. Each has a fallback; never block on missing context.

Step 1 — Check catalog readiness

mktg seo status --json --fields readiness,catalog,project,bindingCorrupt

Step 2 — Read brand grounding

Read brand/keyword-plan.md and brand/positioning.md if they exist (tolerate missing). The domain, audience, and positioning facts go into the project record. If brand/ is all templates, note it and recommend /cmo foundation first — SEO inputs without positioning are guesses.

Step 3 — Resolve the OpenSEO project

Via OpenSEO MCP: call whoami, then list_projects. Match the project to the user's domain. If ambiguous, ask which project. If no match exists, show the proposed name/domain/market and ask before calling create_project (a free shared-state mutation).

Do NOT call research tools to test connectivity — whoami/list_projects are the only probes allowed here (they are free; research calls spend DataForSEO credit).

After resolving the project, read get_project_context. Offer to merge verified mktg facts from positioning, audience, competitors, key pages, writing preferences, and goals through update_project_context. Show the fields first and confirm because this changes shared OpenSEO memory. Never overwrite a non-empty upstream field silently.

Step 4 — Write the binding + state directories

Create or update .seo/openseo.json:

{ "version": 1, "projectId": "<id>", "domain": "<domain>", "mcpUrl": "https://app.openseo.so/mcp", "linkedAt": "<iso>", "updatedAt": "<iso>" }

Create .seo/ with rank-snapshots/ if rank tracking is in scope. If brand/keyword-plan.md is a template, leave it alone — the first research run populates it; do not pre-fill with placeholders.

Step 5 — Google Search Console

GSC is the richest first-party signal (striking-distance terms, cannibalization).

Never claim GSC is connected unless get_search_console_performance confirms it — it returns a "not connected" message otherwise.

Step 6 — Recommend the next skill

| Situation | Next |

|---|---|

| No keyword plan yet | openseo-keyword-research |

| Has keyword list / GSC data | openseo-keyword-clustering |

| Market unclear | openseo-competitive-landscape |

| Known competitor | openseo-competitor-analysis |

Anti-Patterns

Close the loop

After writing files, log completion so mktg plan / mktg status count the work (bare mktg run only logs loaded):

mktg run openseo-project-setup --complete --writes <paths written> --result success --json

Progressive Enhancement

| Level | Behavior |

|---|---|

| L0 (no envs, no MCP) | Gap note only; point at Exa-backed keyword-research with metrics unknown |

| L1 (OPENSEO_API_KEY) | Binding written; MCP-dependent steps documented as deferred |

| L2 (MCP connected) | Full project resolution + GSC live check |

| L3 (GSC connected) | .seo/gsc/ or live GSC feeds keyword research + clustering directly |


Adapted from every-app/open-seo .agents/skills/seo-project-setup (MIT). Upstream workflow by the OpenSEO maintainers; mktg state contract, brand grounding, and cost discipline added here.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.