Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

django-recommender-search-backend-patterns

БесплатноБез исполняемых скриптовНе проверен

Django backend patterns for recommendation services (AWS Personalize, Databricks Model Serving, internal microservices) and OpenSearch-backed search/feed…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Experimental Django Recommender + Search Backend Best Practices

Implementation patterns for a Django backend serving mixed-results recommendations (Personalize / Databricks / microservice fan-out) and OpenSearch-backed search/feeds. 48 rules across 8 categories, ordered by execution lifecycle impact — earlier categories cascade through everything downstream.

This is the backend peer of the react-fetch-cache-patterns skill. React handles client-side waterfalls and caching; this skill handles server-side fan-out, downstream protection, OpenSearch query design, and ML-blend orchestration.

When to Apply

  • Building or reviewing Django views that fan out to AWS Personalize, Databricks Model Serving, internal microservices, or any ML inference downstream
  • Designing OpenSearch query endpoints (search results, infinite feeds, faceted search)
  • Implementing a recommendations endpoint that blends multiple ranker outputs
  • Investigating "Django backend slow when downstream is degraded" or "Personalize quota exhausted"
  • Adding caching, retry, circuit breakers, or rate limiting to outbound calls
  • Choosing between sync and async Django views, configuring uvicorn vs gunicorn
  • Designing DRF response shapes for paginated feeds, partial results, or degraded paths

Rule Categories by Priority

# Category Impact Prefix Rules
1 Fan-out Orchestration CRITICAL orch- 8
2 External Service Protection CRITICAL protect- 7
3 OpenSearch Query Patterns CRITICAL search- 8
4 Result Blending & Personalization HIGH blend- 5
5 Caching Strategy HIGH cache- 5
6 Resilience & Partial Results HIGH resilience- 5
7 Async & Concurrency MEDIUM-HIGH async- 5
8 API Response Design MEDIUM api- 5

Quick Reference

1. Fan-out Orchestration (CRITICAL)

2. External Service Protection (CRITICAL)

3. OpenSearch Query Patterns (CRITICAL)

Полный SKILL.md на GitHub

Установить django-recommender-search-backend-patterns в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdassets/templates/degraded_response.py.templateassets/templates/fanout_recommender_service.py.templateassets/templates/opensearch_search_view.py.templateassets/templates/redis_cache_with_stampede.py.templateassets/templates/result_blender.py.templatemetadata.jsonreferences/_sections.mdreferences/api-compression-and-payload-shaping.mdreferences/api-cursor-pagination-in-drf.mdreferences/api-etag-and-cache-control-headers.mdreferences/api-serializer-perf-select-related.mdreferences/api-throttle-per-user-and-endpoint.mdreferences/async-cancel-on-client-disconnect.mdreferences/async-context-vars-for-request-scope.mdreferences/async-fire-and-forget-with-create-task.mdreferences/async-sync-to-async-orm.mdreferences/async-worker-model-uvicorn-vs-gunicorn.mdreferences/blend-anonymous-vs-personalized-paths.mdreferences/blend-cold-start-fallback.mdreferences/blend-dedup-across-sources.mdreferences/blend-mmr-for-diversity.mdreferences/blend-normalize-scores-across-sources.mdreferences/cache-negative-results.mdreferences/cache-redis-with-stampede-protection.mdreferences/cache-segment-keyed-isolation.mdreferences/cache-two-tier-process-and-redis.mdreferences/cache-version-on-model-deploy.mdreferences/orch-avoid-await-in-loop.mdreferences/orch-batch-with-bulk-endpoint.mdreferences/orch-bounded-fanout-concurrency.mdreferences/orch-no-blocking-in-async-view.mdreferences/orch-parallel-fanout-asyncio-gather.mdreferences/orch-propagate-request-deadline.mdreferences/orch-return-exceptions-on-fanout.mdreferences/orch-reuse-async-clients.mdreferences/protect-bulkhead-connection-pool.mdreferences/protect-circuit-breaker-per-downstream.mdreferences/protect-client-side-rate-limit.md

FAQ

Что делает скилл django-recommender-search-backend-patterns?

Django backend patterns for recommendation services (AWS Personalize, Databricks Model Serving, internal microservices) and OpenSearch-backed search/feed endpoints. Covers fan-out orchestration (asyncio.gather, deadline propagation, partial results, async client reuse), external service protection (timeouts, circuit breakers, jittered retry, bulkheads, rate limits), OpenSearch query patterns (search_after, _source filtering, function_score, aliases, routing, bool.filter), result blending (score normalization, MMR, dedup, cold-start), Redis caching (stampede protection, model-versioned keys, two-tier, negative), resilience (partial-response envelope, stale-on-error, graceful degradation), async (sync_to_async, async ORM, uvicorn, contextvars, disconnect cancellation), and DRF response shape (cursor pagination, ETag, throttling). Use when building, reviewing, or refactoring such a Django backend. Triggers even without explicit "scale" cues. Includes 5 scaffolding templates.

Как установить скилл django-recommender-search-backend-patterns?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл django-recommender-search-backend-patterns запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить django-recommender-search-backend-patterns с