cleanup-users

Community

Sync a user DB to cloud and purge extras.

Authorimankha
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates migrating a single user's database, syncing it to Cloudflare R2, and cleaning up other users both locally and on R2 to maintain a clean development and test environment.

Core Features & Use Cases

  • Migrate and apply pending migrations for the kept user and ensure the database is properly initialized.
  • Sync the kept user's database to Cloudflare R2 and verify synchronization.
  • Delete non-kept local user data under user_data and remove corresponding R2 objects, with optional pattern filtering.
  • Supports a default keep user and a deletion pattern (e.g., e2e_*) for precise cleanup.
  • Use Case: In CI runs, keep the primary tester account, remove ephemeral test accounts locally and in R2 after test completion.

Quick Start

  • cd src/backend
  • python cleanup.py
  • python cleanup.py keep:b
  • python cleanup.py delete:e2e_*

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: cleanup-users
Download link: https://github.com/imankha/video-editor/archive/main.zip#cleanup-users

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.