File: .agent/workflows/seo-aeo-orchestrator/WORKFLOW.md
Workflow ID: seo-aeo-orchestrator
Version: 2.0.0
Execution Mode: sequential gates with parallel content work where safe
Turn a website or codebase into an evidence-backed SEO/AEO growth system. The workflow starts with an audit, implements approved fixes, confirms the business and keyword strategy, researches current search intent, creates foundational content, prepares external distribution, configures measurement, deploys, verifies, and offers weekly monitoring.
The workflow is designed for coding agents working directly in a repository. It must understand the project’s framework, routes, content storage, metadata implementation, sitemap/robots generation, deployment path, and authentication boundaries before editing or publishing.
{
"workflow_input": {
"project_path": "string — current project or repository",
"site_url": "string — optional live URL",
"business_type": "string — optional description of the business",
"target_audience": "string — optional audience",
"conversion_goal": "string — signup, demo, purchase, download, contact, or other",
"user_keywords": ["string — optional owner-approved targets"],
"location": "string — optional market or country",
"foundation_page_count": "integer — 5–10, default 10",
"research_mode": "browser | api | both | unavailable — default both",
"existing_content": ["string — optional URLs, routes, or titles"],
"tone": "professional | conversational | bold | empathetic | authoritative",
"monitoring_preference": "ask | one-time | recurring | none — default ask"
}
}
The agent may inspect the codebase, run local checks, and draft recommendations without additional confirmation. Before each external or material mutation, obtain the required authorization:
monitoring_preference is ask.Never claim an account is connected, a sitemap is submitted, a URL is indexed, or a deployment is live without observable evidence.
PHASE 0 — DISCOVERY
inspect codebase, framework, routes, live URL, deployment, and content model
│
▼
PHASE 1 — AUDIT
SEO/AEO/technical/conversion audit with evidence and prioritized fixes
│
▼
PHASE 2 — IMPLEMENTATION
apply approved audit fixes, then re-audit and verify build/routes
│
▼
PHASE 3 — STRATEGY CONFIRMATION
ask for business context, target keywords, audience, location, and conversion goal
│
▼
PHASE 4 — SEARCH-INTENT RESEARCH
browser + API research when available; semantic fallback when unavailable
│
▼
PHASE 5 — CONTENT FOUNDATION
landing/product improvements + 5–10 foundational pages, default 10 when justified
│
├───────────────┐
▼ ▼
internal content external distribution plan
│ │
└───────┬───────┘
▼
PHASE 6 — MEASUREMENT AND PUBLISHING
Search Console/Bing setup (gated), sitemap/URL submission, deploy, verify
│
▼
PHASE 7 — MONITORING
weekly analysis, refresh recommendations, optional recurring automation
Output: project-discovery.md with framework, routes, content model, deployment path, measurement status, and access limitations.
Use seo-aeo-content-quality-auditor with input_type: codebase, website, or both. Inspect:
Every finding must include severity, evidence, impact, exact fix, verification method, and dependencies.
Output: audit-report.md and audit-fix-plan.md.
Do not start the foundation content phase while critical indexability or deployment blockers remain unresolved unless the user explicitly accepts the risk.
Output: updated code/content plus audit-verification.md.
Ask concise questions if the answers are not already known:
If the owner does not know target keywords, continue with provisional candidates derived from the audit and site, but label them clearly and request confirmation before treating them as final.
Use seo-aeo-keyword-research with research_mode: both by default:
Prioritize problem-related queries that the product can genuinely solve. Search intent outranks attractive but irrelevant volume.
Output: seo-aeo-keyword-research-report.md containing owner keywords, provisional candidates, search-intent evidence, cannibalization risks, keywords to avoid, and a content map.
Use seo-aeo-content-cluster to create between 5 and 10 foundational pages, defaulting to 10 only when there are 10 distinct defensible intents. If fewer than 5 distinct intents exist, explain the limitation instead of inventing topics.
Each foundational page must have:
Use seo-aeo-blog-writer to write the approved pages. Content should convert without unsupported claims, and every article should include a visible answer block plus a relevant product CTA when the intent supports it.
Create a separate 20-day editorial calendar after the foundation is mapped. It should contain distinct topics, target queries, intent, format, internal-link targets, product CTA, and suggested external distribution platform.
Outputs: foundational-content-plan.md, foundational page files in the project’s native content location, 20-day-editorial-calendar.md, and external-distribution-plan.md.
Internal pages should be published on the website. External articles should be adapted for the selected platform, use canonical links where supported, and link naturally to the relevant internal article and product page. Do not mass-publish duplicated content or promise backlink outcomes.
After publishing, offer the user these choices:
Ask explicitly before creating a recurring automation. If accepted, create a quiet monitor that reports only meaningful changes, completion, failures, or required user action. A recurring run should review Search Console/Bing data when connected: impressions, clicks, CTR, query changes, indexed pages, ranking movement, pages with rising impressions but low CTR, pages with clicks but weak conversion paths, emerging queries, cannibalization, and content needing refresh.
Output: weekly-seo-monitoring-report.md with observed metrics, changes since the last period, interpretation, recommended actions, and unresolved access limitations.
outputs/
├── project-discovery.md
├── audit-report.md
├── audit-fix-plan.md
├── audit-verification.md
├── seo-aeo-keyword-research-report.md
├── foundational-content-plan.md
├── 20-day-editorial-calendar.md
├── external-distribution-plan.md
├── landing-page.md
├── internal-link-map.md
├── schema-markup.md
├── publishing-verification.md
└── weekly-seo-monitoring-report.md # when monitoring runs
| Condition | Behaviour |
|---|---|
| No codebase or URL | Ask for a project path or live URL before a technical audit |
| No target keywords | Produce provisional candidates and ask for confirmation |
| No browser/API research | Continue semantically and label live metrics unverified |
| Critical indexability blocker | Halt content publishing; return fix plan |
| Fewer than 5 defensible foundation topics | Explain the constraint; do not invent topics |
| Missing external credentials | Prepare exact steps and wait for user authentication |
| Deployment or build failure | Do not claim publish success; return logs and next fix |
| User declines monitoring | Finish without creating recurring automation |
| Script unavailable | Continue manually and record the skipped verification |
| Phase | Skill | Purpose |
|---|---|---|
| Audit | seo-aeo-content-quality-auditor |
Technical, content, AEO, and conversion audit |
| Research | seo-aeo-keyword-research |
Owner-confirmed and live search-intent strategy |
| Foundation | seo-aeo-content-cluster |
Foundational pages and 20-day calendar |
| Writing | seo-aeo-landing-page-writer, seo-aeo-blog-writer |
Conversion pages and intent-led articles |
| Metadata | seo-aeo-meta-description-generator |
Title, description, and social metadata |
| Links | seo-aeo-internal-linking |
Semantic links, product paths, and orphan fixes |
| Structure | seo-aeo-schema-generator |
Valid structured data for visible content |
Use when coordinating a complete audit-first SEO/AEO growth engagement across a website or codebase, including authorized implementation, publishing, measurement setup, and optional monitoring.