ワンクリックで
git-workflow-skill
Consistent git practices, recovery patterns, and safe operations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Consistent git practices, recovery patterns, and safe operations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | Git Workflow Skill |
| description | Consistent git practices, recovery patterns, and safe operations. |
| applyTo | **/.git/**,**/commit*,**/branch*,**/merge* |
Consistent git practices, recovery patterns, and safe operations.
Git core is stable, but GitHub features (Actions, CLI, Copilot integration) evolve.
Refresh triggers:
git switch, git restore)Last validated: February 2026 (Git 2.45+, GitHub CLI 2.x)
Check current state: Git Release Notes, GitHub CLI
type(scope): brief description
- Detail 1
- Detail 2
Types: feat, fix, refactor, docs, chore, test, style
Examples:
feat(skills): add git-workflow skill
fix(sync): resolve race condition in background sync
refactor(skills): migrate domain-knowledge to skills architecture
docs(readme): update installation instructions
chore(deps): bump typescript to 5.3
# ALWAYS commit before risky operations
git add -A; git commit -m "checkpoint: before [risky thing]"
# For extra safety, tag it
git tag "safe-point-$(Get-Date -Format 'yyyy-MM-dd-HHmm')"
git reset --soft HEAD~1
git checkout HEAD -- path/to/file
git checkout HEAD -- .github/
git reset --hard HEAD # Discard all uncommitted changes
git reset --hard origin/main # Reset to remote state
git reset --hard <tag-name> # Reset to tagged state
git log --oneline -20 # Recent history
git log --oneline .github/ -10 # History for specific folder
main
└── feature/short-description
└── fix/issue-number
└── release/v3.7.0
Rules:
main is always deployablegit pull --rebase origin maingit add . + git rebase --continuegit rebase --abort to start overgit stash # Save work-in-progress
git stash pop # Restore and delete stash
git stash list # See all stashes
git stash drop # Delete top stash
VS Code background agents use git worktree to isolate changes. Understanding worktrees is useful when debugging agent sessions.
# Create a worktree for isolated work
git worktree add ../project-feature feature-branch
# List all worktrees
git worktree list
# Remove a worktree (prune stale links)
git worktree remove ../project-feature
git worktree prune
VS Code integration (1.109+):
git.worktreeIncludeFiles — copy gitignored files (e.g., .env) into agent worktreesgit push --force on shared branchesSee synapses.json for connections.
Focus blocks, distraction management, and flow state triggers for cognitively demanding work
Internal metacognitive skill for automatic capability discovery — self-triggers when uncertain about available skills
End-to-end academic paper drafting for CHI, HBR, journals, and conferences with venue-specific templates, drafting workflows, and revision strategies.
Patterns for thesis writing, dissertations, research papers, literature reviews, and scholarly work.
**Domain**: AI/ML Architecture
Domain knowledge for AI adoption measurement, psychometric instrument development, and appropriate reliance research