smithery.ai

Implement Django Feature

Standard procedure from Model creation to API Endpoint.

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,305 B
  • docs SUMMARY.md 87 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

Skill: Implement Django Feature

1. Domain Modeling (The Foundation)

Always start here.

  • Create/Update models.py.
  • Enforce id = models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True).
  • Add createdat and updatedat (TimeStamped).
  • Define str method.

2. Business Logic Layer

Do not put heavy logic in Views.

  • Create a services.py or selectors.py in the app.
  • selectors.py: For fetching data (QuerySets, filtering).
  • services.py: For writing data (Transactions, complex creates).

3. API Interface (DRF)

  • Serializer:

- Use ModelSerializer by default. - Explicitly list fields (or use fields = 'all' only for prototyping).

  • View:

- Use restframework.generics or viewsets. - Apply permissionclasses. - Apply filter_backends (DjangoFilterBackend, SearchFilter).

  • URL:

- Register in urls.py. Use the router if using ViewSets.

4. Admin Panel

  • Don't forget admin.py.
  • Use @admin.register(Model).
  • Define listdisplay, searchfields, list_filter.

5. Testing

  • Create a test file tests/test_[feature].py.
  • Implement user happy path (201 Created / 200 OK).