commit 41f0dd2764d07f510e4389352fc1c69038674b99 Author: Zhongwei Li Date: Sun Nov 30 08:47:03 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..8d0303f --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "common", + "description": "Claude Code plugin", + "version": "1.0.0", + "author": { + "name": "chuan" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..185be51 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# common + +Claude Code plugin diff --git a/commands/commit.md b/commands/commit.md new file mode 100644 index 0000000..7f2e2cd --- /dev/null +++ b/commands/commit.md @@ -0,0 +1,35 @@ +# /commit + +--- + +根据当前stage的内容和下面指定的风格创建一个 git commit + +## STRICT RULES + +1. 使用传统的 `feat: xxx` 这种风格 +2. 如果用户输出了是 `#xx` , 默认提交的是issue的id,commit需要能展现它,比如 `fix: xxx (#1)` +3. 允许使用的Type从Types Section中找 + +--- + +## Types + +feat: A new feature +fix: A bug fix +docs: Documentation changes +style: Code style changes (formatting, etc) +refactor: Code changes that neither fix bugs nor add features +perf: Performance improvements +test: Adding or fixing tests +chore: Changes to the build process, tools, etc. + +## Examples + +``` +feat: initialize personal context project (#1) + +- Set up basic project structure +- Add initial configuration files (.gitignore, README.md) +- Create core directories src/ and docs/ +- Add base build and run scripts +``` \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..5176efa --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:pchuan98/promptor:common", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "8e2854ad73fdaa76cb6e62072781bc029d894416", + "treeHash": "cadde5369b85581fc4395804482c9d700fb31d6009bd72498aeb95053478800e", + "generatedAt": "2025-11-28T10:27:35.618524Z", + "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": "common", + "description": "Claude Code plugin", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "0fe027a31c28453556a5d2c49631736d6e85c86740021d40e5b79fee514db72a" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "eea2434d745646cb63de0707d5387dde5e2aadcf31a997389bee066b789532ba" + }, + { + "path": "commands/commit.md", + "sha256": "75bd765ae5eb4cc2ceb26d031fe5aea618a7544e3270ca2a89a53abb3efd6102" + } + ], + "dirSha256": "cadde5369b85581fc4395804482c9d700fb31d6009bd72498aeb95053478800e" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file