Token导航 LogoToken导航

Agent Skill · 研究检索

commit-assistant(提交助理)

commit-assistant 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

commit-assistant 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 62,606。

总安装 329周安装 14GitHub Stars 公开资料未说明下载 115核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:commit-assistant(提交助理)
来源仓库:https://github.com/duongdev/ccpm
仓库路径:skills/commit-assistant
安装命令:
npx skills add duongdev/ccpm --skill "commit-assistant"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add duongdev/ccpm --skill "commit-assistant"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

该技能用于发现并集成适用于 Git 提交规范与消息生成的 AI 插件。可在 Claude、Cursor 等平台中辅助开发者遵循约定式提交标准。自动生成符合 Conventional Commits 规范的提交描述文本。安装依赖 npx 与指定仓库路径,需确保本地 Git 环境就绪。

建议查看原始文档了解支持的提交类型与模板定制选项。

来源仓库内路径:skills/commit-assistant

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add duongdev/ccpm --skill "commit-assistant";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

commit-assistant 怎么安装?

在终端执行 npx skills add duongdev/ccpm --skill "commit-assistant"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

commit-assistant 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

commit-assistant 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

commit-assistant 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

commit-assistant 用的人多吗?

公开数据是累计安装 329 次,近一周安装 14 次,下载 115 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

commit-assistant 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
commit-assistant

提交助理 · 本页

329—接触敏感数据MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
commit-assistant
description
Provides conventional commits guidance and auto-generates commit messages from git changes. Integrates with /ccpm:commit for automated git commits linked to Linear issues. Auto-activates when users ask about committing, creating git commits, or discussing commit message formats.
allowed-tools
[Bash, Task]

Commit Assistant

Comprehensive guidance on conventional commits with automatic message generation integrated with CCPM's Linear workflow. Ensures all commits are properly formatted, issue-linked, and semantically meaningful.

When to Use

This skill auto-activates when:

  • User asks "commit my changes", "create a git commit", "how do I commit"
  • User asks about "conventional commits" or "commit message format"
  • Running /ccpm:commit command
  • Making changes that need to be committed to version control
  • Need guidance on commit type or commit message structure
  • Need help generating commit messages from code changes

Core Principles

1. Conventional Commits Format

All commits in CCPM follow Conventional Commits specification:

type(scope): message

[optional body]

[optional footer]

Format breakdown:

  • type: What kind of change (feat, fix, docs, refactor, test, chore, perf, style)
  • scope: What component or module changed (optional but recommended)
  • message: Clear, concise description in imperative mood
  • body: Detailed explanation (only for complex changes)
  • footer: Issue references, breaking changes (optional)

2. Why Conventional Commits Matter

Conventional commits enable:

  • ✅ Automatic changelog generation
  • ✅ Semantic versioning (SemVer) automation
  • ✅ Better git history readability
  • ✅ Linear issue linking
  • ✅ Filtered log searches (git log --grep="^feat")
  • ✅ CI/CD pipeline triggers (e.g., deploy on "feat:" commits)

3. Imperative Mood

Always write commit messages in imperative mood (command form):

✅ Correct:

  • "add user authentication"
  • "fix database connection timeout"
  • "refactor auth module for clarity"
  • "update API documentation"

❌ Incorrect:

  • "added user authentication"
  • "fixed database connection timeout"
  • "refactoring auth module"
  • "updates API documentation"

Why: Imperative mood matches git's own commit messages and convention specifications.

Commit Types Explained

feat: - New Features

Use when: Adding new functionality to the codebase.

Examples:

  • feat(auth): add JWT token refresh endpoint
  • feat(api): implement rate limiting middleware
  • feat(ui): add dark mode toggle

When NOT to use: Bug fixes should use fix:, not feat:

fix: - Bug Fixes

Use when: Fixing a bug or defect in existing functionality.

Examples:

  • fix(auth): prevent expired tokens from accessing protected routes
  • fix(api): handle null values in user query results
  • fix(ui): correct button alignment on mobile devices

When NOT to use: Adding new features should use feat:, not fix:

docs: - Documentation Changes

Use when: Writing or updating documentation, comments, README, or API docs.

Examples:

  • docs(readme): add installation instructions
  • docs(api): document rate limiting headers
  • docs: add troubleshooting guide

Impact: Does NOT trigger version bumps (not a "feature" or "fix")

refactor: - Code Refactoring

Use when: Restructuring code without changing functionality (performance, readability, maintainability).

Examples:

  • refactor(auth): extract JWT validation to separate module
  • refactor(api): simplify error handling logic
  • refactor: rename misleading variable names

Impact: Does NOT trigger version bumps (internal improvement only)

test: - Test Additions/Changes

Use when: Adding, updating, or fixing tests (no production code changes).

