Phy Test Data Factory
LeoYeAI/openclaw-master-skills
Schema-driven test data factory generator. An agent skill from LeoYeAI/openclaw-master-skills.
Benchmarks Django ORM filters in Saleor by generating bulk data, extracting the SQL and running EXPLAIN ANALYZE to check index usage.
$ npx skills add saleor/saleor --skill filter-benchmark -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install saleor/saleor filter-benchmark --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/filter-benchmark .claude/skills/filter-benchmark && rm -rf skills-srcUse ~/.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/
Install the "filter-benchmark" agent skill from https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmark into .claude/skills/filter-benchmark/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "filter-benchmark", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmarkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add saleor/saleor --skill filter-benchmark -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install saleor/saleor filter-benchmark --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/filter-benchmark .agents/skills/filter-benchmark && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "filter-benchmark" agent skill from https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmark into .agents/skills/filter-benchmark/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "filter-benchmark", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add saleor/saleor --skill filter-benchmark -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install saleor/saleor filter-benchmark --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/filter-benchmark .cursor/skills/filter-benchmark && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "filter-benchmark" agent skill from https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmark into .cursor/skills/filter-benchmark/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "filter-benchmark", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/saleor/saleor.git --path .claude/skills/filter-benchmark--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add saleor/saleor --skill filter-benchmark -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install saleor/saleor filter-benchmark --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/filter-benchmark .gemini/skills/filter-benchmark && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "filter-benchmark" agent skill from https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmark into .gemini/skills/filter-benchmark/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "filter-benchmark", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install saleor/saleor filter-benchmarkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add saleor/saleor --skill filter-benchmark -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/filter-benchmark .github/skills/filter-benchmark && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "filter-benchmark" agent skill from https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmark into .github/skills/filter-benchmark/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "filter-benchmark", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add saleor/saleor --skill filter-benchmark -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install saleor/saleor filter-benchmark --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/saleor/saleor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/filter-benchmark .opencode/skills/filter-benchmark && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "filter-benchmark" agent skill from https://github.com/saleor/saleor/tree/main/.claude/skills/filter-benchmark into .opencode/skills/filter-benchmark/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "filter-benchmark", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
filter-benchmarkBenchmarks Django ORM filters in Saleor by generating bulk data, extracting the SQL and running EXPLAIN ANALYZE to check index usage.
The skill is a six-step workflow for performance-testing filters in the Saleor GraphQL layer: identify the filter with its fields, joins and existing indexes, generate a bulk data script, populate through the Django shell to reach over 100k rows, extract the SQL the ORM produces, run EXPLAIN ANALYZE to spot sequential scans and missing indexes, and report findings with concrete fixes such as new indexes or query rewrites.
The data script uses bulk_create with ignore_conflicts, works in batches of 1000-5000 objects, varies field values so the planner sees a realistic distribution, spreads dates over a wide range, covers all enum values and creates minimal parent objects for required foreign keys. The filters being tested live in saleor/graphql app folders, and a helper script, analyze_query.py, is included.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 782a751. It shows what the files ask for, not the result of running them.
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.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonmakeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Django Filter Benchmark loads about 2.3k tokens when it runs. Until then it costs about 132 tokens; SKILL.md has 854 words of instructions outside code blocks.
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.
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.
The full file from saleor/saleor at commit 782a751, republished under its BSD-3-Clause licence (© saleor). 854 words, ~2,259 tokens.
.claude/skills/filter-benchmark/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Performance-test Django ORM filters by generating bulk data, extracting the SQL query, and running EXPLAIN ANALYZE to verify index usage and query efficiency.
When adding or modifying filters in the Saleor GraphQL layer, it's critical to verify they perform well on large datasets — a filter that looks correct on 10 rows can cause full table scans on 100k+. This skill automates the full benchmarking workflow:
Read the filter code to understand:
Meta.indexes)Exists)Look at the filter function source — it lives in saleor/graphql/<app>/filters.py. Understand the ORM query it builds (.filter(), Q(), Exists(), OuterRef(), etc.) because the test data must exercise all code paths.
Write a Python script that creates test data with enough variety to exercise the filter. The script should:
bulk_create with ignore_conflicts=True for maximum speedtimezone.now() and timedelta for date generationauto_now / auto_now_add fields via bulk_update after creation when neededThe script should be a function that creates ~1000 objects per call. The user will call it in a loop to reach 100k+.
Example structure:
import random
from datetime import timedelta
from decimal import Decimal
from django.utils import timezone
from saleor.payment.models import TransactionItem, TransactionEvent
from saleor.payment import TransactionEventType
def populate(batch_size=1000):
"""Create batch_size TransactionItems with varied events."""
now = timezone.now()
# Create TransactionItems
transactions = TransactionItem.objects.bulk_create(
[
TransactionItem(
currency="USD",
charged_value=Decimal("10.00"),
# Vary dates across 2 years
created_at=now - timedelta(days=random.randint(0, 730)),
)
for _ in range(batch_size)
]
)
# Override auto_now/auto_now_add fields with varied values via bulk_update
for t in transactions:
t.created_at = now - timedelta(days=random.randint(0, 730))
t.modified_at = now - timedelta(days=random.randint(0, 365))
TransactionItem.objects.bulk_update(transactions, ["created_at", "modified_at"])
# Create events for each transaction
event_types = [e.value for e in TransactionEventType]
events = []
for t in transactions:
num_events = random.randint(1, 4)
for _ in range(num_events):
events.append(
TransactionEvent(
transaction=t,
type=random.choice(event_types),
amount_value=Decimal("10.00"),
currency="USD",
created_at=now - timedelta(days=random.randint(0, 730)),
)
)
TransactionEvent.objects.bulk_create(events)
print(
f"Created {len(transactions)} transactions and {len(events)} events. "
f"Total: {TransactionItem.objects.count()} transactions, "
f"{TransactionEvent.objects.count()} events"
)Adapt this pattern to whatever model and filter is being tested. The key principle: the data must vary on exactly the fields the filter touches.
Run the population script in Django shell. Activate the venv first:
source .venv/bin/activate && python manage.py shellThen in the shell, run the function in a loop:
for i in range(100):
populate()This reaches 100k objects. Monitor the output to confirm counts are growing. If the database already has data from a previous run, check counts first and only add what's needed.
Get the actual SQL that the filter produces. There are two approaches — use whichever fits best:
Open a Django shell and call the filter function with representative input values, then print the query:
from saleor.payment.models import TransactionItem
from saleor.graphql.payment.filters import filter_where_created_at_range
qs = TransactionItem.objects.all()
filtered = filter_where_created_at_range(qs, None, {"gte": "2025-01-01T00:00:00Z", "lte": "2025-06-01T00:00:00Z"})
print(str(filtered.query))Add a breakpoint() right after the filter call in the filter function, run a test that hits it, then in the debugger:
print(str(qs.query))Use this approach when the filter input is complex (e.g., involves GraphQL variable resolution or multiple conditions).
.explain() directlyprint(qs.explain(analyze=True, verbose=True, buffers=True))This runs EXPLAIN ANALYZE directly from Django without needing psql. Useful for a quick check, but the data.sql + make explain approach gives JSON output which is easier to analyze.
Use the helper script at .claude/skills/filter-benchmark/analyze_query.py. It does everything in one call per queryset:
enable_seqscan = OFF to verify index availability/tmpRun in Django shell:
import sys; sys.path.insert(0, ".claude/skills/filter-benchmark")
from analyze_query import analyze, report
# Analyze each queryset — prints quick summary + warnings inline
analyze(filtered_qs, "created_at range")
analyze(another_qs, "events by type")
# Print a full markdown report with Dalibo links
report()Before analyzing, verify the querysets actually return rows. If EXPLAIN ANALYZE shows 0 rows, the filter input values don't match the generated data — adjust filter parameters (widen date range, use existing event types) and re-run.
The report() output includes a summary table and per-query details. Use it as the basis for the final report to the user, adding:
1. Dataset size — how many objects of each model, how field values are distributed
2. Recommendations — if there are warnings, suggest concrete fixes:
AddIndexConcurrently)After presenting the report with Dalibo links, ask the user if they want to clean up the test data. If yes, delete the objects in reverse dependency order (child models first, then parents) to avoid foreign key violations. Use .delete() with filtering to target only the bulk-created data — for example, filter by the date range or other markers used during generation. Print counts of deleted objects for confirmation.
© 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
SKILL.md and 1 other file in .claude/skills/filter-benchmark of saleor/saleor.
Open the folder on GitHubat commit 782a751
Django Filter Benchmark 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Django Filter Benchmark this skillsaleor/saleor | 23k | — | ~2.3k | Automated safety check: Pass | BSD-3-Clause | |
| Phy Test Data FactoryLeoYeAI/openclaw-master-skills | 2.2k | — | ~5.5k | Automated safety check: Pass | Apache-2.0 | |
| Dummy Datasetkillvxk/pm-skills-zh | 167 | — | ~595 | Automated safety check: Pass | MIT | |
| Kolokoloai/kolo | 525 | — | ~1.2k | Automated safety check: Pass | None | |
| Database OptimizerJeffallan/claude-skills | 12k | — | ~1.6k | Automated safety check: Pass | MIT | |
| SQL Optimizationgithub/awesome-copilot | 40k | 2 repos | ~2.3k | Automated safety check: Pass | MIT |
LeoYeAI/openclaw-master-skills
Schema-driven test data factory generator. An agent skill from LeoYeAI/openclaw-master-skills.
killvxk/pm-skills-zh
生成用于测试的逼真虚拟数据集,支持自定义列、约束条件及输出格式(CSV、JSON、SQL、Python 脚本)。适用于创建测试数据、构建模拟数据集,或为开发和演示生成示例数据。
koloai/kolo
Kolo is a text-based Python debugger that captures every executed function, return value, local variable, HTTP request, and SQL query into greppable trace files.
Jeffallan/claude-skills
Tunes PostgreSQL and MySQL performance by analyzing slow queries and execution plans, designing indexes, rewriting queries and adjusting configuration, one validated change at a time.
github/awesome-copilot
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server…
awslabs/agent-plugins
Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed…
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.
saleor/saleor
Generates and splits Django schema migrations for Saleor with manage.py makemigrations, enforcing one new model or one field change per migration file.
saleor/saleor
Rules for writing Django migrations in Saleor that avoid long table locks and stay compatible with zero-downtime rolling deploys.
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…
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.
saleor/saleor
Checklist for adding, changing, deprecating or removing Saleor GraphQL fields, mutations, enums and webhook event types so the change passes review first time.
Categories
Benchmarks Django ORM filters in Saleor by generating bulk data, extracting the SQL and running EXPLAIN ANALYZE to check index usage. The skill is a six-step workflow for performance-testing filters in the Saleor GraphQL layer: identify the filter with its fields, joins and existing indexes, generate a bulk data script, populate through the Django shell to reach over 100k rows, extract the SQL the ORM produces, run EXPLAIN ANALYZE to spot sequential scans and missing indexes, and report findings with concrete fixes such as new indexes or query rewrites.
Django Filter Benchmark fits situations like: testing a new or changed filter on a large dataset; checking whether a filter makes use of an index; generating bulk test data for performance testing; running EXPLAIN ANALYZE on a queryset filter.
Run `npx skills add saleor/saleor --skill filter-benchmark -a claude-code`. Or copy the skill folder (.claude/skills/filter-benchmark in saleor/saleor) into .claude/skills/filter-benchmark in your project. Claude Code loads it when a task matches its description.
Run `npx skills add saleor/saleor --skill filter-benchmark -a codex`. Or copy the skill folder (.claude/skills/filter-benchmark in saleor/saleor) into .agents/skills/filter-benchmark in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add saleor/saleor --skill filter-benchmark -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/filter-benchmark, .gemini/skills/filter-benchmark, .github/skills/filter-benchmark and .opencode/skills/filter-benchmark in your project.
Going by SKILL.md and its folder, Django Filter Benchmark needs Python for the scripts in its folder and the command-line tools its instructions call (python and make). Our summary lists: A working Saleor checkout with a database that can hold generated test data.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Django Filter Benchmark 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.
About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Django Filter Benchmark: Phy Test Data Factory (LeoYeAI/openclaw-master-skills, 2.2k stars), Dummy Dataset (killvxk/pm-skills-zh, 167 stars), Kolo (koloai/kolo, 525 stars) and Database Optimizer (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.