/wporg-plugin-submit:wporg-plugin-submitfrom WP.org Plugin Submit (unofficial)
Prepare and submit any WordPress plugin to the wordpress.org plugin directory so it passes the automated scan and manual review. Use when packaging a plugin for wp.org, building a clean install zip, fixing review-team feedback (enqueue / nonces / sanitize / prefixes), bumping versions across header+readme, or when the automated scan rejects an upload (hidden files, generic prefixes, direct DB calls, etc.). Ships runnable scripts that build a clean zip (no dev files, no dotfiles, vendor --no-dev) and run a pre-upload preflight (hidden-file scan, version-sync, header/readme consistency, PHPCS, prefixes, raw script tags, nonce checks, eval), plus a searchable rule base where every rule cites the Plugin Handbook or the Plugin Check source. 中文觸發:上架 wordpress.org、送審外掛、外掛被退件、審核信、自動掃描沒過、hidden files、 前綴太短、nonce、enqueue、sanitize/escape、readme.txt、Stable tag、Plugin Check、打包 zip。
Ships in WP.org Plugin Submit (unofficial). 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.
None: SKILL.md is the whole skill.
Get a plugin through the wp.org automated scan and manual review without re-uploading five times.
tools/extract_pcp.py) into data/pcp-checks.csv and
data/pcp-codes.csv. Version, commit and date: python scripts/wporg.py stats.
PHPCS sniff codes are resolved against WordPress-Coding-Standards
(tools/verify_codes.py).data/rules.csv and data/plugin-check-errors.csv has source,
doc_url, trust and checked_on. Trust levels: 官方原始碼 (PCP / WPCS source) >
官方文件 (Handbook) > 實測 (measured) > 站內風格 (our convention, not a wp.org rule) >
推論 (inferred). Never present a 站內風格 or 推論 row as a wp.org requirement.python scripts/wporg.py stats.Maintainer: moksa · moksaweb.com · License: MIT
Use when the user wants to package, submit or resubmit a plugin to wordpress.org, fix a review email or an automated-scan rejection, bump versions, or pre-flight before upload.
Do NOT use for (hand off instead):
wp-plugin-developmentwp-rest-api; WooCommerce extension code → woocommercewordpress-plugin-publishSingle entry point: python scripts/wporg.py (standard library only; build calls
scripts/build-zip.sh, so it needs bash + git: Git Bash on Windows).
| Command | Who runs it | Purpose |
|---|---|---|
wporg.py search "<question>" | user / agent | find the rule, code or reference section (zh or en) |
wporg.py lookup <code> | user / agent | explain a PCP / PHPCS code or a review key |
wporg.py build [--dir --slug --out --vendor] | user / agent | clean zip (= scripts/build-zip.sh) |
wporg.py preflight <dir-or-zip> | user / agent | pre-upload gate: scripts/preflight.py; scripts/preflight.sh runs the same checks (hands over to Python when present, bash fallback otherwise) |
wporg.py pending | user / agent | open questions nobody has a source for yet |
scripts/test_wporg.py | maintainer | self-test (fixtures, routing, provenance, numbers) |
scripts/check_numbers.py | maintainer | every number in this file is registered and true |
evals/grade.py | maintainer | with/without-skill accuracy |
tools/extract_pcp.py, tools/verify_codes.py | maintainer | rebuild / verify PCP data |
Iron rule: look it up first, never answer from memory. Run wporg.py search or
lookup before stating a rule, a code, a limit or a severity, and quote its trust and
doc_url. If nothing is found, say so, mark it 待補 (pending), add a row to
data/pending.csv, and do not guess.
| The user says | Data | Command |
|---|---|---|
| 被退件說 hidden files / 自動掃描擋下 | rules.csv, pcp-codes.csv | search "hidden files" |
| 掃描報某個代碼(hidden_files、NonPrefixedFunctionFound…) | plugin-check-errors.csv, pcp-codes.csv | lookup <code> |
| 前綴太短 / generic names / 命名衝突 | rules.csv (prefix_*), references/prefixing.md | search "前綴" |
| 審核信說 nonce / 權限 / sanitize / escape | rules.csv, references/review-categories.md | search "nonce 驗證" |
| 不能直接印 script / CDN 載入 JS | rules.csv, references/enqueue.md | search "載入 js" |
| 外部服務要怎麼寫在 readme | rules.csv (disclose_external_services) | search "外部服務" |
| readme:Stable tag、Requires、簡短說明、Tags | rules.csv (readme_*), references/readme-txt.md | search "簡短說明" |
| slug 怎麼決定 / zip 要怎麼打包 | rules.csv (package), references/packaging.md | search "slug" |
| Plugin Check 有幾項、哪項是 error | pcp-checks.csv, pcp-codes.csv | search "PCP" --domain checks |
| AI / Abilities / MCP | rules.csv (area ai), references/abilities-ai-mcp.md | search "AI 能力權限" |
| 授權、追蹤、商標、試用版、後台通知 | rules.csv (area policy), references/guidelines.md | search "商標" |
| 解除安裝 / uninstall.php | rules.csv (lifecycle), references/uninstall.md | search "解除安裝" |
| 審核信第二輪又退 / 怎麼回信 | references/real-review-lessons.md, references/review-categories.md | search "回信" --domain refs |
| 還沒查清楚的 | pending.csv | wporg.py pending |
Chinese phrases are expanded through data/terms-zh.csv; add a row there when a common
phrase finds nothing.
search). Evidence: each
decision cites a rule id.python scripts/wporg.py build (git archive of HEAD,
strips dev files and every dotfile, vendor --no-dev, zip root = slug). Evidence:
hidden files in package: 0.python scripts/wporg.py preflight <slug>-<version>.zip.
Evidence: PREFLIGHT PASS, exit 0.wp plugin check <slug> (or Tools → Plugin Check).
Evidence: 0 errors; every warning read (lookup <code> each one).lookup the exact code, fix, rebuild, re-run steps 3-4.search / lookup it; note the rule id and source.references/real-review-lessons.md has the grep per category).references/review-categories.md). Evidence: every point lists file:line changes.Tags: [scan] = PCP error at upload, [review] = reviewers reject it, (站內風格) / (推論) =
not a wp.org rule. The rule id after each item is a row in data/rules.csv.
PACKAGE
[ ] no dotfiles, no .git/.svn [scan] no_hidden_files, no_vcs_dirs
[ ] no tests/, node_modules/, dev configs [review] no_dev_folders
[ ] vendor/ installed with --no-dev [review] vendor_no_dev
[ ] zip root folder = slug (站內風格) zip_root_is_slug
CODE
[ ] unique prefix >= 4 chars; not wp_ / __ / _ [scan] prefix_min_4, prefix_reserved
[ ] wp_enqueue_* + wp_add_inline_*, no raw tags [review] enqueue_no_raw_tags
[ ] nonce on every state change + current_user_can [review] nonce_on_state_change, capability_with_nonce
[ ] sanitize input (wp_unslash + sanitize_*), escape late [review] sanitize_input, escape_late
[ ] $wpdb->prepare, no HEREDOC, ABSPATH guard [review] db_prepare, no_heredoc, direct_file_access
[ ] no eval / create_function / passthru ... [scan] no_eval
[ ] webhooks: provider signature via hash_equals (推論) webhook_hash_equals
POLICY
[ ] GPL, same license in header and readme [scan] gpl_license
[ ] no remote JS/CSS, no update checker, no tracking without opt-in [review]
[ ] external services disclosed in the readme [review] disclose_external_services
(section name "== External services ==" is 推論: external_services_heading)
README / METADATA
[ ] Stable tag = header Version [scan] stable_tag_matches_version
[ ] readme Requires at least / PHP = header [scan] requires_match
[ ] version constant = header; WC requires synced (站內風格) version_constant_sync, wc_requires_match
[ ] screenshots/banners/icons in SVN /assets/ [review] assets_in_svn
AI / ABILITIES / MCP
[ ] wp_register_ability has a permission_callback [review] ability_permission_callback
[ ] object-level caps, data boundary, confirm destructive, MCP auth (推論) ai_*
| Output | Validator | Pass criterion |
|---|---|---|
| Built zip | wporg.py build | prints hidden files in package: 0 |
| Zip or plugin dir | wporg.py preflight <zip-or-dir> | PREFLIGHT PASS, exit 0 (exit 1 = a FAIL, exit 2 = bad target) |
| Same package on a WordPress test site | Plugin Check (wp plugin check <slug>) | 0 errors; warnings reviewed |
| readme.txt | wordpress.org readme validator | no errors |
What preflight checks: [1] hidden files, [2] dev folders, [3] vendor dev deps,
[4] version header = constant (const or define()) = Stable tag, [5] Requires headers
main file = readme, [6] PHPCS over the whole package when a ruleset and phpcs exist,
[7] prefixes (set WPORG_PREFIX to override the detected one), [8] raw
<script>/<style>, [9] nonce + capability around $_POST/$_REQUEST, [10] PCP's
forbidden functions. Checks [7]-[10] are grep heuristics; Plugin Check is the real gate.
Both fixtures prove it: examples/good-plugin/ passes, examples/bad-plugin/ fails on
every planted problem (PLANTED [n] comments).
python scripts/test_wporg.py; it prints the pass count.python scripts/check_numbers.py (exit 1 on any unregistered
or wrong number).python evals/grade.py --questions, answer with and without the skill, then
python evals/grade.py --with … --without … --write; results in evals/RESULTS.md.python tools/extract_pcp.py <clone>, then
python tools/verify_codes.py <clone> <wpcs-clone> (exit 1 = a code no longer exists),
re-run the self-test and update the PCP version in references/plugin-check.md.checked_on in data/rules.csv; move answered rows out of
data/pending.csv (status closed).~/.claude/skills/wporg-plugin-submit is a git clone; git pull there
(from GitHub after a push, or from this repo path before one).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub moksa1123/wporg-plugin-submit --plugin wporg-plugin-submit