Skip to content

Instantly share code, notes, and snippets.

View kenming's full-sized avatar

YU-WEI SHAO kenming

View GitHub Profile
@kenming
kenming / AGENTS.md
Created January 28, 2026 03:36
VS Code Copilot & Claude Code: Relationship Between AGENTS.md, copilot-instructions, and CLAUDE.md

AGENTS.md(Agent 協作規範)

本文件定義了 AI Agent 在本專案中協作時的行為邊界,確保開發流程的可預測性。

1. 核心開發流程:先計畫、後實作

  • 思考優先:涉及跨檔案或架構變更時,必須先產出「修改計畫」供開發者審核。
  • 最小變動:以「可演示、可驗證」為目標。避免不必要的大規模重構。
  • 透明假設:若環境資訊不明,必須列出你的假設點,而非自行通靈。

2. 產出交付格式

@kenming
kenming / AGENTS.md
Created December 16, 2025 07:17
AGENTS.md template for DDD-based C# (.NET) development with SQLServer.

AGENTS.md

Project Overview (專案概述)

這是一個採用 Domain-Driven Design (DDD) 分層架構的電子商務後端系統。 主要目標是構建高內聚、低耦合的企業級應用,提供商品檢索與結帳服務。

Tech Stack (技術堆疊)

  • Framework: .NET 8 SDK (ASP.NET Core Web API)
  • Language: C# 12
  • Database: SQL Server 17
@kenming
kenming / gtp_sample.cfg
Created May 24, 2025 08:09
KataGo GTP 配置文件範例 (2025/05) - 使用 DeepSeek 生成繁體中文註解說明
# KataGo C++ GTP 引擎的配置檔
# 使用指令運行程式:`./katago.exe gtp`
# 在此範例配置中,若參數以註解形式給出預設值,
# 則該值為預設值(除非另有說明)。若需修改,可取消註解(刪除井號)並更改數值。
# ===========================================================================
# 在線上伺服器或正式比賽中使用
# ===========================================================================
@kenming
kenming / serviceDispatch.js
Created July 29, 2021 13:32
API Gateway Example by Node.js
/*
* Parses the request and dispatches multiple concurrent requests to each
* internal endpoint. Results are aggregated and returned.
*/
function serviceDispatch(req, res) {
var parsedUrl = url.parse(req.url);
Service.findOne({ url: parsedUrl.pathname }, function(err, service) {
if(err) {
logger.error(err);