Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/deployment-rollback-manager/skills/managing-deployment-rollbacks

managing-deployment-rollbacks

Verified

Deploy use when you need to work with deployment and CI/CD. This skill provides deployment automation and orchestration with comprehensive guidance and automation. Trigger with phrases like "deploy application", "create pipeline", or "automate deployment".

FileKindSize
SKILL.mdskill md4.7 KB
assets/README.mdmarkdown342 B
assets/example_rollback_config.ymlconfig3.7 KB
assets/rollback_report_template.mdmarkdown4.8 KB
assets/rollback_template.ymlconfig3.3 KB
references/README.mdmarkdown70 B
scripts/README.mdmarkdown484 B
scripts/get_previous_version.pyexecutablescript2.8 KB
scripts/rollback_deployment.pyexecutablescript5.5 KB
scripts/verify_deployment.pyexecutablescript5.5 KB

scripts/get_previous_version.py

View on GitHub
#!/usr/bin/env python3
"""
deployment-rollback-manager - get_previous_version.sh
Script to retrieve the previous deployment version from the deployment history.
Generated: 2025-12-10 03:48:17
"""

import sys
import json
import argparse
from pathlib import Path


def process_file(file_path: Path) -> bool:
    """Process individual file."""
    if not file_path.exists():
        print(f"❌ File not found: {file_path}")
        return False

    print(f"πŸ“„ Processing: {file_path}")

    # Add processing logic here based on skill requirements
    # This is a template that can be customized

    try:
        if file_path.suffix == ".json":
            with open(file_path) as f:
                data = json.load(f)
            print(f"  βœ“ Valid JSON with {len(data)} keys")
        else:
            size = file_path.stat().st_size
            print(f"  βœ“ File size: {size:,} bytes")

        return True
    except Exception as e:
        print(f"  βœ— Error: {e}")
        return False


def process_directory(dir_path: Path) -> int:
    """Process all files in directory."""
    processed = 0
    failed = 0

    for file_path in dir_path.rglob("*"):
        if file_path.is_file():
            if process_file(file_path):
                processed += 1
            else:
                failed += 1

    return processed, failed


def main():
    parser = argparse.ArgumentParser(
        description="Script to retrieve the previous deployment version from the deployment history."
    )
    parser.add_argument("input", help="Input file or directory")
    parser.add_argument("--output", "-o", help="Output directory")
    parser.add_argument("--verbose", "-v", action="store_true", help="Verbose output")
    parser.add_argument("--config", "-c", help="Configuration file")

    args = parser.parse_args()

    input_path = Path(args.input)

    print("πŸš€ deployment-rollback-manager - get_previous_version.sh")
    print("   Category: devops")
    print("   Plugin: deployment-rollback-manager")
    print(f"   Input: {input_path}")

    if args.config:
        if Path(args.config).exists():
            with open(args.config) as f:
                json.load(f)
            print(f"   Config: {args.config}")

    # Process input
    if input_path.is_file():
        success = process_file(input_path)
        result = 0 if success else 1
    elif input_path.is_dir():
        processed, failed = process_directory(input_path)
        print("\nπŸ“Š SUMMARY")
        print(f"   βœ… Processed: {processed}")
        print(f"   ❌ Failed: {failed}")
        result = 0 if failed == 0 else 1
    else:
        print(f"❌ Invalid input: {input_path}")
        result = 1

    if result == 0:
        print("\nβœ… Completed successfully")
    else:
        print("\n❌ Completed with errors")

    return result


if __name__ == "__main__":
    sys.exit(main())
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path β€” even casually (like "the xlsx in my downloads") β€” and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall