跳到正文
cccskills
免费在 GitHub 公开

git-commit

Summarize the current Git working tree and create a straightforward non-interactive commit. Use when Codex is asked to quickly commit the current work, commit everything currently changed, prepare a concise commit message from the diff, or avoid extra confirmation and commit splitting unless there is a real safety issue.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.5 KB
  • agents/openai.yaml220 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Git Commit

Commit the current work with minimal ceremony. Default to summarizing the present working tree, staging it, and creating one clean commit.

Workflow

  1. Inspect the repository state. Run git status --short, git diff --stat, and git log -5 --oneline. Read local contribution rules such as AGENTS.md, CONTRIBUTING.md, or commit-message docs when they affect the message format or required safety checks.

  2. Default to the current working tree. If the user asks to commit the current work and does not name a subset, treat all current staged, unstaged, and untracked changes as the intended commit. Prefer committing the full current diff over asking the user to split it. Only narrow the scope when the user explicitly asks for a partial commit.

  3. Stop only for real blockers. Stop for an empty commit unless the user explicitly asks for one. Stop if Git is in the middle of a merge, rebase, cherry-pick, or revert. Stop if there are unresolved conflicts. Stop if the staging set would obviously include secrets, local env files, or machine-specific noise that should not be committed.

  4. Keep verification lightweight by default. Do not proactively run extra checks just to create the commit unless the repository clearly requires them before every commit. Let existing Git hooks run normally. If a hook or required command fails, report the failure and stop.

  5. Stage directly. Use git add -A by default when committing the full current working tree. Use explicit paths only when the user requested a partial commit. Avoid interactive staging flows unless there is no reliable non-interactive alternative.

  6. Write a concise message from the diff. Summarize the outcome of the current working tree in plain, specific language. Keep the subject short, imperative, and concrete. Add a body only when it adds important context that is not obvious from the subject.

  7. Create the commit non-interactively. Use git commit -m "subject" for subject-only commits. Use additional -m flags for a body when needed. Avoid --amend or other history rewrites unless the user explicitly asks.

  8. Report the result. Show the new commit hash and subject. Summarize what was committed. State whether hooks or other checks ran, failed, or were skipped. State whether any changes remain in the working tree.

Decision Rules

  • If the user says "commit current changes" or equivalent, assume they want one commit for the full current diff.
  • If the diff includes related source changes, tests, generated locale files, or formatting caused by the same task, keep them together.
  • If unsure whether the user wants the whole diff, prefer the whole diff unless there is a concrete safety risk.
  • Do not ask for confirmation just because the change touches multiple files or both code and tests.

Command Pattern

git status --short
git diff --stat
git log -5 --oneline

git add -A
git commit -m "Update thread preview collection timeline"

Output

Finish with:

  • The commit hash and subject
  • A concise summary of the committed change
  • Whether hooks or checks ran, failed, or were skipped
  • Whether any files remain modified, staged, or untracked

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

imagegen

免费

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

中文简介正在准备中。当前显示原文说明。

theowenyoung/home1152026年9月27日 更新

jj

免费

Save the currently active browser page to the link collection at saved.owenyoung.com. Use when explicitly invoked as $jj, or when the user asks to bookmark or collect the current page there. Read the page without navigating, generate a concise Chinese title, SEO slug, and distinctive Chinese Markdown description, attach the complete article or main-page text as Chinese-only Markdown, match collections, create one authenticated link record, and return its clickable URL.

中文简介正在准备中。当前显示原文说明。

theowenyoung/home1152026年9月27日 更新

oo

免费

总结当前打开的网页、用户提供的链接,或某个产品、工具、库、文章、教程与研究页面,生成适合个人网页收藏的原始标题清理版和大纲式中文描述。用户输入 `$oo`、要求“收藏这个网页”“总结这个工具/链接”“生成网页收藏标题和描述”,或希望留下半年后仍能看懂的网页批注时使用。

中文简介正在准备中。当前显示原文说明。

theowenyoung/home1152026年9月27日 更新

Use for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs/products and ChatGPT Work. Also use for model choice/migration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat/Work/Codex comparisons. Do not use for generic app/software tasks that merely mention Codex.

中文简介正在准备中。当前显示原文说明。

theowenyoung/home1152026年9月27日 更新

Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.

中文简介正在准备中。当前显示原文说明。

theowenyoung/home1152026年9月27日 更新

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

中文简介正在准备中。当前显示原文说明。

theowenyoung/home1152026年9月27日 更新

查看 theowenyoung 的全部技能

报告此技能的问题