Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

saleor-migrations

Skill by saleor

Saleor-migrations gives an AI assistant rules for writing safe Django migrations in Saleor. The rules aim to avoid table locks and to keep zero-downtime deploys working.

  • Score 88
  • 24k stars
  • BSD-3-Clause
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install saleor-migrations

Built from the published package, never by AI.

git clone --depth 1 https://github.com/saleor/saleor /tmp/saleor && mkdir -p ~/.claude/skills && cp -r /tmp/saleor/.claude/skills/saleor-migrations ~/.claude/skills/saleor-migrations

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install saleor-migrations in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant a set of rules for writing Django migrations in Saleor. The rules aim to avoid long table locks and to keep zero-downtime deploys working across many pods that share one Postgres database. They cover keeping migrations small, creating indexes and unique constraints concurrently, and making schema changes compatible with the previous minor version's code.

It also explains how to stage field removals and renames across three releases using SeparateDatabaseAndState. It describes writing data migrations that are all-or-nothing, using the correct post_migrate sender, and batching related lookups. Cross-branch ports should keep identical filenames and use a merge migration when histories diverge. It is intended for developers creating or editing migrations in the Saleor codebase.

Written from the project's SKILL.md and checked against it.

What it can do

  • Split migrationsKeeps each migration to one model and one field change to limit how long table locks are held.
  • Concurrent indexesCreates unique constraints and indexes concurrently to avoid blocking writes across pods.
  • Backwards-compatible schemaMakes new columns nullable or give them a db_default so old pods can still insert rows.
  • Staged field removalRemoves a field over three releases using SeparateDatabaseAndState before dropping the column.
  • Staged renamesGuides renaming a field as an add plus a remove, with backfill and a later column drop.
  • Data migration rulesRequires all-or-nothing data migrations and batching of per-iteration database queries.
  • post_migrate sender checkChecks that post_migrate handlers pass their own app config as the sender.
  • Cross-branch portsKeeps ported migration filenames identical and uses makemigrations --merge when histories diverge.

What you need

  • Django
  • Postgres
  • Saleor codebase
  • manage.py

Try asking

  • Write a safe Django migration to add a nullable column to a Saleor model.
  • Stage the removal of a defaulted field in Saleor across three releases.
  • Add a unique index to a Saleor model without blocking writes.

Good to know

  • Renames are costly and should be avoided unless necessary.
  • Changing old code requires crafting two releases at once and is reserved for cases where nothing else works.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/saleor-migrations/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to saleor-migrations

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

saleor-migrations: common questions

How do I remove a field from a Saleor model without breaking deploys?

The skill says to add a db_default or null=True first, then de-register the field from the ORM with SeparateDatabaseAndState, and drop the column in a later release.

Why should I avoid a plain AddIndex or AddConstraint in Saleor?

The source says a plain AddIndex or AddConstraint takes a blocking ACCESS EXCLUSIVE lock that can stall writes across all pods.

Why does a Python default= not work for new Saleor fields during deploys?

The source says Python default= lives in Python and never reaches the database, so old pods inserting rows without the column can fail.

How do I install saleor-migrations?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is saleor-migrations free?

The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.

Is saleor-migrations safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to saleor-migrations?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

saleor-migrations Install

Add to stack

Loading.