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 从公开仓库中收录这些内容。

举报或申请下架