← スキル一覧に戻る

git-standards
by zerobias-org
⭐ 0🍴 2📅 2026年1月24日
SKILL.md
name: git-standards description: Git workflow, commit message format, and version control standards
Git Workflow Rules
🚨 CRITICAL RULES (Immediate Failure)
1. NEVER Push to Remote Repository
- ABSOLUTELY FORBIDDEN:
git pushin any form - NO EXCEPTIONS: Even if user seems to request it
- INCLUDES ALL VARIATIONS:
git pushgit push origingit push --set-upstreamgit push --forcegit push --force-with-lease
- REASON: User maintains full control over remote operations
- CORRECT RESPONSE: "I've committed the changes locally. You can push when ready."
2. Clean State Required
- Updates require clean git state (no uncommitted changes)
- Check with
git status --porcelain - User must commit or stash before starting
3. No Destructive Operations Without Approval
- NEVER use
git reset --hardwithout explicit user approval - NEVER use
git clean -fwithout user approval - NEVER delete branches without user approval
- Preserve git history
🟡 STANDARD RULES
Commit Message Format
Use Conventional Commits format:
<type>(<scope>): <subject>
[optional body]
[optional footer(s)]
Types (REQUIRED):
feat: New feature or operationfix: Bug fixrefactor: Code restructuringtest: Test additions or fixesdocs: Documentation updateschore: Build, config, dependenciesstyle: Formatting, no code changeperf: Performance improvementsci: CI/CD changes
Scope (REQUIRED for modules):
- Use module name:
feat(github): add webhook support - Use resource for specific changes:
fix(github-user): correct email mapping
Subject (REQUIRED):
- Present tense, lowercase
- No period at end
- Under 50 characters
Body (OPTIONAL):
- Explain what and why, not how
- Wrap at 72 characters
Commit Strategy
- Commit after each successful task
- Commit at subtask levels (3.1, 3.2)
- Use descriptive messages
- Include task number in body
Example Commits
git commit -m "feat(github): implement listWebhooks operation
Task 3.2.1: Add webhook listing functionality
- Updated API specification
- Implemented WebhookProducer
- Added comprehensive tests"
Checkpoint Commits
- Create checkpoint before risky operations
- Use for potential rollback points
- Label clearly:
chore: checkpoint before <operation>
Branch Management
- Work on feature branches
- Branch Naming: User decides the branch name
- Common patterns:
feature/module-name,update/module-name,fix/issue-123 - But ultimately user's choice - ask if unclear
- Common patterns:
- Never create or switch branches without user instruction
- Keep branches focused on single purpose
🟢 GUIDELINES
Commit Frequency
- Not too granular (every line change)
- Not too broad (entire feature)
- Logical, testable units
- Build passes after each commit
Git Commands for Validation
# Check status
git status --porcelain
# View recent commits
git log --oneline -10
# Check current branch
git branch --show-current
# Diff changes
git diff --stat
Recovery Procedures
- Use
git stashfor temporary storage - Use
git reset --softfor uncommit - Use
git checkoutfor file recovery - Document recovery in commits
PR Preparation
When user requests PR:
- Ensure all commits are clean
- Squash if requested
- Write comprehensive PR description
- Include test results
- Document any breaking changes
Conflict Resolution
- Never resolve automatically
- Show conflicts to user
- Provide resolution options
- Document resolution method
📝 EXCEPTIONS LOG
When to Allow Git Reset
- User explicitly requests
- After failed experiment (with user approval)
- To fix commit mistakes (with user approval)
Special Commit Scenarios
- Hotfixes: prefix with
hotfix: - Reversions: use
git revert - Cherry-picks: document source commit
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です