wpcraft
Skill1 starsChanged 5 months agoMITView on GitHub
Flawlessly transform any WordPress site into an agency-grade, motion-engineered web experience using Full Site Editing (FSE) block themes (like Frost) while preserving 100% visual CMS editability in the WordPress Site Editor. Use when asked to deeply customize WordPress without bloat, build or clone artistic websites (like shwn.design) into WordPress, implement WebGL/Canvas physics, SVG gooey morphing navigations, custom theme.json design tokens, dynamic typography switchers, squircle Bento grids, and Web Audio synthesis via WP-CLI and the WordPress REST API.
- Sends data out
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agy-skill-installerSkill
- apex-bug-hunterSkill
- arsSkill
- browser-triageSkill
- claude-md-initSkill
- delink-githubSkill
- gemini-skill-packagerSkill
- gh-readySkill
- indian-legal-verificationSkill
- local-systematic-verification-ocrSkill
- magento-team-leadSkill
- merge-gateSkill
- motioncraftSkill
- pdf-vector-engineSkill
- presscraftSkill
- score2mdSkill
- skill-shipSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Gutenberg-Native Block Grammar: Every section, component, hero headline, and grid item must be registered or wrapped using standard …
- Very specific: line 20
Theme Safety & Isolation: When activating an FSE theme (such as wpengine/frost), never delete existing client themes (e.g., astra).
- Distinctive: line 43
Create fluid, morphing navigation bars that feel tactile and responsive:
- Distinctive: line 68
Add subtle, tactile audio feedback without loading heavy MP3/WAV assets:
- Distinctive: line 82
Never hardcode arbitrary CSS colors into templates.
- Very specific: line 84
Inject Design Tokens: Update the global styles post via POST /wp/v2/global-styles/{id}:
- Very specific: line 111
Configure Credentials: Use WordPress core Application Passwords (e.g.
- Distinctive: line 165
Before presenting work as complete, run the automated verification suite:
- Distinctive: line 169
Verify every item on the checklist:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WPCraft: Agency-Grade WordPress FSE & Motion Engineering Engine
WPCraft equips coding agents and developers to transform any standard WordPress installation into an ultra-premium, agency-grade web application without sacrificing native CMS capabilities. It bridges the gap between high-end creative frontend engineering (WebGL/Canvas physics, SVG filter morphing, squircle Bento grids, Web Audio synthesis) and native WordPress Full Site Editing (FSE) block architecture.
1. The Inviolable Prime Directive: 100% CMS Preservation
The fatal failure mode of traditional "custom" WordPress development is hardcoding templates into static PHP files that break the WordPress Site Editor (wp-admin/site-editor.php), leaving non-technical content editors stranded.
WPCraft enforces the Sacred Invariant of CMS Preservation:
- Gutenberg-Native Block Grammar: Every section, component, hero headline, and grid item must be registered or wrapped using standard WordPress block markup (
<!-- wp:group -->,<!-- wp:heading -->,<!-- wp:paragraph -->,<!-- wp:html -->). - Template Part Decoupling: Structural chrome lives exclusively in template parts (
parts/header.html,parts/footer.html), while page layout lives in block templates (templates/home.html,templates/index.html). - Full Site Editor Parity: A site administrator opening
/wp-admin/site-editor.phpmust be able to visually click, type, reorder, and save every textual and structural component without breaking underlying motion or physics scripts. - Theme Safety & Isolation: When activating an FSE theme (such as
wpengine/frost), never delete existing client themes (e.g.,astra). Retain legacy themes in an inactive state to enable instantaneous rollback if required.
2. Architectural Blueprint: Why Pure FSE Block Themes (Frost)
Traditional WordPress themes load bloated jQuery scripts, render-blocking CSS frameworks, and complex PHP template hierarchies. WPCraft standardizes on lightweight, pure FSE block themes (exemplified by Frost):
- Zero PHP Render Overhead: Templates are pure HTML files containing Gutenberg block comments. The server outputs raw HTML with sub-50ms Time to First Byte (TTFB).
- Design Token Purity: Spacing, fluid typography clamps, and palettes are governed cleanly by
theme.jsonand REST-accessible Global Styles. - Client-Side Module Independence: Motion physics and audio engines execute as lightweight, zero-dependency vanilla ES modules, enqueued cleanly without framework bloat.
3. The 5 Core Engineering Systems
System 1: Interactive Canvas & WebGL2 Physics
High-craft websites (e.g. shwn.design) feature interactive natural physics (sunlit water caustics, ripple wave propagation, fish flocking).
- Dual-Engine Architecture: Implement high-performance WebGL2 shader pipelines with half-float texture ping-pong for caustics and wave diffusion, coupled with an automatic 2D Canvas fallback for constrained mobile or software-rendered viewports.
- Procedural Inverse Kinematics (IK): Multi-segment spine joints follow swimming sine oscillation trails, giving organic creatures lifelike swimming dynamics.
- Interactive Disturbance & Flocking: Listen for pointer/touch coordinates (
pointermove,pointerdown) to propagate ripple waves and scare boids away with acceleration bursts and tail-flick ripples.
System 2: Liquid / Gooey SVG Floating Navigations
Create fluid, morphing navigation bars that feel tactile and responsive:
- SVG Filter Matrix: Declare
#nav-gooand#nav-goo-whitefilter definitions in the header:<filter id="nav-goo" x="-20%" y="-50%" width="140%" height="200%" color-interpolation-filters="sRGB"> <feGaussianBlur in="SourceAlpha" stdDeviation="10.6" result="blur"/> <feColorMatrix in="blur" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 30 -11.5" result="outline"/> <feFlood flood-color="#f2f2f2" result="grey"/> <feComposite in="grey" in2="outline" operator="in" result="goo"/> <feComposite in="SourceGraphic" in2="goo" operator="atop"/> </filter> - Backdrop & Sticky Staging: Stage the navigation with
position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999;, frosted backdrop blur, and smooth spring sliding indicators.
System 3: Dynamic In-Page Typography & Micro-Interactions
Equip pages with live interactive design toolbars that change typography and visual depth in real time:
- Real-Time Font Switcher: Provide clean dropdown controls allowing users to switch target roles between diverse font families (
Public Sans,Caveat,Playfair Display,Inter,Geist) and depth treatments (Flat,Blue depth,Warm depth,Spectrum). - Deterministic Micro-Icon Animations: Animate inline SVG elements on parent hover using isolated keyframes (e.g.,
.building-icontower stretch & flag flow,.leaf-iconhand tap & heart wave,.heart-icondual-beat cardiac pulse).
System 4: Squircle Bento Prototype Showcase Grids
Showcase product features, portfolio work, or interactive prototypes using Bento grid structures:
- Continuous Curvature Squircles: Apply smooth border radii (
border-radius: 28px;) with continuous curvature fallbacks, subtle borders (rgba(0,0,0,0.06)), and tactile paper elevation shadows. - Spring-Damper Hover Physics: Apply Apple-grade spring transforms (
transform: translateY(-6px) scale(1.02); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);). - Interactive Micro-Mockups: Embed self-contained miniature interactive widgets (Cassette Walkman with spinning reels, dynamic glass toolbars, 3D folder flaps, sliding wallet cards, retro CRT monitors, rotary dials, command palettes).
System 5: Pure Web Audio API Sound Synthesizer
Add subtle, tactile audio feedback without loading heavy MP3/WAV assets:
- Zero-Dependency Synthesis: Synthesize pleasant user feedback directly via the browser
AudioContextusing oscillators and noise filters. - Procedural Sound Bank:
chime: Dual sine wave bells with shimmer delay feedback.sparkle: Four-stage arpeggiated high chime with high-pass sparkle.bloom: Warm detuned 528Hz chords with low-pass resonance.droplet: Sine frequency glide (1200Hz -> 550Hz) simulating water drops.toggle: Dual bandpass noise bursts simulating physical mechanical clicks.page: Soft lowpass paper rustle for navigation events.
4. Design Tokens & Global Styles Protocol
Never hardcode arbitrary CSS colors into templates. Manage visual tokens through WordPress Global Styles:
- Query Existing Styles: Inspect active tokens via
GET /wp/v2/global-styles/themes/frostor the custom styles postGET /wp/v2/global-styles/{id}. - Inject Design Tokens: Update the global styles post via
POST /wp/v2/global-styles/{id}:{ "settings": { "layout": { "contentSize": "650px", "wideSize": "1200px" }, "color": { "palette": { "theme": [ { "color": "#fbfbfb", "name": "Base", "slug": "base" }, { "color": "#111111", "name": "Contrast", "slug": "contrast" }, { "color": "#1a49f5", "name": "Primary", "slug": "primary" } ] } } }, "styles": { "color": { "background": "#fbfbfb", "text": "#111111" } } } - Verify via WP-CLI: Execute
wp rest wp_global_styles get <id>to ensure settings are active.
5. Deployment Protocol: WP-CLI & Remote REST API
Deploying changes reliably requires deterministic, authenticated REST operations:
- Configure Credentials: Use WordPress core Application Passwords (e.g. user
imsovikwith token). - Deploy Template Parts:
- Header:
POST /wp/v2/template-parts/{theme}//header - Footer:
POST /wp/v2/template-parts/{theme}//footer
- Header:
- Deploy Block Templates:
- Home:
POST /wp/v2/templates/{theme}//home - Index (Fallback):
POST /wp/v2/templates/{theme}//index
- Home:
- Invalidate Server Caches: Immediately trigger cache purge via host API (e.g. LiteSpeed Cache
wordpress_litespeed-cache_purge-lite-speed) to ensure frontend visitors receive the new markup without stale HTML delays.
6. Modular Section Composability Engine
WPCraft treats every page as an assembly of independent, hot-swappable section modules. Agents can mutate, replace, or style any single section without touching adjacent components:
| Section Target | Block Grammar Container | Motion & Engineering Enhancement |
| Hero Section | <!-- wp:group {"layout":{"type":"constrained","contentSize":"680px"}} --> | Fluid clamp typography, spring CTA buttons, inline micro-interaction icons. |
| Navigation Dock | parts/header.html → <!-- wp:html --> | SVG #nav-goo fluid morphing dock, glass frosted backdrop blur, active tab blob. |
| Bento Showcase Grid | <!-- wp:group {"align":"wide","layout":{"type":"default"}} --> | 12-col responsive grid, continuous curvature squircles (28px), Web Audio hover cues. |
| Interactive Physics | <!-- wp:html --> inside constrained container | Zero-dependency 2D/WebGL2 canvas, pointer wave diffusion, procedural IK creatures. |
| Design Toolbar | <!-- wp:html --> | Dynamic in-page font family switcher and depth mode toggles (data-wpcraft-depth). |
| Editorial Footer | parts/footer.html → <!-- wp:html --> | Minimalist editorial signoff, dynamic timezone clock ticker, availability badge. |
See references/composable-patterns.md for copy-pasteable, verified Gutenberg block code for every individual section.
7. Instant Factory Reversion & Rollback Protocol
A major invariant of WPCraft is zero permanent destruction. Any customization can be instantly rolled back to the pristine theme defaults via deterministic REST operations:
- Revert Block Templates:
Deleting the usercurl -s -X DELETE -H "$AUTH_HEADER" "https://imsovikde.me/wp-json/wp/v2/templates/{theme}//home?force=true" curl -s -X DELETE -H "$AUTH_HEADER" "https://imsovikde.me/wp-json/wp/v2/templates/{theme}//index?force=true"wp_templatedatabase post immediately restores the theme's bundled.htmlfiles (source: theme). - Revert Template Parts:
curl -s -X DELETE -H "$AUTH_HEADER" "https://imsovikde.me/wp-json/wp/v2/template-parts/{theme}//header?force=true" curl -s -X DELETE -H "$AUTH_HEADER" "https://imsovikde.me/wp-json/wp/v2/template-parts/{theme}//footer?force=true" - Reset User Global Styles:
curl -s -X POST -H "$AUTH_HEADER" -H "Content-Type: application/json" \ -d '{"settings": {}, "styles": {}}' \ "https://imsovikde.me/wp-json/wp/v2/global-styles/<id>"
8. Verification & Quality Rubric
Before presenting work as complete, run the automated verification suite:
node skills/wpcraft/scripts/audit-wpcraft.cjs <target-url-or-html-file>Verify every item on the checklist:
- HTTP 200 OK: Live home URL responds with valid status.
- Block Grammar Integrity: Gutenberg block comments are unstripped and syntactically balanced.
- Site Editor Reachability:
wp-admin/site-editor.phploads cleanly (HTTP 200). - Canvas & Physics Presence: Canvas elements feature explicit ARIA accessibility roles and labels.
- SVG Filter Definitions: Filter matrices (
#nav-goo) exist in DOM before consumption. - Audio Safety: Web Audio contexts initialize or resume only after the first user gesture.
- Responsive Fluidity: Viewport scales gracefully from 360px mobile to 1440px desktop with zero horizontal scroll overflow.
- Zero AI Slop: No generic centered purple mesh gradients, no stock marketing clichés, and no broken asset links.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

