Files
git/README.md
T

40 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# jsc-git — Commit 與 Push Request
jsc 技能組的 git domain:把檔案變更依「類型 + 需求/功能」分組認可,並建立符合範本的 Push Request。
## 安裝
```bash
claude plugin marketplace add https://gitea.jsc.idv.tw/plugins/git.git
claude plugin install jsc-git@git
```
其他 CLI(codex / copilot / antigravity / kiro)與批次安裝、更新、解除安裝:使用 `/jsc-cli:deploy`。
## Skills 目錄
呼叫方式:Claude / Antigravity `/jsc-git:{name}`;Codex `${name}`;Copilot / Kiro 描述需求自動觸發。
<!-- JSC-SKILLS:START -->
### `commit`
追蹤所有檔案變更,依 Commit 格式 `{類型}({需求 or 功能}): {訊息}` 將同類型與同需求的變更認可在一起。訊息格式三選一:完整版(What/Why/How/Who)、簡易版(依 git diff 總結一句)、自訂。
### `pr`
先認可所有變更,再從 develop / main 建立目標分支(分支名只允許 ASCII:類型取 commit 優先度最高者,標題翻譯成英文短語後 slug 化)、push、以範本描述建立 Gitea PR。
<!-- JSC-SKILLS:END -->
## 範本
| 檔案 | 用途 |
| --- | --- |
| `templates/pr-description.md` | PR 描述:摘要 / 變更內容 / 設計重點 / 測試結果 / 前置 PR |
## 相關 domain
- `jsc-gitea`:建立 PR(`tools/gitea.sh pr-create`)
- `jsc-sdlc`:PR 描述中的計畫頁與分析頁連結