Agent skill

Django DB Side Computation

by hashgraph-online in hashgraph-online/awesome-codex-plugins

Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window…

MITAuto-check passedBackend & APIs

Install Django DB Side Computation

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill django-db-side-computation -a claude-code

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

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins django-db-side-computation --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/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/LVTD-LLC/skills/skills/django-db-side-computation .claude/skills/django-db-side-computation && 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
django-db-side-computation
GitHub stars
1.2k
Token cost
~650 tokens
SKILL.md length
244 words
Files
2 (incl. references)
Skills in repo
686
Repo updated
First seen
Licence
MIT

At a glance

Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window…

  • Works in 4 steps: Identify the Python computation. → Pick the SQL expression level. → Validate query shape. → …
  • Django code counts
  • SKILL.md covers Workflow, Safety Notes and Verification
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Django DB Side Computation is an agent skill from hashgraph-online/awesome-codex-plugins. Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window expressions, dbdefault, and GeneratedField. Use when Django code counts, sums, filters, flags, ranks, or derives values in Python after fetching rows.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/aggregation-patterns.md`). Compatibility notes: Codex, Claude Code, and other Agent Skills-compatible clients.

It sits in Backend & APIs, covering Backend development. It works with Django, Python and SQL. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is MIT.

When your agent uses it

  • Django code counts
  • Derives values in Python after fetching rows

Example prompts

  • “/django-db-side-computation”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients.

Workflow steps

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

  1. Identify the Python computation.
  2. Pick the SQL expression level.
  3. Validate query shape.
  4. Decide whether the result should be stored.

What it can do on your machine

Read from SKILL.md and the folder at commit 78497e5. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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.

  • Compatibility

    Codex, Claude Code, and other Agent Skills-compatible clients.

    From compatibility in the SKILL.md frontmatter.

Context cost

Django DB Side Computation loads about 650 tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 244 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~650
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.3k

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 hashgraph-online/awesome-codex-plugins at commit 78497e5, republished under its MIT licence (© hashgraph-online). 244 words, ~650 tokens.

Download SKILL.mdSave it as .claude/skills/django-db-side-computation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
django-db-side-computation
description
Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window expressions, db_default, and GeneratedField. Use when Django code counts, sums, filters, flags, ranks, or derives values in Python after fetching rows.
compatibility
Codex, Claude Code, and other Agent Skills-compatible clients.
license
MIT
metadata.version
0.1.0
metadata.displayName
Django DB-Side Computation
metadata.category
Django
metadata.tags
django,database,aggregation,orm,analytics

Django DB-Side Computation

Use this skill when Django fetches rows into Python to compute values the database can compute more efficiently or more consistently.

Workflow

  1. Identify the Python computation.

    • Counts, sums, min/max, booleans, latest related rows, rankings, denormalized totals, or per-row derived fields.
    • Confirm whether the computed value must be exact, current, and transactionally consistent.
  2. Pick the SQL expression level.

    • filter(), exclude(), and F() for simple comparisons and updates.
    • annotate() and aggregates for per-object counts and totals.
    • Filtered aggregates for conditional counts and sums.
    • Exists() for yes/no related-row checks.
    • Subquery() with OuterRef() for latest or scalar related values.
    • Window() for ranks and running calculations.
    • GeneratedField for deterministic same-row computed columns when the database supports it.
  3. Validate query shape.

    • Inspect generated SQL or QuerySet.explain().
    • Clear unintended ordering before grouping when needed.
    • Confirm indexes support joins, filters, and ordering.
  4. Decide whether the result should be stored.

    • Use annotations for request-time values.
    • Use generated fields for same-row deterministic values.
    • Use materialized views or denormalized tables when cross-row aggregate queries are too expensive and can be stale.

See aggregation-patterns.md for Django expression examples.

Safety Notes

  • Database computation is not always faster; complex queries can overload the database or block OLTP work.
  • Generated fields have database-specific restrictions and PostgreSQL supports only persisted generated columns.
  • Subqueries and annotations can duplicate work if composed carelessly. Read the plan.

Verification

Compare correctness against the old Python calculation on representative data, then measure SQL time and total response time.

© hashgraph-online, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/LVTD-LLC/skills/skills/django-db-side-computation of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • references/aggregation-patterns.md

Open the folder on GitHubat commit 78497e5

Compare with similar skills

Django DB Side Computation 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.

Django DB Side Computation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Django DB Side Computation this skillhashgraph-online/awesome-codex-plugins1.2k—~650Automated safety check: PassMIT
Fastapiericrisco/rsc-harness167—~5kAutomated safety check: NotesMIT
Django Access Reviewgetsentry/skills1k3 repos~2.6kAutomated safety check: NotesApache-2.0
Silk Profilerbaserow/baserow6.1k—~2.9kAutomated safety check: PassCustom licence
Arch Wikiahmedemad3/arch-wiki249—~5.1kAutomated safety check: PassNone
Django Run Locallyfossasia/eventyay1.7k—~411Automated safety check: PassApache-2.0

Similar skills

  • Fastapi

    ericrisco/rsc-harness

    A skill your agent uses when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0…

    167 GitHub stars~5k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Django Access Review

    getsentry/skills

    Official

    Django access control and IDOR security review. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 3 repos~2.6k tokens
    Backend & APIsAuto-check: notes
  • Silk Profiler

    baserow/baserow

    Investigate backend performance using Django Silk profiling data.

    6.1k GitHub stars~2.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Arch Wiki

    ahmedemad3/arch-wiki

    Scans any project codebase for new/changed modules, endpoints, middleware, infrastructure, Docker topologies, SQL queries, or permissions and updates docs/architecture/architecture.json.

    249 GitHub stars~5.1k tokensUpdated 19 days ago
    Backend & APIsAuto-check passed
  • Django Run Locally

    fossasia/eventyay

    Steps for initiating the Django development server without Docker

    1.7k GitHub stars~411 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Fix Slow Endpoint

    vpcarlos/profyle

    Diagnose and fix a slow endpoint or request in a Python web app (FastAPI, Flask, Django, Tornado, any ASGI/WSGI framework) using real Profyle/VizTracer traces, then prove the fix by replaying the…

    123 GitHub stars~2.1k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 686 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.2k GitHub stars~922 tokensUpdated yesterday
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.2k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.2k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.2k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.2k GitHub stars~618 tokensUpdated yesterday
    Auto-check passed
  • Manuscript Engagement Analytics

    hashgraph-online/awesome-codex-plugins

    Analyze nonfiction manuscripts for reader engagement signals, including heading-level word counts, slow starts, long slogs, weak takeaway titles, value pacing, beta-reader comment dropoff, and…

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

Works with

Categories

Questions about Django DB Side Computation

What does Django DB Side Computation do?

Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window…. Django DB Side Computation is an agent skill from hashgraph-online/awesome-codex-plugins. Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window expressions, dbdefault, and GeneratedField.

When should I use Django DB Side Computation?

Django DB Side Computation fits situations like: django code counts; derives values in Python after fetching rows.

How do I install Django DB Side Computation in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill django-db-side-computation -a claude-code`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/django-db-side-computation in hashgraph-online/awesome-codex-plugins) into .claude/skills/django-db-side-computation in your project. Claude Code loads it when a task matches its description.

