Agent skill

Saleor Commit Workflow

by saleor in saleor/saleor

Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

BSD-3-ClauseAuto-check passedDevelopment

Install Saleor Commit Workflow

skills CLI
$ npx skills add saleor/saleor --skill saleor-commit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install saleor/saleor saleor-commit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/saleor-commit .claude/skills/saleor-commit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
saleor-commit
GitHub stars
23k
Token cost
~575 tokens
SKILL.md length
207 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

  • Works in 6 steps: Activate virtual env: source… → Run git status and git diff (staged +… → Stage relevant files with git add… → …
  • Committing changes in the Saleor repository
  • SKILL.md covers Workflow, Commit Message Format and Pre-commit Hook Error Resolution
  • Calls git and python

What it does

The skill makes the agent commit changes in the Saleor codebase and recover from pre-commit hook failures on its own. It activates the project's virtual environment, reads `git status` and `git diff`, stages specific files instead of everything, writes a message describing what changed and why through a HEREDOC, and runs the commit.

When hooks fail it follows a fix per hook. Ruff auto-formats, so the agent stages the changed files and retries, then reads the error for manual issues such as unused imports. Mypy errors are fixed in the reported files. An outdated GraphQL schema is regenerated with `python manage.py get_graphql_schema` and staged, missing migrations are created with `makemigrations`, and whitespace and end-of-file fixes are staged. The deptry, semgrep and uv-lock hooks are handled by fixing dependencies or flagged patterns and staging the updated lock file.

When your agent uses it

  • Committing changes in the Saleor repository
  • Resolving ruff, mypy or schema hook failures during a commit
  • Regenerating the GraphQL schema or missing migrations that block a commit

Example prompts

  • “Commit my changes.”
  • “Make a commit for the checkout fix; the pre-commit hooks keep failing on the GraphQL schema.”
  • “Commit the new order discount feature and sort out any ruff or mypy errors the hooks raise.”

Requirements

  • A Saleor checkout with a `.venv` virtual environment
  • Git with the project's pre-commit hooks installed

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 782a751. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Saleor Commit Workflow loads about 575 tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 207 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~575

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from saleor/saleor at commit 782a751, republished under its BSD-3-Clause licence (© saleor). 207 words, ~575 tokens.

Download SKILL.mdSave it as .claude/skills/saleor-commit/SKILL.md (or your agent's skills folder).
name
saleor-commit
description
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).

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:

bash
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:

bash
python manage.py get_graphql_schema > saleor/graphql/schema.graphql
git add saleor/graphql/schema.graphql
Missing migrations (migrations-check)

Create the missing migration:

bash
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.

© saleor, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/saleor-commit of saleor/saleor.

Open the folder on GitHubat commit 782a751

Compare with similar skills

Saleor Commit Workflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Saleor Commit Workflow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Saleor Commit Workflow this skillsaleor/saleor23k—~575Automated safety check: PassBSD-3-Clause
Kedro Babysitkedro-org/kedro11k—~4kAutomated safety check: PassCustom licence
Adk Gitgoogle/adk-python22k—~1.3kAutomated safety check: PassApache-2.0
Update Dependenciesalorence/django-modern-rpc111—~1.3kAutomated safety check: PassMIT
Git HooksProrise-cool/Claude-Code-Multi-Agent306—~3.6kAutomated safety check: NotesNone
Tilelang Reviewtile-ai/tilelang-ascend403—~2.8kAutomated safety check: NotesMIT

Similar skills

  • Kedro Babysit

    kedro-org/kedro

    Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…

    11k GitHub stars~4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Adk Git

    google/adk-python

    Official

    Writes commit messages and pull request descriptions for the adk-python repository: Conventional Commits types and scopes, subject lines that say why a change was made, and the linked-issue and…

    22k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Update Dependencies

    alorence/django-modern-rpc

    Routine update of all project dependencies — uv itself, uv.lock (all groups), tool versions pinned in GitHub workflows and .pre-commit-config.yaml (uv, ruff, mypy...), and SHA-pinned GitHub Actions.

    111 GitHub stars~1.3k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Git Hooks

    Prorise-cool/Claude-Code-Multi-Agent

    Central authority on git hook implementations, modern best practices, and tooling for .NET/C, JavaScript/TypeScript, Python, and polyglot repositories.

    306 GitHub stars~3.6k tokensUpdated 24 days ago
    DevelopmentAuto-check: notes
  • Tilelang Review

    tile-ai/tilelang-ascend

    检查代码格式是否符合 CI 规则。自动检测并安装缺失工具(ruff、clang-format),先运行检查生成报告,使用醒目方式询问用户后,仅在用户同意时执行修复。工作流程:检测环境→自动安装缺失工具→运行检查→生成报告→醒目询问→用户确认→执行修复。使用此技能当:用户要求"格式检查"、"格式化代码"、"代码格式化"、"检查代码格式"、"代码…

    403 GitHub stars~2.8k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Python Nethsecurity

    NethServer/nethsecurity

    Write or modify Python scripts for NethSecurity packages. An agent skill from NethServer/nethsecurity.

    192 GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from saleor/saleor

All 8 skills in this repo
  • Benchmarks Django ORM filters in Saleor by generating bulk data, extracting the SQL and running EXPLAIN ANALYZE to check index usage.

    23k GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Generates and splits Django schema migrations for Saleor with manage.py makemigrations, enforcing one new model or one field change per migration file.

    23k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Rules for writing Django migrations in Saleor that avoid long table locks and stay compatible with zero-downtime rolling deploys.

    23k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Pytest Runner

    saleor/saleor

    Run pytest tests with automatic virtual environment activation. Use this skill whenever running tests, executing pytest, or when asked to "run tests", "test…

    23k GitHub stars~251 tokensUpdated yesterday
    Auto-check passed
  • Saleor Port Changes

    saleor/saleor

    Forward-ports or backports a single PR or branch onto the currently checked-out Saleor branch, handling GraphQL version markers and migration numbering along the way.

    23k GitHub stars~969 tokensUpdated yesterday
    Auto-check passed
  • Checklist for adding, changing, deprecating or removing Saleor GraphQL fields, mutations, enums and webhook event types so the change passes review first time.

    23k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Saleor Commit Workflow

What does Saleor Commit Workflow do?

Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check. The skill makes the agent commit changes in the Saleor codebase and recover from pre-commit hook failures on its own. It activates the project's virtual environment, reads `git status` and `git diff`, stages specific files instead of everything, writes a message describing what changed and why through a HEREDOC, and runs the commit.

When should I use Saleor Commit Workflow?

Saleor Commit Workflow fits situations like: committing changes in the Saleor repository; resolving ruff, mypy or schema hook failures during a commit; regenerating the GraphQL schema or missing migrations that block a commit.

How do I install Saleor Commit Workflow in Claude Code?

Run `npx skills add saleor/saleor --skill saleor-commit -a claude-code`. Or copy the skill folder (.claude/skills/saleor-commit in saleor/saleor) into .claude/skills/saleor-commit in your project. Claude Code loads it when a task matches its description.

How do I install Saleor Commit Workflow in Codex?

Run `npx skills add saleor/saleor --skill saleor-commit -a codex`. Or copy the skill folder (.claude/skills/saleor-commit in saleor/saleor) into .agents/skills/saleor-commit in your project. Codex loads it when a task matches its description.

Can I use Saleor Commit Workflow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add saleor/saleor --skill saleor-commit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/saleor-commit, .gemini/skills/saleor-commit, .github/skills/saleor-commit and .opencode/skills/saleor-commit in your project.

What does Saleor Commit Workflow need to run?

Going by SKILL.md and its folder, Saleor Commit Workflow needs the command-line tools its instructions call (git and python). Our summary lists: A Saleor checkout with a `.venv` virtual environment; Git with the project's pre-commit hooks installed.

Does Saleor Commit Workflow access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Saleor Commit Workflow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Saleor Commit Workflow use?

Saleor Commit Workflow is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Saleor Commit Workflow use?

About 575 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Saleor Commit Workflow?

Skills that share tags, products or a category with Saleor Commit Workflow: Kedro Babysit (kedro-org/kedro, 11k stars), Adk Git (google/adk-python, 22k stars), Update Dependencies (alorence/django-modern-rpc, 111 stars) and Git Hooks (Prorise-cool/Claude-Code-Multi-Agent, 306 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Saleor Commit Workflow?

saleor (a GitHub organization) maintains it in saleor/saleor, which has 23,428 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 9, 2026.

Source: saleor/saleor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.