Skip to content

About

A repeatable way to build agency websites with AI tools: gated stages, prompts, Claude Code agents, QA and a design-neutral WordPress base.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

Agentic Site Framework (ASF)

A repeatable way to research, write, design, build, ship and run a marketing agency's website with AI tools: fast, but grounded in the client's truth and finished to a top-agency standard.

In ASF the website is the artifact and the weekly measurement is the service: Stage 5 (Run) exists for that reason.

  • Who it's for: agencies, studios and their delivery partners building or rebuilding a site for an agency, or for an agency's own clients (often white-label).
  • Tools it assumes: Claude Code (main session plus subagents), a browser the AI can drive, WP-CLI or the stack's CLI, and Python 3.
  • Base build: base/, a design-neutral WordPress wireframe (block theme + functionality plugin + content seed) that every new site starts from. Each client's design is created in stage 3 from their own raw data, never copied. examples/ has what two real projects (anonymised) taught us.

The five stages

 1 TRUTH  ──►  2 STORY  ──►  3 SYSTEM  ──►  4 SHIP  ──►  5 RUN
 What is      What do we    How does it    Is it right,   Is it
 true and     say, in what  look and       fast and       working?
 provable?    order?        work?          finished?      (weekly)
   G1            G2            G3             G4            G5
Stage Output Gate (must pass to move on) Doc
1 Truth Goal document, site audit, truth file (every claim, its source and whether it's public), verified image inventory, voice bank (the client's own words) G1: goals signed off; every claim sourced; every image mapped to the client it really shows stages/1-truth.md
2 Story Positioning, messaging (stakes hero, who-we-are line, contrast, echo, price anchor), IA, page recipes G2: the client approves the message and agrees it defines their business; ≤ 8 sections per page; one idea per page stages/2-story.md
3 System Three design directions previewed on the real pages, reviewed by the team on a Claude artifact and by the client as a PDF on GitHub, design tokens, components, page copy, the working build (theme + plugin + seed), AI-search layer, lead capture, analytics events G3: design review passes the anti-"AI look" list; copy passes lint; the build seeds with one command stages/3-system.md
4 Ship Automated QA report, launch readiness scan (security, performance, accessibility, launch settings, Lighthouse), editor validation, form end-to-end test, launch checklist, handoff docs G4: all checks green; zero [CONFIRM] chips; backups, monitoring and 2FA confirmed; client sign-off stages/4-ship.md
5 Run Weekly report (with a rescan of the live site), changes (each with its own gates C1–C4), campaigns (landing page, tagged links, results), monthly improvement proposal G5 (every week): production scan clean; live campaigns checked; no change stuck; report sent, whether the client asked or not stages/5-run.md

Roles

Role Who Owns
Lead A human (PM, strategist or account owner) Signs every gate, client conversations, final say on message and design
Orchestrator The main Claude Code session Running stages, briefing specialists, integrating their work, running QA
Researcher Subagent (agents/site-researcher.md) Stage 1: audits, internal notes, reference teardowns
Strategist Subagent (agents/site-strategist.md) Stage 2: positioning, messaging, IA
Writers Parallel subagents or forks (agents/site-copywriter.md) Stage 3: page copy, one page family each
QA Subagent (agents/site-qa.md) + qa/ scripts Stage 4: automated checks and review
Designer A human, who reviews and doesn't push pixels G3 design review: confirms the design items before the lead signs
Developer A human Theme and plugin review, deployment, hosting, backups and access (their G4 items)
Content A human The words: reviews page copy, owns "one idea, one home"
QA A human, alongside the QA subagent The checks no script can do (their G4 items)
Client The client's own approver Confirms facts, chooses the message and the design, signs off staging

One person can hold several roles, and a solo lead holds them all. Name the people with bin/asf team add <role> "Name"; from then on each person confirms their own gate items (bin/asf confirm), and requests are assigned to whoever acts on them. See orchestrator/README.md § Working as a team.

Get it

You need Claude Code, PHP 8.1+ (with pdo_sqlite), WP-CLI 2.9+, Python 3, rsync, curl and unzip. No database server: local sites run on SQLite. Laravel Valet is optional.

git clone https://github.com/kuldeep3/agentic-site-framework.git

Quick start: a new client site

