用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dqz00116/skill-lib --skill git-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when the current Agent LLM cannot process images directly and visual analysis is needed — bridges images through KimiCode CLI print mode to a multimodal Kimi model for text description
Use when building HUDs, menus, inventory screens, settings panels, or any widget-based interface in Unreal Engine 5. Also use when connecting C++ logic to UMG Blueprint visuals, handling gamepad or keyboard focus navigation, managing UI state, creating widget animations, or troubleshooting UMG performance issues like frame drops, hitches, or widget memory leaks.
Use when working in a DevFlow project with .devflow/ directory and gate-based step-by-step workflows
正在显示 SKILL.md
基于 SOC 职业分类
| name | git-workflow |
| description | Use when committing code, pushing changes, or managing Git operations that require safety checks |
| version | 1 |
Automate Git operations with safety checks and user confirmation. This skill ensures changes are reviewed and explicitly approved before committing or pushing.
Checks Workspace Status
Smart Confirmation Prompt
Safe Commit & Push
Conflict Detection
When NOT to use:
python scripts/git_commit.py
The script will:
git statuspython scripts/git_commit.py --interactive
Step-by-step confirmation for each file.
📋 **Git Status Summary:**
Modified:
- SOUL.md (41 insertions)
- README.md (5 deletions)
Untracked:
- new-feature.md
- temp.log (should be ignored?)
✅ **Confirm:**
Reply:
- "yes" → commit all modified
- "commit with untracked" → commit all including untracked
- "only SOUL.md" → commit specific file
- "ignore temp.log" → add to .gitignore
- "skip" → do nothing
git push -f)git status before any operation.gitignore$ python scripts/git_commit.py
📊 Git Status:
M SOUL.md
?? new-file.md
📋 Changes Summary:
Modified: SOUL.md
Untracked: new-file.md
✅ Confirm: Reply "yes" to commit modified, "commit with untracked" for all, or specify files
> yes
📝 Commit message: Update SOUL.md
✅ Committed: a1b2c3d Update SOUL.md
🚀 Pushed to origin/main
$ python scripts/git_commit.py
📊 Git Status:
M README.md
?? temp.log
?? important.md
📋 Changes Summary:
Modified: README.md
Untracked: temp.log, important.md
✅ Confirm: What to commit?
> commit with untracked
⚠️ temp.log looks like a temporary file. Add to .gitignore instead?
> yes
📝 Commit message: Update README and add important docs
✅ Committed: b2c3d4e Update README and add important docs
🚀 Pushed to origin/main
$ python scripts/git_commit.py
📊 Git Status:
M SOUL.md
📋 Changes Summary:
Modified: SOUL.md
✅ Confirm: Reply "yes" to commit
> skip
⏹️ Skipped. No changes committed.
⚠️ **Merge Conflict Detected!**
Conflicted files:
- README.md
- config.yaml
Cannot commit until conflicts are resolved.
Suggested steps:
1. Edit files to resolve conflicts
2. Run: git add <resolved-files>
3. Run this script again
⚠️ **Local branch is behind remote**
Run: git pull origin main first?
> yes
Pulling latest changes...
[...]
✅ Now you can commit your changes.
❌ **Push Failed: Authentication Error**
Possible causes:
- SSH key not configured
- Token expired
- Wrong remote URL
Suggested fixes:
1. Check: git remote -v
2. Test: ssh -T git@github.com
3. Or use HTTPS with token
# Check if files are actually modified
git status
# Check if in git repository
git rev-parse --git-dir
# Check SSH key
ssh -T git@github.com
# Or use HTTPS
git remote set-url origin https://github.com/username/repo.git
# Pull first
git pull origin main
# Resolve any conflicts
# Then commit again