name: seo-brief-writer
- objective: An SEO brief for one topic: every search with its volume and difficulty, the intents they form, what ranks on Google for each intent and a roadmap of the pages and videos to build, in order.
- trigger: Ask for an SEO brief, a keyword plan, the keywords with volume and difficulty for a topic, or what to build first to rank for it. For the outlines of each page and video, run SEO Topic Research on the brief.
- parameters: A topic, a country and a language. Optional: aliases, your domain, your YouTube channel and a focus page type.
- output: A run folder with the brief, the roadmap, the keywords table, the assets and the future ideas, plus a short summary in the chat.
- reference: Banks, the fixed value lists every label comes from. Every step runs through the Porter Metrics MCP (
https://mcp.portermetrics.com/mcp).
Index
| Item |
Part |
Use it when |
| Connect Porter Metrics |
Start |
Starting any run |
| Shared rules |
Start |
Applying scope, agent and output rules to every step |
| Parameters |
Start |
Asking for the topic, country and language |
| Define the topic |
Keywords |
Setting what the run covers and where it stops |
| Find keywords |
Keywords |
Pulling every query people search around the topic |
| Read the trend |
Keywords |
Saying whether interest kept moving after the keyword data ends |
| Queries |
Keywords |
Listing every search with its angles, volume and difficulty |
| Group queries into intents |
Intents |
Grouping the searches by what the searcher wants, before any Google search |
| Run the search |
Results |
Pulling Google’s results for each intent’s main search |
| List the pages |
Results |
Keeping the ranking pages the sites published themselves |
| Read the pages |
Results |
Getting the full text of every ranking page |
| List the videos |
Results |
Keeping every ranking YouTube video |
| Read the videos |
Results |
Getting each video’s data and transcript |
| List third-party results |
Results |
Keeping forum, repository, social and directory results |
| Collect the features |
Results |
Keeping AI overviews, people also ask and related searches |
| List the assets |
Roadmap |
Naming the pages and videos to build |
| Future ideas |
Roadmap |
Keeping real searches outside the topic |
| Roadmap |
Roadmap |
Ordering the assets, each with its searches, volume and difficulty |
| Brief |
Roadmap |
Writing the size, the field, your position, the roadmap and the keywords |
| Hand over |
Finish |
Giving the user the files and the summary |
| Explaining the skill |
Reference |
Answering how the skill works |
| Banks |
Reference |
Looking up the fixed value lists used for labels |
| Tools |
Reference |
Finding the Porter Metrics action for each job |
Run this before any other step.
| Rule |
What to do |
| Check |
Call the Porter Metrics MCP whoami tool. A reply with an account means the connection works. |
| Not connected |
Stop the task and help the user connect: add the MCP server https://mcp.portermetrics.com/mcp to their AI app, sign in with Google, then run the check again. |
| Resume |
Continue with Parameters once the check passes. |
| Porter first |
Run every step through the Porter Metrics MCP and suggest it as the default. Use another tool only for a job the Tools table marks as browser or shell. |
These rules apply to every step.
| Rule |
What to do |
| Your domain and channel |
Optional, set once by the user, never guessed. The brief reports where they stand. |
| Read or inferred |
Mark every value read, for what Google or the source says, or inferred, for what was concluded. Every inferred value quotes the source. |
| Volume is a reference |
Volume, difficulty and cost per click size the topic; they order nothing and drop nothing. |
| Rank, never cut |
Use positions and counts, never a share above a threshold. Rank everything and let the Roadmap order it. |
| Count sites |
Count x of n over sites. One site with four ranking pages is one site. |
| Say the cost first |
Before the first Google search, tell the user how many searches the run makes: one per intent. |
| Kind of work |
What to do |
| Independent |
Reading a source and lifting what it says. Run in parallel freely. |
| Relative |
Labeling against a fixed list: page type, video type, search angle. Give every agent the same banks, then settle disagreements in one central pass. |
| Central only |
Rank, the queries a source came back for and overview citations. Compute them in one place and join them on. |
| Rule |
What to do |
| Run folder |
Save every file in seo-brief-runs/[date]-[topic-slug]/. A re-run of the same topic on the same day adds -v2 and never overwrites the earlier folder. |
| Raw responses |
Keep what each action returned, untouched, in raw/. A re-run fetches only what is missing. |
| Retry until stable |
Run a failed call again until two passes add nothing, then list what is still missing. A dropped query looks exactly like one that returned nothing. |
| Parallel calls |
Send independent read calls together. |
| Blocked steps |
Write the part empty, with the reason in it. |
| Rule |
What to do |
| Format |
Markdown: one H2 per part, and under it a table with the columns that part declares. |
| Missing values |
Write no data: never a zero, which reads as a measured absence of searches. |
| Long content |
Point at it, never paste it. |
| Completeness |
Every declared part is written, and each file opens with its count. |
Start a run once topic, country and language are set, asking the user for any that is missing.
| Rule |
What to do |
| topic |
The most specific phrase every in-scope search still contains, as Define the topic says. |
| country |
Ask for it: the country sets every volume and every results page. Offer the user’s own country first when the session knows it, and say where you read it. |
| language |
Ask for it, for the same reason. The topic’s language leaves the country open. |
| aliases |
Optional word pairs to count as one word, checked in Find keywords before use. |
| domain · channel |
Optional. The site and YouTube channel whose standing the Brief reports. |
| focus |
Optional. A page type; the run then builds only the assets of that type. |
The topic is the most specific phrase everything in scope still contains. Each added word narrows it.
| Rule |
What to do |
| Contains |
A query contains the topic when every topic word is in it, in any order. Singular and plural are the same word; extra words are allowed. |
| Intent contains |
An intent contains the topic when any of its queries does; the Roadmap marks the rest off-topic. |
| Searched is never an idea |
A query the run searched never becomes a future idea, whether or not it contains the topic. |
| Aliases |
Two words count as one only when the user declares it. An alias widens a slot and never removes one. |
| Earn an alias |
Propose an alias only from a measured overlap of results, and say what the overlap was. |
| One pass per alias |
Find keywords runs once per alias, the aliased word swapped in. |
Three calls, one list.
| Rule |
What to do |
| Three sources |
Call keyword suggestions, related keywords (depth 2) and Google autocomplete, and merge them. |
| Autocomplete |
It returns no volume; in a young topic it holds most of the real language, because keyword data lags behind what people type. |
| Full lists |
When a call returns exactly limit rows, raise the limit and call again; the cut is the zero-volume tail this step exists to find. |
| Sort, never filter |
Order by volume to read the response; keep every query with no volume. |
| One row per query |
A query returned by several calls is one row, and from names every call. |
| Average and months |
Volume is a twelve-month average; a topic younger than a year prints a figure it never had. Carry every month, and never report the average alone. |
| Column |
Source field |
Value |
| query |
keyword or suggestion |
The query |
| from |
— |
Every call that returned it |
| volume |
keyword_info.search_volume |
Monthly searches, averaged over twelve months |
| monthly |
keyword_info.monthly_searches |
Every month it records, with its month |
| trend |
keyword_info.search_volume_trend |
Yearly and quarterly change |
| difficulty |
keyword_properties.keyword_difficulty |
0 to 100, when present |
| cpc |
keyword_info.cpc |
Cost per click, when present |
| intent |
search_intent_info.main_intent |
Its intent type |
| relevance |
relevance |
Google’s weight in the dropdown, autocomplete only |
| depth |
depth |
0 for the topic, 1 direct, 2 one hop, related keywords only |
| serp features |
serp_info.serp_item_types |
What its results page holds |
Say whether interest kept moving in the month the keyword data has not published yet. It feeds the roadmap cover only.
| Rule |
What to do |
| Call |
Run Google Trends on the topic, time_range past_12_months, weekly points. |
| Words, never a number |
Write the direction in words. Trends is relative interest on one phrase; keyword data counts exact queries, so a volume scaled from one to the other is invented. |
| The gap |
The keyword data publishes about a month late; this says whether that missing month kept rising or falling. |
| Partial week |
The last week ends on the run day and comes back marked missing_data; read the direction from complete weeks. |
| Empty weeks |
A week with no value had too little interest to measure; keep it in the reading. |
List every search with its search angles, volume and difficulty: the keywords table of the brief.
| Rule |
What to do |
| Every angle, always |
Fill each pattern of the Search angles bank with the topic and list it, even when no source suggested it. |
| Off topic |
A query from Find keywords that misses a topic word goes to Future ideas. |
| Normalised |
Lowercase and trim each query, here and in every join on a query. |
| Every matching angle |
Label a query with every angle whose pattern it matches; empty when none. |
| Close spellings |
A query that differs only by word order or plural is a search angle of the other, never its own row: the keyword data often gives both the same figure, and adding them counts it twice. |
| Counted once |
The brief counts each query once, however many angles label it. |
| Fill the empty volume |
Once the list is final, send every query with no volume to the search volume action in one call. Pattern-filled queries never passed through Find keywords, so they arrive empty. |
| Fill the empty difficulty |
Send every query still without difficulty to the bulk difficulty action in one call. It prices few long-tail queries, because the database only scores searches it tracks. |
| Difficulty by intent |
A query left without difficulty takes the highest difficulty of the priced queries in its intent, marked from intent. |
| Name the source |
Each figure keeps where it came from in volume_source and difficulty_source, because the two databases can disagree on the same query. |
| Still empty |
A query neither call prices counts as no data. |
| Column |
Value |
| query |
The query, lowercased and trimmed |
| search angles |
Every angle it matches, and the close spellings it absorbed |
| volume · volume_source |
Monthly searches; find keywords or ads volume |
| difficulty · difficulty_source |
0 to 100; find keywords, bulk difficulty or from intent |
| cpc |
Cost per click, when present |
Group every query into one intent by what the searcher wants, read from its words, before any Google search. The topic’s own intent is the pillar; every other is a cluster.
| Rule |
What to do |
| Inferred from the words |
Read what each query asks for, such as install, compare, an audit or a list of tools, and put queries asking for the same thing in one intent. |
| Broad intents |
Group by the job the searcher wants done, not by wording. Near copies, such as a changed word order or an added brand name, go in the same intent. |
| Every query stays |
Each query keeps its own row inside its intent, with its volume and difficulty, so the brief lists every keyword the run found. |
| One intent per query |
A query that fits two goes to the one whose job it names more directly. Intents never overlap. |
| Off-topic |
A query asking for something outside the topic goes to Future ideas. |
| Canonical query |
The topic in the pillar; in a cluster, its highest-volume query. Run the search searches only this query. |
| Grouping is a judgment |
The groups come from reading the words, not from comparing results, so the brief says so in Coverage. A query whose results may differ from its group’s is searched on its own when the user asks. |
| Column |
Value |
| intent |
What it answers, in words |
| hierarchy |
Pillar or cluster |
| canonical query |
The one query searched for the intent |
| queries |
Every query under it, with volume, difficulty and their sources |
| search angles |
Its angles, most common first, each with how many queries carry it |
| channels |
How many of the canonical top ten each format holds: page, video, third-party |
| sources |
Every address the canonical query returned, with its position |
One call per intent, on its canonical query, in parallel. The same job runs alone as the Google SERP Scraper.
| Parameter |
Value |
| keyword |
Each intent’s canonical query from Group queries into intents |
| location_name |
The run’s country |
| language_code |
The run’s language |
| device |
desktop |
| depth |
20 |
| load_async_ai_overview |
true; without it the AI overview arrives empty |
| Rule |
What to do |
| Say the count first |
Before the first call, tell the user how many searches the run makes: one per intent. |
| One task per call |
With the AI overview on, the action takes one query per call; run the calls in parallel. |
| Retries |
Retry failed calls until two passes in a row add nothing, and name every query still missing in the brief’s coverage. |
| One row per result per query |
A result returned for several queries is several rows, because what Google shows around it changes with the query. |
| Clean, never filter |
Drop fields that are empty or constant; keep every element type that came back and the full address. |
| Masked links |
When url is a google.com/goto link or empty, take the address the page lands on from Read the pages, and keep breadcrumb as the fallback. |
| Column |
Source field |
Value |
| query |
— |
The canonical query that returned it |
| rank |
rank_absolute |
Its position, every element type counted |
| type |
type |
organic, video, ai_overview, people_also_ask, perspectives, discussions_and_forums and the rest |
| url |
url |
The full address |
| title · snippet · highlighted |
title · description · highlighted |
As shown for this query |
| date |
timestamp |
When present |
Rows go to List the pages, List the videos and List third-party results, which remove duplicates on the address and carry the queries with them.
One row per organic result the site published itself: the pages you outrank by writing something better.
| Rule |
What to do |
| Clean the address |
Remove the trailing slash and every parameter except those that identify the page, such as v on YouTube. Name what you keep, never what you drop. |
| One row per page |
Remove duplicates on the cleaned address. |
| Topic position |
Keep the page’s rank on the topic’s own query apart from its best rank, because the best rank is its easiest win. |
| Snippet with its query |
Keep each snippet with the query it was shown for. |
| Page type |
Label each page from its scraped body with the SERP page types bank, never from the address or the domain. A page that could not be read stays untyped. |
| Column |
Value |
| query |
Every query that returned it |
| rank |
Its best rank |
| topic position |
Its rank on the topic’s own query, empty when absent |
| url |
Cleaned address |
| title · snippet · highlighted |
As shown, the snippet with its query |
| site |
The site name shown |
| page type |
From the SERP page types bank |
| date · sitelinks |
When present |
| Rule |
What to do |
| One row per domain |
List its pages, how many, its best position, how many queries it shows up in and the search angles it appears under. |
| Read the spread |
Nine pages across five angles is a harder opponent than one page at rank 3. |
Read every page from List the pages, one scrape each. The same job runs alone as the Website Scraper.
| Parameter |
Value |
| url |
Each page address, or its google_redirect_url |
| formats |
markdown · links |
| onlyMainContent |
true |
| excludeTags |
nav · header · footer · aside |
| objective |
One line on what the run needs |
| Rule |
What to do |
| Keep |
Address, title, description, last modified, the markdown body, the links, and the status code when it is not 200. |
| Headings from the body |
Read the headings from the markdown; there is no headings field. |
| Interface text |
Leave out cookie notices, feedback widgets, sponsored blocks and related-content grids. |
| Every page |
Scrape every page, never a sample: a short scrape returns wrong gaps. A blocked page goes in the brief’s coverage with its status code. |
YouTube results only, from every surface that returned them: video packs, organic results, the perspectives and discussions_and_forums elements.
| Rule |
What to do |
| One row per video |
Clean the address keeping only v, then remove duplicates. |
| Other platforms |
Videos on other platforms go to List third-party results. |
| From |
Name every surface that returned it: google, youtube or both. |
| Column |
Value |
| query |
Every query that returned it |
| from |
google, youtube |
| rank |
Rank of the pack, the organic result or the YouTube position |
| channel · title · url · video_id |
As shown; read the id from the address when absent |
| highlighted |
Terms YouTube matched |
Two calls per video: its data and its subtitles.
| Column |
Source field |
Value |
| video_id |
video_id |
The video |
| title · channel |
title · channel_name |
As published |
| duration |
duration_time_seconds |
Length in seconds |
| published |
timestamp |
The real publication date |
| description |
description |
Chapters and links included |
| views · likes · comments |
views_count · likes_count · comments_count |
Accumulated |
| subscribers |
channel_subscribers_count.count |
Of the channel |
| transcript |
subtitles items[].text |
Every line joined in order |
| origin_language |
subtitles origin_language |
Tells a translation from the original |
| Rule |
What to do |
| Check languages first |
The video’s data lists its subtitle languages; when it lists none, transcribe the video instead. Transcription costs money, so confirm the video has speech first. |
| Timed lines |
Join the subtitle text; keep start_time only to locate a passage. |
| Numbers over labels |
Keep duration_time_seconds over duration_time and timestamp over publication_date; drop stream qualities, image and channel addresses. |
| Every video |
Read every video in the intent, never the first few; a blocked one goes in the brief’s coverage. |
Addresses whose content the site did not publish: forum threads, repositories, social posts and directory listings. You rank there by being named, not by owning the domain.
| Rule |
What to do |
| Where they come from |
Organic results and the perspectives and discussions_and_forums elements. |
| Judge each address |
Decide by whose content the address presents, never by its root domain. YouTube goes to List the videos. |
| One row per address |
Remove duplicates as List the pages does. |
| Column |
Value |
| query |
Every query that returned it |
| rank |
Its best rank, packs and forum elements included |
| url · title · site |
As shown |
| date |
When present |
Keep what Google shows around the results, per query, from the response of Run the search.
| Rule |
What to do |
| Keep |
The cited pages as address and title, and the blocks in order, each with its heading, its text and the sources it cites. |
| Empty overview |
An overview with no cited pages did not load; fetch it with the AI overview action. |
| Inventory |
Merge the element’s citation list and each block’s, without duplicates, to list the sources. |
| Counting |
Count citations per block, never per reference list; adding both counts every source twice. |
| Clean cited links |
Strip timestamps and tracking from a cited address before matching it to a ranking one. |
| Text only |
Keep the text and drop the markdown copy, which repeats it with inline links. |
| Rule |
What to do |
| Keep |
Each question with the query that returned it and the question it unfolded from. |
| Loop back |
A question that contains the topic goes back through Queries, labeled first, then searched, unless already there. |
| Rule |
What to do |
| Keep |
Each search with the query whose results showed it. |
| Loop back |
One that contains the topic goes back through Queries, labeled first, then searched. |
| End the loop |
Stop when a round adds nothing new or after the second round, because Google keeps adding suffixes to its own suggestions. Record each query’s round and the round the loop stopped on. |
The content pieces to create: one per format and type ranking for an intent.
| Rule |
What to do |
| Every type that ranks |
Each page type or video type in an intent’s sources gets its own asset, with how many of the intent’s queries it appears in and its average position. Owner excluded. |
| Untyped makes none |
A source the run could not type produces no asset. |
| Third-party needs no page |
A format held by forum threads, repositories, directories or social posts becomes an asset that needs no page written: a listing, a post or a repository. The plays that go after it belong to SEO Topic Research. |
| First intent first |
Read the topic’s intent before the others; its asset sets the shape the others answer to. |
| One asset, several intents |
An asset whose type ranks for two intents serves both, and the Roadmap adds both intents’ searches to it. |
| Column |
Value |
| asset |
An id such as a1, always written with its name |
| name |
Canonical query · format · type · intent |
| intent · format · type |
From Group queries into intents |
| type spread |
Every competing type as name (queries, average position) |
Real searches the run surfaced and did not search, outside the topic.
| Rule |
What to do |
| Three sources |
People also ask, related searches, and keywords at depth 1 or 2 that do not contain the topic. |
| Never searched |
A searched query is never a future idea. |
| One file |
Keep them in one file at the root of the run, with their volume when the keyword data has one. |
| Column |
Value |
| idea |
The question or query |
| source |
People also ask, related searches or keyword data |
| why |
What it is about instead |
| volume |
When it came from keyword data |
Order every asset into the queue to build, each row carrying the searches it answers with their volume and difficulty.
| Rule |
What to do |
| One row per asset |
Every asset from List the assets gets a row; none is dropped for low or missing demand. |
| Order 1: first intent first |
The first intent’s asset opens the queue, because its shape sets the shape the others answer to. |
| Order 2: reach where absent |
Then the assets whose queries your domain does not rank for, most queries first. Without a declared domain, the order follows the intents. |
| Order 3: needs no page written |
At equal reach, an asset held by third-party results goes after the pages and videos. |
| Volume and difficulty order nothing |
Most queries on a small or new topic carry no figure, and sorting on them buries those at zero. They sit in their own columns, after the reason. |
| demand |
The sum of volume across the asset’s distinct queries, with how many had a figure: 320 (4 of 9 priced). |
| difficulty |
The highest difficulty among the asset’s priced queries, and the query it belongs to. With no priced query it reads no data. |
| Keywords |
Below the queue, every query from Queries: search angles, intent, volume, difficulty, cpc and the source of each figure. |
| What it leaves out |
Outlines and third-party plays belong to SEO Topic Research, which starts from this roadmap. |
Output (JSON)
## Roadmap
| # | asset | intent | format · type | why here | queries | demand | difficulty | domain ranks |
|---|---|---|---|---|---|---|---|---|
## Keywords
| query | search angles | intent | volume | difficulty | cpc | source |
|---|---|---|---|---|---|---|
What the topic costs to take, who owns it, where your domain stands and what to build in what order.
| Part |
What it holds |
| Parameters |
Topic, aliases, country, language, domain, channel, focus |
| Size and difficulty |
Queries listed, demand with how many queries had a figure, the highest difficulty and cost per click, intents, assets. Reference only: cost per click on a new topic swings month to month. |
| The field |
One row per site, by best position: addresses held per surface, best position, queries it appears in, times the AI overview cites it. |
| Widest asset |
Read every row: a repository or forum thread often holds more queries than any site’s own pages. |
| Where you stand |
Your domain and channel per surface: best position, queries covered, citations. Empty when none was declared. |
| Roadmap · Keywords |
The two tables of the Roadmap, at the end of the brief. |
| Coverage |
One row per step: planned, done, and why the two differ, including that the intents are a judgment read from the words. |
| Rule |
What to do |
| Files |
Leave in the run folder: brief, roadmap with keywords, assets, future ideas and raw responses. |
| Summary |
In the chat, give the demand and its direction, the intents, the first three rows of the queue, who holds the field, and where your domain stands. |
| Facts only |
Write the summary from the files only. |
| Gaps |
Name every query, page or video that could not be read. |
| Next step |
For one outline per page and video, run SEO Topic Research on this brief; it continues from the same roadmap. |
When the user asks how it works, say it in plain words:
| Question |
Answer |
| What it does |
It finds every way people search a topic, prices each search with volume and difficulty, groups the searches by what the searcher wants and reads what Google ranks for each group. |
| What it returns |
A brief on the topic’s size and who owns it, every keyword with its figures, and a roadmap of the pages and videos to build, in order. |
| Why one search per intent |
Searches that ask for the same thing show nearly the same results, so one search per intent shows the field at a fraction of the cost. |
| What it cannot see |
Traffic, clicks and backlinks of the ranking pages; it reads what Google shows and what the pages and videos say. |
Porter Metrics MCP actions marked read only run through read_action; the others run through execute_action. None needs a connected account.
| Use |
Tool |
Parameters |
| Connection check |
whoami |
none |
| Queries that contain the topic |
seo.dataforseo_labs_google_keyword_suggestions |
keyword · location_name · language_code · limit |
| Related queries |
seo.dataforseo_labs_google_related_keywords |
keyword · depth 2 · location_name · language_code · limit |
| Google autocomplete |
seo.serp_google_autocomplete |
keyword · location_name · language_code |
| Weekly interest |
seo.kw_data_google_trends_explore |
keywords · location_name · language_code · time_range past_12_months |
| Volume for queries left empty |
seo.kw_data_google_ads_search_volume |
keywords · location_name · language_code |
| Difficulty for queries left empty |
seo.dataforseo_labs_bulk_keyword_difficulty |
keywords · location_name · language_code |
| Google results and features |
seo.serp_organic_live_advanced |
keyword · location_name · language_code · device desktop · depth 20 · load_async_ai_overview true |
| AI overview when it came back empty |
seo.serp_google_ai_overview |
keyword · location_name · language_code |
| Read a page |
web_scraping.firecrawl_scrape |
url · formats markdown and links · onlyMainContent true · excludeTags · objective |
| Video data |
seo.serp_youtube_video_info_live_advanced |
video_id · location_name · language_code |
| Video subtitles |
seo.serp_youtube_video_subtitles_live_advanced |
video_id · location_name · language_code · subtitles_language |
| Transcript of a video with no subtitles |
audio.transcribe_url |
url · language; runs through execute_action and costs money |