Jeremy-VVu

Localwp Test — Testing skill for Claude Code

Testing community

Claude Code skill:在 LocalWP 的 WordPress 開發站上測試外掛與佈景主題(WP-CLI、唯讀 SQL、無頭瀏覽器冒煙測試、debug.log 統計),支援 Windows/Linux/macOS.

How to install Localwp Test

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Jeremy-VVu/localwp-test and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Localwp Test does

Claude Code skill:在 LocalWP 的 WordPress 開發站上測試外掛與佈景主題(WP-CLI、唯讀 SQL、無頭瀏覽器冒煙測試、debug.log 統計),支援 Windows/Linux/macOS.

Alternatives in Testing

  • Debug — You are tasked with helping debug issues during manual testing or implementation 10k ★
  • L Debug Trace — Analytically debug issues by tracing data flow through code - no logs, no test-and-see 3k ★
  • Skill Debug — Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior 2.8k ★

README

localwp-test

English | [繁體中文](README.zh-TW.md)

A [Claude Code](https://claude.com/claude-code) skill for testing WordPress plugins and themes on [LocalWP](https://localwp.com/) (Local by Flywheel) development sites.

Everything goes through a single entry point, `bin/lwp`, so one permission rule in Claude Code is enough to skip the confirmation prompt on every call.

**Note:** `SKILL.md` (the instructions Claude reads) and the tool's output messages are written in Traditional Chinese. Claude understands them regardless of the language you chat in.

Features

  • WP-CLI using LocalWP's bundled PHP, php.ini and WP-CLI. Destructive operations are blocked unless --lwp-yes is passed explicitly.
  • Read-only SQL: only SELECT / SHOW / DESCRIBE / EXPLAIN are allowed.
  • PHP lint across versions: checks with the site's PHP version and any others you list (e.g. 7.4, 8.4).
  • Authenticated page requests: generates an admin login cookie and reports the HTTP status and any PHP errors on the page.
  • Headless browser smoke tests: can crawl every page in the wp-admin sidebar, catching console errors, uncaught exceptions and 4xx/5xx responses. Repeated messages are merged and known environment noise is filtered out.
  • Custom browser scripts via require('lwp-browser'), built on puppeteer.
  • WP_DEBUG_LOG toggle and grouped summary: turning it off restores a byte-identical copy of the original wp-config.php.
  • Outbound HTTP request logging and blocking, database snapshots and restore, and temporary test file management.

Supported platforms

Windows (Git Bash) Linux macOS
Local data directory %APPDATA%\Local ~/.config/Local ~/Library/Application Support/Local
Browser Edge → Chrome Edge → Chrome → Chromium Edge → Chrome → Chromium

Requirements: bash, python3 (`python` on Windows), node, curl, and one of Edge, Chrome or Chromium.

Installation

git clone https://github.c