Spatie Version Control

spatie/guidelines-skills/resources/boost/skills/spatie-version-control

作者 spatiec31006972d0b8c8db71e7b75c1b1d505b479023dMIT收錄於 2026年10月9日更新於 2026年10月9日

Apply Spatie's version control conventions when creating commits, branches, pull requests, or managing Git repositories; use for naming repos, writing commit messages, choosing branch strategies, and merging code.

AI 產生的概覽

套用 Spatie 的 Git 慣例,規範提交、分支、拉取請求、儲存庫命名與合併策略。

功能
此技能在 Git 操作中提供遵循 Spatie 版本控制慣例的指引,涵蓋儲存庫命名、分支命名、提交訊息、分支與合併策略,以及對改寫歷史或破壞性指令的注意事項。它會引導代理閱讀隨附的參考檔案,並在分支、提交、合併或清理作業前先套用專案階段規則。
適用情境
適用於建立提交、分支或拉取請求、命名新儲存庫,或決定分支與合併策略的情境。適合希望一致遵循 Spatie Git 慣例的團隊或專案。
執行需求
不需要指令碼或特殊工具,依賴代理閱讀隨附的參考檔案 references/spatie-version-control-guidelines.md。不需要憑證或網路存取。

Spatie Version Control Guidelines

Overview

Apply Spatie's Git and version control conventions for consistent repository management.

When to Activate

  • Activate this skill when creating commits, branches, or pull requests.
  • Activate this skill when naming new repositories.
  • Activate this skill when deciding on branching or merging strategies.

Scope

  • In scope: Git operations, repository naming, branch naming, commit messages, merge strategies.
  • Out of scope: Code style, deployment pipelines, CI/CD configuration.

Workflow

  1. Identify the Git operation or repository convention involved.
  2. Read references/spatie-version-control-guidelines.md and focus on the relevant sections.
  3. Apply the project-stage rules before branch, commit, merge, or cleanup guidance.

Core Rules (Summary)

  • Name site repositories after their lowercase naked domain and other repositories with kebab-case.
  • Keep main stable and deployable after launch, and remove stale branches.
  • Use develop during initial development; use feature branches once a project is live.
  • Use only lowercase letters and hyphens in branch names.
  • Write descriptive, present-tense, granular commits.
  • Rebase regularly and generally squash feature branches when merging.
  • Treat history-rewriting and destructive Git commands with the cautions in the reference.

References

  • references/spatie-version-control-guidelines.md

來源與署名

來源:spatie/guidelines-skills位於resources/boost/skills/spatie-version-control提交c310069

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架