Git PR
Developmentgit-prGit PR is an Agent Skill for development published in the 4thfever/cultivation-world-simulator repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
创建包含正确远程处理的 Pull Request
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/4thfever/cultivation-world-simulator/blob/HEAD/.cursor/skills/git-pr/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/git-pr, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
飞行前检查
git remote -v
# 如果 origin URL 过期,请修复它:
# git remote set-url origin https://github.com/AI-Cultivation/cultivation-world-simulator.git
命令
git checkout main && git pull origin main
git checkout -b <github-username>/<branch-name>
git add <files>
git commit -m "<type>: <description>"
git push -u origin <github-username>/<branch-name>
gh pr create --head <github-username>/<branch-name> --base main --title "<type>: <description>" --body "<body>"
注意事项
- 始终从
main分支拉取新分支,而不是从当前分支 - 遵循
.github/PULL_REQUEST_TEMPLATE.md中的 PR 模板 <github-username>:例如xzhseh<type>:feat|fix|refactor|test|docs