engremran07/gsmvault/ads-placement-manual

Claude Code and agent skill by engremran07/gsmvault

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Manual placement configuration in templates. Use when: adding ad slots to templates, configuring AdPlacement records, wiring placements to ad units.

Install

npx vskill@latest install engremran07/gsmvault/ads-placement-manual

SKILL.md

The same SKILL.md was published earlier as engremran07/gsmvault/ads-placement-manual.

Manual Ad Placement

When to Use

  • Adding ad slots to Django templates manually
  • Creating AdPlacement records for known positions
  • Binding ad units to placements via PlacementAssignment
  • Controlling which creatives appear in which slots

Rules

  • Each AdPlacement has a unique slot_id used in templates
  • PlacementAssignment binds creatives/units to placements with weight and priority
  • Locked assignments (is_locked = True) are never rotated out
  • Use {% include "ads/fragments/placement.html" %} — never inline ad code
  • Check AdsSettings.ads_enabled before rendering any placement

Patterns

Creating a Placement
python
# apps/ads/services.py
from apps.ads.models import AdPlacement
def create_placement(
*, name: str, slot_id: str, description: str = ""
) -> AdPlacement:
return AdPlacement.objects.create(
name=name,
slot_id=slot_id,
description=description,
is_enabled=True,
)
Template Integration
html
{# templates/blog/post_detail.html #}
{% load ads_tags %}
<article>
<h1>{{ post.title }}</h1>
{# Above content ad #}
{% render_ad_slot "blog-post-above-content" %}
<div class="prose">{{ post.content }}</div>
{# Below content ad #}
{% render_ad_slot "blog-post-below-content" %}
</article>
<aside>
{% render_ad_slot "blog-sidebar-top" %}
</aside>
Template Tag Implementation
python
# apps/ads/templatetags/ads_tags.py
from django import template
from apps.ads.models import AdsSettings, AdPlacement
register = template.Library()
@register.inclusion_tag("ads/fragments/placement.html", takes_context=True)
def render_ad_slot(context, slot_id: str):
settings = AdsSettings.get_solo()
if not settings.ads_enabled:
return {"show_ad": False}
placement = AdPlacement.objects.filter(
slot_id=slot_id, is_enabled=True
).first()
return {"show_ad": bool(placement), "placement": placement}

Anti-Patterns

  • Inlining ad HTML directly in templates instead of using {% render_ad_slot %}
  • Creating placements without unique slot_id — causes rendering conflicts
  • Skipping the AdsSettings.ads_enabled check in template tags

Quality Gate

powershell
& .\.venv\Scripts\python.exe -m ruff check . --fix
& .\.venv\Scripts\python.exe -m ruff format .
& .\.venv\Scripts\python.exe manage.py check --settings=app.settings_dev

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/engremran07/gsmvault/ads-placement-manual/badge)](https://verified-skill.com/skills/engremran07/gsmvault/ads-placement-manual)

Something wrong with this skill or its page? Tell us.