Skip to content
Each Chen edited this page Jun 25, 2026 · 1 revision

Geek 快速操作

這頁給會用終端機的人。新手請看 Claude Web 圖文安裝教學。

Clone

git clone https://github.com/iach526526/nchu-dorm-rules.git
cd nchu-dorm-rules

驗證 skill 結構(可選)

python3 scripts/validate_skill.py

如果缺 Python 套件,先裝:

python3 -m pip install pyyaml

打包成可上傳 ZIP

在 repo 根目錄執行:

git archive --format zip --output nchu-dorm-rules.zip HEAD

如果你有尚未 commit 的修改也要一起打包,可以用:

cd ..
zip -r nchu-dorm-rules.zip nchu-dorm-rules \
  -x "nchu-dorm-rules/.git/*" \
  -x "nchu-dorm-rules/doc/.git/*" \
  -x "nchu-dorm-rules/.DS_Store" \
  -x "nchu-dorm-rules/**/.DS_Store"

注意:ZIP 裡必須包含完整 skill,也就是同一層可以看到 SKILL.md、references/、tests/。不要只壓其中一個子資料夾。

安裝到 Claude Web

  1. 開 https://claude.ai
  2. Settings -> Customize -> Skills
  3. + -> Create skill -> Upload a skill
  4. 上傳 nchu-dorm-rules.zip

詳細圖文版請看 Claude Web 圖文安裝教學。

使用 ChatGPT / GPTs

快速路線:

  1. 建立 Custom GPT 或 Project。
  2. 上傳 ZIP,或上傳 SKILL.md 與 references/。
  3. 在 instructions 裡要求它依照 SKILL.md 回答。

完整說明看 ChatGPT / GPT 使用教學。

其他本機 agent 使用

如果你的 agent 支援自訂 skill、knowledge folder、project instructions 或 rules,請把這個 repo 指給它,並確認工具可以讀到:

nchu-dorm-rules/SKILL.md
nchu-dorm-rules/references/

可使用的固定提示:

請使用 nchu-dorm-rules 的 SKILL.md 作為回答規則,並從 references/ 查中興宿舍法規。回答時必須附官方 PDF 來源。

不同 agent 的 skill 目錄規則不一定一樣;以你使用工具的文件為準。Codex 請看下一段的 .agents/skills 路線。

SKILL.md
references/

不同 agent 的 skill 目錄規則不一定一樣;以你使用工具的文件為準。

Codex 快速安裝

個人 skill:

mkdir -p "$HOME/.agents/skills"
git clone https://github.com/iach526526/nchu-dorm-rules.git "$HOME/.agents/skills/nchu-dorm-rules"

repo 專用 skill:

mkdir -p .agents/skills
git clone https://github.com/iach526526/nchu-dorm-rules.git .agents/skills/nchu-dorm-rules

使用:

$nchu-dorm-rules 中興大學女生宿舍可以帶非住宿生進入嗎?

完整說明看 Codex 使用教學。

opencode 快速使用

git clone https://github.com/iach526526/nchu-dorm-rules.git
cd nchu-dorm-rules
opencode

進入後貼:

請使用這個 repo 的 SKILL.md 作為回答規則,並從 references/ 查中興宿舍法規。問題:女宿可以帶非住宿生進入嗎?

完整說明看 opencode 使用教學。

測試 prompt

中興大學女生宿舍可以帶非住宿生進入嗎?如果不行,做了會怎樣?

成功回覆應包含:

  • 明確結論。
  • 女宿或相關宿舍規定。
  • 條文或違規項目。
  • 官方 PDF URL。

更新 wiki 文件

Wiki 是獨立 git repo:

git clone https://github.com/iach526526/nchu-dorm-rules.wiki.git doc

更新後:

cd doc
git status
git add Home.md claude_web.md agents.md chatgpt.md codex.md geek.md opencode.md src/
git commit -m "docs: improve skill installation guide"
git push

更新法規資料

大致流程:

  1. 從學務處宿舍法規頁下載新版 PDF。
  2. 放到 references/pdf-original/。
  3. 轉成 Markdown 或純文字。
  4. 更新 references/index.md 的版本日期與 PDF URL。
  5. 更新 references/faq_map.md,讓常見問題可以路由到新文件。
  6. 執行驗證。
python3 scripts/validate_skill.py

如果改到 SKILL.md 的回答格式,請同步更新 tests/expected_behavior.md。

Clone this wiki locally