7 Copy-Paste LM Studio Bionic Skills for Django and Python Developers
These seven SKILL.md templates give LM Studio Bionic repeatable instructions for Python work. Each template defines what to read, what to produce, and how to verify the result. Start with one skill and a small repository task so you can see exactly what the agent does.
How to create and use a Bionic skill
- Create a separate skill folder for each template. Save the code block as
SKILL.mdinside the folder. - Install the skill through Bionic’s skill workflow or ask Bionic to create it from the supplied template. Check that the installed file contains the front matter and instructions.
- Open the target project and type
@to explicitly reference the skill. Give it one file, endpoint or task to start with. - Review the first result against the expected output below. Look at the diff or test command instead of accepting a summary on its own.
See the Bionic skills documentation for installation and explicit invocation. Skills can also be selected automatically when Bionic considers them relevant.
1. pytest boundary cases
Add focused pytest coverage for behavior already present in a Python project.
---
name: pytest-boundary-cases
description: Add focused pytest coverage for behavior already present in a Python project.
---
Read the implementation and nearest tests. List the observed contract and one missing boundary case. Add the smallest regression test using existing fixtures. Run just the affected test module and report the command, result, and files changed.2. django migration review
Review a Django migration for rollout and data consistency risks.
---
name: django-migration-review
description: Review a Django migration for rollout and data consistency risks.
---
Read the migration and dependencies. Identify schema changes, backfills, locks, and reverse behavior. Check forwards and backwards compatibility during a rolling deploy. Output a review with file locations and a staging verification plan. Leave migrations and databases untouched.3. drf endpoint docs
Document a Django REST Framework endpoint from source code.
---
name: drf-endpoint-docs
description: Document a Django REST Framework endpoint from source code.
---
Read URL patterns, views, serializers, authentication, permissions, and tests. Document method, URL, request shape, success response, and demonstrated failure codes. Label unknown behavior as unverified. Use example identifiers and no real credentials.4. celery task review
Review retries and idempotency for a Celery task.
---
name: celery-task-review
description: Review retries and idempotency for a Celery task.
---
Trace task inputs, external calls and database writes. Identify what happens if a worker retries after an external side effect. Record duplicate-delivery cases and suggest one regression test. Do not run a queue or dispatch work.5. django query review
Review a Django list view for avoidable database queries.
---
name: django-query-review
description: Review a Django list view for avoidable database queries.
---
Trace serializer field access and queryset evaluation. Identify likely N+1 paths and the exact relationships involved. Suggest a scoped select_related or prefetch_related change only where warranted. Describe a query-count check that verifies the improvement.6. python pr summary
Write a pull request summary grounded in the current diff.
---
name: python-pr-summary
description: Write a pull request summary grounded in the current diff.
---
Read the current diff and affected tests. Summarize user-facing behavior, implementation changes, and verification. Include commands actually run and separate checks still pending. Return the text without creating a pull request.7. django repro test
Turn a reproducible Django application bug into one focused test.
---
name: django-repro-test
description: Turn a reproducible Django application bug into one focused test.
---
Read the bug report and relevant existing test style. Identify the smallest input that demonstrates the reported behavior. Add a test with existing fixtures, run it, and report whether it fails for the expected reason. Keep production code unchanged.Try the templates on a real Django task
| Skill | Example request | Check the result |
|---|---|---|
| pytest-boundary-cases | Cover the smallest accepted invoice amount. | The test follows project conventions and exercises an actual edge case. |
| django-migration-review | Review a migration adding a required field to an existing table. | The review addresses existing rows and mixed-version deployments. |
| drf-endpoint-docs | Document the create endpoint for study plans. | Field names, permission checks and status codes match source or tests. |
| celery-task-review | Review an email notification task for duplicate sends. | The review follows the retry path and identifies the observable side effect. |
| django-query-review | Review the list view that returns nested author details. | The proposed query-count check uses several records. |
| python-pr-summary | Write a PR summary for the current branch diff. | The summary separates actual test results from pending commands. |
| django-repro-test | Reproduce a validation error on an empty payload. | The assertion fails for the reported behavior on the current implementation. |
Frequently asked questions
Why does my skill fail to appear?
Check its install state, filename and front matter. Reopen the skill selector and search for the declared name. Start with one folder and one file before adding reference material.
What if it edits more files than expected?
Start from a clean branch, name the permitted file in the request and review git diff. Keep production credentials, logs and private fixtures outside the project shared with the agent.
Should all instructions go into one skill?
Keep independent jobs in separate skills so each one has a clear trigger and a checkable result. See the general Bionic starter skills list for complementary workflows.