How do I install Django DB Side Computation in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill django-db-side-computation -a codex`. Or copy the skill folder (plugins/LVTD-LLC/skills/skills/django-db-side-computation in hashgraph-online/awesome-codex-plugins) into .agents/skills/django-db-side-computation in your project. Codex loads it when a task matches its description.

Can I use Django DB Side Computation 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 hashgraph-online/awesome-codex-plugins --skill django-db-side-computation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/django-db-side-computation, .gemini/skills/django-db-side-computation, .github/skills/django-db-side-computation and .opencode/skills/django-db-side-computation in your project.

What does Django DB Side Computation need to run?

SKILL.md names no scripts, command-line tools or credentials: Django DB Side Computation is instructions for the agent only. Our summary lists: Python 3. Compatibility (from SKILL.md): Codex, Claude Code, and other Agent Skills-compatible clients..

Does Django DB Side Computation access the network?

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.

Is Django DB Side Computation 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 Django DB Side Computation use?

Django DB Side Computation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Django DB Side Computation use?

About 650 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 629 tokens, read only when the agent opens those files.

What are the alternatives to Django DB Side Computation?

Skills that share tags, products or a category with Django DB Side Computation: Fastapi (ericrisco/rsc-harness, 167 stars), Django Access Review (getsentry/skills, 1k stars), Silk Profiler (baserow/baserow, 6.1k stars) and Arch Wiki (ahmedemad3/arch-wiki, 249 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Django DB Side Computation?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,242 GitHub stars. The repository holds 686 skills in this directory. The repository was last updated on October 8, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.