Community程式設計與開發github.com

fswp-core-contributor

引導貢獻者在 WordPress 核心中尋找或建立 Trac 票證、設定開發環境、編寫符合規範的修補程式或 Pull Request,並準備票證評論;同時將區塊編輯器變更導向 Gutenberg 儲存庫,將安全通報導向私有流程。

fswp-core-contributor 是什麼?

FSWP Core Contributor 是 Full-Stack WP Developer 的一部分,專門協助開發者為 WordPress 核心程式碼貢獻。其核心價值在於提供一個系統化的工作流程,從路由變更、尋找或建立 Trac 票證,到設定 wordpress-develop 開發環境、編寫符合核心編碼標準、內聯文件、向後兼容性及測試要求的修補程式,最後協助準備票證評論。此技能特別設計來區分不同類型的變更:PHP 與管理介面走 Trac 流程,區塊編輯器則導向 Gutenberg 儲存庫,而安全漏洞則嚴格遵循私有通報程序。支援的平台包括 Trac 與 GitHub,藉由與其他技能(如 fswp-security-engineer)整合,確保貢獻品項具備高品質與安全性。開發者可直接諮詢此技能以取得核心工作流程的詳細指示。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/syncwin/fswp-developer/tree/main/skills/fswp-core-contributor

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

FSWP Core Contributor

基礎(始終套用): fswp-developer/references/lean-coding.md(先寫少、重複使用)、fswp-developer/references/coding-standards.md(編碼標準、文件、i18n、無障礙),以及 fswp-security-engineer(輸入、輸出、授權)。

此處的工作流程事實已於 2026-09-28 與核心貢獻者手冊核對。核心流程可能變更;在提供建議前,請先在 fswp-developer/references/official-docs.md 中確認任何時效性資訊。此處的內容不會提交任何東西:由使用者自行提交票證和開啟 Pull Request(GitHub 自動化有保留,請參閱 fswp-developer/references/github-foundation.md)。

先路由變更

變更屬於...應前往
漏洞核心手冊中連結的私有安全流程。絕不能是公開的票證或 PR。立即停止並說明。
PHP、管理畫面、API、測試、大多數核心程式碼Trac 票證加上修補程式或針對 WordPress/wordpress-develop 的 Pull Request(本技能)
區塊編輯器(Gutenberg 套件、編輯器 UI、網站編輯器)針對 WordPress/gutenberg 的問題和 Pull Request;核心從那裡接收更新。請閱讀該儲存庫的貢獻指南。
外掛或主題的錯誤不屬於核心;請使用 fswp-maintainer 並回報至該專案
文件相關手冊的文件團隊流程

