tdd
80以紅燈-綠燈-重構引導 TDD
當團隊測試內部實作或一開始就撰寫過多測試時,測試優先的工作方式常會變得脆弱。此技能會引導 Codex、Claude 和 Claude Code 進行以行為為核心的紅燈-綠燈-重構循環。
規劃安全重構
當目標、範圍和測試策略不清楚時,大型重構風險很高。此技能會將重構想法轉化為可審查的 GitHub issue,包含小型提交和明確決策。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "request-refactor-plan" from https://skillstore.io/skills/mattpocock-request-refactor-plan.md and its manifest at https://skillstore.io/api/skills/mattpocock-request-refactor-plan/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「request-refactor-plan」。 開發者想要替換多個模組中重複的驗證邏輯。
預期結果:
此技能會產出問題陳述、選定做法、小型提交順序、決策文件、測試決策和範圍外項目。
正在使用「request-refactor-plan」。 技術負責人需要一份 RFC,以將 API 回應格式化移至共享層。
預期結果:
此技能會詢問架構問題、比較替代方案、記錄選定合約,並草擬可用於 issue 的規劃文字。
正在使用「request-refactor-plan」。 維護者想將大型重構拆分成可審查的工作。
預期結果:
此技能會對應可保持行為不變的增量提交,並指出現有測試模式。
No static findings required adjudication, and review of SKILL.md found no prompt injection or malicious intent. The prompt-only workflow contains no executable code or hidden security-sensitive behavior.
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/mattpocock-request-refactor-plan/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/mattpocock-request-refactor-plan?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/mattpocock-request-refactor-plan?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/mattpocock-request-refactor-plan/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/mattpocock-request-refactor-plan.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>mattpocock. (2026). request-refactor-plan security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/mattpocock-request-refactor-plan/audits/5@techreport{mattpocock-mattpocock-request-refactor-plan-2026,
author = {mattpocock},
title = {request-refactor-plan security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/mattpocock-request-refactor-plan/audits/5},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "request-refactor-plan security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "mattpocock"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/mattpocock-request-refactor-plan/audits/5"
identifiers:
- type: other
value: "skillstore:mattpocock-request-refactor-plan:audit:5"
description: "Skillstore immutable audit report identifier"
在實作開始前定義問題、比較選項,並將後端變更拆分成小型提交。
將廣泛的清理請求轉化為有範圍的決策、測試註記和可審查的交付步驟。
建立清楚的 GitHub issue 文字,說明重構計畫,且不包含脆弱的檔案路徑或程式碼片段。
使用此技能協助我規劃重構。問題是 [describe problem]。在草擬計畫前先問我問題。
我想重構 [area]。請檢查儲存庫、核對我的假設、提出其他選項,並協助我選擇有範圍的做法。
為 [goal] 建立重構 RFC。請訪談我關於限制、介面、結構描述變更、API 合約、測試和範圍外工作。
為 [project area] 建立完整的重構計畫。探索 repo、挑戰假設、定義小型提交、記錄決策,並草擬 GitHub issue。
作者
mattpocock授權
MIT
Skillstore 修訂
r2
版本提示
作者未聲明版本。
引用
ebdfe608f5de2b66ff37ab4af12af8ac4f5e8006
維護新鮮度
2026/7/26
使用量
8 次下載 · 0 次瀏覽
檔案結構
📄 SKILL.md
以紅燈-綠燈-重構引導 TDD
當團隊測試內部實作或一開始就撰寫過多測試時,測試優先的工作方式常會變得脆弱。此技能會引導 Codex、Claude 和 Claude Code 進行以行為為核心的紅燈-綠燈-重構循環。
用聚焦問題壓力測試計畫
不清楚的計畫往往隱藏高風險假設與未解決的相依性。此技能會引導 Claude、Codex 或 Claude Code 一次處理一個聚焦問題。
用持續更新的文件檢驗計畫
設計計畫經常會偏離專案語言和已記錄的決策。此技能會挑戰假設、釐清術語,並在決策定案時更新 CONTEXT.md 或 ADR。
建立代理技能
團隊需要一致的技能檔案,讓代理能夠探索並正確使用。此技能會引導作者完成結構、描述、範例、指令碼與審查檢查。
原型化邏輯與 UI 決策
團隊常常在尚未理解取捨之前,就先承諾採用某種狀態模型或畫面。此技能會引導 Claude、Codex 或 Claude Code 建立一次性原型,以快速回答一個設計問題。
透過嚴格追問訪談壓力測試計畫
計畫與設計經常失敗,是因為薄弱假設太晚才被發現。此技能會啟動一個聚焦的嚴格追問工作階段,在執行開始前挑戰其中的缺口。
分析程式碼模式與架構
由 C0ntr0lledCha0s
大型程式碼庫隱藏著重複結構與不明確的架構選擇。此技能會找出模式、說明其意圖,並突顯實用的重構機會。
依 AST 結構搜尋程式碼
由 0xDarkMatter
文字搜尋會遺漏語意關係,並產生大量雜訊結果。此技能使用 ast-grep 模式定位程式碼結構,並為聚焦式重構做好準備。
建構可靠的測試自動化
由 89jobrien
薄弱的測試會拖慢發布並掩蓋回歸問題。此技能可引導測試策略、TDD、自動化、覆蓋率審查,以及 Playwright 網頁檢查。
更快找到程式碼脈絡
由 89jobrien
開發人員經常耗費時間追查程式碼為何存在,以及有哪些內容依賴它。這個技能會提示 Claude、Codex 或 Claude Code 在變更前收集相關圖譜知識、呼叫者、匯入項目和測試。
在整個程式碼庫中規劃可靠測試
由 0xDarkMatter
這項技能協助團隊選擇測試策略、mock、資料 fixture、覆蓋率 gate 和 CI 模式,而不混淆測試範圍。它為 Claude、Codex 和 Claude Code 提供針對單元、整合、端對端、TDD 與管線測試的結構化指引。
使用規格組織 AI 開發
由 89jobrien
複雜的 AI 輔助專案可能在實作開始前就失去清晰度。此技能會引導團隊完成分階段的規格制定、治理、規劃、分析與任務執行。