Frontend Typescript Testing
shinpr/ai-coding-project-boilerplate
Designs frontend tests using the repository's configured React test and browser harnesses, including RTL, MSW, Vitest, and Playwright when present.
A skill your agent uses when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.
$ npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bartstc/vite-ts-react-template playwright-page-objects --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/playwright-page-objects .claude/skills/playwright-page-objects && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "playwright-page-objects" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objects into .claude/skills/playwright-page-objects/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-page-objects", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objectsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bartstc/vite-ts-react-template playwright-page-objects --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/playwright-page-objects .agents/skills/playwright-page-objects && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "playwright-page-objects" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objects into .agents/skills/playwright-page-objects/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-page-objects", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bartstc/vite-ts-react-template playwright-page-objects --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/playwright-page-objects .cursor/skills/playwright-page-objects && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "playwright-page-objects" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objects into .cursor/skills/playwright-page-objects/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-page-objects", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bartstc/vite-ts-react-template.git --path .agents/skills/playwright-page-objects--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bartstc/vite-ts-react-template playwright-page-objects --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/playwright-page-objects .gemini/skills/playwright-page-objects && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "playwright-page-objects" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objects into .gemini/skills/playwright-page-objects/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-page-objects", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bartstc/vite-ts-react-template playwright-page-objectsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/playwright-page-objects .github/skills/playwright-page-objects && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "playwright-page-objects" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objects into .github/skills/playwright-page-objects/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-page-objects", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bartstc/vite-ts-react-template playwright-page-objects --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bartstc/vite-ts-react-template.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/playwright-page-objects .opencode/skills/playwright-page-objects && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "playwright-page-objects" agent skill from https://github.com/bartstc/vite-ts-react-template/tree/core/.agents/skills/playwright-page-objects into .opencode/skills/playwright-page-objects/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-page-objects", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
playwright-page-objectsA skill your agent uses when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.
Playwright Page Objects is an agent skill from bartstc/vite-ts-react-template. Use when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/anti-patterns.md`, `references/core-patterns.md` and `references/fixtures-pattern.md`).
It sits in Testing & QA, covering Browser testing, End-to-end testing and Refactoring. It works with Playwright, React and TypeScript. The repository describes itself as: This project provides a basic dev setup intended for Single Page Application (SPA) development. It contains key tools, settings for seamless DX, and an demo app presenting good… The licence is MIT.
10 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6aa5c9c. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadWriteEditFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Playwright Page Objects loads about 1k tokens when it runs, and up to ~8.2k if it reads all its reference files. Until then it costs about 38 tokens; SKILL.md has 297 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Write, EditAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from bartstc/vite-ts-react-template at commit 6aa5c9c, republished under its MIT licence (© bartstc). 297 words, ~1,036 tokens.
.claude/skills/playwright-page-objects/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Modern POM architecture using Playwright's fixtures pattern, composition over inheritance, and role-based locators.
getByRole() > getByLabel() > getByText() > getByTestId()readonlythis for chaining; navigation methods return target page objectprivatewaitForPageLoad(), waitForResponse() before assertions| Pattern | When to Use | Reference |
|---|---|---|
| Fixtures | Always for page object instantiation | fixtures-pattern.md |
| Basic POM | All page objects | core-patterns.md |
| Composition | Shared UI elements (header, cards, modals) | core-patterns.md |
| Waiting strategies | Loading states, API responses | core-patterns.md |
| High-level actions | Multi-page flows (checkout, onboarding) | core-patterns.md |
| Form handling | Multi-step forms, validation | form-handling.md |
1. page.getByRole('button', { name: 'Add to Cart' }) // Preferred
2. page.getByLabel('Email') // Form inputs
3. page.getByText('Welcome back') // Non-interactive
4. page.getByPlaceholder('Search...') // When no label
5. page.getByTestId('cart-item-count') // Escape hatch| Anti-Pattern | Problem | Solution |
|---|---|---|
| Assertions in POMs | Hidden test logic | Expose state, assert in tests |
| Fat page objects | 50+ locators unmaintainable | Split into components |
| Deep inheritance | Rigid, hard to modify | Use composition |
| CSS selectors | Break on styling changes | Use role-based selectors |
| Wrapping Playwright | Unnecessary abstraction | Use Playwright directly |
| All members public | Exposes internals | Mark internal members private |
© bartstc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in .agents/skills/playwright-page-objects of bartstc/vite-ts-react-template.
Open the folder on GitHubat commit 6aa5c9c
Playwright Page Objects next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Playwright Page Objects this skillbartstc/vite-ts-react-template | 122 | — | ~1k | Automated safety check: Notes | MIT | |
| Frontend Typescript Testingshinpr/ai-coding-project-boilerplate | 232 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Frontend Typescript Testingshinpr/ai-coding-project-boilerplate | 232 | — | ~843 | Automated safety check: Pass | MIT | |
| Frontend Typescript Testingshinpr/ai-coding-project-boilerplate | 232 | — | ~692 | Automated safety check: Pass | MIT | |
| RStudio Selenium to Playwright Migrationrstudio/rstudio | 5.1k | — | ~3.6k | Automated safety check: Pass | Custom licence | |
| Playwright Coretestdino-hq/playwright-skill | 385 | 1 repos | ~1.4k | Automated safety check: Pass | MIT |
shinpr/ai-coding-project-boilerplate
Designs frontend tests using the repository's configured React test and browser harnesses, including RTL, MSW, Vitest, and Playwright when present.
shinpr/ai-coding-project-boilerplate
リポジトリで設定済みのReactテスト・ブラウザハーネスを使用してフロントエンドテストを設計。RTL、MSW、Vitest、Playwrightが存在する場合に適用。コンポーネント、loading/error state、統合、フロントエンドE2Eテストの追加・レビュー時に使用。
shinpr/ai-coding-project-boilerplate
使用仓库已配置的 React 测试与浏览器测试工具(包括 RTL、MSW、Vitest,以及存在时的 Playwright)设计前端测试。适用于新增或评审组件测试、加载/错误状态测试、集成测试或前端 E2E 测试时。
rstudio/rstudio
Converts RStudio Python Selenium electron tests into TypeScript Playwright tests, checking each against a live RStudio before counting it as migrated.
testdino-hq/playwright-skill
Battle-tested Playwright patterns for writing and debugging reliable E2E, API, component, visual, accessibility, and security tests.
spences10/sveltest
Fix and create Svelte 5 tests with vitest-browser-svelte and Playwright.
bartstc/vite-ts-react-template
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications.
bartstc/vite-ts-react-template
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits).
bartstc/vite-ts-react-template
Collaboratively write a feature spec with the developer. An agent skill from bartstc/vite-ts-react-template.
bartstc/vite-ts-react-template
Explains code with visual diagrams and analogies. An agent skill from bartstc/vite-ts-react-template.
bartstc/vite-ts-react-template
Frontend building block catalog — typed patterns for components, hooks, queries, mutations, stores, and models.
bartstc/vite-ts-react-template
Test building block catalog — typed patterns for Storybook play-function tests, Vitest hook tests, Vitest unit tests, MSW handlers, and test data fixtures.
Works with
Categories
A skill your agent uses when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns. Playwright Page Objects is an agent skill from bartstc/vite-ts-react-template. Use when creating page objects or refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.
Playwright Page Objects fits situations like: creating page objects; refactoring Playwright E2E tests for better maintainability with Page Object Model patterns.
Run `npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a claude-code`. Or copy the skill folder (.agents/skills/playwright-page-objects in bartstc/vite-ts-react-template) into .claude/skills/playwright-page-objects in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a codex`. Or copy the skill folder (.agents/skills/playwright-page-objects in bartstc/vite-ts-react-template) into .agents/skills/playwright-page-objects in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bartstc/vite-ts-react-template --skill playwright-page-objects -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/playwright-page-objects, .gemini/skills/playwright-page-objects, .github/skills/playwright-page-objects and .opencode/skills/playwright-page-objects in your project.
SKILL.md names no scripts, command-line tools or credentials: Playwright Page Objects is instructions for the agent only. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Playwright Page Objects is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Playwright Page Objects: Frontend Typescript Testing (shinpr/ai-coding-project-boilerplate, 232 stars), Frontend Typescript Testing (shinpr/ai-coding-project-boilerplate, 232 stars), Frontend Typescript Testing (shinpr/ai-coding-project-boilerplate, 232 stars) and RStudio Selenium to Playwright Migration (rstudio/rstudio, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bartstc (a GitHub user) maintains it in bartstc/vite-ts-react-template, which has 122 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.
Source: bartstc/vite-ts-react-template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.