agentleFS
Thank-you-LinusThank-you-Linus/Linus-Dashboard/.claude/skills/release-rollback/SKILL.md

release-rollback

Skill214 starsChanged 31 days agoMITView on GitHub

Rollback a failed release by deleting tags and reverting version changes. Use when a release fails, needs to be cancelled, or when reverting a problematic release.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Delete local git tag for specified version

    line 48
  2. Distinctive:

    Delete remote git tag for specified version

    line 49
  3. Distinctive:

    Delete GitHub release for specified version

    line 50
  4. Distinctive:

    Check GitHub to confirm release is deleted

    line 58
  5. Distinctive:

    Verify tags are removed: git tag -l

    line 59
  6. Very specific:

    Run: npm run release:check to validate fixes

    line 61
  7. Very specific:

    Run: npm run build to test

    line 75
  8. Very specific:

    Run: npm run lint to auto-fix

    line 80
  9. Very specific:

    Run: npm run type-check to verify

    line 81
  10. Distinctive:

    Check all version files are synced:

    line 86
  11. Distinctive:

    Re-validate: Run all checks before creating new release

    line 119
  12. Distinctive:

    Communication: If release was public, inform users

    line 120
  13. Distinctive:

    Before proceeding with rollback:

    line 126

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Rollback Failed Release

Rollback a failed release by deleting the release and reverting version changes.

⚠️ This will delete the release and revert version changes.


Current Situation Check

Check recent tags:

git tag -l --sort=-version:refname | head -5

Review which version needs to be rolled back.


Rollback Process

Step 1: Verify Version to Rollback

Confirm with the user:

  • What is the version to rollback?
  • Is this the correct version to rollback?

Step 2: Run Rollback Script

Execute the rollback command:

npm run release:rollback <version>

Example:

npm run release:rollback 1.5.0-beta.3

Step 3: What the Script Will Do

The rollback script performs:

  • Delete local git tag for specified version
  • Delete remote git tag for specified version
  • Delete GitHub release for specified version
  • Revert version changes in all files
  • Clean up RELEASE_NOTES files
  • Provide next steps

Step 4: After Rollback

Post-rollback verification:

  1. Check GitHub to confirm release is deleted
  2. Verify tags are removed: git tag -l
  3. Fix the issues that caused the failure
  4. Run: npm run release:check to validate fixes

Step 5: Create New Release

Once issues are fixed, create new release:

  • For beta: Use release-beta skill
  • For stable: Use release-stable skill

Common Rollback Scenarios

Build Failed

  • Fix build errors
  • Run: npm run build to test
  • Run: npm run test:smoke
  • Re-run validation

Linting/Type Errors

  • Run: npm run lint to auto-fix
  • Run: npm run type-check to verify
  • Fix reported issues
  • Re-run validation

Version Mismatch

  • Check all version files are synced:
    • package.json
    • manifest.json
    • const.py
  • Re-run bump command

Validation Failed

  • Run: npm run release:check
  • Address all errors and warnings
  • Fix issues systematically
  • Re-run validation

Usage Example

# Rollback beta release
/release-rollback 2.0.0-beta.3

# Rollback stable release
/release-rollback 1.5.0

This requires the version number to rollback.


Important Notes

  • Destructive operation: Cannot be undone easily
  • Confirm version: Double-check before proceeding
  • Fix root cause: Address the issue that caused failure
  • Re-validate: Run all checks before creating new release
  • Communication: If release was public, inform users

Rollback Checklist

Before proceeding with rollback:

  • Identified the version to rollback
  • Confirmed the version is correct
  • Understood why the release failed
  • Ready to fix the underlying issue

After rollback:

  • Verified tag deletion locally and remotely
  • Confirmed GitHub release deletion
  • Fixed the root cause issue
  • Ran validation checks
  • Ready for new release attempt

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.