Agent skill

Docs

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

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

GPL-2.0Auto-check passed

Install Docs

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

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

GitHub CLI
$ gh skill install wp-media/wp-rocket docs --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/docs .claude/skills/docs && 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
docs
GitHub stars
767
Token cost
~1.1k tokens
SKILL.md length
492 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
GPL-2.0

At a glance

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

  • Works in 5 steps: Read the changed files → Review existing documentation → Identify gaps → …
  • SKILL.md covers When to run / when to skip, Process and wp-rocket-specific notes
  • Calls git

What it does

Docs is an agent skill from wp-media/wp-rocket. Update developer-facing documentation to reflect code changes on the current branch. Runs as an inline skill inside backend-agent and frontend-agent (step 2.5 of the internal sequence) after implementation and before DOD. Receives the explicit list of changed files from the implementation agent. No-op if no public API changes occurred.

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

It works with WordPress. The repository describes itself as: Performance optimization plugin for WordPress. The licence is GPL-2.0.

Example prompts

  • “/docs”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Read the changed files
  2. Review existing documentation
  3. Identify gaps
  4. Update documentation
  5. Return

What it can do on your machine

Read from SKILL.md and the folder at commit 3a96b66. 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

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Docs loads about 1.1k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 492 words of instructions outside code blocks.

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

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 3a96b66, republished under its GPL-2.0 licence (© wp-media). 492 words, ~1,082 tokens.

