Communitygithub.com

umairmsm/wp-site:WordPress 網站專案管理

從空白資料夾到正式上線的 WordPress 網站建置流程。使用 wp-site-kit 時,從這裡開始。當有人說「架設 WordPress 網站」、「客戶的新網站」、「網站進度如何」、「上線前還需做什麼」,或要求繼續網站專案時使用。它會從 SITE_STATUS.md 找出當前階段,套用硬性規則,然後交給對應的階段技能。

wp-site:WordPress 網站專案管理 是什麼?

此技能適用於 Claude Code、Cursor、Codex 等 AI 代理工具,為使用 wp-site-kit 的 WordPress 網站開發提供完整的階段化管理流程。它並非直接撰寫程式碼,而是作為專案總控,指導開發者與 AI 代理遵循 8 個循序漸進的階段:啟動、設計、建置、內容、SEO 與多語言、品質、上線、維運。每個階段都有明確的「閘門」,必須達成並記錄於 SITE_STATUS.md 才能前進下個階段。技能內建 14 條硬性規則,涵蓋外掛優先、無假資料、隱私安全、資料庫管理等核心原則。使用時,AI 代理會先讀取專案中的 SITE_STATUS.md、AGENTS.md、SESSION_LOG.md 與 DECISIONS.md 來了解專案狀態與歷史。支援透過 wp-task-file 將階段工作派發給其他自動化代理,並使用 launch-auditor 在上線前進行稽核。

相容平台✓Claude Code✓Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/umairmsm/wp-site-kit/tree/HEAD/skills/wp-site

在你喜歡的 AI 中提問

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

說明文件

WordPress 網站:從空白資料夾到正式上線

這個套件是一套方法加上一個起始專案。它來自一個真實客戶付費使用的多語言預約網站。請依序完成各階段。每個階段結束時都有一個閘門:只有在閘門條件為真且證據已記錄時,才能離開該階段。

1. 找出專案目前進度

  1. 在專案根目錄尋找 SITE_STATUS.md。
    • 找不到:專案尚未開始。請使用 wp-kickoff。
    • 找得到:閱讀它。目前的階段就是第一個閘門尚未勾選的階段。
  2. 閱讀 AGENTS.md(專案規則),然後閱讀 SESSION_LOG.md 和 DECISIONS.md 的最新幾行。
  3. 用兩行文字告訴專案擁有者:目前的階段,以及下一步具體要做什麼。

2. 各階段

#階段技能離開閘門(證據需記錄在 SITE_STATUS.md)
1啟動wp-kickoff擁有者核准簡報;已鎖定決策且記錄完畢;私有儲存庫;憑證已列出名稱
2設計wp-design靜態原型簽核完成(需附螢幕截圖與日期);已設定設計權杖;字型自架
3建置wp-build本地網站可正常運作;核心外掛與子佈景主題已啟用;真實項目透過核心函式正確渲染;詢問訊息在轉寄前先存檔;結構測試通過
4內容wp-content每個公開頁面都有擁有者核准的文案與真實照片;法律條款頁面存在;無未經核准的 AI 產生文字
5SEO 與多語言wp-seo標題、描述、Canonical URL、結構化資料與 hreflang 測試通過;舊 URL 重新導向對應表;每個額外語言皆通過試行測試
6品質wp-quality完整測試套件通過;0 個無障礙違規;在測試環境上滿足效能預算
7上線wp-ship測試環境與正式環境同步;已套用安全強化;上線稽核器 PASS;切換完成;監控 7 天
8維運wp-operate自動備份含異地副本;完成一次還原演練;更新與警示流程已撰寫完成
  • 將階段工作交接給建置代理工具(Antigravity、Codex、其他 Claude):wp-task-file。
  • 合併前審查:代理工具 wp-rules-reviewer。正式上線前:代理工具 launch-auditor。

3. 硬性規則(每個階段、每個代理工具皆適用)

  1. 外掛優先。 邏輯、資料、政策文字、表單、結構化資料與 SEO 都應放在核心強制啟用外掛中。主題負責版面,外觀負責視覺風格。重新設計時不得遺失任何功能。
  2. 範本中不得寫死卡片、價格或 slug。應查詢內容類型並透過核心的渲染函式輸出,使 CMS 編輯能即時更新所有地方。
  3. 先儲存詢問資訊。 表單提交至 admin-post.php 並附上 nonce。網站先將詢問資訊存入自己的資料庫,再進行轉寄。頁面中不得包含 API 金鑰或第三方端點。
  4. 無虛假證明。 絕不顯示無法證明的評分、評論數量或推薦。匯入或「舊有」的評論數量在未經證實前視為虛假。
  5. 真實照片 用於任何有命名的地點、房間、產品或人物。AI 圖片僅能作為一般風景,命名為 ai-*,需記錄,且不得呈現為「這是您的房間」。
  6. 事實來自擁有着。 價格、政策、包含項目與安全事實不得自行編造。AI 產生的文案僅為草稿,須經擁有者核准。未知事項標記為 PENDING-<誰>。
  7. 未經分支、本地測試、差異比對及人工合併,不得將 AI 撰寫的 PHP 程式碼部署到正式環境。 遵循 WordPress 編碼標準。所有項目需加上前綴。
  8. 不使用頁面建置器。不呼叫 Google Fonts。 自架字型:德國法院曾判決賠償,因為從 Google 載入字型會外洩訪客 IP 位址。
  9. 測試環境與本機環境不得被索引,也不得向真實客戶發送電子郵件。
  10. 不得為了測試通過而減弱測試: 不得刪除、跳過或重新產生快照。重新命名測試需經擁有者同意。
  11. 部署權屬於擁有者。 從一次提交開始,透過 scripts/deploy-safe.sh:先進行模擬演練,先備份,並由真人輸入 live 這個詞。
  12. 資料庫即內容。 僅能透過可審查的變更檔案與附有模擬演練的受保護腳本來修改。每次資料庫變更前都需備份。
  13. 機密永不進入 git、日誌、提示詞或頁面中。CREDENTIALS_INVENTORY.md 列出機密名稱及其存放位置,絕不存放實際值。
  14. 僅有一個結構化資料擁有者(通常是 SEO 外掛)。不得在沒有價格的情況下輸出 Offer。

