Initial commit
This commit is contained in:
11
.claude-plugin/plugin.json
Normal file
11
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "common",
|
||||||
|
"description": "Claude Code plugin",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"author": {
|
||||||
|
"name": "chuan"
|
||||||
|
},
|
||||||
|
"commands": [
|
||||||
|
"./commands"
|
||||||
|
]
|
||||||
|
}
|
||||||
35
commands/commit.md
Normal file
35
commands/commit.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# /commit <ISSUE>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
根据当前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
|
||||||
|
```
|
||||||
45
plugin.lock.json
Normal file
45
plugin.lock.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user