用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill django命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | django |
| description | Use when the project uses Django for Python web development |
| metadata | {"author":"calcosmic"} |
Follow Django's app-based architecture. Each app should represent a distinct feature or domain concept. Keep apps small and focused -- if an app has 20+ models, it probably needs splitting.
Place reusable utilities in a core or common app. Keep settings.py clean by splitting into base.py, development.py, and production.py using a settings package.
Define explicit Meta classes with ordering, verbose_name, and db_table where appropriate. Add __str__ methods to every model for admin and debugging readability.
Use model managers for complex queries rather than scattering filter() chains through views. Create custom querysets with as_manager() for chainable query methods.
Always create migrations after model changes with makemigrations. Review generated migration files before running them. Never edit migrations manually unless you understand the implications.
Prefer class-based views (CBVs) for CRUD operations -- they eliminate boilerplate. Use function-based views for complex custom logic where CBV mixins would become contorted. In Django REST Framework, use ModelViewSet for standard CRUD and APIView for custom endpoints.
Keep views thin. Business logic belongs in services or model methods, not in views. A view should validate input, call a service, and return a response.
Never expose raw model instances to API responses -- use serializers or forms to control which fields are visible. Always validate and clean form input. Use Django's CSRF protection and never disable it.
Set DEBUG = False in production. Configure ALLOWED_HOSTS explicitly. Use environment variables for SECRET_KEY and database credentials.
Use select_related() for foreign key joins and prefetch_related() for reverse and many-to-many relationships to avoid N+1 query problems. Use Django Debug Toolbar in development to spot excessive queries.
Write data migrations for schema changes that need data transformation. Keep schema and data migrations separate.
Use TestCase for tests that need database access, SimpleTestCase for those that do not. Use factory_boy or model baker over fixtures for test data. Test views through the test client, not by calling view functions directly.
Source: calcosmic/Aether — distributed by TomeVault.