Agent skill

Optimize Button Patterns

by duckduckgo in duckduckgo/tracker-radar-collector

Iteratively improves cookie-popup button regex patterns in button-patterns.js against labelled-button-texts.csv.

Custom licenceAuto-check passedData & Analytics

Install Optimize Button Patterns

skills CLI
$ npx skills add duckduckgo/tracker-radar-collector --skill optimize-button-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install duckduckgo/tracker-radar-collector optimize-button-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/duckduckgo/tracker-radar-collector.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/optimize-button-patterns .claude/skills/optimize-button-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
optimize-button-patterns
GitHub stars
169
Token cost
~1.6k tokens
SKILL.md length
613 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Iteratively improves cookie-popup button regex patterns in button-patterns.js against labelled-button-texts.csv.

  • Works in 5 steps: Measure → Fix false positives first → Improve coverage → …
  • Labels are updated
  • SKILL.md covers Prerequisites, Success criteria, Benchmark and Run loop, plus 5 more sections
  • Calls node

What it does

Optimize Button Patterns is an agent skill from duckduckgo/tracker-radar-collector. Iteratively improves cookie-popup button regex patterns in button-patterns.js against labelled-button-texts.csv. Use when labels are updated, benchmark coverage is low, or the user asks to optimize/fix button pattern regexes. Targets zero false positives and ≥90% weighted coverage per label (settings, accept, reject, acknowledge).

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering CSV and tabular files and Web scraping. It works with Puppeteer. The repository describes itself as: 🕸 Modular, multithreaded, puppeteer-based crawler.

When your agent uses it

  • Labels are updated
  • Benchmark coverage is low
  • The user asks to optimize/fix button pattern regexes

Example prompts

  • “/optimize-button-patterns”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Measure
  2. Fix false positives first
  3. Improve coverage
  4. Merge patterns
  5. Report

What it can do on your machine

Read from SKILL.md and the folder at commit 3aec03f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Optimize Button Patterns loads about 1.6k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 613 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 613 words (~1,554 tokens).

“Improve regex patterns in post-processing/generate-autoconsent-rules/button-patterns.js so classifyButtonTextRegex matches the labelled dataset.”

— opening of SKILL.md by duckduckgo, Custom licence
name
optimize-button-patterns
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .cursor/skills/optimize-button-patterns of duckduckgo/tracker-radar-collector.

Open the folder on GitHubat commit 3aec03f

Compare with similar skills

Optimize Button Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Optimize Button Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Optimize Button Patterns this skillduckduckgo/tracker-radar-collector169—~1.6kAutomated safety check: PassCustom licence
Chrome Devtoolseinverne/dotfiles1211 repos~1.6kAutomated safety check: NotesApache-2.0
Apify CLIapify/apify-cli255—~1.5kAutomated safety check: PassApache-2.0
Web Scrapercharlie-chann/ai-agent-langgraph-main114—~431Automated safety check: PassNone
Apify Lead Scoring Enrichmentapify/awesome-skills262—~4.4kAutomated safety check: NotesApache-2.0
Google Maps Reviews Scrapergmapsscraper/google-maps-agent-skills131—~1.2kAutomated safety check: PassMIT

Similar skills

  • Chrome Devtools

    einverne/dotfiles

    Browser automation, debugging, and performance analysis using Puppeteer CLI scripts.

    121 GitHub starsUsed in 1 repo~1.6k tokens
    Data & AnalyticsAuto-check: notes
  • Apify CLI

    apify/apify-cli

    Official

    Patterns for invoking the Apify CLI (apify) from agents. An agent skill from apify/apify-cli.

    255 GitHub stars~1.5k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Web Scraper

    charlie-chann/ai-agent-langgraph-main

    网页数据抓取专家。能提取网页正文、表格、列表、特定元素。适用于:竞品监控、价格追踪、结构化数据采集. An agent skill from charlie-chann/ai-agent-langgraph-main.

    114 GitHub stars~431 tokensUpdated 24 days ago
    Data & AnalyticsAuto-check passed
  • Apify Lead Scoring Enrichment

    apify/awesome-skills

    Official

    Score and enrich a CSV of B2B leads using Apify Actors. An agent skill from apify/awesome-skills.

    262 GitHub stars~4.4k tokensUpdated 15 days ago
    Data & AnalyticsAuto-check: notes
  • Google Maps Reviews Scraper

    gmapsscraper/google-maps-agent-skills

    Analyze Google Maps review data from CSV exports. An agent skill from gmapsscraper/google-maps-agent-skills.

    131 GitHub stars~1.2k tokensUpdated 4 mo ago
    Sales & SupportAuto-check passed
  • Brd Browser Debug

    brightdata/skills

    Debug Bright Data Scraping Browser sessions using the Browser Sessions API.

    264 GitHub stars~2k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed

Works with

Questions about Optimize Button Patterns

What does Optimize Button Patterns do?

Iteratively improves cookie-popup button regex patterns in button-patterns.js against labelled-button-texts.csv. Optimize Button Patterns is an agent skill from duckduckgo/tracker-radar-collector.csv.

When should I use Optimize Button Patterns?

Optimize Button Patterns fits situations like: labels are updated; benchmark coverage is low; the user asks to optimize/fix button pattern regexes.

How do I install Optimize Button Patterns in Claude Code?

Run `npx skills add duckduckgo/tracker-radar-collector --skill optimize-button-patterns -a claude-code`. Or copy the skill folder (.cursor/skills/optimize-button-patterns in duckduckgo/tracker-radar-collector) into .claude/skills/optimize-button-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Optimize Button Patterns in Codex?

Run `npx skills add duckduckgo/tracker-radar-collector --skill optimize-button-patterns -a codex`. Or copy the skill folder (.cursor/skills/optimize-button-patterns in duckduckgo/tracker-radar-collector) into .agents/skills/optimize-button-patterns in your project. Codex loads it when a task matches its description.

Can I use Optimize Button Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add duckduckgo/tracker-radar-collector --skill optimize-button-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimize-button-patterns, .gemini/skills/optimize-button-patterns, .github/skills/optimize-button-patterns and .opencode/skills/optimize-button-patterns in your project.

What does Optimize Button Patterns need to run?

Going by SKILL.md and its folder, Optimize Button Patterns needs the command-line tools its instructions call (node).

Does Optimize Button Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Optimize Button Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Optimize Button Patterns use?

Optimize Button Patterns has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Optimize Button Patterns use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Optimize Button Patterns?

Skills that share tags, products or a category with Optimize Button Patterns: Chrome Devtools (einverne/dotfiles, 121 stars), Apify CLI (apify/apify-cli, 255 stars), Web Scraper (charlie-chann/ai-agent-langgraph-main, 114 stars) and Apify Lead Scoring Enrichment (apify/awesome-skills, 262 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Optimize Button Patterns?

duckduckgo (a GitHub organization) maintains it in duckduckgo/tracker-radar-collector, which has 169 GitHub stars. The repository was last updated on October 6, 2026.

Source: duckduckgo/tracker-radar-collector on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.