valorvie/ai-dev-skills

custom-skills-git-commit

Git 提交工作流模組 - 提供同步、分析、提交、推送與合併功能

Ver código fuente
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

Git Commit Custom Skill

此 Skill 提供 Git 提交工作流的模組化功能,供 git-commit 指令調用。


模組清單

模組檔案說明
共用工具_utils.md主分支判斷(main/master)、衝突處理、提交規範
同步sync.mdStash、Rebase/Merge、Stash Pop
分析analyze.md定義基準點、檢查變更
提交commit.mdNormal/Final 模式提交
推送push.md推送至遠端、處理分叉
合併merge.md多分支整合測試
PRpr.md建立 Pull Request 流程
PR 分析pr-analyze.mdPR 專用的變更分析與摘要生成

使用方式

此 Skill 由 git-commit 指令調用,不應直接使用

調用時,根據路由邏輯讀取對應的模組檔案:

前置準備(必須)

  1. 讀取 `_utils.md`:取得主分支名稱判斷與共用函式

路由邏輯

IF pr 子指令:
    → 讀取並執行 `pr.md`(內部調用 `pr-analyze.md`)
    → 結束

IF merge 子指令:
    → 讀取並執行 `merge.md`
    → 結束

IF 當前分支為主分支 (main/master):
    IF --direct:
        → 跳過同步,直接執行分析與提交
    ELSE:
        → 警告:「⚠️ 目前在主分支上,建議切換至開發分支。若要直接提交,請使用 --direct 參數。」
        → 中止流程

ELSE (開發分支):
    1. 讀取並執行 `sync.md`   — 環境同步
    2. 讀取並執行 `analyze.md` — 變更分析
    3. 讀取並執行 `commit.md`  — 執行提交
    4. IF --push:
        → 讀取並執行 `push.md` — 推送至遠端

pr 模式路由

當使用 git-commit pr 時:

1. 讀取 `_utils.md`      — 取得主分支名稱
2. 讀取並執行 `pr.md`    — PR 主流程
   ├─ 前置檢查(分支、gh CLI)
   ├─ 範圍判定
   ├─ 讀取並執行 `pr-analyze.md` — 變更分析與摘要生成
   ├─ ⚠️ 檢查現有 PR(必須在 squash 前執行)
   │   ├─ 若 MERGED/CLOSED → 繼續建立新 PR
   │   └─ 若 OPEN → 詢問使用者:更新現有 PR / 建立新分支+新 PR / 中止
   ├─ 提交整理(除非 --no-squash)
   ├─ 推送
   └─ 建立 PR(預設草稿,--direct 為正式)
⚠️ 重要:PR 檢查必須在 squash 之前執行。 若分支已有 OPEN 的 PR,squash 會覆蓋該 PR 的所有提交。 未經使用者確認就執行 squash 可能導致不可逆的問題。

--direct 模式路由

當使用 --direct 在主分支提交時:

1. 讀取並執行 `analyze.md` — 變更分析
2. 讀取並執行 `commit.md`  — 執行提交
3. IF --push:
    → 讀取並執行 `push.md` — 推送至遠端

角色定義

執行此 Skill 時,你是一個資深的 DevOps 工程師與代碼審查專家。根據使用者指定的參數,執行對應的提交流程。

del mismo repositorio

Más Skills

Todos los Skills
valorvie
Comunidad

custom-agent-router

為目標、範圍與授權已明確的非簡單 Agent 工作選擇互動模式、能力層級、風險、派工形狀、審查與有限備援。適用於需要在主 Agent 直接處理、單一工作代理與有限平行之間選擇,或需要依複雜度與風險決定能力層級及審查強度的工作;Codex 專案缺少已驗證的 Agent 設定時,也用本 Skill 引導使用者選擇建立、預覽或略過。簡單問答、唯讀確認與可直接驗證的小修改不要使用。

instalaciones
1
GitHub Stars
0
Actualizado
17 sept
valorvie
Comunidad

custom-skills-dev

Guide development of the ai-dev framework and its first-party skill collection. Use when modifying ai-dev CLI code, npx skill integration, copy/distribution logic, commands, agents, plugins, first-party skills, tests, or release documentation. Triggers: "develop custom-skills", "modify ai-dev", "add skill", "update distribution", "release version", "開發 custom-skills", "修改 ai-dev", "新增 skill", "發布版本".

instalaciones
1
GitHub Stars
0
Actualizado
17 sept
valorvie
Comunidad

custom-skills-doc-updater

Maintain documentation for the ai-dev framework and ai-dev-skills collection. Use when code or skill changes affect documented behavior, commands, agents, plugins, version releases, repository structure, README content, or changelogs. Triggers: "update docs", "sync documentation", "update README", "update changelog", "documentation audit", "doc sync", "更新文檔", "同步文件", "文檔檢查", "/doc-updater".

instalaciones
1
GitHub Stars
0
Actualizado
17 sept
valorvie
Comunidad

custom-skills-doc-writer

依讀者任務與可驗證主線撰寫、重構及整理技術文件,並依專案慣例處理文件類型、路徑、檔名、frontmatter、索引與生命週期。技術文件另保護中英混合內容中的事實、命令、路徑與識別字,英文說明文字採 ASD-STE100 大原則;使用者同時提供合法標準 PDF 與本機檢查器時可自動輔助檢查。只要使用者要新增或實質改寫計畫、調查、分析、研究、進度、指南、維運手冊、教學、參考資料、原理解釋、決策、事件、會議、變更日誌或規範,就應使用本技能;整理 docs 目錄與主題索引時也適用。單純翻譯、一小段文字潤飾、只改程式碼或只查一個事實時不要使用。

instalaciones
1
GitHub Stars
0
Actualizado
17 sept