css_selectors

css_selectors is a skill for Claude Code, Codex from deeleeramone/PyWry. It costs 0 tokens per session (1,521 once invoked), scanned A, original, Apache-2.0.

A guide for selecting parts of a web page with CSS selectors, which are patterns used to identify HTML elements. It recommends unique component IDs when available.

In plain words
What is it for?
Use it to change the text or styling of headings, classes, attributes, or other targeted elements in a web interface.
Why use it?
It helps updates reach the intended page element and reduces breakage when the page structure changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to change the text or styling of headings, classes, attributes, or other targeted elements in a web interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deeleeramone/pywry/css_selectors
Install

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.

Any agent
npx skills add deeleeramone/PyWry --skill css_selectors
Clone the repo
git clone --depth 1 https://github.com/deeleeramone/PyWry

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for css_selectors

README.md
[![agentmods](https://agentmods.dev/badge/skills/deeleeramone/pywry/css_selectors/github.svg)](https://agentmods.dev/skills/deeleeramone/pywry/css_selectors)
Your own site
<a href="https://agentmods.dev/skills/deeleeramone/pywry/css_selectors"><img src="https://agentmods.dev/badge/skills/deeleeramone/pywry/css_selectors/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.

agentmods 80×15 button for css_selectors

Your own site · 80×15
<a href="https://agentmods.dev/skills/deeleeramone/pywry/css_selectors"><img src="https://agentmods.dev/badge/skills/deeleeramone/pywry/css_selectors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01521
Opus 5.5 $0.00000 $0.00608
Sonnet 5.5 $0.00000 $0.00304
Haiku 4.5 $0.00000 $0.00152

Measured 1mo ago against content hash 880bdef6ee11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

css_selectors 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 1mo 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.

pywry/pywry/mcp/skills/css_selectors/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CSS Selectors

Target elements for set_content and set_style updates using CSS selectors or component IDs.

Targeting by Component ID (Preferred)

The most reliable way to target elements is by component_id:

# When creating content, always use component_id
content = Div(
    content="Hello",
    component_id="main-content",  # This becomes the element's id
)

# Target by id in set_content/set_style
set_content(widget_id, component_id="main-content", text="Updated!")
set_style(widget_id, component_id="main-content", styles={"color": "red"})

Why component_id is Preferred

Aspect component_id CSS Selector
Reliability Always unique May match multiple elements
Refactoring Survives DOM changes May break on restructure
Performance Direct lookup May scan document
Clarity Self-documenting Requires knowledge of DOM

Targeting by CSS Selector

When you don't have a component_id, use CSS selectors:

# By element type
set_style(widget_id, selector="h1", styles={"fontSize": "24px"})

# By class
set_style(widget_id, selector=".status-indicator", styles={"display": "block"})

# By attribute
set_content(widget_id, selector="[data-ticker='AAPL']", text="$185.00")

# Combined selectors
set_style(widget_id, selector=".toolbar button.primary", styles={"opacity": "0.5"})

# First/last/nth-child
set_style(widget_id, selector="ul li:first-child", styles={"fontWeight": "bold"})

Common Selector Patterns

Basic Selectors

Selector Matches Example
#myid Element with id="myid" #header
.myclass Elements with class="myclass" .card
div All div elements span
* All elements *

Combinators

Selector Matches Example
div.myclass Divs with class="myclass" button.primary
div > p Direct child p of div .card > .title
div p Any descendant p of div .sidebar a
div + p p immediately after div h1 + p
div ~ p All p siblings after div h1 ~ p

Read the full file on GitHub · 188 lines

Changes

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.

  1. 1mo ago First seen · 188 lines · 0 tokens per session scan A 880bdef6ee11

Subscribe to this mod's changes

css_selectors is a skill published in the GitHub repository deeleeramone/PyWry (98 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,521 tokens. 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.

Related

Other skills, from other repositories