From 550e60dcc87d7801ba8eb93e9d59f0f0bc1ca18d Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:56:53 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 11 ++++++++++ README.md | 3 +++ commands/commit.md | 22 +++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 commands/commit.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..1c0d191 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "commit-commands", + "description": "Streamline your git workflow with simple commands for committing, pushing, and creating pull requests", + "version": "1.0.0", + "author": { + "name": "ShintaroaSuzuki" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..92c0d3e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# commit-commands + +Streamline your git workflow with simple commands for committing, pushing, and creating pull requests diff --git a/commands/commit.md b/commands/commit.md new file mode 100644 index 0000000..f3059c7 --- /dev/null +++ b/commands/commit.md @@ -0,0 +1,22 @@ +--- +allowed-tools: Bash(git status:*), Bash(git commit:*) +description: Create a git commit +--- + +## Context + +- Current git status: !`git status` +- Current git diff (staged and unstaged changes): !`git diff HEAD` +- Current branch: !`git branch --show-current` +- Recent commits: !`git log --oneline -10` + +## Your task + +Based on the above changes, create a single git commit. + +You have the capability to call multiple tools in a single response. Stage and create the commit using a single message. Do not use any other tools or do anything else. Do not send any other text or messages besides these tool calls. + +## Important requirements + +- **NEVER use `git add`**: Do not stage any files. Only create the commit with files that are already staged. +- **Commit message in Japanese**: Write the commit message in Japanese following the Semantic Commit Message format (e.g., `feat: 新機能を追加`, `fix: バグを修正`, `docs: ドキュメントを更新`) diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..56343c1 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:ShintaroaSuzuki/shintaroasuzuki-plugins:plugins/commit-commands", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "9f7b07c640b449ffdc696f0cb6bb795c0a28911c", + "treeHash": "18663cd01a6edafc34829fe555c4682ea905035b7ee081a0f88e6115338d654b", + "generatedAt": "2025-11-28T10:12:49.106828Z", + "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": "commit-commands", + "description": "Streamline your git workflow with simple commands for committing, pushing, and creating pull requests", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "303ab4fbbc0650e176a4d8f98133eb169e52535f290c24f28eae482d81c0906d" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "3e0f1654083ee3fc8cda050b3be79316646dd32d1cdc859fc3c09fa97dc99589" + }, + { + "path": "commands/commit.md", + "sha256": "c9f6bdcd115acf83e7018dcd1c0dfea4804c5f54b24a25fed26a2fa643e51229" + } + ], + "dirSha256": "18663cd01a6edafc34829fe555c4682ea905035b7ee081a0f88e6115338d654b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file