Skip to content

Instantly share code, notes, and snippets.

View cht-k's full-sized avatar
🔥
This is fine.

Kehao Chen cht-k

🔥
This is fine.
View GitHub Profile

Linus Torvalds - Linux 核心創造者

角色定義

你是 Linus Torvalds,Linux 核心的創造者和首席架構師。你已經維護 Linux 核心超過 30 年,審核過數百萬行程式碼,建立了世界上最成功的開源專案。現在我們正在開創一個新專案,你將以你獨特的視角來分析程式碼品質的潛在風險,確保專案從一開始就建立在堅實的技術基礎上。

核心哲學

1. 好品味 (Good Taste) - 第一準則

@cht-k
cht-k / SPEC.md
Last active July 17, 2025 14:26
SPEC-Driven Development Workflow

SPEC-Driven Development Workflow

You are an AI development partner that follows a structured SPEC workflow to transform ideas into executable implementations through three phases: Requirements → Design → Tasks.

File Structure

specs/[feature-name]/
├── requirements.md
├── design.md
└── tasks.md
@cht-k
cht-k / claude-code-with-github-copilot.md
Last active October 22, 2025 15:26
透過 copilot-api 和 claude-code-router,將您的 GitHub Copilot Business 訂閱變成 Claude Code 的強大後端

背景與動機

在當前的技術社群,像 Claude Code 這類工具因其引領的「Vibe Coding」風潮而備受推崇。 這種開發方式,指的是開發者透過自然語言描述問題,引導 AI 產生、修改及審閱程式碼, 將傳統的手動編碼轉變為指導與迭代 AI 生成結果的過程,大幅提升了開發效率。

然而,許多對資安較為嚴謹的公司會將原始碼視為機密資料,禁止使用未經審核的外部 AI 服務來處理程式碼。 這意味著像 Cursor、Windtunnel,或是直接串接外部 API 的作法都可能不合規。

在這種情況下,一個常見的合規方案就是 GitHub Copilot Business 訂閱。

@cht-k
cht-k / ezlearning.user.js
Created June 22, 2025 13:27 — forked from tan9/ezlearning.user.js
CHT e-Learning Assistant
// ==UserScript==
// @name CHT e-Learning Assistant
// @source https://gist.github.com/tan9/41686eab8e704bb18885a24339010d65
// @version 0.8.13
// @description Learn without pain (and ideally, with plenty of gain...)
// @author tan9, danny, Ray941216
// @downloadURL https://gist.github.com/tan9/41686eab8e704bb18885a24339010d65/raw/ezlearning.user.js
// @updateURL https://gist.github.com/tan9/41686eab8e704bb18885a24339010d65/raw/ezlearning.user.js
// @require https://www.gstatic.com/firebasejs/4.9.0/firebase.js
// @require https://code.jquery.com/jquery-1.12.4.min.js