release-git-tags-auto

release-git-tags-auto is a cursor rule for Cursor from usrrname/cursorrules. It costs 0 tokens per session (2,026 once invoked), scanned A, original, ISC.

A release helper for Git tags, labels that mark exact points such as version 1.2.3 in a repository’s history. It checks for conflicts before creating a tag and can offer to send it to the remote repository.

In plain words
What is it for?
Use it when creating a release, changing a version, or publishing a package. It validates tag names, checks existing local tags, handles conflicts, and offers to push the new tag.
Why use it?
It helps avoid duplicate or incorrectly named release tags and provides choices when local and remote tags conflict.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating a release, changing a version, or publishing a package. It validates tag names, checks existing local tags, handles conflicts, and offers to push the new tag.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/usrrname/cursorrules/release-git-tags-auto
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/usrrname/cursorrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for release-git-tags-auto

README.md
[![agentmods](https://agentmods.dev/badge/rules/usrrname/cursorrules/release-git-tags-auto/github.svg)](https://agentmods.dev/rules/usrrname/cursorrules/release-git-tags-auto)
Your own site
<a href="https://agentmods.dev/rules/usrrname/cursorrules/release-git-tags-auto"><img src="https://agentmods.dev/badge/rules/usrrname/cursorrules/release-git-tags-auto/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for release-git-tags-auto

Your own site · 80×15
<a href="https://agentmods.dev/rules/usrrname/cursorrules/release-git-tags-auto"><img src="https://agentmods.dev/badge/rules/usrrname/cursorrules/release-git-tags-auto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02026
Opus 5.5 $0.00000 $0.00810
Sonnet 5.5 $0.00000 $0.00405
Haiku 4.5 $0.00000 $0.00203

Measured 1mo ago against content hash c3f2ca18a1d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

release-git-tags-auto scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/utils/release-git-tags-auto.mdc · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Release Git Tag Management

Critical Rules

  • Must check for existing tags before creating new ones
  • Must handle local and remote tag conflicts gracefully
  • Must provide multiple resolution options for tag conflicts
  • Must validate tag format and naming conventions
  • Must offer to push tags to remote repository
  • Must provide clear error messages and resolution steps

filters:

  • type: content pattern: "(release|version|tag|bump|publish|deploy).*(create|make|generate|prepare|ready)"
  • type: git_branch pattern: "^(?!main$|master$).*$"
  • type: event pattern: "chat_start|chat_response"

actions:

  • type: generate content: |

    🏷️ Git Tag Management Process

    I'll help you create and manage git tags for your release.

    1. Offer Git Tag Creation:
      echo "🏷️ Would you like me to create a git tag for version $NEW_VERSION?"
      echo "This will create a tag that marks this exact point in your release."
      
      read -p "Create git tag v$NEW_VERSION? (y/N): " CREATE_TAG
      
      if [[ "$CREATE_TAG" =~ ^[Yy]$ ]]; then
        echo "🔄 Creating git tag v$NEW_VERSION..."
        
        # Check if tag already exists
        if git tag -l "v$NEW_VERSION" | grep -q "v$NEW_VERSION"; then
          echo "❌ ERROR: Git tag v$NEW_VERSION already exists!"
          echo ""
          echo "Existing tag details:"
          git show --no-patch --format="%H%n%an%n%ad%n%s" "v$NEW_VERSION" 2>/dev/null || echo "Tag exists but details unavailable"
          echo ""
          echo "Options:"
          echo "1. Use a different version number"
          echo "2. Delete the existing tag (if you're sure it's safe)"
          echo "3. Skip tag creation and create it manually later"
          echo ""
          read -p "Choose option (1-3): " TAG_CONFLICT_CHOICE
          
          case $TAG_CONFLICT_CHOICE in
            1)
              echo "Please restart the release workflow with a different version number"
              echo "❌ Release workflow terminated due to tag conflict"
              exit 1
              ;;
            2)
              echo "⚠️ WARNING: You're about to delete an existing tag!"
              echo "This action cannot be undone and may affect other developers."
              read -p "Are you absolutely sure? Type 'DELETE' to confirm: " DELETE_CONFIRM
              
              if [[ "$DELETE_CONFIRM" == "DELETE" ]]; then
                echo "🔄 Deleting existing tag v$NEW_VERSION..."
                git tag -d "v$NEW_VERSION"
                
                # Also delete from remote if it exists there
                if git ls-remote --tags origin "v$NEW_VERSION" | grep -q "v$NEW_VERSION"; then
                  echo "🔄 Deleting remote tag v$NEW_VERSION..."
                  git push origin ":refs/tags/v$NEW_VERSION"
                fi
                
                echo "✅ Existing tag deleted successfully"
              else
                echo "❌ Tag deletion cancelled. Release workflow terminated"
                exit 1
              fi
              ;;
            3)
              echo "⏭️ Skipping tag creation due to conflict"
              CREATE_TAG=""
              ;;
            *)
              echo "❌ Invalid choice. Release workflow terminated"
              exit 1
              ;;
          esac
        fi
        
        # Create the git tag (only if we didn't skip due to conflict)
        if [[ "$CREATE_TAG" =~ ^[Yy]$ ]]; then
          git tag v$NEW_VERSION
          echo "✅ Git tag v$NEW_VERSION created successfully"
          
          # Offer to push the tag
          echo ""
          echo "🔄 Would you like me to push the git tag to the remote repository?"
          echo "This makes the tag available to other developers and CI/CD systems."
          
          read -p "Push git tag v$NEW_VERSION? (y/N): " PUSH_TAG
          
          if [[ "$PUSH_TAG" =~ ^[Yy]$ ]]; then
            echo "🔄 Pushing git tag v$NEW_VERSION..."
            
            # Check for remote tag conflicts before pushing
            if git ls-remote --tags origin "v$NEW_VERSION" | grep -q "v$NEW_VERSION"; then
              echo "❌ ERROR: Remote tag v$NEW_VERSION already exists!"
              echo "The local tag was created, but cannot be pushed due to remote conflict."
              echo ""
              echo "Options:"
              echo "1. Delete the remote tag first (requires appropriate permissions)"
              echo "2. Keep the local tag only"
              echo "3. Delete the local tag and skip"
              echo ""
              read -p "Choose option (1-3): " REMOTE_CONFLICT_CHOICE
              
              case $REMOTE_CONFLICT_CHOICE in
                1)
                  echo "🔄 Deleting remote tag v$NEW_VERSION..."
                  git push origin ":refs/tags/v$NEW_VERSION"
                  echo "🔄 Now pushing local tag..."
                  git push origin v$NEW_VERSION
                  echo "✅ Git tag v$NEW_VERSION pushed successfully"
                  ;;
                2)
                  echo "⏭️ Keeping local tag only. You can push it later with: git push origin v$NEW_VERSION"
                  ;;
                3)
                  echo "🔄 Deleting local tag..."
                  git tag -d "v$NEW_VERSION"
                  echo "⏭️ Tag creation cancelled"
                  ;;
                *)
                  echo "❌ Invalid choice. Keeping local tag only"
                  ;;
              esac
            else
              git push origin v$NEW_VERSION
              echo "✅ Git tag v$NEW_VERSION pushed successfully"
              
              echo ""
              echo "🎉 Release tag is now live!"
              echo "Tag URL: https://github.com/[USERNAME]/[REPO]/releases/tag/v$NEW_VERSION"
            fi
          else
            echo "⏭️ Tag created locally but not pushed"
            echo "You can push it later with: git push origin v$NEW_VERSION"
          fi
        fi
      else
        echo "⏭️ Skipping git tag creation"
        echo "You can create the tag manually later with: git tag v$NEW_VERSION"
      fi
      

Read the full file on GitHub · 233 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 233 lines · 0 tokens per session scan A c3f2ca18a1d8

Subscribe to this mod's changes

release-git-tags-auto is a cursor rule published in the GitHub repository usrrname/cursorrules (11 stars, last pushed 6mo ago), licensed ISC. It costs nothing until one of its globs matches a file; then it loads 2,026 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.