Examples:

  • test(auth): add tests for JWT expiration
  • test(api): improve test coverage for rate limiter
  • test: fix flaky database integration test

Impact: Does NOT trigger version bumps

chore: - Build/Tooling Changes

Use when: Updating dependencies, build config, CI/CD, or development tools.

Examples:

  • chore(deps): upgrade Node.js to v20.11
  • chore(build): update webpack configuration
  • chore(ci): configure GitHub Actions for linting

Impact: Does NOT trigger version bumps

perf: - Performance Improvements

Use when: Code optimization that improves performance metrics.

Examples:

  • perf(api): cache database queries for 5 minutes
  • perf(ui): optimize image rendering for 40% faster load time
  • perf: reduce bundle size by 15%

Impact: Triggers patch version bump (like fix:)

style: - Code Style Changes

Use when: Formatting, whitespace, or code style changes (no logic changes).

Examples:

  • style: reformat code according to ESLint rules
  • style(css): remove unused CSS classes
  • style: add missing semicolons

Impact: Does NOT trigger version bumps

Auto-Generation with /ccpm:commit

The /ccpm:commit command provides intelligent commit message auto-generation.

Usage

Basic usage:

/ccpm:commit                    # Auto-detect issue, generate message
/ccpm:commit AUTH-123           # Link specific issue
/ccpm:commit AUTH-123 "Fix login validation"  # Explicit message

How Auto-Detection Works

  1. Detects current git branch for Linear issue ID

- Example: feat/AUTH-123-jwt-auth → extracts AUTH-123 - Example: fix/WORK-456-cache-bug → extracts WORK-456

  1. Analyzes git changes to determine commit type

- Tests added/modified → test: - Documentation only → docs: - Bug fix + test → fix: - New feature + test → feat:

  1. Extracts scope from changed files

- Files: src/auth/jwt.ts, src/auth/login.ts → scope: auth - Files: src/api/users.ts, src/api/posts.ts → scope: api

  1. Generates message from:

- Linear issue title - Git diff summary - Changed function/class names - Test names if tests added

  1. Links to Linear automatically

- Adds issue ID to footer - Updates Linear with commit link - Creates audit trail

Example Auto-Generation Flow

Scenario: Branch fix/AUTH-123-jwt-expiration, changed src/auth/jwt.ts

$ /ccpm:commit

Analyzing changes for commit...

Branch: fix/AUTH-123-jwt-expiration
Issue: AUTH-123
Linear Title: "Prevent expired tokens from accessing API"

Changes detected:
- src/auth/jwt.ts: Modified token validation logic
- test/auth/jwt.test.ts: Added 2 tests for expiration

Commit type: fix (bug fix with tests)
Scope: auth
Message: "prevent expired tokens from accessing API"

Generated commit:

fix(auth): prevent expired tokens from accessing API

  • Added token expiration check in validateToken()
  • Added tests for expired token rejection
  • Updated middleware to handle token validation errors

Closes AUTH-123


Proceed with commit? (yes/no)

Best Practices

1. Keep Messages Concise

First line should be:

  • Under 72 characters
  • Complete thought
  • Clear, specific (not vague like "fix bug" or "update code")

✅ Good: fix(auth): validate JWT expiration before token use ❌ Bad: fix: bug or fix: updates

2. Use the Scope

Always include scope when possible (what changed):

✅ Good: feat(api):, fix(ui):, docs(readme): ❌ Bad: feat: new stuff, fix: problem

3. Reference Issues in Footer

Link to Linear issues in commit footer:

fix(auth): prevent expired tokens

[body explaining the fix]

Closes AUTH-123
Refs AUTH-120

Common footers:

  • Closes ISSUE-123 - Closes the issue
  • Fixes ISSUE-123 - Fixes the issue
  • Refs ISSUE-123 - Just references
  • BREAKING CHANGE: ... - Documents breaking changes

4. Add Body for Complex Changes

For significant changes, add explanation:

feat(auth): implement OAuth2 authentication flow

- Added OAuth2 provider integration
- Implemented token refresh mechanism
- Added session persistence to Redis
- Updated user model with OAuth fields

This enables third-party sign-in for better UX.
Addresses AUTH-127 requirements.

Closes AUTH-127

5. Group Related Changes

If multiple related files change, use single commit:

git add src/auth/jwt.ts test/auth/jwt.test.ts
git commit -m "fix(auth): validate JWT expiration"

Not:

git add src/auth/jwt.ts
git commit -m "fix(auth): validate JWT expiration"
git add test/auth/jwt.test.ts
git commit -m "test(auth): add JWT expiration tests"

Commit Message Examples

Example 1: Simple Feature

Scenario: Added new user registration endpoint

feat(api): add user registration endpoint

- POST /auth/register creates new user accounts
- Validates email format and password strength
- Returns JWT token on successful registration

Closes AUTH-101

Analysis:

  • ✅ Type: feat: (new feature)
  • ✅ Scope: api (API endpoint changed)
  • ✅ Message: Imperative mood, under 72 chars
  • ✅ Body: Clear explanation
  • ✅ Issue link: References LINEAR issue

Example 2: Bug Fix

Scenario: Fixed database timeout issue

fix(db): handle connection timeouts gracefully

- Added 30-second connection timeout
- Retry logic with exponential backoff
- Return 503 Service Unavailable to clients
- Log timeout events for monitoring

Fixes DB-456
Refs AUTH-123

Analysis:

  • ✅ Type: fix: (bug fix)
  • ✅ Scope: db (database layer)
  • ✅ Message: Clear problem & solution
  • ✅ Body: Technical details
  • ✅ Issue links: Primary issue + related

Example 3: Refactoring

Scenario: Extracted authentication logic into module

refactor(auth): extract validation logic to utility module

- Move JWT validation to src/auth/validators.ts
- Extract middleware factory to src/auth/middleware.ts
- Improve code reusability and testability
- No functional changes

Analysis:

  • ✅ Type: refactor: (internal improvement)
  • ✅ Scope: auth (authentication module)
  • ✅ Message: Clear intent (extract, not add)
  • ✅ Body: What was extracted + benefit
  • ✅ No issue link: Not user-facing change

Example 4: Documentation Update

Scenario: Added API authentication guide

docs(api): add authentication implementation guide

- New section: JWT token flow diagrams
- New section: Token refresh strategy
- Code examples for common authentication patterns
- Links to security best practices

Analysis:

  • ✅ Type: docs: (documentation)
  • ✅ Scope: api (API documentation)
  • ✅ Message: Clear what was added
  • ✅ Body: Section breakdown
  • ✅ No issue link: Documentation improvement

Example 5: Performance Optimization

Scenario: Added caching to reduce database queries

perf(api): implement request caching for 40% query reduction

- Cache GET requests for 5 minutes (TTL)
- Invalidate cache on POST/PUT/DELETE
- Add Redis cache layer
- Reduces database load by 40% in benchmarks

Closes PERF-234

Analysis:

  • ✅ Type: perf: (performance improvement)
  • ✅ Scope: api (API layer)
  • ✅ Message: Clear improvement + metric (40%)
  • ✅ Body: Implementation details
  • ✅ Metrics: Quantifiable improvement shown

Example 6: Multi-File Feature

Scenario: Implemented complete authentication system

feat(auth): implement JWT authentication system

- Add JWT token generation and validation
- Add login endpoint with credential verification
- Add logout endpoint with token blacklisting
- Add protected route middleware
- Add 90 tests covering all scenarios

This enables secure user authentication and session management.
Replaces legacy session-based auth system.

Closes AUTH-105
Closes AUTH-106
Closes AUTH-107

Analysis:

  • ✅ Type: feat: (new feature)
  • ✅ Scope: auth (authentication)
  • ✅ Message: High-level overview
  • ✅ Body: All components included
  • ✅ Multiple issues: References all related tasks
  • ✅ Impact statement: Explains change scope

Integration with /ccpm:commit

Command Syntax

/ccpm:commit [issue-id] [message]

Examples:

# Auto-detect everything from current branch
/ccpm:commit

# Specify issue, auto-generate message
/ccpm:commit AUTH-123

# Specify issue and message
/ccpm:commit AUTH-123 "Fix login validation error"

# Just provide message (detects issue from branch)
/ccpm:commit "Refactor authentication module"

What the Command Does

  1. Analyzes current git changes
  2. Detects commit type from changes
  3. Extracts scope from modified files
  4. Generates commit message (if not provided)
  5. Links to Linear issue
  6. Creates the commit
  7. Updates Linear with commit link
  8. Suggests next action (verification, sync, etc.)

Workflow Example

# 1. Make changes
$ vim src/auth/jwt.ts

# 2. Stage changes
$ git add src/auth/jwt.ts test/auth/jwt.test.ts

# 3. Create conventional commit linked to Linear
$ /ccpm:commit

Analyzing changes...
Branch: fix/AUTH-123-jwt-expiration
Files: src/auth/jwt.ts, test/auth/jwt.test.ts
Type: fix
Scope: auth

Generated commit:
  fix(auth): prevent expired tokens from accessing API

Proceed? (yes/no)

# 4. Commit created automatically
$ git log -1 --oneline
a1b2c3d fix(auth): prevent expired tokens from accessing API

# 5. Linear updated
AUTH-123 comment added: "Commit: a1b2c3d"

Common Mistakes to Avoid

Mistake 1: Wrong Commit Type

❌ Mistake: Using feat: for a bug fix

feat(auth): fix JWT validation

✅ Correct: Use fix: for bug fixes

fix(auth): validate JWT expiration

