Skill 寫法圖鑑

架構與重構

105 份

android-clean-architectureaffaan-m

Android 與 KMP 專案的模組分層、UseCase、Repository 和資料層寫法

angular-migrationwshobson

用混合模式和逐步改寫,把 AngularJS 應用程式遷移到 Angular

api-connector-builderaffaan-m

完全比照 repo 既有模式,新增一個 API connector 或 provider

api-designaffaan-m

REST API 的資源命名、狀態碼、分頁、錯誤格式、版本和速率限制設計

api-design-principleswshobson

REST 和 GraphQL 的 API 設計原則,做出直覺、可擴充、好維護的 API

architectureAnthropic

建立或評估架構決策紀錄 ADR,比較選項與取捨

architecture-patternswshobson

實作 Clean、Hexagonal Architecture 和 DDD 等後端架構模式

async-python-patternswshobson

掌握 Python asyncio 和 async/await 模式,打造高效能的非阻塞應用程式

backend-patternsaffaan-m

Node.js 後端的 repository、service、快取、錯誤處理和驗證模式

bash-defensive-patternswshobson

寫可上線等級 Bash script 的防禦式技巧:strict mode、錯誤攔截、安全處理暫存檔

bazel-build-optimizationwshobson

為大規模 monorepo 最佳化 Bazel 建置,含 remote caching 和自訂 rule

brownfield-retrospectiveaffaan-m

對既有專案切片補跑 ECC 流程,找出四軸落差再逐項修

choose-zoom-approachAnthropic

依使用情境挑選最小而正確的 Zoom API 或 SDK 架構

cloud-solution-architectMicrosoft

照 Azure Architecture Center 做雲端架構設計與 WAF 審查

codebase-designMatt Pocock

設計深模組用的共用詞彙,講 seam 和介面

complexity-optimizerKappaemme-git

掃描 codebase 的演算法複雜度熱點,提出不破壞行為的優化

content-hash-cache-patternaffaan-m

用 SHA-256 內容雜湊快取檔案處理結果,內容變了自動失效

contract-firstaffaan-m

用單一機器可檢查的契約協調前後端與服務間的介面變更

cost-aware-llm-pipelineaffaan-m

用模型路由、預算追蹤、重試和 prompt caching 壓低 LLM 成本

cpp-coding-standardsaffaan-m

依 C++ Core Guidelines 整理現代 C++ 的安全、慣用寫法

cqrs-implementationwshobson

實作 CQRS,分離讀寫模型以擴充架構和最佳化查詢

create-architectureDonchitos

在寫程式前產出主架構藍圖,並拿引擎驗證各項決策

create-control-manifestDonchitos

從已接受的 ADR 整理出各系統必做和禁做的程式規則清單

dart-flutter-patternsaffaan-m

Dart 與 Flutter 的 null safety、狀態管理、導覽、網路和測試慣用寫法

database-migrationwshobson

跨 ORM 做資料庫 migration,含零停機、資料轉換和 rollback 做法

database-migrationsaffaan-m

安全可回復的 schema migration,涵蓋零停機改名、concurrent index 和分批 backfill

dependency-upgradewshobson

大版本相依套件升級:相容性分析、分階段升級、測試和 rollback 計畫

django-celeryaffaan-m

Django 搭配 Celery 的背景任務、重試、beat 排程和測試模式

django-patternsaffaan-m

Django 專案結構、model、DRF、快取、signal 和效能的 production 模式

dotnet-backend-patternswshobson

C#/.NET 後端模式:DI、async、EF Core、Dapper、設定、快取和 xUnit 測試

dotnet-patternsaffaan-m

C# 與 .NET 的慣用寫法,包含 DI、async、Options、Result 模式

error-handlingaffaan-m

TS、Python、Go 的錯誤處理模式,含重試與 circuit breaker

error-handling-patternswshobson

錯誤處理模式:exception 與 Result、錯誤分類、retry 和除錯友善的訊息

event-store-designwshobson

設計 event sourcing 用的 event store:技術比較、需求和最佳實務

fastapi-patternsaffaan-m

FastAPI 專案結構、Pydantic v2、依賴注入、auth 與測試的實務寫法

