Agent skill

Django Forms Validation TDD

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

Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects.

MITAuto-check passedBackend & APIs

Install Django Forms Validation TDD

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill django-forms-validation-tdd -a claude-code

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

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins django-forms-validation-tdd --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-forms-validation-tdd .claude/skills/django-forms-validation-tdd && 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-forms-validation-tdd
GitHub stars
1.2k
Token cost
~845 tokens
SKILL.md length
393 words
Files
4 (incl. references)
Skills in repo
686
Repo updated
First seen
Licence
MIT

At a glance

Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects.

  • Works in 4 steps: Classify the validation rule. → Write the lowest useful failing test. → Prove invalid data is not persisted. → …
  • Refactoring Django forms
  • SKILL.md covers Source Traceability, Workflow, Decision Rules and Guardrails, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Django Forms Validation TDD is an agent skill from hashgraph-online/awesome-codex-plugins. Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects. Use when adding or refactoring Django forms, surfacing validation errors, deciding model-vs-form-vs-view responsibility, or preventing invalid input from being saved.

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

It sits in Backend & APIs, covering Backend development, Forms and validation and Test-driven development. It works with Django. 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

  • Refactoring Django forms
  • Surfacing validation errors
  • Deciding model-vs-form-vs-view responsibility
  • Preventing invalid input from being saved

Example prompts

  • “/django-forms-validation-tdd”

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. Classify the validation rule.
  2. Write the lowest useful failing test.
  3. Prove invalid data is not persisted.
  4. Refactor toward the right boundary.

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 Forms Validation TDD loads about 845 tokens when it runs, and up to ~1.4k if it reads all its reference files. Until then it costs about 82 tokens; SKILL.md has 393 words of instructions outside code blocks.

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

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). 393 words, ~845 tokens.

Download SKILL.mdSave it as .claude/skills/django-forms-validation-tdd/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
django-forms-validation-tdd
description
Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects. Use when adding or refactoring Django forms, surfacing validation errors, deciding model-vs-form-vs-view responsibility, or preventing invalid input from being saved.
compatibility
Codex, Claude Code, and other Agent Skills-compatible clients.
license
MIT
metadata.version
0.1.0
metadata.displayName
Django Forms Validation TDD
metadata.category
Django
metadata.tags
django,tdd,forms,validation,testing

Django Forms Validation TDD

Use this skill to place validation tests at the layer that owns the rule, then prove the user-facing error path still works. Django validation often crosses model, form, view, and template boundaries; keep those responsibilities explicit.

Source Traceability

Primary source: Harry Percival, Test-Driven Development with Python, 3rd ed. Guidance is transformed and paraphrased from chapters 14-16 and Appendix A, especially model constraints, form validation, ModelForm tradeoffs, view-level error surfacing, and duplicate item handling.

Workflow

  1. Classify the validation rule.

    • Data integrity belongs near the model or database constraint.
    • User input shape and presentation belong in a form.
    • Request branching and redirects belong in the view.
    • Error rendering belongs in the template.
  2. Write the lowest useful failing test.

    • Model constraint or validation test for persistence rules.
    • Form test for field errors, cleaning, and save behavior.
    • View test for HTTP status, redirect, template, and invalid-save prevention.
    • Functional test only for a critical user journey.
  3. Prove invalid data is not persisted.

    • Check both the error response and database state when the risk is saving bad input.
    • For uniqueness, cover duplicate behavior at the level that actually enforces it.
  4. Refactor toward the right boundary.

    • Move validation from views to forms when the view is parsing form details.
    • Move integrity rules to constraints when the database must protect them.
    • Keep presentation logic in templates unless Python code clearly owns it.

Read validation-patterns.md for layer choices and common Django edge cases.

Show full SKILL.md (151 more words)Show less

Decision Rules

  • If the rule must hold outside HTTP, test it below the view.
  • If save() can bypass validation, test the path that actually runs validation or enforce the rule with constraints.
  • If a ModelForm couples the UI to unwanted model details, use a plain form or customize fields deliberately.
  • If a refactor changes field names, IDs, or templates, keep one user-facing check for the rendered contract.
  • If duplicate handling depends on the database, include the database-level behavior in coverage.

Guardrails

  • Do not rely only on Selenium for validation cases.
  • Do not test every HTML string when form errors can be inspected directly.
  • Do not assume Django model validation runs automatically on every save.
  • Do not swallow IntegrityError without a user-facing path and a test.

Verification