Download SKILL.mdSave it as .claude/skills/docs/SKILL.md (or your agent's skills folder).
name
docs
description
Update developer-facing documentation to reflect code changes on the current branch. Runs as an inline skill inside backend-agent and frontend-agent (step 2.5 of the internal sequence) after implementation and before DOD. Receives the explicit list of changed files from the implementation agent. No-op if no public API changes occurred.

DOCS SKILL

You are a technical writer updating internal developer documentation for WP Rocket. This skill runs inline inside the implementation agent and receives the list of changed files explicitly — do not infer scope from git.


When to run / when to skip

Run this skill if the implementation touched any of the following:

  • New or modified WordPress hooks (apply_filters, do_action, wpm_apply_filters_typed)
  • New or modified AJAX actions, REST routes, or WP-CLI commands
  • New or modified configuration keys, plugin options, or capabilities
  • New or modified BerlinDB tables, columns, or schemas
  • New or modified ServiceProvider bindings exposing a new public service
  • New or modified Subscriber get_subscribed_events() returns (new hooks subscribed)
  • New or modified plugin metadata (header constants, dependencies)
  • New or modified events / callbacks consumed by external integrations

Skip this skill (return no-op) if:

  • Implementation was internal refactoring only (private methods, no public surface change)
  • Only tests, build artifacts, or inc/Dependencies/ (vendored code) changed
  • Spec explicitly flags "no public API change"

When skipping, return:

json
{ "status": "SKIP", "reason": "No public API changes in this implementation" }

Process

Step 1 — Read the changed files

Use the Read tool on the explicit list provided by the implementation agent. Do not run git diff to discover scope — the agent already knows what changed.

Identify:

  • New or modified public API endpoints, hooks, AJAX actions, REST routes
  • Removed endpoints, hooks, or option keys (document as deprecated or removed)
  • New or modified capabilities (from the wordpress-compliance skill's list)
Step 2 — Review existing documentation
bash
find docs/ -name '*.md' -o -name '*.mdx' 2>/dev/null | head -50
ls -la README.md

Read relevant existing doc files. Understand what is already covered and what needs updating.

Step 3 — Identify gaps

For each significant public-facing change:

  • Is it documented? Is the existing doc current?
  • Which doc file should it go in? (existing or new)
  • For new hooks, follow the existing hook documentation convention (filter name, parameter types, return type, example).
Show full SKILL.md (204 more words)Show less
Step 4 — Update documentation

For each gap:

  1. Find the correct existing file, or create a new one under docs/
  2. Write or update the content
  3. Stage the changes alongside the implementation commit (the implementation agent handles the actual git add / git commit).

Style guidelines:

  • Purpose: help engineers get a high-level understanding and find the relevant code fast
  • Tone: neutral, technical, not promotional
  • Structure: prose for explanations; bullets for parallel items; numbered steps for flows
  • Length: concise — a few hundred lines per file max; split by topic if large
  • Avoid embedding large code blocks; prefer referencing class/function names with their full namespace
  • Document the current state, not the change history (the changelog handles history)
  • For new filters, always include the wpm_apply_filters_typed() type as part of the signature
Step 5 — Return
json
{
  "status": "DONE|SKIP",
  "files_updated": ["docs/api/reports.md", "docs/configuration.md"],
  "files_created": ["docs/api/notifications.md"],
  "reason": "Populated if SKIP"
}

wp-rocket-specific notes

  • The docs root is docs/. The README at the repo root is for users; developer docs live in docs/.
  • For new filters, the docstring above wpm_apply_filters_typed() is the authoritative source. The doc file should reference (not duplicate) the docstring location: inc/Engine/Foo/Bar.php:42.
  • For new capabilities, add them to the list in .claude/skills/wordpress-compliance/SKILL.md (so PHPCS does not flag future uses).
  • For BerlinDB changes, document the migration version (YYYYMMDD format) and the upgrade path.

© 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/docs of wp-media/wp-rocket.

Open the folder on GitHubat commit 3a96b66

Compare with similar skills

Docs 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.

Docs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docs this skillwp-media/wp-rocket767—~1.1kAutomated safety check: PassGPL-2.0
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Wp Block Developmentgambitph/Stackable3504 repos~1.6kAutomated safety check: PassGPL-3.0
Wp Interactivity APIAutomattic/agent-skills2113 repos~1.5kAutomated safety check: PassNone
Postizgitroomhq/postiz-agent5062 repos~7.9kAutomated safety check: PassAGPL-3.0
Doc ScreenshotsWordPress/wordpress-playground2k—~1.8kAutomated safety check: PassGPL-2.0

Similar skills

  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Wp Block Development

    gambitph/Stackable

    A skill your agent uses when developing WordPress (Gutenberg) blocks: block.json metadata, registerblocktype(frommetadata), attributes/serialization, supports, dynamic rendering…

    350 GitHub starsUsed in 4 repos~1.6k tokens
    Auto-check passed
  • Wp Interactivity API

    Automattic/agent-skills

    A skill your agent uses when building or debugging WordPress Interactivity API features (data-wp- directives, @wordpress/interactivity store/state/actions, block viewScriptModule integration…

    211 GitHub starsUsed in 3 repos~1.5k tokens
    DevelopmentAuto-check passed
  • Postiz

    gitroomhq/postiz-agent

    Postiz is a tool to schedule social media and chat posts to 28+ channels X, LinkedIn, LinkedIn Page, Reddit, Instagram, Facebook Page, Threads, YouTube, Google My Business, TikTok, Pinterest…

    506 GitHub starsUsed in 2 repos~7.9k tokens
    Writing & ContentAuto-check passed
  • Doc Screenshots

    WordPress/wordpress-playground

    Annotate UI screenshots with documentation callouts in Fellyph's established visual style — uniform-width orange arrows with white halos, double-stroke target outlines, numbered callout cards, dim…

    2k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Wp Performance Review

    elvismdev/claude-wordpress-skills

    WordPress performance code review and optimization analysis.

    235 GitHub starsUsed in 1 repo~4.5k tokens
    Business, Finance & HRAuto-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
  • Issue Workflow

    wp-media/wp-rocket

    Work on a GitHub issue by number for wp-media/wp-rocket. An agent skill from wp-media/wp-rocket.

    767 GitHub starsUsed in 1 repo~756 tokens
    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

Works with

Questions about Docs

What does Docs do?

Update developer-facing documentation to reflect code changes on the current branch. Docs is an agent skill from wp-media/wp-rocket. Update developer-facing documentation to reflect code changes on the current branch.

How do I install Docs in Claude Code?

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

How do I install Docs in Codex?

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

Can I use Docs 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 docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docs, .gemini/skills/docs, .github/skills/docs and .opencode/skills/docs in your project.

What does Docs need to run?

Going by SKILL.md and its folder, Docs needs the command-line tools its instructions call (git).

Does Docs access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Docs 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 Docs use?

Docs 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 Docs use?

About 1.1k tokens (SKILL.md is roughly 4.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 Docs?

Skills that share tags, products or a category with Docs: WooCommerce Code Review (woocommerce/woocommerce, 11k stars), Wp Block Development (gambitph/Stackable, 350 stars), Wp Interactivity API (Automattic/agent-skills, 211 stars) and Postiz (gitroomhq/postiz-agent, 506 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docs?

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 7, 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.