
manage-git
by iurygdeoliveira
Repositorio destinado a fornecer um kit inicial para desenvolvimento de SaaS usando laravel e filament
SKILL.md
name: manage-git description: Enforces strict Git workflow rules including manual commit triggers, Pint formatting, and Conventional Commits.
Git Workflow Skill
Use this skill to manage version control operations. This skill enforces a strict "User-Triggered Only" policy for commits and pushes.
Critical Rules
- NEVER AUTO-COMMIT: You must NEVER automatically commit or push changes without an explicit request or confirmation from the user.
- Lint Before Commit: Always run
./vendor/bin/sail bin pint --dirtybefore staging files. - Conventional Commits: All commit messages must follow the Conventional Commits specification.
When to use this skill
- When the user asks to "commit", "push", "save changes to git", or "sync branches".
- When finishing a significant task, you may Propose a commit command, but do not execute it with
SafeToAutoRun: true.
Workflow
1. Preparation
Always lint changed files first to ensure code style consistency.
./vendor/bin/sail bin pint --dirty
2. Staging
Stage the files relevant to the task. Avoid git add . if there are untracked files not related to the current task.
git add [files]
3. Committing
Construct a commit message following the pattern: <type>(<scope>): <description>
- Types:
feat,fix,docs,style,refactor,perf,test,chore,build,ci. - Scope: The module or component affected (e.g.,
auth,filament,api). - Description: Short, imperative description (max 50 chars recommended).
- Body (Optional): Detailed explanation, bullet points allowed.
Example:
feat(auth): add 2fa support for tenants
4. Pushing
Only push if explicitly requested or if it's a sync operation.
git push origin [branch]
Protocol for Multi-Branch Sync (Develop -> Main)
If the user asks to "sync branches" or "deploy":
- Checkout
develop. - Pull latest
develop. - Checkout
main. - Pull latest
main. - Merge
developintomain(git merge develop). - Push both branches.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
1ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon

