File contents 上下文
当前 git 状态: !git status
当前 git diff(已暂存和未暂存的变更): !git diff HEAD
当前分支: !git branch --show-current
Attribution 信息
每次 commit 的 body 和 PR 描述中必须附加以下 attribution 信息(使用上方上下文中的"当前模型"和"模型公司域名"):
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: <当前模型>
你的任务
根据上述变更:
如果当前在 main 分支,则创建一个新分支
使用中文创建一个包含合适提交信息的 commit,commit body 中必须包含 ## Attribution 中指定的 attribution 信息
将分支推送到 origin
使用 gh pr create 创建 Pull Request,PR 描述中必须包含 ## Attribution 中指定的 attribution 信息
你可以在单次响应中调用多个工具。你必须在单条消息中完成上述所有操作。不要使用任何其他工具或执行任何其他操作。除了工具调用之外,不要发送任何其他文本或消息。
Commit Message 格式要求
语言要求:Commit subject、body 和 PR 描述均必须使用中文编写。
Commit message 必须 以以下格式结尾:
<commit subject 和 body>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: <模型名称> <noreply@<对应主域名>>
模型与域名映射
根据当前会话实际使用的模型,选择对应的 noreply 邮箱域名:
模型系列
域名示例
GLM (智谱)
noreply@bigmodel.cn
Claude (Anthropic)
noreply@anthropic.com
GPT (OpenAI)
noreply@openai.com
Gemini (Google)
noreply@google.com
DeepSeek
noreply@deepseek.com
Qwen (通义)
noreply@alibabacloud.com
如何获取模型名称
jq -r '.env.ANTHROPIC_MODEL' ~/.claude/settings.json
1 --- 2 name: commit-push-pr 3 description: 提交、推送并创建 PR 4 --- 5 6 ## 上下文 7 8 - 当前 git 状态: !`git status` 9 - 当前 git diff(已暂存和未暂存的变更): !`git diff HEAD` 10 - 当前分支: !`git branch --show-current` 11 12 ## Attribution 信息 13 14 每次 commit 的 body 和 PR 描述中必须附加以下 attribution 信息(使用上方上下文中的"当前模型"和"模型公司域名"): 15 16 ``` 17 🤖 Generated with [Claude Code](https://claude.com/claude-code) 18 19 Co-Authored-By: <当前模型> 20 ``` 21 22 ## 你的任务 23 24 根据上述变更: 25 26 1. 如果当前在 main 分支,则创建一个新分支 27 2. 使用中文创建一个包含合适提交信息的 commit,**commit body 中必须包含 ## Attribution 中指定的 attribution 信息** 28 3. 将分支推送到 origin 29 4. 使用 `gh pr create` 创建 Pull Request,**PR 描述中必须包含 ## Attribution 中指定的 attribution 信息** 30 5. 你可以在单次响应中调用多个工具。你必须在单条消息中完成上述所有操作。不要使用任何其他工具或执行任何其他操作。除了工具调用之外,不要发送任何其他文本或消息。 31 32 ## Commit Message 格式要求 33 34 **语言要求:Commit subject、body 和 PR 描述均必须使用中文编写。** 35 36 Commit message **必须**以以下格式结尾: 37 38 ``` 39 <commit subject 和 body> 40 41 🤖 Generated with [Claude Code](https://claude.com/claude-code) 42 43 Co-Authored-By: <模型名称> <noreply@<对应主域名>> 44 ``` 45 46 ### 模型与域名映射 47 48 根据当前会话实际使用的模型,选择对应的 `noreply` 邮箱域名: 49 50 | 模型系列 | 域名示例 | 51 |----------|---------| 52 | GLM (智谱) | `noreply@bigmodel.cn` | 53 | Claude (Anthropic) | `noreply@anthropic.com` | 54 | GPT (OpenAI) | `noreply@openai.com` | 55 | Gemini (Google) | `noreply@google.com` | 56 | DeepSeek | `noreply@deepseek.com` | 57 | Qwen (通义) | `noreply@alibabacloud.com` | 58 59 60 ### 如何获取模型名称 61 ```bash 62 jq -r '.env.ANTHROPIC_MODEL' ~/.claude/settings.json 63 ```
shenjingnan/flashy/tree/main/.agents/skills/commit-push-pr commit f08d695733
Frequently asked questions How do I install the Commit Push Pr skill? Run npx skillmds@latest add shenjingnan/commit-push-pr in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Commit Push Pr skill do? 提交、推送并创建 PR It is listed under Coding & Dev Tools on SkillMD.
Is Commit Push Pr safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Commit Push Pr? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Commit Push Pr free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Commit Push Pr? shenjingnan (@shenjingnan) published this skill. Their other Agent Skills are listed on their SkillMD profile.