python-django

python-django is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 46 tokens per session (1,978 once invoked), scanned A, original, MIT.

A coding guide for Python and Django development in Saleor. Django is a Python web framework; the guide covers database queries, event signals, background Celery tasks, schema changes, command-line tools, type hints, and asynchronous views.

In plain words
What is it for?
Use it to query products and orders, react to events, run delayed jobs, create migrations, write management commands, and build typed Django code.
Why use it?
It provides Saleor-oriented patterns for common backend work, reducing mistakes when changing data access, background processing, or database structure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the saleor-commerce plugin — 21 skills, 1 agent shipped together

Good fit Use it to query products and orders, react to events, run delayed jobs, create migrations, write management commands, and build typed Django code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/python-django
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OrcaQubits/agentic-commerce-skills-plugins --skill python-django
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install saleor-commerce, the plugin that ships this one along with the rest of its 21 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-django

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/python-django/github.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/python-django)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/python-django"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/python-django/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-django

Your own site · 80×15
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/python-django"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/python-django.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.01978
Opus 5 $0.00023 $0.00989
Sonnet 5 $0.00009 $0.00396
Haiku 4.5 $0.00005 $0.00198

Measured 2d ago against content hash 5a0e6bccb21e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, from the pricing page.

Security

Grade A, and why

python-django scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

saleor-commerce/skills/python-django/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python & Django for Saleor

Before writing code

Fetch live docs:

  1. Web-search site:docs.djangoproject.com topics models querysets for current Django ORM documentation
  2. Web-search site:docs.djangoproject.com topics signals for Django signals reference
  3. Web-search site:docs.celeryq.dev userguide tasks for Celery task patterns and configuration
  4. Web-search site:docs.saleor.io developer for Saleor-specific Django conventions
  5. Fetch https://docs.python.org/3/library/typing.html for Python type hints reference

Django ORM Patterns for Saleor

QuerySet Operations

Operation Method Example Use
Filter .filter(**kwargs) Filter products by type
Exclude .exclude(**kwargs) Exclude draft orders
Annotate .annotate(expr) Add computed fields (totals, counts)
Aggregate .aggregate(expr) Compute sum, avg across queryset
Select related .select_related("fk") Join foreign keys (avoid N+1)
Prefetch related .prefetch_related("m2m") Batch-load many-to-many (avoid N+1)
Values .values("field") Return dictionaries instead of objects
Order by .order_by("field") Sort results

F and Q Objects

Object Purpose Example Use
F("field") Reference model field in expressions Update stock: F("quantity") - 1
Q(condition) Complex lookups with OR/AND/NOT `Q(status="active")
  • Use F() for atomic field updates without race conditions
  • Combine Q() objects with | (OR), & (AND), ~ (NOT) for complex filters

Model Relationships in Saleor

Relationship Field Type Example
One-to-Many ForeignKey Order -> User, OrderLine -> Order
Many-to-Many ManyToManyField Product -> Category (via ProductCategory)
One-to-One OneToOneField User -> UserProfile
Generic GenericForeignKey Attribute values on multiple entity types

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 178 lines · 46 tokens per session scan A 5a0e6bccb21e

Subscribe to this mod's changes

python-django is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 1,978 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

Other skills, from other repositories

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

azure-appconfiguration-py

Centralized configuration management with feature flags and dynamic settings.

benjaminasterA/antigravity-awesome-skills · 0 tokens

fastapi-app

Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…

ccplugins/awesome-claude-code-plugins · 103 tokens

django-pro

Master Django 5.x with async views, DRF, Celery, and Django Channels. Build scalable web applications with proper architecture, testing, and deployment. Use PROACTIVELY for Django development, ORM optimization, or complex Django patterns.

rmyndharis/antigravity-skills · 52 tokens

fastapi-itechmeat

FastAPI Python framework. Covers REST APIs, validation, dependencies, security. Use when building Python web APIs with FastAPI, configuring Pydantic models, implementing dependency injection, or setting up OAuth2/JWT authentication. Keywords: FastAPI, Pydantic, async, OAuth2, JWT, REST API.

Kilo-Org/kilo-marketplace · 70 tokens