Phase Research logo

Phase Research

Community
XuanRanL
phase-research

Run Phase 1 Research only — keyword research, SERP analysis, competitor analysis, content gap analysis, surface targeting. Use when user wants research-only output without writing an article. Triggered by /seo-blog research, "research this keyword", "what's the SERP for X", "competitor analysis for".

Overview

PublisherXuanRanL
Repositoryloamwright-SEO-Skill
Skill namephase-research
Stars
52
Forks
9
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by XuanRanL on GitHub. Read the source before you install it.

Installation

Install the Phase Research AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/skills/phase-research
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill.git /tmp/loamwright-SEO-Skill
mkdir -p .claude/skills
cp -r /tmp/loamwright-SEO-Skill/skills/phase-research .claude/skills/phase-research
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Phase Research in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Phase Research on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Phase Research is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Phase Research Orchestrator

Run 6 research sub-skills in sequence, accumulate findings into research.json. Stage 6 (community-research) is ALWAYS-ON.

Inputs

  • state.json with state.brief.primary_keyword required
  • Optional state.project_slug for project-aware research (cache reuse, competitor exclusion)

Stages

1. keyword-research        →  Tavily + Crossref + AI-search probe
                              + SerpApi autocomplete + related_questions (true PAA)
                              Output: primary keyword expansion + LSI + intent + PAA

2. serp-analysis           →  13 SERP features detection (Google + Bing + AIO)
                              SerpApi = REAL organic positions + featured snippet +
                              People-Also-Ask + AI Overview (structured, not generic search)
                              Output: serp_features[], top-10 URLs

3. competitor-analysis     →  top-5 competitor deep extract (5-tier waterfall)
                              Output: competitor_titles[] with content_gap

4. content-gap-analysis    →  5 frameworks: SEO/AI/FAQ/Format/Authority gaps
                              Output: content_gaps[] with opportunity_score

5. surface-targeting       →  User selects 1-5 surfaces (owned/serp/aio/chatgpt/pplx/claude/gemini/reddit/youtube)
                              Output: brief.target_surfaces[] updated

6. community-research      →  ALWAYS-ON Reddit + X pass (cost ≈ 0 via the Tavily pool).
                              Real executor (Rule 6 — not pseudo-code):
                                python -m scripts.research.community_research_runner \
                                  --topic "{primary_keyword}" --task-id {task_id} --sources reddit,x --json
                              Splits signal vs claim; multi-dimensionally verifies claims.
                              Output: research.json :: community_insights (signals + verified claims).
                              IRON RULE: community URLs never cited — a verified claim cites the
                              authoritative corroborating source, never the reddit.com/x.com URL.
                              Per-project subreddits/handles + on/off default in
                              business-context.json :: community_research (degrades gracefully if absent).

SerpApi — structured SERP + AI Overview (fills the Tavily gap)

Tavily gives generic web search/extract; it does NOT return Google's ranked positions, People-Also-Ask, featured snippet, or the AI Overview. For real SERP intelligence use the pooled SerpApi wrapper (free 250 searches/mo per account, round-robin across the pool like the Tavily key pool). Real executors (not pseudo-code):

bash
# real organic positions + PAA + related searches + (if present) AI Overview block
python -m scripts.fetch.serpapi_query --engine google --q "{primary_keyword}" --gl us --hl en --json
# keyword expansion straight from Google
python -m scripts.fetch.serpapi_query --engine google_autocomplete --q "{primary_keyword}" --json
# is Google AI Overview triggered for this query? (core GEO signal; auto-follows page_token)
python -m scripts.fetch.serpapi_query --engine ai_overview --q "{primary_keyword}" --json

Remaining free quota across the pool: python -m scripts._core.serpapi_pool --status. Degrades gracefully — if no SerpApi key is configured, skip these and fall back to Tavily.

Engine selection — registry-driven, vertical-aware (do NOT reason over all ~110 engines). SerpApi has ~110 engines; a curated SEO-relevant subset is registered with their real query params + the verticals/intents/surfaces that should trigger them. Get the shortlist for THIS article, then call serpapi_query only for the 2-4 that fit:

bash
# shortlist the engines worth calling for this article (deterministic, no quota cost)
python -m scripts._core.serpapi_engines --suggest --vertical {vertical} --intent {intent} --surfaces {surfaces} --json
#  → core (google, autocomplete, trends, ai_overview) for every article, PLUS e.g.
#    ecommerce (google_shopping, amazon, walmart) for a product review, or
#    local (google_local, google_maps, yelp) for a local topic, or youtube for a video surface.
# then run each suggested engine (the selector also tells you each engine's right query param):
python -m scripts.fetch.serpapi_query --engine {engine} --q "{primary_keyword}" --json

Discipline: always run the core 3-4 (google + google_autocomplete + google_trends + ai_overview); add only the 1-3 vertical/surface engines the selector surfaces — don't call them all. Full catalog: python -m scripts._core.serpapi_engines --list. Any of the ~110 engines is still directly callable with --engine X even if it isn't in the registry.

Cost guards

  • Tavily basic = 1 credit, advanced = 2 credits
  • SerpApi: free 250 searches/mo per pooled account, $0 on the free tier (rotates across the pool on quota, same as Tavily); usage still logged via cost_ledger for visibility
  • Per stage: estimate before run, halt if exceeds budget
  • Use memory/research-cache/ for repeat queries within 24-72h (SerpApi cached 6h)

Output

workspace/{task_id}/research.json conforming to schemas/research.schema.json.

Handoff

schemas/handoff.schema.json with recommended_next_skill = "format-selector" (Plan phase).

Failure modes

FailureAction
Tavily quota exhaustedFall back to Crossref + cache-only research
SERP fetch failsTry patchright (Tier 2) for blocked pages
AI probe all-engines failMark ai_engine_findings.probe_failed: true, continue
No competitors found in top-10Expand SERP to top-20, lower confidence flag

See also

  • subskills/research/keyword-research/SKILL.md
  • subskills/research/serp-analysis/SKILL.md
  • subskills/research/competitor-analysis/SKILL.md
  • subskills/research/content-gap-analysis/SKILL.md
  • subskills/research/surface-targeting/SKILL.md
  • subskills/research/community-research/SKILL.md

Frequently asked questions

What does the Phase Research AI skill do?

Run Phase 1 Research only — keyword research, SERP analysis, competitor analysis, content gap analysis, surface targeting. Use when user wants research-only output without writing an article. Triggered by /seo-blog research, "research this keyword", "what's the SERP for X", "competitor analysis for".

Why use Phase Research on TypingMind?

Because you install it once and use it with any model. Phase Research is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Phase Research in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/skills/phase-research. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Phase Research?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Phase Research?

As many as you like. As long as a model supports skills, you can use Phase Research with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Phase Research AI skill free?

Yes. It is published on GitHub by XuanRanL under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