先找票證

  1. 在 Trac (https://core.trac.wordpress.org/) 搜尋相關症狀。閱讀票證歷史記錄和任何修補程式。
  2. 如果沒有現有票證,草擬一個:精確的標題、WordPress/PHP 版本、重現步驟、預期與實際結果,以及說明這是缺陷(錯誤)還是增強功能。使用者會將其歸檔到正確的元件。
  3. 留意票證上的工作流程關鍵字(例如要求進行單元測試)並遵循它們。

環境

使用開發環境簽出,而非一般網站:

  1. 複製 WordPress/wordpress-develop(正式儲存庫的 Git 鏡像,正式儲存庫由 Subversion 管理)。
  2. 標準工作流程需要 Docker 和 Node。在簽出根目錄下執行:npm install、npm run build:dev、npm run env:start、npm run env:install。
  3. 使用 npm run test:php 執行 PHP 測試。在雙破折號後傳遞 PHPUnit 引數,例如 -- --group formatting。標記為 @ticket 的測試會依票證號碼作為群組執行。多站點有自己的設定檔(-c tests/phpunit/multisite.xml);AJAX 測試使用 --group ajax 執行。
  4. 也存在非 Docker 的工作流程(Composer、PHPUnit PHAR);請參閱手冊中的 PHPUnit 頁面。

編寫變更

  • 從 trunk 分支;分支名稱使用票證號碼(例如 12345-short-description)。讓變更集中在一個票證上。
  • 編碼標準: WordPress PHP、JS、CSS 和 HTML 標準,包括 Yoda 條件、縮排、空格以及跳脫/消毒規則。對變更的檔案執行 PHPCS。
  • 內聯文件: 為新函式、鉤子和類別以核心風格加上 PHPDoc,並根據票證里程碑指定的版本設定 @since。
  • 向後相容性: 核心幾乎從不破壞公開行為。使用棄用(_deprecated_function() 及相關函式)而非移除;保持篩選器和動作的穩定;保留函式簽章。
  • 測試: 新增或更新 PHPUnit 測試,這些測試在套用修補程式前會失敗,套用後會通過,並標記 @ticket。沒有測試的錯誤修補程式通常會被要求加上一個。
  • 安全性和效能: 與任何 WordPress 程式碼相同的規則(fswp-security-engineer、fswp-performance-engineer),但標準更高。
  • 不要夾帶無關的格式化或重構。

提交(由使用者執行)

  • 將 .diff 檔案附加到 Trac 票證(檔案名稱使用票證號碼),或開啟一個針對 WordPress/wordpress-develop 的 Pull Request 並參照該票證。Pull Request 用於審查;它們不會在 GitHub 上合併,因為提交者會透過正式儲存庫提交。
  • 發佈票證評論:說明修補程式的功能、測試方式、測試者可遵循的步驟,以及任何未解決的問題。使用 references/ticket-comment-template.md 為使用者草擬評論。
  • 預期審查、變更要求和較慢的循環。在票證上回覆、更新修補程式,並保持其與 trunk 分支同步。

交接前驗證

使用核心檢查清單執行 fswp-qa-engineer:重現問題在修補前失敗、修補後通過;相關測試群組通過;變更的程式碼行符合編碼標準;文件齊全;向後相容性完好。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

fswp-api-developer

Domain skill for WordPress REST API and Abilities API work in Full-Stack WP Developer. Covers registering routes with schemas, argument validation and sanitization, permission callbacks, controller classes, exposing post types and meta, authentication (cookie nonce, application passwords), pagination and errors, and registering abilities with input and output schemas and safety annotations. Use for any custom endpoint or machine-readable capability in a plugin or theme.

fswp-architect

Planning stage of Full-Stack WP Developer. Classifies the work (new plugin, new theme, update to an existing plugin or theme, add-on for another product, or WordPress Core patch), triages existing code with a bundled detection script, asks one round of essential questions, does competitive research, and produces one reviewable PRD or change brief with a single approval gate. Also covers Migration mode and multi-session handoff docs. Invoked by fswp-developer before any code is written; consult directly for PRD, change-brief, or handoff-doc questions.

fswp-block-developer

Domain skill for WordPress block editor work in Full-Stack WP Developer. Covers building custom Gutenberg blocks (block.json, static and dynamic rendering, attributes, supports, InnerBlocks, variations, deprecations, block bindings), block patterns, and the Interactivity API (data-wp directives, stores, server-side state), with the @wordpress/scripts build workflow. Use for any custom block, pattern, or front-end interactivity in a plugin or theme.

fswp-devops-engineer

Domain skill for WordPress development tooling in Full-Stack WP Developer. Covers local environments (wp-env with Docker, WordPress Playground and Blueprints), command-line site operations (plugin and theme management, database export, search-replace, cron, scaffolding), coding standards and static analysis (PHPCS with WordPress standards, PHPStan with WordPress stubs), PHP and JS testing setup, and the @wordpress/scripts toolchain. Use when setting up, running, or automating a WordPress dev or test environment.

fswp-maintainer

Change stage for existing WordPress code in Full-Stack WP Developer. Updates, fixes, refactors, and upgrades existing plugins and themes without breaking them, and builds add-ons for products you do not own (WooCommerce extensions, page-builder elements, extensions of other plugins) using hooks instead of edits to third-party files. Covers reading before changing, parity lists, deprecation, host compatibility, upgrade paths, and patch delivery. Invoked by fswp-developer after an approved change brief; consult directly for safe-change or add-on questions.

fswp-qa-engineer

Verification stage of Full-Stack WP Developer. Runs the mechanical gate for plugins and themes (house-rule scripts, PHP lint, PHPCS with WordPress standards, PHP compatibility, PHPStan with WordPress stubs), the manual checklist, PRD or change-brief scenario tests, and the pre-release check. Reports PASS, FAIL, or NOT RUN and never implies a skipped check passed. Invoked by fswp-developer after a build and again before delivery; consult directly to audit any plugin or theme folder.

fswp-reviewer

Independent review stage of Full-Stack WP Developer. Reviews a finished WordPress plugin, theme, add-on, or Core patch through a security lens (WordPress-specific vulnerabilities, REST and AJAX authorization with an API risk map, AI-generated-code risks), a quality lens (error handling, data and upgrade safety, performance, i18n, accessibility, comment accuracy, test gaps, class and type design, scope), and an optional lean lens for trimming over-engineering, reporting only high-confidence findings in a fixed format. Invoked by fswp-developer after the verify gate, normally through the fswp-code-reviewer agent; consult directly to review or optimize any WordPress code.

fswp-theme-developer

Theme build stage of Full-Stack WP Developer. Builds custom WordPress themes - block themes (theme.json, templates, template parts, patterns, style variations), classic themes (template hierarchy, functions.php, theme supports), hybrids, and child themes - with accessibility, escaping, and directory readiness built in, plus a scaffold script. Invoked by fswp-developer after an approved PRD for a new theme; consult directly for a specific theme pattern. For changes to an existing theme use fswp-maintainer.

syncwin/fswp-plugin-developer

Plugin build stage of Full-Stack WP Developer. House standards and code templates for real WordPress plugins (not shortcode snippets) - folder anatomy, activation/uninstall lifecycle, custom post types and tables, admin UI tiers, front-end output on the Atomic Framework, REST and cron, i18n, distribution, and the Tier 3 React admin stack - plus a scaffold script. Also the base structure for add-ons. Invoked by fswp-developer after an approved PRD; consult directly for a specific plugin build pattern.

相關技能