enums

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

A set of TypeScript rules for storing repeated fixed values, such as API paths, roles, messages, or storage locations. An enum is a named group of related constant values.

In plain words
What is it for?
Use it when adding or changing endpoint paths, user roles, browser storage paths, interface messages, or other repeated application values.
Why use it?
It prevents the same text from being copied and changed inconsistently in different tests. It also keeps application-facing messages tied to the real application rather than guessed wording.

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 when adding or changing endpoint paths, user roles, browser storage paths, interface messages, or other repeated application values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idavidov13/agentic-playwright/enums
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 enums
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 enums

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/enums"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/enums.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 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: 2 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 Agent Snooping · line 87
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 112
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00073 $0.00679
Opus 5.5 $0.00029 $0.00272
Sonnet 5.5 $0.00015 $0.00136
Haiku 4.5 $0.00007 $0.00068

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

Security

Grade A, and why

enums 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 18d 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/enums/SKILL.md · 46 lines

How it starts

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

Enums

Critical

  • A TypeScript enum, never an as const object: PascalCase name, SCREAMING_SNAKE_CASE members, the value exactly as the app uses it (case, punctuation, whitespace).

    // CORRECT
    export enum ApiEndpoints {
        LOGIN = '/users/login',
    }
    // WRONG
    export const API_ENDPOINTS = { login: '/users/Login' } as const;
    
  • Any app-defined string used in more than one place (endpoint path, UI message, role, route, storage-state path) lives in an enum and is imported; ApiEndpoints members are the only source of endpoint paths.

  • App-specific enums in enums/{area}/*.ts, cross-app constants in enums/util/*.ts; extend an existing enum before creating a file, never a new top-level folder.

  • Every enum declaration carries a JSDoc line naming what it groups.

  • A UI message value is captured from the live app with playwright-cli, never guessed; app unreachable: stop and tell the human.

  • Changing or renaming an existing member goes through refactor-values first.

Procedure

  1. Classify the value; ls enums/ resolves {area}. URLs and credentials go to config, curated test inputs to data-strategy, Playwright tuning to playwright.config.ts.

    Value Home
    Endpoint path, route, storage-state path enums/{area}/* (ApiEndpoints, AppRoutes, StorageStatePaths in enums/app/app.ts)
    UI message (error, success, validation) enums/{area}/* (Messages), text captured live
    Role or permission name enums/util/* (Roles in enums/util/roles.ts)
    HTTP status code in an assertion inline literal, expect(status).toBe(200): the sanctioned carve-out from the magic-number rule

Read the full file on GitHub · 46 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. 18d ago Changed d01d58bf51c9
  2. 20d ago Changed fb018c1fe303
  3. 1mo ago Changed · -137 lines · -75 tokens per session 0f116ae8b1cb
  4. 3mo ago First seen · 183 lines · 148 tokens per session scan A 914f733b598b

Subscribe to this mod's changes

enums is a skill published in the GitHub repository idavidov13/agentic-playwright (318 stars, last pushed 17d ago), licensed MIT. It adds 73 tokens to every session and 679 once invoked, about $0.0003 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

enums compared with skills from other repositories

enums next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enumsidavidov13/agentic-playwrightSkill31817d agoMITA73Claude Code, Codex
ultracitehaydenbleasel/ultraciteSkill3.4k3d agoMITA179Claude Code, Codex
freelance-gig-findertinyfish-io/tinyfish-cookbookSkill2.3kyesterdayMITA98Claude Code, Codex
fetchtinyfish-io/tinyfish-cookbookSkill2.3kyesterdayMITA121Claude Code
oss-bounty-findertinyfish-io/tinyfish-cookbookSkill2.3kyesterdayMITB242Claude Code, Codex
typescript-strictBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA41Claude Code, Codex
create-custom-widgetmendixlabs/mxcliSkill148yesterdayApache-2.0A50Claude Code