Before finishing, record:

  • Rule ownership by layer.
  • Tests added or updated at model/form/view/browser level.
  • Invalid-save prevention evidence where relevant.
  • Focused Django test command and result.

© 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 3 other files (references) in plugins/LVTD-LLC/skills/skills/django-forms-validation-tdd of hashgraph-online/awesome-codex-plugins.

  • SKILL.md
  • agents/openai.yaml
  • evals/evals.json
  • references/validation-patterns.md

Open the folder on GitHubat commit 78497e5

Compare with similar skills

Django Forms Validation TDD 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 Forms Validation TDD compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Django Forms Validation TDD this skillhashgraph-online/awesome-codex-plugins1.2k—~845Automated safety check: PassMIT
Django TDDaffaan-m/ECC275k7 repos~5.3kAutomated safety check: PassMIT
Django TDDaffaan-m/ECC275k3 repos~4.9kAutomated safety check: PassMIT
Django TDDxu-xiang/everything-claude-code-zh2k—~4.7kAutomated safety check: PassMIT
Run Testsnetboxlabs/netbox-branching155—~1.2kAutomated safety check: PassCustom licence
Backend Dev Guidelineslitefuse/litefuse1001 repos~5.8kAutomated safety check: PassCustom licence

Similar skills

  • Django TDD

    affaan-m/ECC

    Django testing strategies with pytest-django, TDD methodology, factoryboy, mocking, coverage, and testing Django REST Framework APIs.

    275k GitHub starsUsed in 7 repos~5.3k tokens
    Testing & QAAuto-check passed
  • Django TDD

    affaan-m/ECC

    Django 测试策略,包括 pytest-django、TDD 方法、factoryboy、模拟、覆盖率以及测试 Django REST Framework API。

    275k GitHub starsUsed in 3 repos~4.9k tokens
    Testing & QAAuto-check passed
  • Django TDD

    xu-xiang/everything-claude-code-zh

    使用 pytest-django 进行 Django 测试的策略、TDD 方法论、factoryboy、Mock 模拟、测试覆盖率以及测试 Django REST Framework API。

    2k GitHub stars~4.7k tokensUpdated 7 mo ago
    Testing & QAAuto-check passed
  • Run Tests

    netboxlabs/netbox-branching

    Run the netboxbranching plugin's Django test suite against a local NetBox checkout.

    155 GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Backend Dev Guidelines

    litefuse/litefuse

    Comprehensive backend development guide for Litefuse's Next.js 14/tRPC/Express/TypeScript monorepo.

    100 GitHub starsUsed in 1 repo~5.8k tokens
    Backend & APIsAuto-check passed
  • Configure Ecc

    xu-xiang/everything-claude-code-zh

    Everything Claude Code 的交互式安装程序 — 引导用户选择并安装技能和规则到用户级或项目级目录,验证路径,并可选择优化已安装文件。

    2k GitHub starsUsed in 1 repo~2.1k tokens
    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 today
    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 today
    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 today
    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 today
    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 today
    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 today
    Auto-check passed

Works with

Questions about Django Forms Validation TDD

What does Django Forms Validation TDD do?

Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects. Django Forms Validation TDD is an agent skill from hashgraph-online/awesome-codex-plugins. Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects.

When should I use Django Forms Validation TDD?

Django Forms Validation TDD fits situations like: refactoring Django forms; surfacing validation errors; deciding model-vs-form-vs-view responsibility; preventing invalid input from being saved.

How do I install Django Forms Validation TDD in Claude Code?

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

How do I install Django Forms Validation TDD in Codex?

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

Can I use Django Forms Validation TDD 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-forms-validation-tdd -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-forms-validation-tdd, .gemini/skills/django-forms-validation-tdd, .github/skills/django-forms-validation-tdd and .opencode/skills/django-forms-validation-tdd in your project.

What does Django Forms Validation TDD need to run?

SKILL.md names no scripts, command-line tools or credentials: Django Forms Validation TDD 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 Forms Validation TDD 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 Forms Validation TDD 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 Forms Validation TDD use?

Django Forms Validation TDD 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 Forms Validation TDD use?

About 845 tokens (SKILL.md is roughly 3.4k 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 576 tokens, read only when the agent opens those files.

What are the alternatives to Django Forms Validation TDD?

Skills that share tags, products or a category with Django Forms Validation TDD: Django TDD (affaan-m/ECC, 275k stars), Django TDD (affaan-m/ECC, 275k stars), Django TDD (xu-xiang/everything-claude-code-zh, 2k stars) and Run Tests (netboxlabs/netbox-branching, 155 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Django Forms Validation TDD?

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.