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 idavidov13/agentic-playwright --skill refactor-valuesgit clone --depth 1 https://github.com/idavidov13/agentic-playwrightWrote 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/idavidov13/agentic-playwright/refactor-values)<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/refactor-values"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/refactor-values/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/idavidov13/agentic-playwright/refactor-values"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/refactor-values.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 6 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 15 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 92 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 15 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 95 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 98 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 101 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
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.00055 | $0.00488 |
| Opus 5.5 | $0.00022 | $0.00195 |
| Sonnet 5.5 | $0.00011 | $0.00098 |
| Haiku 4.5 | $0.00006 | $0.00049 |
Grade A, and why
refactor-values 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 27d 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.
What it actually says
Refactor Values
Critical
-
Before any edit, find all consumers. Search the enum key (
Messages.LOGIN_ERROR) and the raw string value ('Invalid email or password') across the whole repository; a consumer that bypassed the enum does not follow it. -
Every consumer changes in the same commit as the enum member or static entry; no state where the value moved and a consumer still holds the old one.
-
Never loosen
z.literalorz.enumto a wider type to make a changed value pass; move the literal, or list the valid values.role: z.literal('administrator'), // correct: the literal follows the valuerole: z.string(), // wrong: hides the next drift -
npx tsc --noEmit,npx eslint .and the affected tests pass before the refactor is done. -
No blind find-and-replace. Inspect every match; hits include
.mddocs and skills, comments and case variants.
Procedure
-
Search both forms and list every hit (
rgorgrep -rn; skip.jsonreports):rg -n "Messages.LOGIN_ERROR|Invalid email or password" --glob '!*.json' . -
Categorise each hit with
references/impact-tables.md; the files that change are the proposal's scope. -
Change the source (enum member or
as constentry) and every listed consumer in one pass; a UI message is captured from the live app withplaywright-clifirst (enums). -
Run
npx tsc --noEmit,npx eslint ., then the affected spec files by path (--grepmatches tags and titles, not file names); red →debugging.
References
references/impact-tables.md: step 2, the consumer table per change type and the stale-consumer patterns.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 27d ago Changed · -119 lines · -70 tokens per session ed2525a1bc17
- 3mo ago First seen · 159 lines · 125 tokens per session scan A 91f7368f2aa4
refactor-values is a skill published in the GitHub repository idavidov13/agentic-playwright (313 stars, last pushed 13d ago), licensed MIT. It adds 55 tokens to every session and 488 once invoked, about $0.0002 per session on Opus 5.5. 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.
refactor-values compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-valuesidavidov13/agentic-playwright | Skill | 313 | 13d ago | MIT | A | 55 | Claude Code, Codex |
| ultracitehaydenbleasel/ultracite | Skill | 3.4k | yesterday | MIT | A | 179 | Claude Code, Codex |
| freelance-gig-findertinyfish-io/tinyfish-cookbook | Skill | 2.3k | 7d ago | MIT | A | 98 | Claude Code, Codex |
| fetchtinyfish-io/tinyfish-cookbook | Skill | 2.3k | 7d ago | MIT | A | 121 | Claude Code |
| oss-bounty-findertinyfish-io/tinyfish-cookbook | Skill | 2.3k | 7d ago | MIT | B | 242 | Claude Code, Codex |
| typescript-strictBlackBeltTechnology/pi-agent-dashboard | Skill | 357 | today | MIT | A | 41 | Claude Code, Codex |
| create-custom-widgetmendixlabs/mxcli | Skill | 146 | yesterday | Apache-2.0 | A | 50 | Claude Code |