All skills
microsoft avatar

/dev

@0406ada official
by microsoftmicrosoft/playwright-cli14k stars
758

Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.

Use this Skill: https://skilld.dev/gh/microsoft/playwright-cli/dev

This session only. Nothing lands on disk.

roll.md

≈517 tokens on demand. Your agent reads this file only when SKILL.md points to it.

How to roll Playwright dependency

Steps

  1. Obtain latest Playwright version npm info playwright@next version

  2. Update Playwright packages in package.json:

    • Update playwright and playwright-core (dependencies) and @playwright/test (devDependency) to the target version.
    • Run npm install to update package-lock.json.
    • Verify with npm ls playwright-core that the root playwright-core actually rolled — it is pinned directly in package.json and is what playwright-cli.js runs; forgetting it leaves the CLI on the old version while tests pass against the new @playwright/test.
  3. Run the update script to sync skills and README:

    node scripts/update.js

    This script:

    • Runs node playwright-cli.js install --skills to regenerate skills from the new Playwright version.
    • Copies the generated skills from .claude/skills/playwright-cli/ into skills/playwright-cli/.
    • Cleans up the generated .claude/skills/ directory.
  4. Update README.md with relevant changes from the updated skill at skills/playwright-cli/SKILL.md. Compare the skill file with the README and update any sections that are out of date (commands, flags, default behaviors, examples).

  5. Verify the CLI works:

    node playwright-cli.js --help
  6. Test the CLI:

    npm run test
  7. Create a branch and commit:

    • Branch name: roll_<version> (e.g. roll_214)
    • Commit message: chore: roll Playwright to <version>
    • do not add Co-Authored-By

Key files

File Role
package.json Playwright version pins (playwright, @playwright/test)
playwright-cli.js CLI entry point — requires Playwright's program module
scripts/update.js Automation script for syncing skills and README after version bump
skills/playwright-cli/SKILL.md Skill definition installed from Playwright (source of truth for commands)
README.md User-facing docs — must reflect current skill commands and behavior

Source: SKILL.md on GitHub

2 warnings12d5 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    This skill provides structured workflows for maintaining the Playwright CLI repository, including dependency management and release preparation. It incorporates standard development practices and utilizes official tools such as Git and the GitHub CLI.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    2/2 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 0406ada. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 6 months ago

README badge

README badge for microsoft/playwright-cli/dev