engremran07/gsmvault/ads-format-sticky

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.

Sticky ad format: fixed position, close button. Use when: implementing anchor/sticky ads, adding dismiss functionality, viewport-pinned ad slots.

Install

npx vskill@latest install engremran07/gsmvault/ads-format-sticky

SKILL.md

The same SKILL.md was published earlier as engremran07/gsmvault/ads-format-sticky.

Sticky Ad Format

When to Use

  • Implementing bottom-anchored or sidebar-sticky ads
  • Adding user-dismissible close buttons
  • Configuring sticky ad duration and re-show intervals
  • AdUnit.ad_format = "anchor" placements

Rules

  • Sticky ads MUST have a visible close button — no exception
  • Bottom-anchor ads hidden on mobile if Google policies require it
  • Close state stored in localStorage with a cooldown period
  • Sticky ads must not cover navigation or primary content
  • Maximum 1 sticky ad visible at any time per page

Patterns

Sticky Ad Component
html
{# templates/ads/fragments/sticky_ad.html #}
<div x-data="{ dismissed: false }" x-cloak
x-show="!dismissed"
x-init="dismissed = localStorage.getItem('sticky_ad_dismissed_{{ placement.slot_id }}') === 'true'"
class="fixed bottom-0 left-0 right-0 z-40 bg-[var(--color-bg-primary)]
border-t border-[var(--color-border)] p-2 shadow-lg
hidden lg:flex items-center justify-center">
{# Close button — always visible #}
<button @click="dismissed = true; localStorage.setItem('sticky_ad_dismissed_{{ placement.slot_id }}', 'true')"
class="absolute top-1 right-2 text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)]"
aria-label="Close ad">
<i data-lucide="x" class="w-4 h-4"></i>
</button>
<div class="ad-content max-w-[728px]" data-slot="{{ placement.slot_id }}">
{{ placement.render_code|safe }}
</div>
</div>
Cooldown Re-show Logic
javascript
// static/js/src/ads/sticky.js
function shouldShowStickyAd(slotId, cooldownMinutes = 30) {
const key = `sticky_ad_dismissed_${slotId}`;
const dismissedAt = localStorage.getItem(key);
if (!dismissedAt) return true;
const elapsed = (Date.now() - parseInt(dismissedAt)) / 60000;
return elapsed >= cooldownMinutes;
}

Anti-Patterns

  • Sticky ads without close buttons — violates ad policies
  • Multiple simultaneous sticky ads — overwhelming UX
  • Sticky ads covering the mobile nav hamburger menu
  • No cooldown after dismiss — ad reappears immediately on next page

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-format-sticky/badge)](https://verified-skill.com/skills/engremran07/gsmvault/ads-format-sticky)

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