スキル一覧に戻る
BlindsidedGames

git-workflow

by BlindsidedGames

Idle Dyson Swarm Project

7🍴 1📅 2026年1月16日
GitHubで見るManusで実行

SKILL.md


name: git-workflow description: Load git workflow rules for safe branching, committing, and PR creation. Use at session start or before git operations.

Git Workflow Skill

This skill loads the project's git workflow rules to ensure safe, consistent version control practices.

When to Use

  • At the start of a coding session
  • Before making any git commits
  • Before creating pull requests
  • When unsure about branching strategy

Core Rules

Branch Strategy

PrefixPurposeExample
feature/New functionalityfeature/export-metrics
refactor/Code restructuring (same behavior)refactor/presenter-to-services
fix/Bug fixesfix/save-corruption-on-prestige
phase/Multi-part architectural changesphase/3-service-layer

Before Any Changes

  1. Check current branch: git branch
  2. Never work on main: If on main, create a feature branch first
  3. Create branch from updated main:
    git checkout main
    git pull origin main
    git checkout -b feature/description
    

Commit Strategy

Commit after each logical phase of work:

  • After planning/setup (new files, interfaces)
  • After each component (single class completed)
  • After integration (components wired together)
  • After testing (tests passing)

Commit Message Format

type: Short description (imperative mood)

Optional longer description explaining:
- What was done
- Why it was done

Types:

  • feat: - New feature or functionality
  • refactor: - Code restructuring without behavior change
  • fix: - Bug fix
  • docs: - Documentation only
  • test: - Adding or updating tests
  • chore: - Build, config, or tooling changes

Before Creating PR

  • Code compiles without errors
  • Run code-simplify agent on changed files
  • Existing functionality unchanged (for refactors)
  • Save compatibility verified
  • Push branch to remote

PR Creation

git push -u origin branch-name
gh pr create --title "type: Description" --body "..."

PR URL format: https://github.com/BlindsidedGames/IdleDysonSwarm/pull/new/branch-name

Destructive Commands

NEVER run without explicit user confirmation:

  • git reset --hard - Destroys uncommitted changes permanently
  • git clean -fd - Deletes untracked files
  • git checkout . - Discards all changes

Quick Reference

git status              # Check current state
git branch              # Confirm current branch
git log --oneline -10   # Recent commit history
git diff                # See uncommitted changes
git stash               # Save work temporarily

Recovery

Undo Last Commit (Not Pushed)

git reset --soft HEAD~1   # Keep changes

Save Work in Progress

git stash push -m "WIP: description"
git stash pop             # Restore later

Full Documentation

See .claude/git-workflow.md for comprehensive rules including:

  • Save compatibility checklist
  • PR template
  • Recovery procedures
  • Detailed workflow examples

スコア

総合スコア

40/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

レビュー

💬

レビュー機能は近日公開予定です