/croftweaver:wordpress-inspectorfrom Croftweaver
Counts WordPress site content via REST API, generates redirect maps for migrations, and verifies post-move completeness. Read-only, no login required.
Ships in Croftweaver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A move goes wrong at the start, when someone guesses the size of the site. A crawler's copy looks complete and is not: it misses whatever no page links to and saves error pages under real page names. This skill asks the site itself, which knows how many records it has.
It reads; it never writes to the site, logs in, or copies its text. Its scripts write their reports and files on your own computer only.
Run it only on a site you own or are asked to look at.
The three scripts are this skill's scripts/wp_inventory.py, scripts/make_redirects.py and
scripts/check_move.py. In
the commands below, the name in braces stands for the folder this SKILL.md is in: Claude
Code fills it in; with another assistant, put that folder's path in its place. Run the
commands in the folder where the reports should live.
python3 "${CLAUDE_SKILL_DIR}/scripts/wp_inventory.py" https://example.com --out ./inventory
It pauses one second between requests and stops after 100, which covers a site of a few
thousand records. If the report says the request limit was reached, run it again with a
higher --max-requests. It obeys the site's robots.txt, wildcards included, and asks only
the host you name. A robots.txt that is refused or cannot be read stops the run.
It writes three files into the folder:
inventory.md: the report. Read this first.urls.csv: one row per address, for a spreadsheet.inventory.json: the same numbers for a program.Keep that folder out of any public repository: it lists another party's addresses.
[vc_row] or [gallery ids="1,2"] where content should be: a page builder,
a gallery or another plugin wrote it. This is a sign, not proof. Open two or three of
these pages in a browser and compare them with their rows in urls.csv; where the page
shows what the text lacks, plan to rebuild it by hand.Say this to the owner before they rely on the numbers:
Those need the site's backup or a login. The language of each record is a guess, for German and English only; treat it as a hint.
Every old address needs a decision: kept at the same address, moved to a new page, or let go.
make_redirects.py turns those decisions into lines for the new site's public/_redirects,
the file Cloudflare reads its redirects from.
python3 "${CLAUDE_SKILL_DIR}/scripts/make_redirects.py" ./inventory/urls.csv --draft ./inventory/moves.csv
This writes moves.csv: one row per old page, with an empty new_address. Go through it with
the owner and write in each row one of:
/kontakt (a Croftweaver site uses no closing
slash);keep: same page, same address;let go: dropped on purpose. Agree these with the owner: they are the record of what was
given up.Open the sheet through Excel's Data → From Text/CSV, or in Numbers or Google Sheets, and save it as CSV UTF-8. Then:
python3 "${CLAUDE_SKILL_DIR}/scripts/make_redirects.py" ./inventory/urls.csv ./inventory/moves.csv --site https://example.com --out ../new-site/public/_redirects
--site is the new site's live address. Keep moves.csv in the inventory folder, out of the
site's repository: only _redirects goes to the site. The script never overwrites a file
unasked. --replace writes over a _redirects it wrote before, and never over one written by
hand: merge those lines into the sheet and the address list first.
What it writes, and why. Cloudflare matches the closing slash, the letter case and each
%-escape exactly (measured on two live kit sites), so a moved page gets a line for /old and one
for /old/, and an address with an escape such as %c3%bc gets both cases. A chain (/a to
/b to /c) is written as /a to /c. No line sends a page to itself.
What it refuses, and lists: an address with a query (/?p=12), which _redirects cannot
match; a deep page pointed at the home page, which check_move would report as sent home; a new
address it cannot read; a decision for an address the list lacks (add it to urls.csv first).
A page with two different decisions, a loop, or more than the 2,000 lines Cloudflare reads
writes nothing at all.
Exit code 0 means the file was written and every address has a decision; 1 that it was written with findings, undecided pages among them, so a move can go ahead in steps; 2 that nothing was written.
This is the step where a page nobody rebuilt, or a redirect nobody wrote, goes unnoticed.
urls.csv from the count is the list to check against. It holds the records and sitemap
entries the count found; a listing page the sitemap left out is not in it, so add such
addresses to the file by hand if they matter.
python3 "${CLAUDE_SKILL_DIR}/scripts/check_move.py" ./inventory/urls.csv https://preview.example.com --out ./move-check
Give it the new site's deployed address, the preview or the live one. A preview server on
your own computer may not apply the host's redirect rules; where it does not, every redirect
reads as missing. Any list of old addresses works in place of urls.csv: a text file, one
per line. /a and /a/ are asked separately, since a site can answer the two differently.
Read move-check.md with the owner. Each old address ends as one of:
/, /index.php,
/index.html or /index.htm) may go wherever the new home page lives.--moves): the address answers, but not where moves.csv sends it.
A redirect to the wrong page, or the old page still served.Some pages are dropped on purpose. Write those addresses into a text file, one per line, and
pass it with --let-go let-go.txt; they then read let go. Agree that list with the owner:
it is the record of what was given up.
With the decisions sheet, the check also asks whether each address ends where the owner decided,
and its let go rows need no separate list:
python3 "${CLAUDE_SKILL_DIR}/scripts/check_move.py" ./inventory/urls.csv https://preview.example.com --moves ./inventory/moves.csv --site https://example.com
--site names the live address the decisions may use; it matters when you check a preview.
The report also counts temporary redirects (302, 303, 307), and move-check.csv says which.
If the move is for good, make them permanent (301 or 308).
Exit code 0 means every address is accounted for, 1 that there are findings, 2 that the run
could not start (moves.csv that cannot be read is one reason). One reason for 2: asked for an address that cannot exist, the new site
did not answer with a plain "not found". Give it a real "not found" page first, or nothing
can be checked.
It does not move anything. It counts before the move, writes the redirects from the owner's decisions, and checks after it, so that each step rests on numbers.
python3 -m unittest discover -s "${CLAUDE_SKILL_DIR}/scripts/tests"
Stub sites on 127.0.0.1, no real requests. In the toolkit's own folder,
make test-wordpress-inventory runs the same.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub karero/croftweaver --plugin croftweaver40 skills in this plugin
/ai-seoWhen the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup./astro-i18n-setupTurn a new-website scaffold into a turnkey multi-language site: Astro i18n routing (clean default locale + prefixed others), self-referencing hreflang + x-default in the Base layout, i18n sitemap alternates, a language switcher, and the test-harness changes that keep the green-from-commit-1 gate honest across locales. Run at scaffold time when new-website Q4 = "two+ languages at launch", OR later to add a second language to a single-locale site whose default stays unprefixed (phased rollout). Trigger phrases: "multi-language site", "add i18n", "DE+EN site", "internationalization", "hreflang setup", "two languages at launch".
Other plugins' skills for the same job