golang-enterprise-patterns
建構企業級 Go 架構
大型 Go 系統會在團隊新增功能時逐漸失去清晰邊界。此技能為 Claude、Codex 和 Claude Code 提供用於 clean architecture、DDD 與生產服務佈局的結構化模式。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "golang-enterprise-patterns" from https://skillstore.io/skills/89jobrien-golang-enterprise-patterns.md and its manifest at https://skillstore.io/api/skills/89jobrien-golang-enterprise-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「golang-enterprise-patterns」。 團隊想將單體 Go API 拆分成更清晰的層。
預期結果:
助理會回傳包含 domain、application、infrastructure 與 interface 層的套件地圖,並說明哪些依賴應指向內部。
正在使用「golang-enterprise-patterns」。 某個服務需要 database storage 與 welcome email delivery。
預期結果:
助理會識別 primary 與 secondary ports,然後將 database 與 notification adapters 指派到 infrastructure 套件。
正在使用「golang-enterprise-patterns」。 某個 order workflow 需要更嚴謹的業務規則。
預期結果:
助理會描述 aggregate root、value objects、domain events 與保護訂單狀態變更的驗證規則。
安全審計
安全I found no executable malicious behavior in the reviewed skill. The static command, reconnaissance, sensitive-file, and environment findings are false positives caused by Markdown fences and Go sample code. The skill is documentation-only, but examples should be labeled clearly to reduce scanner noise.
風險因素
⚙️ 外部命令 (26)
🔑 環境變數 (1)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/89jobrien-golang-enterprise-patterns/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/89jobrien-golang-enterprise-patterns?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/89jobrien-golang-enterprise-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/89jobrien-golang-enterprise-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/89jobrien-golang-enterprise-patterns.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 引用
Joseph OBrien. (2026). golang-enterprise-patterns security audit report (audit version 7) [Author version 1.0.1]. Skillstore. https://skillstore.io/skills/89jobrien-golang-enterprise-patterns/audits/7BibTeX 引用
@techreport{joseph-obrien-89jobrien-golang-enterprise-patterns-2026,
author = {Joseph OBrien},
title = {golang-enterprise-patterns security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/89jobrien-golang-enterprise-patterns/audits/7},
note = {Author version 1.0.1}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-enterprise-patterns security audit report (audit version 7)"
version: "1.0.1"
type: report
authors:
- name: "Joseph OBrien"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/89jobrien-golang-enterprise-patterns/audits/7"
identifiers:
- type: other
value: "skillstore:89jobrien-golang-enterprise-patterns:audit:7"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
規劃新的 Go 服務
在開始實作前定義套件邊界、依賴方向與服務層。
標準化團隊架構
為 repositories、services、ports、adapters 與應用程式組裝建立共享模式。
重構成長中的程式碼庫
將業務規則移至 domain 與 application 層,同時保持 infrastructure 隔離。
試試這些提示
Use the golang-enterprise-patterns skill to propose a clean architecture layout for a new Go API. Include packages, dependency direction, and boundaries.
Use this skill to design ports and adapters for a Go service with database storage and notifications. Explain each interface and adapter responsibility.
Use this skill to model an order workflow with aggregates, value objects, domain events, and invariants. Keep infrastructure outside the domain.
Use this skill to review a Go service for clean architecture violations. Identify misplaced dependencies, unclear boundaries, and concrete refactoring steps.
最佳實務
- 先從 domain rules 與 use cases 開始,再選擇 infrastructure 細節。
- 保持 interfaces 小而明確,並在擁有該行為的層附近定義它們。
- 為生產服務使用明確的 constructors 與 configuration boundaries。
避免
- 不要預設讓 database models 成為 domain model。
- 不要將業務規則放在 HTTP handlers 或 persistence adapters 中。
- 不要新增沒有清楚職責的架構層。
常見問題
這個技能可以協助建構什麼?
它會產生完整的應用程式嗎?
我可以將它與 Claude Code 或 Codex 搭配使用嗎?
它是否限定於某個 Go framework?
它是否包含資料庫指引?
使用者在生產使用前應審查什麼?
開發者詳細資訊
授權
MIT
作者版本
v1.0.1
Skillstore 修訂
r1
引用
c4037264bbd363c572662d6154a3ab28f5ca4f53
維護新鮮度
2026/7/20
使用量
15 次下載 · 180 次瀏覽
檔案結構
📄 SKILL.md