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 deeleeramone/PyWry --skill css_selectorsgit clone --depth 1 https://github.com/deeleeramone/PyWryWrote 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/deeleeramone/pywry/css_selectors)<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.
<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>- 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.00000 | $0.01521 |
| Opus 5.5 | $0.00000 | $0.00608 |
| Sonnet 5.5 | $0.00000 | $0.00304 |
| Haiku 4.5 | $0.00000 | $0.00152 |
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 3mo 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 — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CSS Selectors
Target elements for
set_contentandset_styleupdates 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 |
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.
- 3mo ago First seen · 188 lines · 0 tokens per session scan A 880bdef6ee11
css_selectors is a skill published in the GitHub repository deeleeramone/PyWry (100 stars, last pushed 1mo 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.
css_selectors compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| css_selectorsdeeleeramone/PyWry | Skill | 100 | 1mo ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| large-file-buildPrismML-Eng/Bonsai-demo | Skill | 3.7k | 3d ago | Apache-2.0 | A | 18 | Claude Code, Codex |
| designericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 78 | Claude Code, Codex |
| stitch-react-vite-dashboardPracticalSwan/agent-skills | Skill | 25 | 15d ago | MIT | A | 40 | Codex |
| cyber_fantasy_uiisdou/aoleme-ui-skill | Skill | 4 | 2mo ago | MIT | A | 31 | Claude Code |
| modern-frontend-designdeveshpunjabi/modern-frontend-skill | Skill | 7 | 8mo ago | MIT | A | 167 | Claude Code, Codex |
| html-anythingclockless-org/html-anything | Skill | 168 | 6mo ago | MIT-0 | A | 53 | Claude Code |