seomachine: Command for Claude Code

.claude/commands/research-trending.md

research-trending is a command for Claude Code from TheCraigHewitt/seomachine. It costs 0 tokens per session (934 once invoked), scanned A, original, MIT.

A command for finding search topics whose interest is rising now by comparing recent search activity with an earlier period. It produces a report that ranks opportunities and how quickly they need attention.

In plain words
What is it for?
Use it to analyze Google Search Console data, enrich it with search-volume information, assess search intent, and create a dated trends report.
Why use it?
It helps identify time-sensitive subjects before their growth slows or competition increases.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

This is TheCraigHewitt/seomachine's own configuration. It tells Claude Code how to work on seomachine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything seomachine configures →

About the project

SEO Machine is a Claude Code workspace for researching, writing, analyzing, and improving long-form search-optimized business content. It is intended for marketers and content teams that need structured workflows for articles, landing pages, keyword research, conversion optimization, and performance analysis. Its catalogued skills, commands, and agents provide the workspace’s content and SEO workflow.

TheCraigHewitt/seomachine · 7,427 stars · on GitHub · seomachine.io

Reuse

Borrowing it

Nothing to install: this file belongs to TheCraigHewitt/seomachine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/TheCraigHewitt/seomachine/main/.claude/commands/research-trending.md
Clone the repo
git clone --depth 1 https://github.com/TheCraigHewitt/seomachine

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for research-trending

README.md
[![agentmods](https://agentmods.dev/badge/commands/thecraighewitt/seomachine/research-trending/github.svg)](https://agentmods.dev/commands/thecraighewitt/seomachine/research-trending)
Your own site
<a href="https://agentmods.dev/commands/thecraighewitt/seomachine/research-trending"><img src="https://agentmods.dev/badge/commands/thecraighewitt/seomachine/research-trending/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for research-trending

Your own site · 80×15
<a href="https://agentmods.dev/commands/thecraighewitt/seomachine/research-trending"><img src="https://agentmods.dev/badge/commands/thecraighewitt/seomachine/research-trending.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 934 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00934
Opus 5 $0.00000 $0.00467
Sonnet 5 $0.00000 $0.00187
Haiku 4.5 $0.00000 $0.00093

Measured 11d ago against content hash 125a24a57229, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

research-trending scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/research-trending.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Identify topics gaining search interest NOW for time-sensitive content opportunities.

Usage

/research-trending

What This Command Does

Analyzes search trends to find keywords experiencing rapid growth:

  • Compares last 7 days vs previous 30 days
  • Identifies topics with significant impression increases
  • Calculates urgency based on growth rate
  • Prioritizes by opportunity score
  • Shows your current position for each trend

⏰ TIME-SENSITIVE: These are hot trends - act quickly before they cool or competition increases.

Process

Execute trending analysis:

python3 research_trending.py

This will:

  1. Get trending queries from GSC (7d vs 30d comparison)
  2. Filter to minimum 20 impressions (avoid noise)
  3. Enrich with search volume from DataForSEO
  4. Analyze search intent
  5. Calculate opportunity score based on:
    • Growth rate (40%)
    • Search volume (30%)
    • Current position advantage (30%)
  6. Determine urgency level
  7. Generate report: research/trending-YYYY-MM-DD.md

Output

The report categorizes by urgency:

🔥 CRITICAL Urgency (+150% growth)

Act within 1 week - These topics are exploding NOW

Example:

  • "ai content optimization" +429% growth
  • Your position: 27
  • Volume: 1,800/mo
  • Action: Create comprehensive guide within 3-7 days

⚡ HIGH Urgency (+75% growth)

Act within 2 weeks - Strong upward trends

⏳ MODERATE Urgency (+30% growth)

Act within 1 month - Steady growth, monitor

For each trend:

  • Growth percentage and trajectory
  • Current position (your visibility)
  • Search volume (if available)
  • Opportunity score
  • Specific action steps
  • Timeline to act

Key Actions

If You Already Rank (Position ≤30)

Quick Win!

  1. Update existing content immediately
  2. Add trending angle/section
  3. Update title with current year
  4. Optimize for trending query
  5. Timeline: 3-5 days

If You Don't Rank (Position >30)

New Content Needed

  1. Create comprehensive 2000+ word guide
  2. Publish within 3-7 days
  3. Promote on social immediately
  4. Consider paid promotion to accelerate
  5. Timeline: 1 week max

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 146 lines · 0 tokens per session scan A 125a24a57229

Subscribe to this mod's changes

research-trending is a command published in the GitHub repository TheCraigHewitt/seomachine (7,427 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 934 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.