fastapi-router-pyMicrosoft

用既有模式建立含 CRUD、驗證與 response model 的 FastAPI router

fastapi-templateswshobson

FastAPI 專案範本:目錄結構、DI、async 模式、相依套件和測試

fork-disciplinejezweb

稽核多客戶專案的 core 與 client 界線並給重構計畫

go-concurrency-patternswshobson

Go 並行模式:goroutine、channel、同步原語、context 和優雅關閉

golang-patternsaffaan-m

慣用的 Go 模式:錯誤處理、並行、interface 設計與效能

healthcare-cdss-patternsaffaan-m

臨床決策支援系統的純函式設計:藥物交互作用、劑量驗證、NEWS2 評分

healthcare-emr-patternsaffaan-m

EMR/EHR 開發模式:就診流程、用藥安全、鎖定紀錄與醫療無障礙 UI

hexagonal-architectureaffaan-m

用 Ports & Adapters 設計與重構,讓領域邏輯跟框架 I/O 分開

improve-codebase-architectureMatt Pocock

掃出可加深的模組,用 HTML 報告呈現再拷問

inherit-legacy-styleaffaan-m

掃描舊專案的隱含慣例,產出 .ai-style-rules.md 防止 AI 風格漂移

java-coding-standardsaffaan-m

Spring Boot 與 Quarkus 服務的 Java 寫法規範,涵蓋命名、不可變、例外跟測試

jpa-patternsaffaan-m

Spring Boot 的 JPA/Hibernate 寫法,涵蓋 entity、N+1、交易、分頁跟連線池

kotlin-coroutines-flowsaffaan-m

Android 與 KMP 的 coroutine、Flow、StateFlow 寫法,含取消跟測試

kotlin-exposed-patternsaffaan-m

用 Exposed ORM 寫 Kotlin 資料庫存取,含 DSL、DAO、連線池與 migration

kotlin-ktor-patternsaffaan-m

用 Ktor 建 Kotlin HTTP server,含路由、驗證、Koin 與測試

kotlin-patternsaffaan-m

寫出慣用的 Kotlin:null safety、sealed class、coroutines 與 DSL

laravel-patternsaffaan-m

Laravel 架構模式:controller、service 層、Eloquent、queue 與快取

latency-critical-systemsaffaan-m

優化並驗證低延遲系統,追蹤 p95、資料新鮮度與 queue 深度

memory-safety-patternswshobson

用 RAII、ownership 與智慧指標寫出記憶體安全的系統程式

microservices-patternswshobson

設計 microservices 的服務邊界、事件通訊與韌性模式

modern-javascript-patternswshobson

用 ES6+ 與函式程式設計模式寫出乾淨的現代 JavaScript

monorepo-managementwshobson

用 Turborepo、Nx 與 pnpm workspaces 管理 monorepo

mybatis-patternsaffaan-m

MyBatis 與 MyBatis-Spring 的 mapper、動態 SQL 安全、交易與分頁寫法

narrow-react-prop-typesHumanLayer

把 React 元件的 prop 型別收窄成跟上線程式路徑一致

nestjs-patternsaffaan-m

NestJS 後端的 module、DTO 驗證、guard 與正式環境預設做法

nodejs-backend-patternswshobson

用 Express/Fastify 建構可上線的 Node.js 後端服務

nx-workspace-patternswshobson

設定並優化 Nx monorepo 的專案邊界與建置快取

orch-refine-codeaffaan-m

統籌不改行為的重構:測試先綠、小步整理結構、審查後 commit

perl-patternsaffaan-m

現代 Perl 5.36+ 的慣用寫法與最佳實踐,從 signatures 到 Moo

ponytailDietrichGebert

偷懶資深工程師模式,用最小改動完整解決問題,不多做沒人要的東西

ponytail-debtDietrichGebert

把所有 shortcut 註解列成技術債帳本,標出沒寫升級條件的

postgres-patternsaffaan-m

PostgreSQL 索引、型別、RLS 與慢查詢排查的速查表

postgresql-table-designwshobson

設計 PostgreSQL schema 的型別、索引、約束與分區

prisma-patternsaffaan-m

Prisma ORM 的 schema、查詢、transaction 與常見陷阱整理

projection-patternswshobson

從 event stream 建立 CQRS read model 與 projection

pydantic-models-pyMicrosoft

用 Base/Create/Update/Response/InDB 多模型模式寫 Pydantic v2 模型

python-background-jobswshobson

用 task queue 與 worker 處理 Python 背景工作

python-configurationwshobson

用環境變數與 pydantic-settings 管理 Python 設定與機密

python-design-patternswshobson

用 KISS、單一職責與組合優於繼承設計 Python 程式

python-error-handlingwshobson

設計 Python 的輸入驗證、例外階層與部分失敗處理

python-patternsaffaan-m

Pythonic 慣用寫法、type hint、並行與工具設定的最佳實踐

python-project-structurewshobson

規劃 Python 專案目錄、模組邊界和 __all__ 公開介面

python-resiliencewshobson

用 tenacity 做重試、backoff、jitter 和 timeout,扛住暫時性失敗

python-resource-managementwshobson

用 context manager 管理連線、檔案和 streaming 資源,確保一定釋放

python-type-safetywshobson

用 type hint、generic、protocol 和 mypy/pyright 做 Python 型別安全

quarkus-patternsaffaan-m

Quarkus 搭配 Camel、Panache 的事件驅動後端架構模式

rails-patternsaffaan-m

Rails 7.1+ 與 8.x 的 service object、Hotwire、背景 job 慣用模式

react-modernizationwshobson

把 React 升級到 18、class 遷移到 hooks,並採用 concurrent 功能

react-native-architecturewshobson

用 Expo 建構 React Native 的 navigation、原生模組和離線架構

react-state-managementwshobson

在 Redux Toolkit、Zustand、Jotai 和 React Query 之間選擇並用好

recsys-pipeline-architectaffaan-m

用 Source 到 SideEffect 六階段設計推薦、排序和 feed pipeline

recsys-pipeline-architectwshobson

用 Source 到 SideEffect 六階段設計推薦、排序和 feed pipeline

rust-async-patternswshobson

用 Tokio 寫 Rust 非同步程式,涵蓋 task、channel 和錯誤處理

rust-patternsaffaan-m

道地 Rust 寫法:所有權、錯誤處理、trait、並行和模組結構

saga-orchestrationwshobson

用 saga 模式處理跨服務分散式交易和補償動作

setup-ts-deep-modulesMatt Pocock

用 dependency-cruiser 強制每個 package 是深模組

springboot-patternsaffaan-m

Spring Boot 後端架構模式:REST、分層、快取、非同步與日誌

swift-actor-persistenceaffaan-m

用 Swift actor 做執行緒安全的快取加檔案持久化

swift-concurrency-6-2affaan-m

Swift 6.2 預設單執行緒,用 @concurrent 明確卸載背景工作

system-designAnthropic

做系統設計:需求、高階設計、深入細節、規模與取捨

tech-api-integrationasgard-ai-platform

帶你串接 REST API,涵蓋認證、錯誤處理和速率限制

tech-debtDonchitos

掃描、分類並排定技術債優先順序,維護一份債務登記表

tech-debtAnthropic

找出技術債、分類,並用公式排優先順序

tinystruct-patternsaffaan-m

用 tinystruct Java 框架開發,CLI 與 HTTP 雙模式的 Action、MCP 與資料庫

typescript-advanced-typeswshobson

精通 TypeScript 泛型、條件型別、映射型別等進階型別系統

typescript-patternsaffaan-m

寫出嚴格、型別安全的 TypeScript:型別設計、narrowing、錯誤與非同步處理

ub-modeUncle Bob

寫程式時照精簡原則走:先讓它能動,再做對,最後遵守實務

using-git-worktreesJesse Vincent

需要隔離工作區時,優先用原生工具、備援才用 git worktree

workflow-orchestration-patternswshobson

用 Temporal 設計 durable workflow、saga 與決定性限制

zustand-store-tsMicrosoft

用 TypeScript 與 subscribeWithSelector 建立 Zustand store