agentleFS
ly1836ly1836/spring-ai-rag-demo/.cursor/skills/commit/SKILL.md

commit

Skill86 starsChanged 7 months agoApache-2.0View on GitHub

分析 git 变更并生成规范的提交信息。用于提交代码、生成 commit message 时触发。

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 4 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 4 projects that use this

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

    Also in 9 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot

The file

Files
SKILL.md

生成 Commit Message

分析当前 git 变更,生成规范的提交信息。

步骤:

  1. 运行 git diff --cached 或 git diff 查看变更内容
  2. 判断变更类型和涉及的业务域
  3. 生成符合规范的 commit message

格式:

<type>: <中文描述>

AI-Generated: true
AI-Tool: Cursor
Reviewed-by: <git config user.name>

type 选择:

  • feat: 新功能(新增 Controller / Service / Tool / DAO / 前端交互等)
  • fix: 修复缺陷
  • refactor: 重构(如数据访问层迁移、服务拆分、配置整理)
  • docs: 文档变更(openspec 设计文档等)
  • style: 格式调整(不影响逻辑)
  • test: 测试相关
  • chore: 构建/依赖/配置变更

描述规范:

  • 优先使用中文
  • 指明涉及的业务域(如:chat、billing、conversation、tool、config、vo、dao、static)
  • 说明变更的核心内容

示例:

refactor: 计费域 — 将 JdbcTemplate 查询迁移为 MyBatis-Plus Mapper

AI-Generated: true
AI-Tool: Cursor
Reviewed-by: developer

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.