write-python-django
Writes or updates Django projects, models, forms, views, and migrations.
Skill by cyberphor
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cyberphor-write-python-django
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/write-python-django
What's inside
- Skill name
write-python-django- Description
- Writes or updates Django projects, models, forms, views, and migrations. Use when asked to create or update Python code that depends on Django framework behavior.
- License
- MIT
- Instructions
- 40 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- example-nostromo-memory-api.md · reference/
SKILL.md (first lines)
# How to Write a Django App in Python Read and apply `write-python-code` from the active skill catalog or [sibling skill](../write-python-code/SKILL.md) for Python style and tooling. Reuse it if already loaded. Inspect the installed Django version, settings, app configuration, relevant models, URL patterns, views, templates, migrations, and tests before editing. Use documentation for that version. Preserve the project's app boundaries, database backend, authentication model, and deployment configuration. ## Application Behavior Use Django's ORM, forms, authentication, permissions, and URL reversing rather than recreating them. Keep queries scoped to the requesting user's permitted objects. Preserve CSRF protection and template escaping. Prefer existing view conventions instead of introducing a competing API framework. Use forms or ModelForms to validate submitted data, then consume `cleaned_data` after `is_valid()`. Put field validation in `clean_<field>()` and cross-field validation in `clean()`, preserving superclass validation when overriding it. Surface validation errors through the form rather than converting them into server errors. Do not assume `Model.save()` calls `full_clean()`. Validate at the appropriate application boundary and use database constraints for invariants that must survive concurrent writes. Keep ORM queries explicit, avoid accidental repeated evaluation, and use `select_related()` or `prefetch_related()` when the changed path would otherwise issue repeated related-object queries. ## Transactions and Migrations Use `transaction.atomic()` when related writes must succeed together. Catch database errors outside the affected atomic block so rollback occurs before further queries. Schedule side effects that require committed data with `transaction.on_commit()`. Account for the actual backend when relying on locking or transactional behavior. Create and inspect migrations for model changes, preserving existing migration history and dependencies. Use historical models from the migration app registry in data migrations. Check reversibility and existing-row handling before adding constraints or required fields. Use inspection commands such as `showmigrations`, `migrate --plan`, or `sqlmigrate` when appropriate. Do not apply migrations or mutate schema merely to inspect a project. Apply and test migrations only against an authorized database or isolated test database. ## Verification Use the project's settings and runner. Typical checks are `uv run python manage.py check`, `uv run python manage.py makemigrations --check --dry-run`, and targeted Django tests. Confirm the test database is isolated before running database tests. Test the changed request, validation failure, permission boundary, or database behavior when warranted. Use Django's test client and database test classes rather than a live deployment. Choose `TransactionTestCase` when the test must observe real transaction boundaries. Report completed checks and database or environment limitations. ## Project Example Read the [Nostromo memory API example](reference/example-nostromo-memory-api.md) when working on a Django Ninja API with app-level routers, typed schemas, related records, or constrained upserts. It adapts patterns from Kaiju and Squidfall without requiring their architecture for other Django projects. ## Official References * [Django documentation](https://docs.djangoproject.com/) for the project's installed version. * [Form validation](https://docs.djangoproject.com/en/6.0/ref/forms/validation/) and [model instance validation](https://docs.djangoproject.com/en/6.0/ref/models/instances/#validating-objects) for validation boundaries. * [Transactions](https://docs.djangoproject.com/en/6.0/topics/db/transactions/) and [migrations](https://docs.djangoproject.com/en/6.0/topics/migrations/) for database changes. * [Management commands](https://docs.djangoproject.com/en/6.0/ref/django-admin/) and [testing](https://docs.djangoproject.com/en/6.0/topics/testing/overview/) for verification.
From cyberphor/skills, MIT.
More from cyberphor/skills
- 0.565score
write-text
cyberphor
Writes or updates text using ASD-STE100 Simplified Technical English, Issue 9.
SkillAFreshness: AClaude Code +9 - 0.565score
write-python-code
cyberphor
Writes or updates Python source, tests, and code examples in the user's concise, explicit style.
SkillAFreshness: AClaude Code +9 - 0.565score
write-vex-statement
cyberphor
Writes or updates Vulnerability Exploitability eXchange (VEX) statements for exact software artifacts and vulnerabilities.
SkillAFreshness: AClaude Code +9 - 0.565score
fix-github-workflow
cyberphor
Reads GitHub Actions workflow evidence and updates the affected repository with an approved fix.
SkillAFreshness: AClaude Code +9 - 0.565score
write-github-actions-workflow
cyberphor
Writes or updates GitHub Actions workflows and reusable actions.
SkillAFreshness: AClaude Code +9 - 0.565score
write-go-code
cyberphor
Writes or updates Go source, tests, and code examples in the user's preferred style.
SkillAFreshness: AClaude Code +9 - 0.565score
fix-uds-core-k8s-workload
cyberphor
Troubleshoots Kubernetes workloads that integrate with UDS Core.
SkillAFreshness: AClaude Code +9 - 0.565score
write-docker-compose
cyberphor
Writes or updates Docker Compose service configurations.
SkillAFreshness: AClaude Code +9 - 0.565score
write-dockerfile
cyberphor
Writes or updates Dockerfiles and their build contexts.
SkillAFreshness: AClaude Code +9 - 0.565score
write-go-bubble-tea
cyberphor
Writes or updates Go terminal interfaces using Bubble Tea.
SkillAFreshness: AClaude Code +9 - 0.565score
write-makefile
cyberphor
Writes or updates Makefiles in the preferred style.
SkillAFreshness: AClaude Code +9 - 0.564score
write-agent-skill
cyberphor
Writes or updates agent skills.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 17, 2026 (12 days ago)
- Last release
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cyberphor/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cyberphor
- 0.565score
write-docker-compose
cyberphor
Writes or updates Docker Compose service configurations.
SkillAFreshness: AClaude Code +9 - 0.565score
write-dockerfile
cyberphor
Writes or updates Dockerfiles and their build contexts.
SkillAFreshness: AClaude Code +9 - 0.565score
write-go-bubble-tea
cyberphor
Writes or updates Go terminal interfaces using Bubble Tea.
SkillAFreshness: AClaude Code +9 - 0.565score
write-makefile
cyberphor
Writes or updates Makefiles in the preferred style.
SkillAFreshness: AClaude Code +9 - 0.565score
write-python-code
cyberphor
Writes or updates Python source, tests, and code examples in the user's concise, explicit style.
SkillAFreshness: AClaude Code +9 - 0.565score
write-vex-statement
cyberphor
Writes or updates Vulnerability Exploitability eXchange (VEX) statements for exact software artifacts and vulnerabilities.
SkillAFreshness: AClaude Code +9
Cite this page
write-python-django skill. Agent Mart. https://agentmart.dev/skills/cyberphor-write-python-django (last updated 2026-10-24)