4. 先詢問擁有者

  • 安裝外掛、佈景主題、工具或付費服務(頁面建置器:絕對不行)。
  • 任何價格、貨幣、政策、品牌名稱或標誌的變更。發佈新語言。
  • 任何涉及 DNS、Cloudflare、主機、測試環境或正式環境的操作。破壞性資料庫或檔案指令。
  • 將程式碼或客戶內容傳送給第三方 AI API。

5. 工作方式

  • 一次只進行一個階段,一次只進行一個小步驟。每個有意義的步驟後都進行提交(採用 Conventional Commits)。
  • 建立分支、本地測試、差異比對,然後由擁有者合併。除非擁有者要求該特定操作,否則代理工具不得推送、合併、部署或透過 ssh 連線至伺服器。
  • 每個決策都記錄在 DECISIONS.md 中(日期、決策者、原因)。每次工作階段結束時,在 SESSION_LOG.md 中新增一行記錄。
  • 「完成」意指已驗證:開啟頁面、執行測試、讀取伺服器回應。切勿未經親自檢查就直接採信其他代理工具標記為「已解決」的項目。

6. 來自其他套件的實用技能(若已安裝)

  • agent-skills-kit:提供 wordpress-modern、wp-plugin-development、wp-wpcli-and-ops、wp-performance 以取得 WordPress API 細節。
  • agent-loop-kit:提供 supervised-build、agent-supervisor 用於含有閘門與審查者的無人建置迴圈。

Individual skills in this repo

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

umairmsm/wp-build

Stage 3 of a wp-site-kit WordPress build - local DDEV site, the core must-use plugin (modules), the presentation-only child theme with skins, the content model (custom post types, meta, WP_Query, render functions), and the enquiry pipeline that saves leads before forwarding. Use when building or changing features, templates, content types, forms or plugin modules on a wp-site-kit site.

umairmsm/wp-content

Stage 4 of a wp-site-kit WordPress build - real copy and photos. Content truth (facts only from the owner), AI drafts and owner approval, claims audits, banned words and fake proof, legal pages, the photo pipeline (dedupe, real-only, EXIF strip, WebP sizes, alt text, AI image register), and recorded content changes. Use for "write the copy", "add photos", "the owner sent new photos", "check for duplicates", "update prices or text on the live site", "legal pages".

umairmsm/wp-design

Stage 2 of a wp-site-kit WordPress build - design direction, a static HTML/CSS prototype with design tokens, owner sign-off with screenshots, self-hosted fonts, and porting the approved look into a swappable WordPress skin. Use for "design the site", "new look", "redesign", "change colours or fonts", "make a new skin", "port the prototype to WordPress".

umairmsm/wp-kickoff

Stage 1 of a wp-site-kit WordPress build. Use when starting a new WordPress website or taking over or rebuilding an existing one - discovery brief, stack decision, creating the project with bin/wp-site-new, locked decisions, private repo and credentials inventory. Triggers - "new WordPress site", "start a client website", "rebuild this site", "take over this WordPress site".

umairmsm/wp-operate

Stage 8 of a wp-site-kit WordPress build and everything after launch - backups with an off-machine copy, restore drills, the disaster-recovery runbook, credentials inventory, update policy, alerts, and working from more than one machine (bridge file, workstation doctor, encrypted state bundle, rescuing unpushed work). Use for "backup", "restore", "move to a new machine/server", "update plugins", "what if the server dies", "work from the cloud box", "set up a second machine".

umairmsm/wp-seo

Stage 5 of a wp-site-kit WordPress build - titles and descriptions, canonical URLs, one schema owner and JSON-LD, sitemaps, robots.txt and llms.txt, AI crawler access, redirects (301 vs 302), legacy URL maps, Search Console, and adding languages one pilot at a time with Polylang (hreflang, .po/.mo strings, native review). Use for "SEO", "schema", "redirect", "old URLs", "translate the site", "add French/Spanish", "hreflang", "canonical".

umairmsm/wp-ship

Stage 7 of a wp-site-kit WordPress build - staging behind Cloudflare Access, server hardening, safe deploys from a commit (scripts/deploy-safe.sh), database content changes, the launch audit, DNS cutover without breaking a running business, and the first week after launch. Use for "deploy", "set up staging", "go live", "launch", "cutover", "move DNS", "harden the server".

相關技能