commit f0a2cfe2f6e96d6167b76185755434a95fa4690b Author: Zhongwei Li Date: Sat Nov 29 18:14:08 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..67f612c --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "smart-commit", + "description": "Automates git commit process by selecting the first suggested message, generating structured commits with consistent formatting while skipping manual confirmation and removing Claude co-Contributorship footer", + "version": "1.0.0", + "author": { + "name": "ClaudeForge Community", + "url": "https://github.com/claudeforge/marketplace" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..cb0dd1e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# smart-commit + +Automates git commit process by selecting the first suggested message, generating structured commits with consistent formatting while skipping manual confirmation and removing Claude co-Contributorship footer diff --git a/commands/2-commit-fast.md b/commands/2-commit-fast.md new file mode 100644 index 0000000..2d70dab --- /dev/null +++ b/commands/2-commit-fast.md @@ -0,0 +1,100 @@ +--- +title: 'ClaudeForge Fast Commit' +read_only: true +type: 'command' +--- + +# ClaudeForge Fast Commit + +ClaudeForge optimized rapid commit system that generates intelligent, structured commit messages automatically without manual confirmation. + +## Purpose + +Accelerate development workflow with smart commit message generation while maintaining professional standards and project consistency. + +## Features + +- **Intelligent Analysis**: Analyzes staged changes to generate contextually appropriate commit messages +- **Structured Format**: Follows conventional commit standards with proper type, scope, and description +- **Auto-execution**: Automatically applies the best-generated commit message without user confirmation +- **Professional Standards**: Maintains ClaudeForge branding and removes AI co-authorship +- **Package Focus**: Specialized recognition of package management and dependency changes + +## Execution Process + +1. **Change Analysis**: Examine all staged files and modifications +2. **Context Detection**: Identify file types, directories, and change patterns +3. **Message Generation**: Create three structured commit message options +4. **Auto-selection**: Choose the highest quality message automatically +5. **Instant Commit**: Execute `git commit` with selected message + +## Message Format + +``` +(): + +[optional body] + +[optional footer] +``` + +**Types**: feat, fix, docs, style, refactor, test, chore, perf, ci, build, revert +**Scopes**: Package names, directories, or functional areas + +## Examples + +### Feature Addition +```bash +feat(auth): add OAuth2 integration with Google provider +``` + +### Bug Fix +```bash +fix(api): resolve user authentication timeout issue +``` + +### Documentation +```bash +docs(readme): update installation instructions for v2.0 +``` + +### Performance +```bash +perf(database): optimize query performance by 40% +``` + +## Smart Recognition + +- **Package Updates**: Recognizes package.json, requirements.txt, Cargo.toml changes +- **Configuration**: Identifies config file modifications and environment changes +- **Dependencies**: Detects dependency additions, removals, and version updates +- **Tests**: Recognizes test file additions and modifications +- **Documentation**: Identifies README, API docs, and code documentation changes + +## Benefits + +- **Speed**: Eliminate manual commit message writing time +- **Consistency**: Maintain uniform commit message standards across project +- **Professional**: Generate high-quality, meaningful commit messages +- **Integration**: Seamlessly works with existing Git workflows +- **Productivity**: Focus on coding while maintaining commit quality + +## Usage + +```bash +# Stage your changes +git add . + +# Execute fast commit +/2-commit-fast + +# Your changes are committed with an intelligent message +``` + +## ClaudeForge Standards + +All commits generated by this tool follow ClaudeForge's professional development standards and best practices for version control and project management. + +--- + +**ClaudeForge Fast Commit** - Accelerate your development workflow without compromising on quality. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..9706b43 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:claudeforge/marketplace:plugins/commands/smart-commit", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "5537c0ebd5f1e1c29555da54ec894a2b305f1ee7", + "treeHash": "d85a80818843c70216e0182853e29e5a324cd3f9025a80b1ab9710c199050c6e", + "generatedAt": "2025-11-28T10:15:37.682269Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "smart-commit", + "description": "Automates git commit process by selecting the first suggested message, generating structured commits with consistent formatting while skipping manual confirmation and removing Claude co-Contributorship footer", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "474408e92497464bbff55a7e2962ce72f77b6ac743c7fbbf72ac4e8c2aa1d7fc" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "08e9ae6423a4d4d4c3ed1e7d63f59f2f2652f6f5c2d39d82b42cbc0fafa7e6d9" + }, + { + "path": "commands/2-commit-fast.md", + "sha256": "b6c537b1a308d594f93df2e77a9c80230017961870ff87f01f64b562b33d1804" + } + ], + "dirSha256": "d85a80818843c70216e0182853e29e5a324cd3f9025a80b1ab9710c199050c6e" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file