Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pproenca/dot-skills --skill django-recommender-search-backend-patternsgit clone --depth 1 https://github.com/pproenca/dot-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pproenca/dot-skills/django-recommender-search-backend-patterns)<a href="https://agentmods.dev/skills/pproenca/dot-skills/django-recommender-search-backend-patterns"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/django-recommender-search-backend-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/django-recommender-search-backend-patterns"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/django-recommender-search-backend-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00211 | $0.02961 |
| Opus 5.5 | $0.00084 | $0.01184 |
| Sonnet 5.5 | $0.00042 | $0.00592 |
| Haiku 4.5 | $0.00021 | $0.00296 |
Grade A, and why
django-recommender-search-backend-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on 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)
orch-parallel-fanout-asyncio-gather— Useasyncio.gatherfor independent downstream calls; never await sequentiallyorch-return-exceptions-on-fanout—return_exceptions=Trueso one failure doesn't poison the whole gatherorch-propagate-request-deadline— Pass a deadline through every downstream call to bound whole-request latencyorch-reuse-async-clients— Onehttpx.AsyncClientper downstream at module scope; never per-requestorch-bounded-fanout-concurrency— Cap per-request fan-out withasyncio.Semaphoreto protect the poolorch-no-blocking-in-async-view— Never block the event loop with sync ORM/IO in async viewsorch-avoid-await-in-loop—for item in items: await ...is serial; useasyncio.gatherwith comprehensionorch-batch-with-bulk-endpoint— Bulk endpoint over N parallel calls; DataLoader pattern for batchers
What ships with it
57 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 13 KB
- assets/templates/_template.md 2.1 KB
- assets/templates/degraded_response.py.template 6.5 KB
- assets/templates/fanout_recommender_service.py.template 12 KB
- assets/templates/opensearch_search_view.py.template 9.7 KB
- assets/templates/redis_cache_with_stampede.py.template 8.1 KB
- assets/templates/result_blender.py.template 9.4 KB
- metadata.json 3.0 KB
- references/_sections.md 4.9 KB
- references/api-compression-and-payload-shaping.md 6.8 KB
- references/api-cursor-pagination-in-drf.md 7.0 KB
- references/api-etag-and-cache-control-headers.md 6.5 KB
- references/api-serializer-perf-select-related.md 6.2 KB
- references/api-throttle-per-user-and-endpoint.md 6.9 KB
- references/async-cancel-on-client-disconnect.md 6.6 KB
- references/async-context-vars-for-request-scope.md 6.3 KB
- references/async-fire-and-forget-with-create-task.md 6.3 KB
- references/async-sync-to-async-orm.md 6.1 KB
- references/async-worker-model-uvicorn-vs-gunicorn.md 5.8 KB
- references/blend-anonymous-vs-personalized-paths.md 5.7 KB
- references/blend-cold-start-fallback.md 6.2 KB
- references/blend-dedup-across-sources.md 5.3 KB
- references/blend-mmr-for-diversity.md 5.5 KB
- references/blend-normalize-scores-across-sources.md 5.2 KB
- references/cache-negative-results.md 5.9 KB
- references/cache-redis-with-stampede-protection.md 5.9 KB
- references/cache-segment-keyed-isolation.md 5.5 KB
- references/cache-two-tier-process-and-redis.md 6.2 KB
- references/cache-version-on-model-deploy.md 5.9 KB
- references/orch-avoid-await-in-loop.md 3.4 KB
- references/orch-batch-with-bulk-endpoint.md 4.5 KB
- references/orch-bounded-fanout-concurrency.md 3.8 KB
- references/orch-no-blocking-in-async-view.md 3.7 KB
- references/orch-parallel-fanout-asyncio-gather.md 3.4 KB
- references/orch-propagate-request-deadline.md 4.2 KB
- references/orch-return-exceptions-on-fanout.md 3.8 KB
- references/orch-reuse-async-clients.md 4.4 KB
- references/protect-bulkhead-connection-pool.md 4.6 KB
- references/protect-circuit-breaker-per-downstream.md 4.8 KB
- references/protect-client-side-rate-limit.md 5.1 KB
- references/protect-honor-retry-after-header.md 5.5 KB
- references/protect-jittered-retry-backoff.md 4.5 KB
- references/protect-no-retry-on-4xx.md 4.7 KB
- references/protect-per-downstream-timeout-budget.md 4.2 KB
- references/resilience-default-ranking-fallback.md 6.8 KB
- references/resilience-degrade-search-gracefully.md 7.3 KB
- references/resilience-partial-response-envelope.md 5.8 KB
- references/resilience-per-source-observability.md 6.8 KB
- references/resilience-serve-stale-from-redis.md 5.7 KB
- references/search-alias-for-blue-green-reindex.md 5.5 KB
- references/search-bool-filter-vs-must.md 5.4 KB
- references/search-enable-request-cache.md 5.3 KB
- references/search-filter-source-fields.md 4.7 KB
- references/search-function-score-for-blending.md 6.4 KB
- references/search-shard-aware-routing.md 4.8 KB
- references/search-stable-tiebreaker-sort.md 3.8 KB
- references/search-use-search-after-not-from.md 5.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 140 lines · 211 tokens per session scan A be709ffa3ff1
django-recommender-search-backend-patterns is a skill published in the GitHub repository pproenca/dot-skills (231 stars, last pushed 3mo ago), licensed MIT. It adds 211 tokens to every session and 2,961 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
django-recommender-search-backend-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| django-recommender-search-backend-patternspproenca/dot-skills | Skill | 231 | 3mo ago | MIT | A | 211 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 4d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 105 | Claude Code, Codex |