new-page

new-page is a skill for Claude Code, Codex from kint4/autoframe. It costs 38 tokens per session (509 once invoked), scanned A, original, MIT.

A generator for a typed Playwright Page Object, a code file that describes a web page's elements and actions for browser tests. It follows the conventions defined by Autoframe.

In plain words
What is it for?
Use it to create page objects from a URL, feature name, or page description, including navigation, actions, element locators, and checks.
Why use it?
It removes repetitive setup when adding a new page or feature to Playwright tests and encourages consistent, readable test code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kint4/autoframe/new-page
Any agent
npx skills add kint4/autoframe --skill new-page
Clone the repo
git clone --depth 1 https://github.com/kint4/autoframe

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 new-page

README.md
[![agentmods](https://agentmods.dev/badge/skills/kint4/autoframe/new-page.svg)](https://agentmods.dev/skills/kint4/autoframe/new-page)
Your own site
<a href="https://agentmods.dev/skills/kint4/autoframe/new-page"><img src="https://agentmods.dev/badge/skills/kint4/autoframe/new-page.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00509
Opus 5 $0.00019 $0.00254
Sonnet 5 $0.00008 $0.00102
Haiku 4.5 $0.00004 $0.00051

Measured 5d ago against content hash abc97f11e3c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

new-page 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 5d 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.

.claude/skills/new-page/SKILL.md · 52 lines

What it actually says

/new-page — Generate a Page Object

Type: Functional Description: Generates a typed Playwright Page Object for a given URL or feature, following Autoframe's Page Object Model conventions exactly.


Input Format

The user provides one of:

  • A page URL (e.g. https://app.com/login)
  • A feature name (e.g. login, checkout)
  • A description of the page and its key elements

If the page has elements you cannot infer, ask up to 3 clarifying questions about the key elements and actions on the page.

Output Format

A single Page Object file at pages/[feature-name]/[PageName]Page.ts that follows the POM pattern in CLAUDE.md:

  • expect imported from @playwright/test
  • All locators declared readonly and assigned in the constructor
  • goto() navigation method
  • Verb-named action methods
  • expect-prefixed assertion methods

Step-by-Step Instructions

  1. Read the POM conventions in CLAUDE.md.
  2. Determine the feature folder (kebab-case) and the class name (PascalCase + Page).
  3. Identify the page's key elements. Prefer getByRole, getByLabel, getByPlaceholder — never CSS selectors or page.$() unless no semantic locator exists.
  4. Write the file:
    • Import Page, Locator, expect from @playwright/test.
    • Declare readonly page: Page and one readonly Locator per element.
    • Assign all locators in the constructor.
    • Add goto().
    • Add one verb-named action method per user action (one responsibility each).
    • Add expect-prefixed assertion methods for key states.
  5. Save to pages/[feature-name]/[PageName]Page.ts.
  6. Suggest running /new-spec next to generate tests for this page, and offer to create a fixture.

Rules

  • Locators only in the constructor, never inline in methods.
  • One action per method; methods named as verbs.
  • Assertions prefixed with expect.
  • Semantic locators over CSS, always.
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. 5d ago First seen · 52 lines · 38 tokens per session scan A abc97f11e3c2

Subscribe to this mod's changes

new-page is a skill published in the GitHub repository kint4/autoframe (6 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 509 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

JMeter Load Testing

Load and performance testing skill using Apache JMeter, covering test plans, thread groups, assertions, listeners, timers, and distributed testing.

PramodDutta/qaskills · 32 tokens

qawolf-cli

Manage QA Wolf through the qawolf CLI. Use when asked to create, update, or list coverage requests, bug reports, or maintenance reports; start a run of flows or tags on the QA Wolf platform or read a run's results; list, set, or delete environment variables; manage environments, flows, or tags; request automation of…

qawolf/cli · 118 tokens

k6-load-testing

Comprehensive k6 load testing skill for API, browser, and scalability testing. Write realistic load scenarios, analyze results, and integrate with CI/CD.

tmolavi/mcp-agent-skills-hub · 35 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

vasu31dev/playwright-ts-template · 52 tokens

playwright

Battle-tested Playwright patterns for E2E, API, component, visual, accessibility, and security testing. Covers locators, fixtures, POM, network mocking, auth flows, debugging, CI/CD (GitHub Actions, GitLab, CircleCI, Azure, Jenkins), framework recipes (React, Next.js, Vue, Angular), and migration guides from…

zebbern/termstack · 85 tokens

k6-load-testing

Comprehensive k6 load testing skill for API, browser, and scalability testing. Write realistic load scenarios, analyze results, and integrate with CI/CD.

LiHongwei-cn/lihongwei-cn · 35 tokens