Agent skill

Wp Rocket Frontend Architecture

by wp-media in wp-media/wp-rocket

A skill your agent uses when changing admin JavaScript, CSS, or HTML/Twig templates in WP Rocket.

GPL-2.0Auto-check passedFrontend & Design

Install Wp Rocket Frontend Architecture

skills CLI
$ npx skills add wp-media/wp-rocket --skill wp-rocket-frontend-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wp-media/wp-rocket wp-rocket-frontend-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wp-media/wp-rocket.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/wp-rocket-frontend-architecture .claude/skills/wp-rocket-frontend-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wp-rocket-frontend-architecture
GitHub stars
767
Token cost
~330 tokens
SKILL.md length
158 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
GPL-2.0

At a glance

A skill your agent uses when changing admin JavaScript, CSS, or HTML/Twig templates in WP Rocket.

  • Changing admin JavaScript
  • SKILL.md covers Core principles, Admin settings UI, AJAX / REST and Structural expectations
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • HTML/Twig templates in WP Rocket

What it does

Wp Rocket Frontend Architecture is an agent skill from wp-media/wp-rocket. Use this skill when changing admin JavaScript, CSS, or HTML/Twig templates in WP Rocket.

Its SKILL.md is about 330 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design. It works with JavaScript and WordPress. The repository describes itself as: Performance optimization plugin for WordPress. The licence is GPL-2.0.

When your agent uses it

  • Changing admin JavaScript
  • HTML/Twig templates in WP Rocket

Example prompts

  • “/wp-rocket-frontend-architecture”

What it can do on your machine

Read from SKILL.md and the folder at commit aa6a655. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wp Rocket Frontend Architecture loads about 330 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 158 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~330

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wp-media/wp-rocket at commit aa6a655, republished under its GPL-2.0 licence (© wp-media). 158 words, ~330 tokens.

