gen-commit-msg
Generate an intelligent Conventional Commit message from staged changes. Use when asked to draft or create a commit from the staged diff.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate an intelligent Conventional Commit message from staged changes. Use when asked to draft or create a commit from the staged diff.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | gen-commit-msg |
| description | Generate an intelligent Conventional Commit message from staged changes. Use when asked to draft or create a commit from the staged diff. |
Generate a well-formatted commit message based on staged changes.
$gen-commit-msg [--amend] [--scope <scope>]
Arguments:
--amend: Amend the previous commit instead of creating new--scope <scope>: Force a specific scope (e.g., workflow, engine)# Check staged files
git diff --cached --name-only
# Check staged content
git diff --cached
# Check recent commit style
git log --oneline -5
| Type | When to Use |
|---|---|
feat | New feature or capability |
fix | Bug fix |
docs | Documentation only |
refactor | Code change without feature/fix |
test | Adding or fixing tests |
chore | Build, deps, config changes |
perf | Performance improvement |
Infer scope from changed files:
src/ or lib/ → infer from subdirectory (e.g., src/auth/ → auth)app/ or client/ → app or clientserver/ or api/ → apitest/ or tests/ → testdocs/ → docsconfig/ or conf/ → configscripts/ → scriptsFormat:
<type>(<scope>): <subject>
<body>
[Optional sections:]
Key changes:
- change 1
- change 2
Refs: #123, #456
Rules:
Show preview:
─────────────────────────────────────
feat(workflow): add vision support to ImageProcessing
Add ImageProcessingWorkflow for vision-language processing.
Supports image inputs alongside text prompts.
─────────────────────────────────────
Ask user to confirm, then execute:
git commit -m "$(cat <<'EOF'
<message>
EOF
)"
Single file fix:
fix(auth): handle null user in login validation
Return proper error instead of raising exception when
user object is null during authentication.
Multi-file feature:
feat(api): add pagination support to user endpoint
Enable cursor-based pagination for user list API to
improve performance with large datasets.
Key changes:
- Add pagination parameters to API endpoint
- Update database queries to support cursor
- Add pagination metadata to response
Docs only:
docs: update API documentation examples
Add new endpoint examples and update authentication
flow documentation with clearer examples.
Capture a multi-step workflow into a timestamped pipeline memory after trial-and-error sessions. The core output is: (1) the final working commands saved as executable scripts (not bare shell commands), and (2) a structured markdown document separating the clean reproducible pipeline from the detours and pitfalls. Timestamped snapshots live in pipeline_memory/; mature pipelines can be promoted to PIPELINE.md and auto-loaded. Fully environment-agnostic — works for any project, any toolset, any domain. Use when the user finishes a multi-step task, says "保存工作流记忆", "save pipeline memory", "记录一下当前进展", or "/save-pipeline-memory". Takes an optional folder path.
Run Claude Code commands (including /insights, /doctor, custom prompts) via system crontab in non-interactive mode. Use when: (1) setting up daily/weekly automated Claude Code tasks, (2) scheduling reports or analysis via cron, (3) running Claude Code with third-party API backends (DeepSeek, Qwen, etc.) in headless environments, (4) "set up a daily report", "automate this in cron", "schedule insights". Covers: cron PATH setup, third-party API env vars for non-interactive mode, nvm/node auto-discovery, and wechat-reminder integration for notification delivery.
Use when the user wants to *learn* or *understand* a technical concept (an algorithm, a math derivation, an ML architecture, a systems internal) rather than just get a one-shot answer — triggers include "explain X", "teach me X", "help me understand X", or being stuck on a concept while reading a paper or code. Probe the user's level with a few questions FIRST, then teach interactively through a runnable Jupyter notebook with LaTeX derivations and small experiments.
Claudeception is a continuous learning system that extracts reusable knowledge from work sessions. Triggers: (1) /claudeception command to review session learnings, (2) "save this as a skill" or "extract a skill from this", (3) "what did we learn?", (4) After any task involving non-obvious debugging, workarounds, or trial-and-error discovery. Creates new Claude Code skills when valuable, reusable knowledge is identified.
Record a debugging session's findings into a timestamped markdown file under debug_experience/. Captures problem, root cause, solution, and key learnings in a structured, reusable format. Use when: you've just resolved a non-obvious bug, found an undocumented edge case, encountered an issue that took multiple attempts to fix, or when you say things like "保存调试经验", "save debug experience", "记录这次调试", "/save-debug-experience". Takes an optional folder path as argument.
MCP Notion工具使用指南,包含常见问题解决方案和最佳实践。使用当: (1) 访问Notion数据库view URL出现"URL type view not currently supported"错误, (2) 需要获取数据库schema和表结构信息, (3) 查询数据库中的条目内容, (4) 创建页面时MULTI_SELECT字段值不存在导致失败, (5) 需要更新数据库schema添加新选项, (6) 开发需要集成Notion数据的自动化工作流, (7) query_data_sources/query-database-view返回Business Plan要求错误, (8) 需要在无Business Plan的情况下枚举数据库所有条目。