pattern-detector
偵測程式碼模式與反模式
程式碼庫可能隱藏會提高維護風險的設計選擇。此技能可識別常見模式、反模式,並提供實用的重構建議。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "pattern-detector" from https://skillstore.io/skills/curiouslearner-pattern-detector.md and its manifest at https://skillstore.io/api/skills/curiouslearner-pattern-detector/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「pattern-detector」。 具有一個共享執行個體且承擔許多不相關職責的服務模組。
預期結果:
- 偵測到使用 Singleton,且存在隱藏依賴。
- 偵測到 God Object 風險,因為單一服務同時負責驗證、儲存與通知。
- 建議拆分職責並使用依賴注入。
正在使用「pattern-detector」。 具有深層巢狀折扣與運送條件的訂單處理工作流程。
預期結果:
- 從巢狀分支與混雜關注點偵測到 Spaghetti Code 風險。
- 建議將定價與運送邏輯抽取到職責明確的函式中。
- 建議只有在定價規則會於執行階段變動時,才考慮 Strategy。
正在使用「pattern-detector」。 直接資料庫呼叫分散在各功能模組中的資料存取層。
預期結果:
- 建議使用 Repository pattern 來集中持久化邏輯。
- 指出可透過依賴注入提升可測試性。
- 如果應用程式只有一個簡單資料來源,則標記過度工程化風險。
安全審計
安全All 32 static findings are false positives caused by Markdown code fences, JavaScript examples, and example database identifiers in SKILL.md. No evidence of prompt injection, data exfiltration, system reconnaissance, network access, or executable command behavior was found.
風險因素
⚙️ 外部命令 (29)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/curiouslearner-pattern-detector/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/curiouslearner-pattern-detector?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/curiouslearner-pattern-detector?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/curiouslearner-pattern-detector/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/curiouslearner-pattern-detector.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
CuriousLearner. (2026). pattern-detector security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/curiouslearner-pattern-detector/audits/8BibTeX 引用
@techreport{curiouslearner-curiouslearner-pattern-detector-2026,
author = {CuriousLearner},
title = {pattern-detector security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/curiouslearner-pattern-detector/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "pattern-detector security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "CuriousLearner"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/curiouslearner-pattern-detector/audits/8"
identifiers:
- type: other
value: "skillstore:curiouslearner-pattern-detector:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
審查舊版模組
在建立重構計畫前,找出可維護性風險與模式誤用。
指導初階開發者
說明目前有哪些模式,以及為什麼更簡單的替代方案可能更好。
準備架構回饋
彙整模式使用情況、反模式嚴重程度,以及供審查使用的建議後續步驟。
試試這些提示
Use pattern-detector on this file. List any design patterns, anti-patterns, and simple recommendations.
Use pattern-detector to evaluate whether the patterns in this module fit the business problem. Suggest simpler alternatives where needed.
Use pattern-detector to identify high-impact anti-patterns and propose a staged refactor plan with trade-offs.
Use pattern-detector across this repository. Group findings by pattern type, severity, affected area, and recommended owner action.
最佳實務
- 提供具代表性的檔案或資料夾,讓模式發現有足夠脈絡。
- 將報告用於重構規劃時,請要求提供嚴重程度與取捨。
- 變更架構前,請依產品限制審查相關建議。
避免
- 不要把每個有名稱的模式都視為必要改進。
- 不要根據單一小片段要求對整個程式碼庫做出判斷。
- 不要在沒有測試或審查者共識的情況下套用重構建議。
常見問題
此技能會變更我的程式碼嗎?
它能識別哪些模式?
它能找出反模式嗎?
Claude、Codex 與 Claude Code 可以使用它嗎?
它可以取代架構審查嗎?
哪種輸入效果最好?
開發者詳細資訊
授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
d11af420e07cd866fe39cfa937efef3223896c06
維護新鮮度
2026/7/18
使用量
7 次下載 · 218 次瀏覽
檔案結構
📄 SKILL.md