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 dvf/opinionated-django --skill dj-servicesgit clone --depth 1 https://github.com/dvf/opinionated-djangoWrote 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/dvf/opinionated-django/dj-services)<a href="https://agentmods.dev/skills/dvf/opinionated-django/dj-services"><img src="https://agentmods.dev/badge/skills/dvf/opinionated-django/dj-services/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/dvf/opinionated-django/dj-services"><img src="https://agentmods.dev/badge/skills/dvf/opinionated-django/dj-services.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.00080 | $0.02535 |
| Opus 5 | $0.00040 | $0.01267 |
| Sonnet 5 | $0.00016 | $0.00507 |
| Haiku 4.5 | $0.00008 | $0.00253 |
Grade A, and why
dj-services 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 9d 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 — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Services + svcs Dependency Injection
This project separates Django's framework concerns from business logic using a plain service layer, wired with the svcs service locator. The result:
- Views are one-liners. They pull a wired service and call a method.
- Services contain the business logic. They take repositories (and other services) via
__init__, call methods on them, and return DTOs. - Services never import Django ORM or models. Every test can run without a database.
- One registry, one
get[T]()helper. The same call works in views, tasks, commands, anywhere.
Why svcs Instead of Module-Level Singletons or a Custom Container
svcsis a tiny, typed, well-maintained service locator — no metaclasses, no decorators, no framework coupling.- Factories are lazy: a service is constructed only when something asks for it.
- Generic
get[T](type[T]) -> Tpreserves types through IDE/type-checker inference. - Swapping an implementation in tests is a one-line factory override.
- No import-order gymnastics: the registry is populated once at startup and then used by name.
The Registry — src/project/services.py
import svcs
from products.repositories.product import ProductRepository
from products.services.product import ProductService
from orders.repositories.order import OrderRepository
from orders.services.order import OrderService
registry = svcs.Registry()
# --- Services (factories pull repos from the container) ------------------
def _product_service_factory(container: svcs.Container) -> ProductService:
repo = container.get(ProductRepository)
return ProductService(repo)
def _order_service_factory(container: svcs.Container) -> OrderService:
repo = container.get(OrderRepository)
product_repo = container.get(ProductRepository)
return OrderService(repo, product_repo)
def register_services(registry: svcs.Registry) -> None:
"""Register every real factory. Tests re-run this to restore overrides."""
# --- Repositories -----------------------------------------------------
registry.register_factory(ProductRepository, ProductRepository)
registry.register_factory(OrderRepository, OrderRepository)
# --- Services ---------------------------------------------------------
registry.register_factory(ProductService, _product_service_factory)
registry.register_factory(OrderService, _order_service_factory)
register_services(registry)
def get[T](service_type: type[T]) -> T:
"""Resolve a service from the registry. Works anywhere — views, tasks, commands, tests."""
return svcs.Container(registry).get(service_type)
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.
- 9d ago First seen · 275 lines · 80 tokens per session scan A fa4b33094eb3
dj-services is a skill published in the GitHub repository dvf/opinionated-django (110 stars, last pushed 26d ago), licensed MIT. It adds 80 tokens to every session and 2,535 once invoked, about $0.0004 per session on Opus 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-08-30.
Other skills, from other repositories
stripe-projects
Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.
azure-messaging-webpubsubservice-py
Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".
azure-mgmt-botservice-py
Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".
backend
Python server code, APIs, async, strict typing.
fastapi-app
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…
azure-appconfiguration-py
Centralized configuration management with feature flags and dynamic settings.