# 1. Make the project: the wireframe base renamed for the client, skeleton pages, docs, framework and agents
starter/new-site.sh acme-growth "Acme Growth Co" ~/Projects/acme-website --short "Acme" --mark "AG"

Outside the US, add --region "United Kingdom" --currency £ --timezone Europe/London (schema, the enquiry form's budget choices, WordPress's clock).

# 2. Run the local site (WordPress on SQLite, no database server needed)
cd ~/Projects/acme-website && bin/setup.sh && bin/serve.sh

That serves the site at http://localhost:8088, the address the checks use. On Laravel Valet instead, link wordpress/ into Valet's sites folder and run bin/asf set site_url http://acme-growth.test.

For a client that makes products and sells through retailers or dealers, add --kind product-brand: product lines, customer builds, "Where to buy" and dealer enquiries instead of services and strategy calls (recipes in patterns/page-recipes.md).

Details and what was tested: starter/README.md.

Then open the new project folder in Claude Code and run /asf. The orchestrator knows which stage the project is in, checks each gate automatically where it can, tells you what's next, and records every sign-off in asf.json:

  • /asf run: does the current stage's work up to its gate, briefing the stage's agents with its prompts and asking you for anything only the client can provide
  • /asf approve G1: records a gate sign-off after the lead confirms the manual items
  • /asf intake: turns requests from email, calls, GitHub issues, chat and documents into one tracked item each, with its source and an owner. With a team, it first copies new material from the shared drive folder
  • /asf change new …: after launch, every new page, restyle, copy edit or fix is a change with its own gates (C1 Brief → C2 Design → C3 Build → C4 Release), one issue and one pull request
  • /asf feedback … and /asf learn: every comment on the work is recorded with what was done; what should hold from now on becomes a rule in docs/lessons.md, which the agents read first. The agents also say so before building something that works against the goal or the evidence
  • /asf board: sets up and syncs the project manager's view on GitHub (a Projects board with a Stage field, milestones G1–G5, a gate tracker issue)
  • bin/asf status / bin/asf next: the same from a terminal

Each stage doc lists the exact prompts (prompts/), the templates to fill in (templates/) and the gate checklist.

The site starts with no design. The base is a wireframe (greys, system fonts, plain layout) so every client's look is created in stage 3 from their own raw data: logo, products, photos, geography, buyers and the competitor teardown. Nothing is copied from another client. See stages/3-system.md and patterns/design-system.md.

What's in this folder

README.md            ← you are here
PRINCIPLES.md        the 16 rules learned on real projects (read before anything else)
stages/              how to run each stage: inputs, steps, AI roles, prompts, outputs, gate
patterns/            messaging formulas, page recipes, design system rules, AI-search (AEO) checklist, campaigns
templates/           goal document, truth file, strategy, IA, page brief, content checklist, weekly report, decisions log,
                     campaign brief and landing page
prompts/             copy-paste prompts for each step (with inputs and expected outputs)
agents/              Claude Code subagent definitions → copy into the project's .claude/agents/
orchestrator/        runs a project end to end: workflow.json (stages, gates, checks), bin/asf, the /asf command
qa/                  automated checks: content lint, site crawl, launch readiness (security, performance, accessibility,
                     launch settings, Lighthouse), responsive/grid sweep, colour contrast and focus
starter/             new-site.sh: spin up a client site from the base (agency or product-brand skeleton)
base/                the design-neutral wireframe build every new site starts from
examples/            two real projects, anonymised: what happened, what clients pushed back on, what changed

Stack choice

The stages, principles, patterns and prompts are stack-agnostic. The starter and the QA markup check are WordPress-specific today (block theme + functionality plugin + seed), with this rule of thumb:

  • WordPress: existing sites with SEO/plugin history, or clients whose team edits in WordPress. This is what base/ and the starter implement today.
  • EmDash / Astro: greenfield or migrating clients. Reuse everything except base/, starter/ and the block-markup checks in qa/lint_content.py. The content model, components and AEO layer map one to one.

Licence

MIT. Use it, change it and build client sites with it, commercial work included. Things the starter downloads keep their own licences: WordPress core and the SQLite integration plugin (GPL), and any fonts you add (check each one; the base ships none).

About

A repeatable way to build agency websites with AI tools: gated stages, prompts, Claude Code agents, QA and a design-neutral WordPress base.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages