用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill git-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | git-workflow |
| description | Consistent git practices, recovery patterns, and safe operations. Use when this capability is needed. |
| metadata | {"author":"fabioc-aloha"} |
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
| Scenario | Command | Notes |
|---|---|---|
| Undo last commit, keep changes | git reset --soft HEAD~1 | Safe, preserves work |
| Restore single file | git checkout HEAD -- path/to/file | Discards file changes |
| Restore entire folder | git checkout HEAD -- .github/ | Discards folder changes |
| Before risky operation | git add -A; git commit -m "checkpoint" | Always checkpoint first |
| Discard all uncommitted | git reset --hard HEAD | Destructive, no recovery |
| Reset to remote state | git reset --hard origin/main | Destructive, syncs to remote |
| Save work temporarily | git stash → git stash pop | For quick context switch |
| Isolated experimental work | git worktree add ../feature branch | Agent-friendly isolation |
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-$(date +%Y-%m-%d-%H%M)"
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 branchesSource: fabioc-aloha/Alex_Skill_Mall — distributed by TomeVault.