code-to-rollback-sql

Community

Auto-generate rollback SQL from code changes.

Authoroctkp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Analyzes source code to identify data-changing operations (INSERT/UPDATE/DELETE) and generates corresponding rollback SQL, while recording changes for auditable memory.

Core Features & Use Cases

  • Phase-based orchestration: code analysis (Phase 1) via a specialized db-change-analyzer, memory persistence (Phase 2) via agent-memory, and SQL generation (Phase 3) via a SQL generator.
  • Flexible targeting: accept file path with line ranges or method/function names to scope the analysis.
  • Safe rollback output: produce ordered SQL that respects foreign-key constraints and provides optional verification queries.

Quick Start

Provide the target file path and line range or the target method name to begin generating rollback SQL.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-to-rollback-sql
Download link: https://github.com/octkp/dotfiles/archive/main.zip#code-to-rollback-sql

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.