commit-detection

Solid

Detects optimal commit type from git changes. Use when analyzing commits, determining commit type, or before committing.

Code & Development 22 stars 3 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Commit Type Detection Skill Expert knowledge for detecting the optimal conventional commit type. ## Detection Algorithm ### Step 1: Gather Data ```bash # Get modified files git diff --name-only git diff --staged --name-only # Get change statistics git diff --stat git diff --staged --stat # Check for keywords in diff git diff | grep -i "fix\|bug\|error" | head -5 ``` ### Step 2: Categorize Files | Category | File Patterns | |----------|---------------| | docs | `*.md`, `*.txt`, `*.rst`, `README*`, `CHANGELOG*` | | test | `*.test.*`, `*.spec.*`, `__tests__/*`, `test/*` | | config | `*.json`, `*.yml`, `*.yaml`, `*.toml`, `.*rc` | | ci | `.github/*`, `.gitlab-ci.yml`, `Jenkinsfile` | | build | `package.json`, `Makefile`, `webpack.*`, `vite.*` | | style | Only whitespace, formatting changes | | src | `*.ts`, `*.js`, `*.py`, `*.go`, `*.rs`, etc. | ### Step 3: Apply Rules ``` IF only docs files changed: → docs IF only test files changed: → test IF only config/build files changed: → chore IF only CI files changed: → ci IF diff contains "fix", "bug", "error", "issue", "resolve": → fix IF new files added with business logic: → feat IF files renamed/moved without logic change: → refactor IF performance keywords ("optimize", "perf", "speed", "cache"): → perf IF formatting only (whitespace, semicolons): → style DEFAULT: → Use /commit-pro:commit for smart analysis ``` ### Step 4: Determine Scope Extract scope from primary directory: ``` src/compo...

Details

Author
fusengine
Repository
fusengine/agents
Created
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

git-commit

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

3 Updated today
AruNi-01
Code & Development Listed

git-commit

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

1 Updated yesterday
eric-sabe
Code & Development Listed

commit

Git commit workflow with conventional commits, branch creation, push, and PR support. Use when the user asks to commit, save changes, push, ship it, open a PR, send a PR, or says "/commit". Also triggers on short aliases: "cp" (commit and push), "cb" (commit to new branch), "cpr" (commit and PR). Trigger phrases: "commit", "commit and push", "commit new branch", "commit to new branch", "commit and pr", "commit push pr", "commit pr", "cp", "cb", "cpr", "push this up", "save my changes", "ship it".

0 Updated 4 days ago
svyatov