with one click
zcommit
执行 git commit 操作,智能分析变更并创建规范的提交信息。触发词:"zcommit"、"提交"、"commit"、"提交代码"。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
执行 git commit 操作,智能分析变更并创建规范的提交信息。触发词:"zcommit"、"提交"、"commit"、"提交代码"。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
垂直领域搜索和批量并行搜索。当通用搜索(tavily)无法满足时使用。 触发场景: 1. 金融数据——股票代码、汇率、行情(finance.us_stock / cn_stock / forex) 2. 学术检索——论文、DOI(academic.search / academic.biomedical) 3. 安全漏洞——CVE、文件哈希、IP/域名扫描(security.scan / security.cve) 4. 法律、专利、教育、健康等其他垂直领域 5. 批量并行搜索——同时查 2-5 个独立问题 6. 中国国内信息——A 股、国内资讯(需 zone=cn) 触发词:"股票"、"行情"、"汇率"、"CVE"、"漏洞"、"论文"、"DOI"、 "学术"、"专利"、"批量搜索"、"A股"、"anysearch"。 不触发场景:通用 web 搜索、新闻浏览、代码搜索、网页内容提取、网站爬取—— 这些由 tavily skill 处理。
Use when starting a new Remotion video project, adding scenes to an existing video, or converting a script into a video. Handles creative direction, script review, scene planning, pronunciation pre-check, segment-based voiceover generation, subtitle-based timeline calculation, and produces a complete design spec. Required before remotion-video-development. Also handles voiceover generation and timeline alignment via remotion-tools scripts.
Use when implementing Remotion video scenes from an approved design spec. Executes scene-by-scene with flex-first layout, subtitle-based timing, multi-segment audio playback, and per-scene verification. Requires completed design from remotion-video-design. Also use when regenerating voiceover segments, fixing pronunciation, or re-aligning timeline.
思维框架,帮助跳出局部修补的循环。两种触发模式。 模式一(用户主动):当用户说"rethink"、"重新思考"、 "跳出来看"、"全局视角"、"这个问题我们是不是想错了"时加载, 直接进入完整分析。 模式二(AI 提议):当你检测到以下信号时, 在回复末尾加一句提议 "我觉得我们可能在局部修补,要不要退一步重新看?": 你对同一个文件做了 3 次以上修改仍未解决, 或用户连续 2 次否定你的方案, 或你发现方案里 workaround 和 edge case 越来越多。 用户同意后再执行完整分析。用户说不用则继续正常工作。
本地语义代码搜索。当需要按意图定位代码、查找实现、理解代码结构时使用,优先于 grep/read 用于探索性搜索。触发词:"搜代码"、"code search"、"find implementation"、"理解代码实现"、"semble"、"语义搜索"、"search code"。
通用 Web 搜索、URL 内容提取、网站爬取。这是默认的搜索工具。 当用户需要:快速查事实、搜索新闻、fact-checking、提取网页内容、 爬取网站、深度研究(advanced 模式)时使用。 触发词:"搜索"、"查一下"、"搜一下"、"lookup"、"search"、"research"、 "fact-check"、"联网搜索"、"查资料"、"提取网页"、"爬取网站"、 "tavily"、"网页内容"。 不触发场景:股票/金融数据查询、学术论文检索、CVE/安全漏洞查询、 批量并行搜索——这些场景由 anysearch skill 处理。
| name | zcommit |
| description | 执行 git commit 操作,智能分析变更并创建规范的提交信息。触发词:"zcommit"、"提交"、"commit"、"提交代码"。 |
| user-invocable | true |
| argument-hint | [--style=simple|full] [--type=feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert] [path/to/file or directory] |
| model | sonnet |
智能分析代码变更,生成符合规范的提交信息并执行提交。
用户说以下任一短语时触发:
| 参数 | 说明 |
|---|---|
--style=simple|full | 提交信息样式:simple(默认)或 full(详细) |
--type=<type> | 强制指定提交类型:feat/fix/docs/style/refactor/perf/test/chore/ci/build/revert |
[path] | 指定要提交的文件或目录路径,不指定则提交所有变更 |
# 如果用户指定了路径,只分析该路径
# 如果没有指定,分析所有未暂存的变更
git status --short
# 指定路径时
git add <path>
# 未指定路径时,暂存所有变更
git add -A
统计变更文件数量:
根据变更内容自动检测提交类型:
| 变更类型 | 提交类型 |
|---|---|
| 新功能代码 | feat |
| Bug 修复 | fix |
| 文档变更 | docs |
| 配置文件 | chore |
| 测试代码 | test |
| 代码重构 | refactor |
| 性能优化 | perf |
| 样式格式化 | style |
| CI/CD 配置 | ci |
| 构建系统 | build |
| 回滚提交 | revert |
提交信息格式:
<type>: <简短描述>
# full 样式时添加
<body: 详细说明做了什么以及为什么>
<footer: 相关 Issue、Breaking Changes 等>
git commit -m "<生成的提交信息>"
重要:本项目禁止跳过任何检查
如果提交失败(Git Hook 检查未通过):
绝对禁止的操作:
--no-verify 选项SKIP_* 环境变量当变更文件 >= 10 个时,按以下规则分组:
每组生成独立的提交信息。
用户: /zcommit
分析变更...
发现 3 个文件变更,直接提交
✓ 暂存: app/api/auth.py, app/services/auth.py, tests/test_auth.py
✓ 提交: feat: 实现用户登录功能
✅ 完成!
用户: /zcommit
分析变更...
发现 15 个文件变更,按模块分组提交
[1/3] 提交后端配置
✓ 暂存: pyproject.toml, .env.example
✓ 提交: chore: 更新依赖版本
[2/3] 提交后端功能
✓ 暂存: app/api/auth.py, app/services/auth.py
✓ 提交: feat: 实现用户登录接口
[3/3] 提交前端页面
✓ 暂存: frontend/src/views/Login.vue
✓ 提交: feat: 添加登录页面
✅ 完成!共 3 个提交
用户: /zcommit
分析变更...
发现 2 个文件变更,直接提交
✓ 暂存: app/models/user.py
✗ 提交失败: 代码规范检查未通过
检查报告:
- models/user.py:45: 遗失 docstring
- models/user.py:52: 类型标注不完整
正在修复...
✓ 修复完成,重新提交
✓ 提交: fix: 添加用户模型类型标注
✅ 完成!