refactor-values

refactor-values is a skill for Claude Code, Codex from idavidov13/agentic-playwright. It costs 55 tokens per session (488 once invoked), scanned A, original, MIT.

A procedure for safely changing shared enum values, enum keys, or fixed test data in a TypeScript test project. An enum is a named list of allowed values.

In plain words
What is it for?
Use it before renaming test-data keys, changing endpoint or message values, or editing existing static test data; then run type checks, linting, and affected tests.
Why use it?
It helps find every dependent test, schema, and assertion before a change, preventing mismatches and broken checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it before renaming test-data keys, changing endpoint or message values, or editing existing static test data; then run type checks, linting, and affected tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idavidov13/agentic-playwright/refactor-values
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 idavidov13/agentic-playwright --skill refactor-values
Clone the repo
git clone --depth 1 https://github.com/idavidov13/agentic-playwright

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 refactor-values

README.md
[![agentmods](https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/refactor-values/github.svg)](https://agentmods.dev/skills/idavidov13/agentic-playwright/refactor-values)
Your own site
<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.

agentmods 80×15 button for refactor-values

Your own site · 80×15
<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>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 488 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 warn 7 Sept 2026
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]
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.00055 $0.00488
Opus 5.5 $0.00022 $0.00195
Sonnet 5.5 $0.00011 $0.00098
Haiku 4.5 $0.00006 $0.00049

Measured 27d ago against content hash ed2525a1bc17, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.agents/skills/refactor-values/SKILL.md · 40 lines

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.literal or z.enum to 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 value
    
    role: 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 .md docs and skills, comments and case variants.

Procedure

  1. Search both forms and list every hit (rg or grep -rn; skip .json reports):

    rg -n "Messages.LOGIN_ERROR|Invalid email or password" --glob '!*.json' .
    
  2. Categorise each hit with references/impact-tables.md; the files that change are the proposal's scope.

  3. Change the source (enum member or as const entry) and every listed consumer in one pass; a UI message is captured from the live app with playwright-cli first (enums).

  4. Run npx tsc --noEmit, npx eslint ., then the affected spec files by path (--grep matches 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.
Files

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.

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. 27d ago Changed · -119 lines · -70 tokens per session ed2525a1bc17
  2. 3mo ago First seen · 159 lines · 125 tokens per session scan A 91f7368f2aa4

Subscribe to this mod's changes

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.

Related

refactor-values compared with skills from other repositories

refactor-values next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refactor-valuesidavidov13/agentic-playwrightSkill31313d agoMITA55Claude Code, Codex
ultracitehaydenbleasel/ultraciteSkill3.4kyesterdayMITA179Claude Code, Codex
freelance-gig-findertinyfish-io/tinyfish-cookbookSkill2.3k7d agoMITA98Claude Code, Codex
fetchtinyfish-io/tinyfish-cookbookSkill2.3k7d agoMITA121Claude Code
oss-bounty-findertinyfish-io/tinyfish-cookbookSkill2.3k7d agoMITB242Claude Code, Codex
typescript-strictBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA41Claude Code, Codex
create-custom-widgetmendixlabs/mxcliSkill146yesterdayApache-2.0A50Claude Code