saleor/saleor · Archived

saleor-commit

Commit changes in the Saleor codebase with pre-commit hook error handling.

First seen Jul 30, 2026

Installation

$ npx skills add saleor/saleor --skill saleor-commit

Summary

  • Commit changes in the Saleor codebase with pre-commit hook error handling.
  • Use when asked to "commit", "commit changes", "make a commit", or any git commit task in the Saleor project.
  • Handles virtual env activation, staging, commit message writing, and automatic resolution of pre-commit hook failures (ruff, mypy, schema, migrations).

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from saleor/saleor.

npx skills add saleor/saleor

Browse all from saleor/saleor

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 23.2K
License LICENSE
Default branch main
Open issues 193
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,301 B
  • docs SUMMARY.md 356 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Saleor Commit

Workflow

  1. Activate virtual env: source .venv/bin/activate (look for .venv dir in project root)
  2. Run git status and git diff (staged + unstaged) to understand all changes
  3. Stage relevant files with git add (specific files, not git add -A)
  4. Write a comprehensive commit message describing what changed and why
  5. Run git commit
  6. If pre-commit hooks fail, follow error resolution below and retry

Commit Message Format

Use a HEREDOC for the message:

git commit -m "$(cat <<'EOF'
Short summary of changes

Detailed description of what was changed and why.
List specific modifications when multiple files are affected.

EOF
)"

Pre-commit Hook Error Resolution

The project runs these hooks: trailing-whitespace, end-of-file-fixer, ruff (lint + format), mypy, deptry, semgrep, uv-lock, migrations-check, gql-schema-check.

Ruff errors (lint/format)

Ruff auto-fixes and auto-formats on commit. After a failure:

  1. Stage the auto-formatted files: git add <files>
  2. Retry the commit
  3. If it fails again, read the error output — some issues require manual fixes (unused imports, type annotations, etc.)

Mypy errors

Read the error output carefully. Fix the typing issues in the reported files. Stage and retry.

Outdated GraphQL schema (gql-schema-check)

Regenerate the schema and stage it:

python manage.py get_graphql_schema > saleor/graphql/schema.graphql
git add saleor/graphql/schema.graphql

Missing migrations (migrations-check)

Create the missing migration:

python manage.py makemigrations
git add saleor/**/migrations/*.py

Other hooks

  • trailing-whitespace / end-of-file-fixer: Auto-fix applied. Stage changed files and retry.
  • deptry: Fix dependency issues in pyproject.toml.
  • semgrep: Read the finding, fix the flagged code pattern.
  • uv-lock: Stage the updated uv.lock file.