create-pr
ModelEngine-Group/fit-framework/.agents/skills/create-pr/SKILL.md
创建 Pull Request 到指定或自动推断的目标分支。当用户要求创建 PR、提交 PR、发起合并请求时触发。可选参数为目标分支。
Skill2.1k starsChanged 7 months ago
What's in it
- 创建 Pull Request
- 执行步骤
--- name: create-pr description: 创建 Pull Request 到指定或自动推断的目标分支。当用户要求创建 PR、提交 PR、发起合并请求时触发。可选参数为目标分支。 --- # 创建 Pull Request ## 执行步骤 1. 确定目标分支: 如果用户指定了目标分支则使用该分支,否则自动推断: ```bash git branch --show-current git log --oneline --decorate --first-parent -20 ``` 推断规则: - 当前在核心分支上(main 或版本号分支如 3.6.x) -> 目标分支即为当前分支 - 当前在特性分支上 -> 从 log 中找到最近的父核心分支 2. 读取 PR 模板: ```bash cat .github/PULL_REQUEST_TEMPLATE.md ``` 3. 查看最近的 merged PR 作为格式参考: ```bash gh pr list --limit 3 --state merged --json number,title,body ``` 4. 分析当前分支的完整变更。 5. 检查远程分支状态,如果未推送则先推送。 6. 创建 PR,结尾添加: 🤖 Generated with [Codex](https://openai.com/codex) **注意**: 严格遵循 PR 模板格式,确保 PR 标题遵循 Conventional Commits 格式。
More agent context in ModelEngine-Group/fit-framework
24 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- analyze-codescan.agents/skills/analyze-codescan/SKILL.md
- analyze-dependabot.agents/skills/analyze-dependabot/SKILL.md
- analyze-issue.agents/skills/analyze-issue/SKILL.md
- block-task.agents/skills/block-task/SKILL.md
- check-task.agents/skills/check-task/SKILL.md
- close-codescan.agents/skills/close-codescan/SKILL.md
- close-dependabot.agents/skills/close-dependabot/SKILL.md
- commit.agents/skills/commit/SKILL.md
- complete-task.agents/skills/complete-task/SKILL.md
- create-release-note.agents/skills/create-release-note/SKILL.md
- create-task.agents/skills/create-task/SKILL.md
- implement-task.agents/skills/implement-task/SKILL.md
- plan-task.agents/skills/plan-task/SKILL.md
- refine-task.agents/skills/refine-task/SKILL.md
- refine-title.agents/skills/refine-title/SKILL.md
- release.agents/skills/release/SKILL.md
- review-task.agents/skills/review-task/SKILL.md
- sync-issue.agents/skills/sync-issue/SKILL.md
- sync-pr.agents/skills/sync-pr/SKILL.md
- test-integration.agents/skills/test-integration/SKILL.md
- test.agents/skills/test/SKILL.md
- upgrade-dependency.agents/skills/upgrade-dependency/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

