Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

django-test-data

Skill by hashgraph-online

Guides an AI assistant to make Django test data and test structure faster and clearer. It suits developers whose Django suites build too much data, rely on slow fixtures, or overuse TransactionTestCase while keeping coverage.

  • Score 69
  • 1.6k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install django-test-data

Built from the published package, never by AI.

git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins /tmp/awesome-codex-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-codex-plugins/plugins/LVTD-LLC/skills/skills/django-test-data ~/.claude/skills/django-test-data

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install django-test-data in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Django Test Data is an agent skill that helps refactor Django test suites for speed without losing coverage. It walks through a workflow: map the behavior under test, pick the fastest base class (SimpleTestCase, TestCase, TransactionTestCase or LiveServerTestCase), remove broad fixture data, and build only the data each test needs. It also covers factories, sharing class-level data with setUpTestData, and optimizing database access with select_related, prefetch_related or bulk_create.

The skill includes decision rules, such as using SimpleTestCase when no database is needed and replacing hard-to-read fixture files with factories. It lists common mistakes, including testing form validation only through rendered HTML and using TransactionTestCase as the default. A verification checklist covers keeping old behavior covered and checking that tests pass individually and within their module. It is aimed at developers maintaining Django test suites. The source says it works with Codex, Claude Code and other Agent Skills-compatible clients.

Written from the project's SKILL.md and checked against it.

What it can do

  • Choose a test base classPicks the fastest Django test base class for each test, from SimpleTestCase to LiveServerTestCase.
  • Trim fixture dataRemoves broad fixture files and always-on base classes, building only the data each test needs.
  • Use factoriesSuggests small factory functions, or Factory Boy or Model Bakery when relationships become repetitive.
  • Share setup with setUpTestDataMoves database objects reused across methods into setUpTestData and warns against mutating shared state.
  • Optimize queriesApplies select_related, prefetch_related or bulk_create in setup, and asserts query counts on hot paths.
  • Split unit and integration testsKeeps a few integration tests for wiring and moves detailed cases to unit tests at clean boundaries.

Try asking

  • Refactor my slow Django test setup using setUpTestData and factories.
  • Check which of my Django tests can use SimpleTestCase instead of TestCase.
  • Replace the fixture files in my Django test suite with factory functions.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/LVTD-LLC/skills/skills/django-test-data/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to django-test-data

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

django-test-data: common questions

When should I use TransactionTestCase in Django?

The skill says to use TransactionTestCase only for committed transaction behavior. It advises first checking whether captureOnCommitCallbacks() or an inner atomic() is enough.

Does this skill change Django tests automatically?

The source describes a refactoring workflow and decision rules for the assistant to follow. It does not state that it runs or edits tests by itself.

Should I use reset_sequences=True to fix ID assertions?

No. The skill says to fix tests that depend on hard-coded auto-increment IDs rather than enabling reset_sequences=True.

How do I install django-test-data?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is django-test-data free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is django-test-data safe to use?

It scores 69 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to django-test-data?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

django-test-data Install

Add to stack

Loading.