Why: Different types trigger different version bumps. A bug fix should not bump minor version.

Mistake 2: Vague Messages

❌ Mistake: Generic, unclear message

fix: update auth
chore: fixes
feat: improvements

✅ Correct: Specific, action-oriented messages

fix(auth): validate JWT expiration before token use
chore(deps): upgrade Node.js to v20.11
feat(api): add user registration endpoint

Mistake 3: Avoiding Issue Links

❌ Mistake: No issue reference

fix(auth): prevent expired tokens

✅ Correct: Link to Linear issue

fix(auth): prevent expired tokens

Closes AUTH-123

Why: Creates audit trail and helps team understand why change was made.

Mistake 4: Past Tense in Message

❌ Mistake: Past tense (non-imperative)

fixed JWT validation
added user registration
refactored auth module

✅ Correct: Imperative mood

fix JWT validation
add user registration
refactor auth module

Mistake 5: Too Much Detail in Subject Line

❌ Mistake: Long, detailed first line

feat(auth): add comprehensive JWT authentication system with token refresh
 and improved security checks including rate limiting and IP whitelisting

✅ Correct: Concise subject (under 72 chars), details in body

feat(auth): add JWT authentication system

- Add token generation and validation
- Add logout with token blacklisting
- Add protected route middleware
- Add rate limiting and IP checks

Integration with CCPM Workflow

In Planning Phase

When planning a task with /ccpm:plan:

Task: "Implement JWT authentication"

Implementation plan:
- [ ] Create auth module
- [ ] Add login endpoint
- [ ] Add protected route middleware
- [ ] Add comprehensive tests

Commits expected:
1. `feat(auth): create JWT authentication module`
2. `feat(api): add login endpoint`
3. `feat(api): add protected route middleware`
4. `test(auth): add JWT validation tests`

During Implementation

When making changes during /ccpm:work:

# 1. Work on feature
$ vim src/auth/jwt.ts

# 2. Run tests
$ npm test

# 3. Create conventional commit
$ /ccpm:commit

# 4. Sync progress
$ /ccpm:sync "Implemented JWT validation"

# 5. Repeat for each logical change

Before Verification

When verifying with /ccpm:verify:

Commit history should show:

a1b2c3d feat(auth): prevent expired tokens from accessing API
b2c3d4e feat(api): add login endpoint
c3d4e5f test(auth): add JWT validation tests

Each commit should:

  • ✅ Be conventional format
  • ✅ Be linked to Linear issue
  • ✅ Have clear, specific message
  • ✅ Include related tests

Before Completion

When finalizing with /ccpm:done:

Check commit history:

git log --oneline --grep="ISSUE-123"

Should show:

  • ✅ Multiple logical commits (not one giant commit)
  • ✅ Clear progression from task start to completion
  • ✅ All conventional commits format
  • ✅ All linked to issue

Activation Triggers

This skill activates when you:

  • Ask "How do I commit changes?"
  • Ask "Create a git commit" or "commit my changes"
  • Ask "What's a conventional commit?"
  • Ask "What should my commit message be?"
  • Ask "How do I write commit messages?"
  • Ask about "commit message format" or "commit types"
  • Run /ccpm:commit command
  • Run /ccpm:done (which includes commit step)
  • Need help generating or formatting commit messages

Integration with Other CCPM Skills

Works alongside:

  • pm-workflow-guide: Suggests committing at right workflow stages
  • external-system-safety: If commits trigger external updates (GitHub Actions, CD/CI)
  • ccpm-code-review: Verifies commits follow quality standards
  • docs-seeker: For commit message examples and best practices

Example combined workflow:

User: "I finished the JWT feature"
       ↓
/ccpm:sync → Update Linear with progress
       ↓
/ccpm:commit → Create conventional commit
       ↓
commit-assistant → Auto-generate message, link to issue
       ↓
/ccpm:verify → Run quality checks on changed code
       ↓
/ccpm:done → Create PR, sync external systems

Summary

This skill ensures:

  • ✅ All commits follow conventional commit format
  • ✅ Commit messages are clear and specific
  • ✅ Issues are properly linked in commits
  • ✅ Commit history is searchable and meaningful
  • ✅ Automatic changelog generation possible
  • ✅ Semantic versioning automation enabled
  • ✅ Git history is clean and maintainable

Philosophy: Clear commits enable clear history, which enables automation and team communication.


Based on: Conventional Commits 1.0.0 License: MIT CCPM Integration: /ccpm:commit, /ccpm:sync, /ccpm:done

平台分布

Claude Code

29.73%
按下载量换算34

OpenCode

23.1%
按下载量换算27

Cursor

18.44%
按下载量换算21

Gemini CLI

12.86%
按下载量换算15

kilo

6.58%
按下载量换算8

windsurf

2.89%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills