Skip to content
Skills Library
Programming · Building & coding

wp-theme

/wp-theme

Adaptation of a locked design (the working site in clean code that the design flow ends with) into a hand-coded WordPress theme or a WordPress page — a separate job opened after the last design lock, with its own brief; no design stage loads it. Use when the user says "וורדפרס", "תבנית", "theme".

Repository
web-studio ↗
Licence
MIT
Last repository change
10.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Adaptation of a locked design (the working site in clean code that the design flow ends with) into a hand-coded WordPress theme or a WordPress page — a separate job opened after the last design lock, with its own brief; no design stage loads it. Use when the user says "וורדפרס", "תבנית", "theme".

Triggers from the description

וורדפרסתבניתtheme
Original author description

Adaptation of a locked design (the working site in clean code that the design flow ends with) into a hand-coded WordPress theme or a WordPress page — a separate job opened after the last design lock, with its own brief; no design stage loads it. Use when the user says "וורדפרס", "תבנית", "theme".

How it works

  1. A single page into an existing WordPress site
  2. 1. Architecture: hybrid theme
  3. 2. Assets: Vite 8 and script modules
  4. 3. Core style bleed
  5. 4. RTL and fonts
  6. 5. Performance on shared hosting with LiteSpeed
  7. 6. Forms, legal pages, structured data
  8. 7. Done when
  9. 8. Conversion from the static site (the order that keeps it mechanical)
Original SKILL.md headings · 93 lines, 850 words
SKILL.md preview
---
name: wp-theme
description: Adaptation of a locked design (the working site in clean code that the design flow ends with) into a hand-coded WordPress theme or a WordPress page — a separate job opened after the last design lock, with its own brief; no design stage loads it. Use when the user says "וורדפרס", "תבנית", "theme".
---

# WordPress adaptation — clean code, no builder

The design flow ends at the last lock. This job starts from the locked `design/build/` and
changes nothing in the design. Deployment, staging, a full backup with a restore test before the
first deploy, and every live write (confirm-first, one change and one read-back at a time) belong
to this job.

Target as of 2026-11-09: WordPress 7.1.x, PHP 8.3 (hybrid theme, `wp_enqueue_script_module()`,
speculative loading constants); 7.2 due 8 Dec 2026. Shared hosting with LiteSpeed Cache
(Hostinger is the measured case). Facts and sources: the `craft-research` skill
(`execution_stack` note). The theme is made from the finished static site and handed into `site/`.

## A single page into an existing WordPress site
`references/wordpress-page-deploy.md`. Namespace everything under one wrapper; tokens scoped to
the wrapper (the `system-packs` CLI builds them with `--scope '#wrapper'`); no document tags
(`<html>`, `<head>`, `<body>`) inside a block.

## 1. Architecture: hybrid theme
- Classic PHP templates (`header.php`, `front-page.php`, `page-<slug>.php`, `parts/`) plus a
  `theme.json` that carries the design tokens as presets (palette, font sizes, spacing, font
  families). The client gets Global Styles controls that match the tokens; the templates own the
  layout. Every default theme since 2022 is a block theme, but hybrid is the professional path for
  a custom, template-driven site (Roots Sage 11.2 / Acorn 6 on PHP 8.3 is the reference shape).
- `theme.json` 7.1 features usable here: per-viewport responsive styles, hover/focus/active
  states on buttons, custom breakpoints. Editor styles go through `add_editor_style()` and
  `theme.json`, never admin hooks: the post editor is fully iframed since 7.1.
- Tokens: `design/spec/tokens.css` is the source; `theme.json` presets are generated from it, not
  hand-copied.

## 2. Assets: Vite 8 and script modules
- Vite 8 builds ESM with a manifest; the theme enqueues it with
  `wp_enqueue_script_module( $id, $src, $deps, $version, [ 'fetchpriority' => 'high' ] )` for
  the hero and motion bundle (the `$args` form exists since 6.9). Classic scripts that need a
  module declare `module_dependencies`.
- Interactivity API in PHP templates: enqueue the module and pass the markup through
  `wp_interactivity_process_directives( $html )`.
- GSAP 3.15.1+, Lenis 1.3.27+ bundled, not from a CDN. JS under 150 KB gz total.

## 3. Core style bleed
- Scope the theme's CSS under `@layer` and a theme-root class. Keep `theme.json` `styles`
  minimal.