Download SKILL.mdSave it as .claude/skills/wp-rocket-frontend-architecture/SKILL.md (or your agent's skills folder).
name
wp-rocket-frontend-architecture
description
Use this skill when changing admin JavaScript, CSS, or HTML/Twig templates in WP Rocket.

WP Rocket — Frontend Architecture

Guidelines for JavaScript, CSS, and template changes in WP Rocket's admin UI.

Core principles

  • No jQuery — use native DOM APIs only.
  • No inline event handlers (onclick, onchange, etc.) — use addEventListener.
  • No unsafe innerHTML assignments — use textContent or createElement/appendChild.
  • Use event delegation where appropriate (admin pages can load content dynamically).

Admin settings UI

  • Settings page templates live in views/.
  • JS for the settings page lives in assets/js/.
  • Use wp_localize_script to pass PHP data to JS — never inline <script> blocks with data.
  • Nonces must be localized — never hardcoded.
  • New JS entry points must be registered and enqueued through a Subscriber.

AJAX / REST

  • Use native fetch with the localized nonce for REST calls.
  • Use wp.ajax for legacy AJAX (admin-ajax.php) if already present in the area.
  • Always handle errors explicitly — no silent failures.

Structural expectations

  • JS files live under assets/js/.
  • CSS files live under assets/css/.
  • No new global variables — use module patterns or data attributes to share state.

© wp-media, GPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/wp-rocket-frontend-architecture of wp-media/wp-rocket.

Open the folder on GitHubat commit aa6a655

Compare with similar skills

Wp Rocket Frontend Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wp Rocket Frontend Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wp Rocket Frontend Architecture this skillwp-media/wp-rocket767—~330Automated safety check: PassGPL-2.0
Sentry Browser SDKgetsentry/sentry-for-ai268—~6.5kAutomated safety check: NotesApache-2.0
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
GSAP Core Animationgreensock/gsap-skills16k3 repos~3.7kAutomated safety check: PassMIT
Scroll World Landing Pageoso95/scroll-world9.9k1 repos~12kAutomated safety check: NotesMIT

Similar skills

  • Sentry Browser SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for browser JavaScript. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~6.5k tokensUpdated today
    Frontend & DesignAuto-check: notes
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • GSAP Core Animation

    greensock/gsap-skills

    Covers the GSAP core API for tweens, easing, staggers, defaults and matchMedia, and when to choose GSAP over CSS animations or other JavaScript animation libraries.

    16k GitHub starsUsed in 3 repos~3.7k tokens
    Frontend & DesignAuto-check passed
  • Scroll World Landing Page

    oso95/scroll-world

    Builds a scroll-driven landing page where a pre-rendered camera flies through connected AI-generated scenes, using Higgsfield for stills and video clips.

    9.9k GitHub starsUsed in 1 repo~12k tokens
    Frontend & DesignAuto-check: notes
  • Rules for adding or fixing client-side scripts in Tabler's Astro components so the copied preview HTML stays readable, self-contained and runs in the right order.

    42k GitHub stars~2.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from wp-media/wp-rocket

All 15 skills in this repo
  • Knowledge Graph

    wp-media/wp-rocket

    Read and refresh wp-rocket's pre-built dependency graph at .claude/graph/dependency-graph.json.

    767 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Wordpress Compliance

    wp-media/wp-rocket

    A skill your agent uses when modifying templates, admin UI, output, hooks, plugin metadata, sanitization, escaping, or any code that must remain compliant with WordPress.org and repository PHPCS…

    767 GitHub stars~809 tokensUpdated today
    Auto-check passed
  • Wp Rocket Architecture

    wp-media/wp-rocket

    A skill your agent uses when changing service structure, Subscribers, ServiceProviders, Container wiring, bootstrapping, Context classes, or any code that may affect the core caching engine in WP…

    767 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Challenge

    wp-media/wp-rocket

    Adversarially review a grooming spec before implementation starts.

    767 GitHub stars~674 tokensUpdated today
    Auto-check passed
  • Compliance

    wp-media/wp-rocket

    Check a change against WordPress.org plugin rules and PHPCS standards.

    767 GitHub stars~551 tokensUpdated today
    Auto-check passed
  • Docs

    wp-media/wp-rocket

    Update developer-facing documentation to reflect code changes on the current branch.

    767 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about Wp Rocket Frontend Architecture

What does Wp Rocket Frontend Architecture do?

A skill your agent uses when changing admin JavaScript, CSS, or HTML/Twig templates in WP Rocket. Wp Rocket Frontend Architecture is an agent skill from wp-media/wp-rocket. Use this skill when changing admin JavaScript, CSS, or HTML/Twig templates in WP Rocket.

When should I use Wp Rocket Frontend Architecture?

Wp Rocket Frontend Architecture fits situations like: changing admin JavaScript; HTML/Twig templates in WP Rocket.

How do I install Wp Rocket Frontend Architecture in Claude Code?

Run `npx skills add wp-media/wp-rocket --skill wp-rocket-frontend-architecture -a claude-code`. Or copy the skill folder (.claude/skills/wp-rocket-frontend-architecture in wp-media/wp-rocket) into .claude/skills/wp-rocket-frontend-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Wp Rocket Frontend Architecture in Codex?

Run `npx skills add wp-media/wp-rocket --skill wp-rocket-frontend-architecture -a codex`. Or copy the skill folder (.claude/skills/wp-rocket-frontend-architecture in wp-media/wp-rocket) into .agents/skills/wp-rocket-frontend-architecture in your project. Codex loads it when a task matches its description.

Can I use Wp Rocket Frontend Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wp-media/wp-rocket --skill wp-rocket-frontend-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wp-rocket-frontend-architecture, .gemini/skills/wp-rocket-frontend-architecture, .github/skills/wp-rocket-frontend-architecture and .opencode/skills/wp-rocket-frontend-architecture in your project.

What does Wp Rocket Frontend Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: Wp Rocket Frontend Architecture is instructions for the agent only.

Does Wp Rocket Frontend Architecture access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wp Rocket Frontend Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wp Rocket Frontend Architecture use?

Wp Rocket Frontend Architecture is published under the GPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wp Rocket Frontend Architecture use?

About 330 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wp Rocket Frontend Architecture?

Skills that share tags, products or a category with Wp Rocket Frontend Architecture: Sentry Browser SDK (getsentry/sentry-for-ai, 268 stars), Tailwindcss Development (anonaddy/anonaddy, 4.9k stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars) and GSAP Core Animation (greensock/gsap-skills, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wp Rocket Frontend Architecture?

wp-media (a GitHub organization) maintains it in wp-media/wp-rocket, which has 767 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 9, 2026.

Source: wp-media/wp-rocket on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.