/tag
Create an annotated git tag with an auto-generated summary of changes since the last tag.
> /plugin marketplace add alibaba/open-code-review > /plugin install open-code-review@open-code-review
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/tag
Context preview
What this command does when you run it.
Create an annotated git tag with an auto-generated summary of changes since the last tag.
Command definition
tag.md/tag
Create an annotated git tag with an auto-generated summary of changes since the last tag.
Arguments
- `$ARGUMENTS`: Optional version number (e.g., `v1.2.0`). If omitted, auto-increment the patch version from the latest tag.
Workflow
Step 1: Determine version
1. Get the latest tag: `git describe --tags --abbrev=0` 2. If `$ARGUMENTS` is provided and non-empty, use it as the new version. 3. Otherwise, auto-increment the patch number (e.g., `v1.1.5` → `v1.1.6`).
Step 2: Generate summary
1. Get the commit range: from the latest tag to HEAD. 2. Run `git log <latest-tag>..HEAD --oneline` to list all commits in this range. 3. Summarize the changes into a brief tag message (1-3 lines, similar to a commit message style). Focus on what was implemented/fixed, not individual commits.
Step 3: Create tag
Run:
git tag -s <new-version> -m "<summary>"
Report the created tag and its message to the user.
Fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level comments, built-in multi-language ruleset (NPE, thread-safety, XSS, SQL injection), OpenAI & Anthropic compatible.
Other commands on alibaba-open-code-review.
- /commit
Please summarize your current changes, generate a commit message in English, then add and commit.
Open command - /open-code-review
Invoke the professional code review Agent CLI tool OpenCodeReview (OCR) to review current code changes, and let the Agent autonomously decide whether to apply fixes.
Open command - /delegate-review
Run OCR in delegation mode — OCR handles file selection and rules, the host agent performs the actual review.
Open command - /review
Run OpenCodeReview (OCR) to review code changes and autonomously apply fixes.
Open command

