# WordPress Block Theme Site Builder (FSE + CI/CD)

> Build production WordPress sites the maintainable way: a no-build block theme plus a data plugin, an editor clients can use, SEO from day one (Rank Math in code, JSON-LD, llms.txt, CI SEO gate), security hardening and SSH deploys via GitHub Actions with auto rollback.

WordPress Block Theme Site Builder (FSE + CI/CD) is a free AI agent skill on Agensi by Vladimir Kalaganov, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Vladimir Kalaganov](https://www.agensi.io/creators/kalaganov5)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/wordpress-block-theme-site-builder-fse-ci-cd
- Tags: web-design, devops, marketing, wordpress, php, gutenberg, block-theme, fse

## About this skill

wp-block-site is a complete methodology plus a working project scaffold for building WordPress sites as a block theme without a build step. It is extracted from a real production site (kalaganov5.com) and every rule comes with the reason behind it.

### What your agent produces
- **Block theme** — `theme.json`, HTML templates, dynamic blocks (`block.json` + `render.php` + `style.css`), CSS variables as the single design source, light and dark mode. No webpack, no npm build.
- **Data plugin** — post types and fields without ACF, site settings, idempotent content import, SEO, forms, analytics, security, redirects, and `wp <prefix> …` WP-CLI commands. The theme works even without the plugin.
- **Deploy** — one repeatable `remote.sh` used by CI, local Docker, staging and production; DB backup before each release and automatic file rollback if the site stops responding.
- **GitHub Actions** — CI (checks + clean install + SEO gate), deploy to staging/production over SSH, prod→staging sync, health check, monthly SEO audit with Lighthouse.
- **One check command** — `npm run check`: PHPCS, ESLint, Stylelint, Prettier, size limits (120-char lines, 40-line functions, 250-line files), theme/plugin boundary, business-rule tests, page-weight budget.

### Why it is different
- **An editor the site owner can use**: posts open without the template, clicking any paragraph works, no placeholder junk in blocks; block settings panels are generated from `block.json`.
- **SEO from the brief, not at the end**: every page has its query, URL, title and description in the content source; the CI gate blocks a page without a title or with two H1s. Rank Math configured in code, JSON-LD per page type, sitemap, robots.txt for AI bots, llms.txt.
- **Secure by default**: security headers, XML-RPC and user enumeration closed, no PHP in uploads, file editing disabled, secret scanning before commit and in CI.
- **Works on cheap shared hosting** — only SSH is required.
- Also covered: migrating an old site with 301s, Polylang multilingual, Contact Form 7 → Telegram leads with anti-spam, GTM + Consent Mode cookie banner, Core Web Vitals and accessibility, auditing an existing site.

### Verified
The scaffold in this package was generated, installed from scratch in Docker (WordPress + Polylang + Contact Form 7 + Rank Math) and passes `npm run check` with 27 JS and 42 PHP rule tests; all page types answer 200 in both demo languages and the SEO gate passes. Earlier releases were also verified for repeat deploys (no-op) and automatic rollback (fatal error → 500 → rollback → 200).

### About the author
Vladimir Kalaganov is a WordPress developer and webmaster who has built and maintained sites for small businesses in Russia, Europe and North America since 2018 ([kalaganov5.com](https://kalaganov5.com/en/)). He also writes WordPress plugins (Stream Video for Cloudflare, Simple CF7 Feedback). This skill is the method behind his own production site, which runs on it today.

## Requires

- Git
- Node.js 22+
- on
- are
- Playwright
- Optional: Docker (local WordPress site)
- Optional: PHP 8.3+ and Composer (code checks)
- Optional: GitHub account (CI/CD)
- Optional: SSH access to hosting (deploy)
- Optional: Telegram bot (lead notifications)

On Windows, run the shell scripts from Git Bash. The scaffold ships English + Russian demo content; change languages in project/content/site.js.

## Known limitations

Built for block themes: not for page builders (Elementor, Divi) or classic PHP themes. Deploys need SSH access; FTP-only hosting is not supported. Modules like covers, article batches, internal linking and brand book pages are described in the chapters but not included in the scaffold.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the WordPress Block Theme Site Builder (FSE + CI/CD) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill improve upon standard WordPress theme development?

This skill solves the issue of bloated page builders and manual deployments by providing a lightweight Gutenberg scaffold, a strict data-plugin architecture, and automated CI/CD pipelines with built-in SEO validation gates.

### Can I use this with popular page builders like Elementor or Divi?

No, this scaffold is designed specifically for modern Block Themes (FSE) and is incompatible with legacy visual builders like Elementor or Divi to ensure maximum performance and SEO integrity.

### What is included in the package?

SKILL.md with the rules, 15 reference chapters (architecture, design system, blocks and editor, content model, i18n, SEO/GEO, performance, forms and analytics, CI/CD, QA, checklists, workflow, legacy markup, code style), the scaffold script and a complete working project template: block theme, data plugin, deploy scripts, GitHub Actions workflows, Docker setup and tests.

### Are there specific technical requirements for my local development machine?

Node.js 22+ and Git are required. Docker runs the local WordPress site, PHP 8.3+ with Composer runs the PHP checks, and SSH access to your hosting is needed only for deploys.

### How does the automated deployment handle potential errors or site crashes?

Every release backs up the database, deploys the theme and plugin, then opens the key pages listed in pages.txt. If any of them fails, the previous theme and plugin files are restored automatically and the run fails with a summary. The database is not rolled back automatically; the restore command is printed. Content edited in the admin is never overwritten by a deploy.

### How does the SEO gate stop a page with missing metadata?

Two layers. The content builder refuses empty, too long or duplicate SEO titles and descriptions before import. Then CI installs the site from scratch and crawls it: a page without a title or description, with zero or two H1s, broken JSON-LD, a broken internal link or a missing alt fails the build.

### Is the scaffold only for English sites?

No. The demo is English (main) + Russian with Polylang; set any languages in project/content/site.js. For a single-language site, remove Polylang from the plugin list.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
