From wp-agent-skills
Edit a specific section, block pattern, or piece of content on the site. Use when the user wants to change copy, swap a photo, add or remove a timeline item, update a quote, fix a heading, or change anything on a specific page or across a reusable pattern. Makes surgical edits — does not rebuild the whole page. Examples: "change the hero headline", "update the about section", "add a new project to the gallery", "fix the contact email".
npx claudepluginhub antonysilverhand/wp-agent-skills --plugin wp-agent-skillsThis skill is limited to using the following tools:
Surgical edits to a specific section or page. Show a diff before applying.
Acquire memory dumps from live systems/VMs and analyze with Volatility 3 for processes, networks, DLLs, injections in incident response or malware hunts.
Provides x86-64/ARM disassembly patterns, calling conventions, control flow recognition for static analysis of executables and compiled binaries.
Identifies anti-debugging checks like IsDebuggerPresent, NtQueryInformationProcess in Windows binaries; suggests bypasses via patches/hooks/scripts for malware analysis, CTFs, authorized RE.
Surgical edits to a specific section or page. Show a diff before applying.
TARGET — pattern slug (edits the pattern file, affects all pages using it) or a page title/ID (edits that page only)CHANGE — plain English description of the editIf target is a pattern slug:
Read patterns/<slug>.php from the theme directory.
Note: changes here affect every page using this pattern.
If target is a page title:
curl -s "$WP_SITE_URL/wp-json/wp/v2/pages?search=<title>" \
| jq '.[0] | {id, title: .title.rendered, link}'
Then fetch content.raw for the page.
Identify the minimum change needed. Categories:
IMAGE: placeholder or wp:image block, update url and altdata-anim attribute on the wrapper <div>Do not refactor surrounding blocks. Touch only what's described.
--- BEFORE
+++ AFTER
@@ relevant block @@
- <h2 class="wp-block-heading">...</h2>
+ <h2 class="wp-block-heading">...</h2>
Ask: "Apply this change?" — wait for confirmation before writing.
Pattern file:
Write updated patterns/<slug>.php.
wp cache flush
Page:
curl -s -X POST "$WP_SITE_URL/wp-json/wp/v2/pages/<id>" \
-H "Authorization: Basic $(echo -n "$WP_USER:$WP_APP_PASSWORD" | base64)" \
-H "Content-Type: application/json" \
-d '{"content": "<full updated content>"}'
When updating a page, always POST the full content field — the API replaces, doesn't merge.
Fetch the updated resource and confirm the change is present:
curl -s "$WP_SITE_URL/wp-json/wp/v2/pages/<id>" | jq '.content.raw' | grep "<changed text>"
{"align":"wide"}). A malformed JSON attribute silently breaks that block in the editor while still rendering on the frontend.wp cache flush flushes object cache, not page cache. If a caching plugin (LiteSpeed, WP Super Cache) is active, also clear its page cache from WP Admin.Diff of what changed. Preview URL to verify visually.