Community生產力與協作github.com

umairmsm/wp-kickoff

WordPress 網站開發的第一階段:從商業探索、專案建立到憑證盤點,為新網站或既有網站重建打下基礎。

wp-kickoff 是什麼?

這是一個 WordPress 開發工作流程的階段一技能,專為「wp-site-kit」方法論設計。當你收到「建立新 WordPress 網站」、「開始客戶網站」、「重建此網站」或「接手此 WordPress 網站」這類指令時,就該啟動這個技能。它的核心任務是產出兩樣東西:一份關於商業需求的真相文件(BRIEF.md),以及一個完全符合方法論檔案結構的空專案。技能會引導你逐步完成:判斷是否有現有網站需要盤點(包含所有 URL、表單、付款流程、部落格文章、Search Console 資料與營收來源)、進行商業探索與撰寫 BRIEF.md、決定技術棧、透過 kit 的 bin/wp-site-new 腳本建立專案、填寫 AGENTS.md 記錄鎖定決策與硬規則、設定私人遠端儲存庫,以及建立憑證庫(僅記錄名稱,絕不寫入數值)。最後會產出 SITE_STATUS.md 中的關卡檢查清單,確保所有前置條件都滿足後才能進入下一階段。此技能支援 Claude Code、Cursor、Codex 等支援 SKILL.md 規範的 AI 代理平台,適用於任何 WordPress 開發的啟動場景。

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

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

階段 1:啟動

目標:產出一份關於商業的真相文件,以及一個包含方法論預期所有檔案的空白專案。尚未進行任何設計或建置。

步驟

  1. 是否已有現有網站? 如果是,請將其視為正在運行的商業服務,而非閒置域名。首先進行盤點 (references/discovery-brief.md,"現有網站"):
    • 所有 URL(從其 Sitemap)、表單、付款流程、部落格文章與聯絡資訊;
    • 其 Search Console 數據(若網站擁有者願意分享);
    • 目前哪些功能在營利。重建時必須讓所有功能持續運作。 禮貌爬取:先閱讀使用條款 (robots.txt 並非授權許可),且請求之間至少間隔 2 秒。
  2. 商業探索。 詢問 references/discovery-brief.md 中的問題,並將答案寫入 docs/BRIEF.md。每個事實都要標註來源(網站擁有者、文件、爬取結果)。如果不知道某個事實,請寫 PENDING-<對象>。絕對不要猜測。
  3. 技術棧。 以 references/stack.md 的預設值為起點。僅在能提出具體理由時才變更某一層,並將理由記錄在 DECISIONS.md 中。
  4. 建立專案,使用 kit 的腳手架工具(此技能所在的資料夾向上兩層):
    bash <kit>/bin/wp-site-new --name "Acme Tours" --slug acme-tours --prefix acme \
         --domain example.com --dir ~/sites/acme-tours --git
    
    • slug:小寫字母與連字號。它會命名 DDEV 專案、資料夾與文字域。
    • prefix:2 到 12 個小寫字母或數字。每個函式、選項、文章類型、Meta key、Hook 與 Nonce 都會以 <prefix>_ 開頭。
  5. 填寫 AGENTS.md:
    • 網站是什麼;
    • 誰審核設計與客戶文案;
    • 鎖定的決策;
    • 此商業特有的硬規則,例如法規要求的聲明、需展示的執照,或網站擁有者從不希望出現的用字。
  6. 私人遠端倉庫,第一天就設定好。 網站擁有者建立私人倉庫並推送。本機網站建立後(階段 3),執行 scripts/backup.sh 並在其他機器保留一份備份。
  7. 憑證庫 (docs/reference/CREDENTIALS_INVENTORY.md):
    • 列出每個帳戶(註冊商、DNS、主機、SMTP、分析工具、Search Console、金流、CDN);
    • 記錄每個密碼的存放位置;
    • 僅記錄名稱,絕不寫入數值。
  8. 在 SITE_STATUS.md 中勾選啟動關卡,並附上證據:探索文件的核准日期、第一個 commit SHA、遠端倉庫名稱。

關卡檢查

  • docs/BRIEF.md 已獲得網站擁有者核准(日期)
  • 鎖定決策與商業硬規則已記錄在 AGENTS.md 中
  • 專案已建立並 commit;私人遠端倉庫已存在
  • 憑證庫已開始記錄(僅名稱)
  • 如果是更換現有網站:URL 與功能盤點已儲存在 docs/data/legacy/(或填寫「n/a」)

我們踩過的坑

  • 將「切換」當作 DNS 變更,結果舊網站當天仍在處理付費預約。
  • 舊網站的評論數("1,118 則評論")後來發現是捏造的。不要繼承它們。
  • 透過 Cloudflare 代理域名,而舊主機按 IP 限制速率。主機只看到 Cloudflare 的 IP,導致真實訪客收到 429 錯誤。在開啟代理前,請先檢查來源端的限制。
  • 信任另一位代理的筆記寫著「已解決」。修復檔案既未推送、未測試,也從未部署。請檢查真實狀況。
  • 有人把 API 金鑰貼到代理對話中。任何被代理看過的金鑰都必須輪換。

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-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".

umairmsm/wp-site

Start here for any WordPress website built with wp-site-kit, from an empty folder to a live site. Use when someone says "build a WordPress site", "new website for a client", "where are we on the site", "what is next before launch", or asks to continue a site project. Finds the current stage from SITE_STATUS.md, applies the hard rules, and hands over to the right stage skill.

相關技能