- growth-engine: Autonomous experiment engine (Karpathy autoresearch for marketing) - sales-pipeline: RB2B router, deal resurrector, trigger prospector, ICP learner - content-ops: Expert panel, quality gate, editorial brain, quote miner - outbound-engine: Cold outbound optimizer, lead pipeline, competitive monitor - seo-ops: Content attack briefs, GSC optimizer, trend scout - finance-ops: CFO briefing, cost estimate, scenario modeler 79 files, all sanitized - zero hardcoded credentials or internal references.
8.2 KiB
AI SEO Ops
Find the keywords your competitors missed. Automatically.
An AI-powered SEO operations suite that replaces the manual grind of keyword research, competitor analysis, content briefing, and trend detection. These tools pull data from Google Search Console, Ahrefs, and the open web to surface the exact opportunities your team should act on — ranked by impact, scored by confidence, and ready to execute.
What's Inside
🎯 Content Attack Brief Generator
Synthesizes your content footprint, Ahrefs keyword data, GSC performance, and competitor gaps into a weekly prioritized keyword brief. Scores every keyword on Impact × Confidence and assigns an execution path (fully automated → team-assisted → expert-only).
What it finds:
- BOFU money keywords your competitors rank for but you don't
- Trending keywords surging before the competition notices
- Decaying pages losing traffic that need a refresh
- Outside-the-box content angles where you have unique authority
📊 GSC Keyword Optimizer
Pulls Google Search Console data and identifies "striking distance" keywords — queries where you rank positions 4–20 with decent impressions. These are your quick wins: small optimizations that can push you onto page one.
What it does:
- Finds keywords on the cusp of page one
- Calculates potential traffic gains from position improvements
- Identifies CTR underperformers (you rank well but nobody clicks)
- Groups related keywords for efficient optimization
🔑 GSC Client & Auth
A reusable Google Search Console API client with OAuth flow. Use it standalone or import it as a library in your own scripts.
Features:
- Top queries, pages, device splits, country splits
- Striking distance finder (positions 4–20)
- Query + page matrix for cannibalization analysis
- Daily trend tracking
- CLI and library modes
🔥 Trend Scout
Scans Google Trends, Hacker News, Reddit, and X/Twitter to find trending topics in your niche before they peak. Scores each trend for relevance to your content verticals and suggests content angles.
Sources monitored:
- Google Trends RSS (US)
- Hacker News (filtered for your niche)
- Reddit (configurable subreddits)
- X/Twitter (via Brave Search)
- YouTube competitor outlier detection
Quick Start
1. Install dependencies
pip install -r requirements.txt
2. Configure environment
cp .env.example .env
# Edit .env with your API keys and site configuration
3. Authenticate with Google Search Console
python gsc_auth.py
This opens a browser for OAuth consent. Your token is saved locally for subsequent use.
4. Run the tools
# Content Attack Brief — full keyword intelligence report
python content_attack_brief.py
# GSC Keyword Optimizer — find striking distance keywords
python gsc_client.py --striking --days 28
# GSC top queries
python gsc_client.py --queries 50 --days 28
# Trend Scout — find what's trending in your niche
python trend_scout.py
Architecture
┌──────────────────────────────────────────────────┐
│ Content Attack Brief │
│ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│ │ Content │ │ Ahrefs │ │ Competitor Gap │ │
│ │Fingerprint│ │ Keywords │ │ Analysis │ │
│ └────┬─────┘ └────┬─────┘ └────────┬─────────┘ │
│ └─────────────┼────────────────┘ │
│ ▼ │
│ ┌──────────────────────────────────────────────┐ │
│ │ Impact × Confidence Scoring │ │
│ │ Volume · KD · CPC · Trend · Funnel Stage │ │
│ └──────────────────────────────────────────────┘ │
│ │ │
│ ┌──────────┐ ┌─────┴─────┐ ┌──────────────────┐ │
│ │ GSC │ │ Execution │ │ Trend Scout │ │
│ │ Client │ │ Pipeline │ │ (Google Trends │ │
│ │ │ │ │ │ HN · Reddit) │ │
│ └──────────┘ └───────────┘ └──────────────────┘ │
└──────────────────────────────────────────────────┘
Scoring Algorithm
Every keyword gets an Impact score (0–10) and a Confidence score (0–10). Priority = Impact × Confidence.
Impact factors:
| Signal | Score |
|---|---|
| Volume ≥ 10K | +3 |
| Volume ≥ 2K | +2 |
| Volume ≥ 500 | +1 |
| CPC ≥ $15 | +3 |
| CPC ≥ $5 | +2 |
| CPC ≥ $1 | +1 |
| BOFU intent | +2 |
| MOFU intent | +1 |
| Trend surging (>50%) | +2 |
| Trend rising (>20%) | +1 |
Confidence factors:
| Signal | Score |
|---|---|
| KD ≤ 10 | +4 |
| KD ≤ 20 | +3 |
| KD ≤ 35 | +2 |
| KD ≤ 50 | +1 |
| Already ranking top 10 | +3 |
| Ranking 11–30 | +2 |
| Ranking 31–50 | +1 |
| Topic authority match | +2 |
Funnel Classification
Keywords are auto-classified into funnel stages:
- BOFU (Bottom of Funnel): "agency", "services", "pricing", "best", "vs", "alternative", "hire"
- MOFU (Middle of Funnel): "how to", "guide", "strategy", "case study", "roi", "tutorial"
- TOFU (Top of Funnel): Everything else
Commercial/transactional intent from Ahrefs automatically promotes to BOFU.
Trend Detection
The Trend Scout scores each trending topic against your configured content verticals:
- High relevance (25pts each): Exact matches to your core topics
- Medium relevance (10pts each): Related industry terms
- Low relevance (5pts each): Tangential business terms
Trends scoring ≥20 get surfaced with content angle suggestions and recommended platforms.
Configuration
All configuration is via environment variables (see .env.example):
| Variable | Required | Description |
|---|---|---|
GSC_SITE_URL |
Yes | Your GSC property (e.g., https://www.example.com/) |
GSC_TOKEN_FILE |
No | Path to GSC OAuth token (default: .gsc-token.json) |
GOOGLE_CLIENT_ID |
Yes | Google OAuth client ID |
GOOGLE_CLIENT_SECRET |
Yes | Google OAuth client secret |
AHREFS_TOKEN |
No | Ahrefs API token (enables keyword data + competitor analysis) |
YOUR_DOMAIN |
Yes | Your root domain for organic keyword tracking |
COMPETITORS |
No | Comma-separated competitor domains |
CONTENT_VERTICALS |
No | Comma-separated topic verticals for trend scoring |
TREND_SUBREDDITS |
No | Comma-separated subreddit names to monitor |
BRAVE_API_KEY |
No | Brave Search API key (enables X/Twitter trend scanning) |
OUTPUT_DIR |
No | Where to save output files (default: ./output) |
Using as a Claude Code Skill
Add this to your .claude/agents/ directory and use the SKILL.md for Claude Code integration. The skill enables Claude to:
- Run keyword analysis on demand
- Generate weekly content attack briefs
- Find and prioritize quick-win keywords from GSC
- Monitor trending topics and suggest content
File Structure
seo-ops/
├── README.md # This file
├── SKILL.md # Claude Code agent skill definition
├── content_attack_brief.py # Full keyword intelligence pipeline
├── gsc_client.py # GSC API client (library + CLI)
├── gsc_auth.py # GSC OAuth setup flow
├── trend_scout.py # Multi-source trend detection
├── requirements.txt # Python dependencies
└── .env.example # Environment variable template
License
MIT