How jordanurbs/aeo-forge works
1. Repository purpose
- This is an internal Claude Code workflow for AEO, not a product app.
- Its architecture centers on generating, validating, and tracking AI-search optimization work for a single brand profile at a time.
2. Primary control plane: Claude Code commands
- The main user entrypoints are /setup, /aeo-plan, /aeo-build, and /aeo-track.
- These commands orchestrate the whole lifecycle: configuration, research/planning, artifact generation, and ongoing citation measurement.
3. Agent-based pipeline
- The .claude/agents directory defines specialized roles that each own a narrow phase of work: crawler, API caller, competitor researcher, demand researcher, analyst, strategist, builders, validator, and citation tracker.
- This creates a staged pipeline where each agent hands structured outputs to the next rather than one monolithic prompt.
4. Skills as reusable policy/knowledge modules
- .claude/skills contains reusable guidance for AEO, schema authoring, citation tracking, local SEO, technical SEO, llms.txt, and related practices.
- These skills act like shared domain libraries that inform the agents’ decisions and keep outputs consistent across runs.
5. Configuration boundary
- Brand-specific inputs live in config/brand-profile.md with an example template in config/brand-profile.example.md.
- This file is the main source of truth for domains, entity signals, tech stack, AEO targets, and governance constraints.
6. Plan-stage data flow
- /aeo-plan gathers evidence from site crawling, external tool/API checks, competitor benchmarking, and demand research.
- The AEO Analyst synthesizes those inputs into a readiness assessment, and the AEO Strategist turns that into plan/aeo-plan.md, which becomes the approval gate for build selection.
7. Build-stage artifact generation
- /aeo-build consumes the approved plan items and emits deployable artifacts under output/<brand-slug>/artifacts/.
- The build is modular: answer-first content, stacked JSON-LD schema, metadata tags, entity knowledge graph, measurement pack, content briefs, optional llms.txt, and optional edge injection config.
8. Validation boundary
- Artifact validation is not left to the agents alone; it is enforced by scripts/validate-artifacts.py.
- The README indicates this validator checks JSON parsing, coverage of selected plan items, AEO traceability, schema/entity consistency, and FAQ/HowTo visible-text parity before output is considered shippable.
9. Citation tracking loop
- /aeo-track turns the manual measurement plan into an executed run against AI answer engines.
- The deterministic runner in scripts/run-citation-checks.py handles orchestration, while the Citation Tracker agent interprets results and maintains a running citation scoreboard.
10. External services and evidence sources
- The plan stage can incorporate real API data from PageSpeed Insights, TLS/SSL checks, W3C validation, Wayback Machine, and WHOIS/RDAP.
- Demand signals may also come from Google Autocomplete, People Also Ask, and optional search-volume providers; measurement can use Perplexity, OpenAI web search, or SerpAPI when keys are available.
11. Output structure as the main artifact boundary
- output/<brand-slug>/ is the durable workspace for one brand run, with subfolders for research, plan, artifacts, measurement runs, and reports.
- fixtures/sample-output/acme-analytics/ provides a complete example of the expected shape and acts as a reference implementation for the repo’s contract.
12. Operational quality model
- The repo explicitly distinguishes COMPLETE, PARTIAL_CONFIDENCE, and BLOCKED states.
- That means the architecture is evidence-driven: outputs must be traceable to brand profile, crawl data, tool data, competitor analysis, AEO analysis, or clearly labeled inference before they are treated as valid work product.
Main entry points: aeo-analyst.md AEO Analyst · aeo-plan.md aeo-plan · skills Skills · output Artifacts
Components 20
Control Plane
Claude Code commands that orchestrate the repo workflow.
- setup · Initializes brand-specific configuration and workflow state.
.claude/commands/setup.md - aeo-plan · Drives research, evidence gathering, and plan synthesis.
.claude/commands/aeo-plan.md - aeo-build · Generates deployable AEO artifacts from an approved plan.
.claude/commands/aeo-build.md - aeo-track · Executes citation checks and updates tracking state.
.claude/commands/aeo-track.md
Agents
Specialized roles that execute stages of the AEO workflow.
- Crawler · Collects site and page evidence for analysis.
.claude/agents/web-crawler.md - API Caller · Runs external checks and tool/API lookups.
.claude/agents/api-caller.md - Competitor Researcher · Benchmarks competing pages and SERP-adjacent patterns.
.claude/agents/competitor-researcher.md - Demand Researcher · Surfaces queries, intent, and demand signals.
.claude/agents/demand-researcher.md - AEO Analyst · Synthesizes evidence into readiness and gap assessment.
.claude/agents/aeo-analyst.md - AEO Strategist · Turns analysis into the approved AEO plan.
.claude/agents/aeo-strategist.md - Builders · Produces answer content, schema, metadata, entity, brief, llms.txt, and measurement artifacts.
- Validator · Checks artifact consistency and shippability.
.claude/agents/artifact-validator.md - Citation Tracker · Interprets citation run results and maintains scoreboard.
.claude/agents/citation-tracker.md
Skills
Reusable policy and domain guidance shared across agents.
- Skills · Shared domain guidance for optimization, schema, SEO, demand, and tracking.
.claude/skills
Brand Workspace
Brand-specific inputs, plans, artifacts, and measurement outputs.
- Brand Profile · Single source of truth for brand inputs and constraints.
config/brand-profile.example.md - AEO Plan · Approved plan that gates build selection.
fixtures/sample-output/acme-analytics/plan/aeo-plan.md - Artifacts · Durable output tree for generated AEO deliverables.
output - Sample Run · Example brand workspace showing the expected repository contract.
fixtures/sample-output/acme-analytics
Automation
Deterministic scripts that validate artifacts and run tracking.
- Validate Artifacts · Deterministic artifact validation before output is considered shippable.
scripts/validate-artifacts.py - Run Checks · Deterministic runner for citation measurement orchestration.
scripts/run-citation-checks.py
Connections 23
- setup → Brand Profile: configures · Creates or updates the brand-specific input boundary.
- aeo-plan → Crawler: runs · Starts crawl-based evidence collection.
- aeo-plan → API Caller: runs · Collects external checks and API evidence.
- aeo-plan → Competitor Researcher: runs · Adds competitor benchmarking to the research set.
- aeo-plan → Demand Researcher: runs · Adds demand and intent signals.
- Crawler → AEO Analyst: feeds · Provides crawl evidence for synthesis.
- API Caller → AEO Analyst: feeds · Provides tool and API evidence for synthesis.
- Competitor Researcher → AEO Analyst: feeds · Provides competitor comparisons for synthesis.
- Demand Researcher → AEO Analyst: feeds · Provides query and demand evidence for synthesis.
- AEO Analyst → AEO Strategist: hands off · Converts evidence into a readiness assessment.
- AEO Strategist → AEO Plan: writes · Produces the approved AEO plan.
- aeo-plan → Builders: unlocks · Approved plan items become build inputs.
- Builders → Validate Artifacts: validated by · Artifacts are checked for parsing, traceability, and parity.
- Builders → Artifacts: emits · Generates the modular artifact set under the brand workspace.
- Validate Artifacts → Artifacts: approves · Marks generated artifacts as shippable when checks pass.
- aeo-track → Run Checks: executes · Runs citation measurement checks.
- Run Checks → Citation Tracker: reports · Provides measurement results for interpretation.
- Citation Tracker → Artifacts: updates · Maintains citation scoreboard and run outputs.
- Skills → AEO Analyst: guides · Provides shared analysis and policy guidance.
- Skills → AEO Strategist: guides · Provides shared planning and optimization guidance.
- Skills → Builders: guides · Informs content, schema, metadata, and measurement generation.
- Skills → Citation Tracker: guides · Informs citation tracking behavior and interpretation.
- Sample Run → Artifacts: reference · Defines the expected output contract and folder shape.