autoframe: Skill for Claude Code

.claude/skills/new-page/SKILL.md

new-page is a skill for Claude Code 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 Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is kint4/autoframe's own configuration. It tells Claude Code how to work on autoframe itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything autoframe configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kint4/autoframe. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kint4/autoframe/main/.claude/skills/new-page/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kint4/autoframe

Made for: Claude Code.

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/github.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/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 new-page

Your own site · 80×15
<a href="https://agentmods.dev/skills/kint4/autoframe/new-page"><img src="https://agentmods.dev/badge/skills/kint4/autoframe/new-page.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.00038 $0.00509
Opus 5.5 $0.00015 $0.00204
Sonnet 5.5 $0.00008 $0.00102
Haiku 4.5 $0.00004 $0.00051

Measured 2mo ago against content hash abc97f11e3c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (8 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 509 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-31.