- On 6.9+/7.x `wp_dequeue_style('global-styles')` alone no longer works (core generates the
  inline block in the footer and moves it to the head; Trac #65336, #64358). Remove
  `wp_enqueue_global_styles` from `wp_footer` at priority 1, then dequeue `wp-block-library`,
  `wp-block-library-theme`, `classic-theme-styles` and `global-styles` late on
  `wp_enqueue_scripts`, only on templates with no core blocks. Verify on the live HTML, never by
  reading the PHP.

## 4. RTL and fonts
- `<html dir="rtl" lang="he-IL">` from `language_attributes()`; logical properties in one
  stylesheet; no `rtl.css`; the rest per `hebrew-rtl-israel`.
- Fonts self-hosted in the theme: variable WOFF2, Hebrew and Latin subsets via `unicode-range`,
  `@font-face` inlined in `<head>`, Hebrew subset preloaded, `size-adjust` fallbacks.

## 5. Performance on shared hosting with LiteSpeed
- Speculative loading is core since 6.8 (`prefetch`, `conservative` by default). 7.1 constants:
  `WP_SPECULATIVE_LOADING_DEFAULT_MODE` and `..._EAGERNESS`; `moderate` + `prerender` is safe on a
  cached brochure site, `conservative` on any page with a form.
- LiteSpeed: page cache on, Object Cache from the host's panel (hPanel on Hostinger), WebP replacement on, "Viewport Images" on
  (keeps the LCP image out of lazy-load), CSS/JS combine off on HTTP/2+, ESI off.
- Images from `asset-pipeline` with explicit dimensions; the LCP element is an `<img>` or text
  painted in place with `fetchpriority="high"`.

## 6. Forms, legal pages, structured data
- The contact form carries the five-item section-11 privacy notice beside the submit control and
  a link to the privacy policy (Amendment 13, `hebrew-rtl-israel` section 6). Hebrew success and
  error states are designed. Honeypot, no CAPTCHA puzzle.
- Pages: privacy policy, accessibility statement (`/accessibility`), designed 404.
- JSON-LD per `hebrew-rtl-israel` section 7, emitted by the theme, not by an SEO plugin's
  generic Organization block.

## 7. Done when
- Every page renders identical to the locked static site at 390 and 1440 (screenshot diff saved).
- `theme.json` presets are generated from `design/spec/tokens.css`.
- No core style bleed in the live HTML.
- Also: RTL and reduced motion checked, `rtl-lint` clean, axe zero violations, Lighthouse mobile
  on the preview, the file list for `site/` written. The deploy itself is a separate
  confirm-first step.

## 8. Conversion from the static site (the order that keeps it mechanical)
The static build is written so this step is mechanical: one template per page type, one partial
per recurring block, no runtime assumptions.
1. Page shells become PHP templates; partials become template parts.
2. `design/spec/tokens.css` becomes the `theme.json` presets (generated, not hand-copied).
3. The Vite build is enqueued as script modules.
4. Core style bleed is removed and verified on the staging HTML.
5. Every page is rendered on staging and compared with the static site at 390 and 1440.
6. Only then the form's delivery (email, mobile), with a honeypot and test submissions to test
   addresses.
A shared-hosting note measured in practice: `wp db query` can fail where the host disables
`proc_open`; plan database reads through `wp eval` or the REST API instead.
Files in this package (2)
  • SKILL.md 6 KB
  • references/wordpress-page-deploy.md 4 KB

Versions

The database has no other skills named wp-theme.

Database snapshot: 13.11.2026 · package version e71207d9c668 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100wordpress-theme-to-emdash
    Port a WordPress theme's design and template behavior to an EmDash-powered Astro site. Use for theme migrations, design matching, PHP-template conversion, and CMS wiring. Do not use for WordPress plugin behavior that does not affect the site theme.
  • 100html-to-block-theme
    This skill should be used when the user asks to "build a block theme from this HTML", "turn these designs into a WordPress theme", "convert this Claude Design output to a block theme", "make a WordPress theme from these HTML files", "make this design into a real WordPress site",…
  • 90wordpress-wp-project-triage
    Use when you need a deterministic inspection of a WordPress repository (plugin/theme/block theme/WP core/Gutenberg/full site) including tooling/tests/version hints, and a structured JSON report to guide workflows and guardrails.
  • 100wordpress
    WordPress framework guardrails, patterns, and best practices for AI-assisted development. Use when working with WordPress projects, or when the user mentions WordPress. Provides theme development, plugin architecture, REST API, blocks, and security guidelines.
  • 90wordpress-wp-block-themes
    Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor troubleshooting (style hierarchy, overrides, caching).
  • 100add-theme
    Add a theme pack or match a wallpaper to an existing theme in the dotfiles theme system (bin/theme). Use when the user pastes a theme repo URL or image, says "add this theme", "new theme pack", or wants another entry for theme next to cycle.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.