agentleFS
MoizIbnYousafMoizIbnYousaf/marketing-cli/skills/openseo-project-setup/SKILL.md

openseo-project-setup

Skill33 starsChanged 6 months agoMITView on GitHub

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 can start. Triggers: "set up openseo", "link seo project", "connect gsc", "start seo for this site", "openseo project id".

  • Reads credentials

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run these steps in order. Each has a fallback.

    line 42
  2. Very specific:

    Read brand/keyword-plan.md and brand/positioning.md if they exist (tolerate missing).

    line 56
  3. Very specific:

    Do NOT call research tools to test connectivity — whoami/list_projects are the only probes allowed here (they are free.

    line 62
  4. Very specific:

    After resolving the project, read get_project_context.

    line 64
  5. Very specific:

    Create or update .seo/openseo.json:

    line 68
  6. Very specific:

    Create .seo/ with rank-snapshots/ if rank tracking is in scope.

    line 74
  7. Very specific:

    File fallback: when OAuth is intentionally unavailable, place exports under .seo/gsc/ and record date range/search type.

    line 82
  8. Very specific:

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

    line 84
  9. Very specific:

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

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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
  • Exit 1 → the openseo catalog is missing; upgrade marketing-cli. Stop.
  • not_configured → connect the hosted MCP with OAuth, or set OPENSEO_API_KEY in a private headless client. OPENSEO_MCP_URL is only a self-host endpoint override. Without a connection, stop after the gap note — research skills fall back to Exa with metrics unknown.
  • Any *_ready state → proceed through that MCP client. Catalog configured means headless API-key readiness, not OAuth truth.

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

  • Hosted: connect GSC in the OpenSEO project's Integrations page; verify with get_search_console_performance, then use inspect_urls for priority-page index evidence.
  • Self-host native: configure GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and a 32+ character BETTER_AUTH_SECRET, with the exact /api/gsc/oauth/callback URL. Self-hosting does not require a CSV fallback.
  • File fallback: when OAuth is intentionally unavailable, place exports under .seo/gsc/ and record date range/search type.

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

SituationNext
No keyword plan yetopenseo-keyword-research
Has keyword list / GSC dataopenseo-keyword-clustering
Market unclearopenseo-competitive-landscape
Known competitoropenseo-competitor-analysis

Anti-Patterns

  • Running research calls as a connectivity test — because every OpenSEO research call can spend DataForSEO credit, and a setup handshake has no business spending money. whoami and list_projects are free; use only those.
  • Creating a project or overwriting shared context without confirmation — because these are free but still mutate account state used by other people and agents. Show the intended change first.
  • Claiming GSC is connected without proof — because downstream skills (keyword research's striking-distance strategy) silently change behavior based on that claim; a false positive turns first-party data into invented data. Verify with get_search_console_performance or say "not connected."
  • Pre-filling brand/keyword-plan.md with placeholder keywords — because template-detection (SHA-256) and mktg plan health read placeholder content as "populated," and every downstream skill then trusts fake keywords. Leave the template until real research lands.
  • Forking state into a second project file — because two project ids drift and every skill has to guess which is canonical. .seo/openseo.json is the single binding; update it, never duplicate it.
  • Asking the user 15 questions before writing anything — because setup should orient, not assign homework. Capture what is known, mark the rest unknown, and let research skills fill gaps on demand.

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

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.