Skip to content
cccskills
FreePublished on GitHub

git-split-commit-pr

Organize mixed Git changes into focused commits and pull requests that reviewers can follow. It preserves unrelated work, checks proposed changes for private information, runs relevant validation, and pushes or opens pull requests when authorized.

OriginalShow the original description

Split mixed Git changes into public-safe, reviewable commits and PRs when the user requests publication or cleanup. Preserve unrelated work; merging is separate.

See how to install

Good for

  • Splitting mixed changes into focused commits
  • Checking changes for private information before publication
  • Preparing pull requests with validation results
  • Isolating changes while preserving unrelated work

Files included (1)

  • SKILL.md1.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

拆分提交与 PR

先检查 status、分支、remote、upstream、diff 和未跟踪文件。将路径分为功能代码、公开文档、验证、私有状态、无关修改。保留用户现有内容;需要隔离时从正确基线使用干净 worktree,不靠 reset 清场。

涉及素材队列时,先按共同基线、本地与远端区分未提交新增和远端缺失;已有笔记或助手读取不等于用户读完。公开副本不是 lifecycle authority,归档必须逐条核验用户声明。在 CS-Notes 的同步任务中使用 sync-notes 与仓库三方对账工具,不临时重写差集归档脚本。

按评审者理解的功能切分,不按修改时间分组。同一文件混杂内容时做 hunk 级补丁;不把整份脏文件覆盖到远端最新版本。小规模重构只服务当前提交,避免顺便重写无关部分。

提交前逐项检查候选文件和 staged diff:凭证、私有 URL、设备路径、账号、内部项目细节、运行日志、图片元数据和引用目标。扫描命中需要人工判断;无命中不是公开安全的证明。只暂存明确路径,保留不确定项。

运行与改动相关的测试和 git diff --check,核对实际 staged 内容后提交。用户已授权的 push/PR 可以直接推进;默认分支前缀 codex/。PR 描述围绕问题、最终行为和验证结果,诚实标注未运行项与重要限制。

提交后验证远端 head 与本地一致;可用时将 PR 附到当前任务。合并需要用户授权并满足仓库规则,不因 PR 创建成功自动合并。不 force push,不为整理提交覆盖、删除或藏匿无关修改。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

ai-hotspots

FreeSummary

Gather recent AI products, papers, tools, and viewpoints into a Chinese and English HTML daily report. Select up to ten supported items, check original sources where possible, and summarize shared trends with practical next actions.

  • Reviewing recent AI developments each morning
  • Tracking research and tools for AI agents
  • Choosing what to read or try next
huangruiteng/CS-Notes4KUpdated Oct 21, 2026

Retrieve an arxiv paper's full text from its HTML version using an ID or URL. Extract readable text with section structure, optionally save it to a file, and prepare it for reading, notes, or technical analysis.

  • Reading a paper from an arxiv ID or URL
  • Extracting full text for research notes
  • Saving long papers for section-by-section reading
huangruiteng/CS-Notes4KUpdated Oct 21, 2026

ask-echo

FreeSummary

Search the web or find images through the Ask-Echo API from 火山引擎. Retrieve result details, request an AI-generated summary, and narrow searches by time range or selected websites.

  • Finding web pages about a specific topic
  • Getting an AI-generated summary of search results
  • Searching for images
huangruiteng/CS-Notes4KUpdated Oct 21, 2026

bluebubbles

FreeSummary

Build or update the BlueBubbles channel plugin for Clawdbot. The skill explains code locations, existing helper functions, message delivery, connection checks, and webhook handling, which receives incoming messages and attachments through HTTP notifications.

  • Building or updating the BlueBubbles channel plugin
  • Implementing message delivery and connection checks
  • Handling incoming messages and attachments through webhooks
huangruiteng/CS-Notes4KUpdated Oct 21, 2026

cli-creator

FreeSummary

Turn API documentation, SDKs, or existing scripts into reusable command-line tools for Codex. Build focused read and write commands, stable JSON output, authentication checks, and a companion skill explaining how future sessions should use the tool.

  • Turning an API into reusable commands
  • Making an internal script usable across projects
  • Adding JSON output and authentication checks
huangruiteng/CS-Notes4KUpdated Oct 21, 2026

Improve existing code through up to two optimization rounds, measuring execution time and memory use against a baseline. Verify that results remain correct, save the optimized code, and document changes, measured gains, and trade-offs in a report.

  • Improving the performance of existing code
  • Comparing execution time and memory use with a baseline
  • Checking that optimized code produces correct results
huangruiteng/CS-Notes4KUpdated Oct 21, 2026

See all skills by huangruiteng

Report a problem with this skill