Skip to content

Commit 480aed5

Browse files
committed
chore: release v1.25.0 with updated setup script, improved templates folder for all skills, agents, cursor-rules folders, and claude.md file
1 parent 4839c2e commit 480aed5

30 files changed

Lines changed: 1613 additions & 302 deletions

.claude/agents

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../agents
1+
../templates/agents
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../skills/vasu-playwright-utils
1+
../../templates/skills/vasu-playwright-utils
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../cursor-rules/playwright-agents.mdc
1+
../../templates/cursor-rules/playwright-agents.mdc

.cursor/rules/project.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../cursor-rules/project.mdc
1+
../../templates/cursor-rules/project.mdc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../cursor-rules/vasu-playwright-utils.mdc
1+
../../templates/cursor-rules/vasu-playwright-utils.mdc

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [1.25.0] - 2026-03-23
4+
5+
### Added
6+
7+
- **`templates/` directory:** All distributable assets (skills, agents, cursor rules, CLAUDE.md) consolidated under `templates/` for reliable npm publishing — no root-level `skills/`, `agents/`, or `cursor-rules/` directories needed.
8+
- **`templates/skills/playwright-cli/`:** Playwright CLI skill bundled in the package (SKILL.md + references: request-mocking, running-code, session-management, storage-state, test-generation, tracing, video-recording). Consumers no longer need a separate `npx @playwright/cli install --skills` step.
9+
- **`scripts/setup.js`:** Setup script moved from `bin/setup.js` to `scripts/setup.js`. New implementation copies all assets from `templates/` with no path rewriting at install time — cursor rule `@file` paths are pre-baked as `.claude/` paths in templates.
10+
- **`--force-claude` flag:** `npx vasu-pw-setup --force-claude` overwrites `CLAUDE.md` independently of `--force`, preserving customised project instructions by default.
11+
- **`sync:playwright-cli-skill` script:** `npm run sync:playwright-cli-skill` wipes and copies `.claude/skills/playwright-cli``templates/skills/playwright-cli` for maintainers to sync upstream skill updates before publishing.
12+
13+
### Changed
14+
15+
- **Cursor rules in `templates/`:** `@file` directives use `.claude/` paths directly, so no runtime path rewriting is needed during install.
16+
- **`templates/cursor-rules/playwright-agents.mdc`:** Updated inline locator reference from `` `skills/vasu-playwright-utils/references/locators.md` `` to `` `.claude/skills/vasu-playwright-utils/references/locators.md` ``.
17+
- **Dev symlinks:** `.claude/agents`, `.claude/skills/vasu-playwright-utils`, and all `.cursor/rules/*.mdc` symlinks updated to point into `templates/` instead of the former root-level directories.
18+
- **README:** Contributor symlink table updated to reflect `templates/` as source of truth; `--force-claude` flag documented; `sync:playwright-cli-skill` usage added.
19+
320
## [1.24.2] - 2026-03-18
421

522
### Added

README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ To update after upgrading the library, run the command again with `--force`:
123123
npx vasu-pw-setup --force
124124
```
125125

126+
`--force` overwrites skills, agents, and cursor rules. To also overwrite `CLAUDE.md` (which is normally preserved), add `--force-claude`:
127+
128+
```bash
129+
npx vasu-pw-setup --force --force-claude
130+
```
131+
126132
### How skills and agents are invoked
127133

128134
- **Claude Code** auto-discovers `.claude/skills/` and `.claude/agents/`. `CLAUDE.md` instructs the agent to use `playwright-cli` and `vasu-playwright-utils` skills when writing tests, and to follow agent workflows (Planner / Generator / Healer) when asked to plan, generate, or fix tests.
@@ -132,17 +138,27 @@ To test: ask the agent to "write a test case to login for https://example.com" (
132138

133139
### For contributors
134140

135-
Skills, agents, and cursor rules are pre-installed via symlinks — edit the source directories and changes are reflected everywhere:
141+
All distributable assets live under `templates/`. Symlinks make them available to Claude Code and Cursor during local development — edit the source in `templates/` and changes are reflected everywhere:
136142

137-
| Symlink | Source of truth |
138-
| ----------------------------------------- | ---------------------------------------- |
139-
| `.claude/skills/vasu-playwright-utils` | `skills/vasu-playwright-utils/` |
140-
| `.claude/agents` | `agents/` |
141-
| `.cursor/rules/playwright-agents.mdc` | `cursor-rules/playwright-agents.mdc` |
142-
| `.cursor/rules/vasu-playwright-utils.mdc` | `cursor-rules/vasu-playwright-utils.mdc` |
143+
| Symlink | Source of truth |
144+
| ----------------------------------------- | -------------------------------------------------- |
145+
| `.claude/skills/vasu-playwright-utils` | `templates/skills/vasu-playwright-utils/` |
146+
| `.claude/skills/playwright-cli` | `templates/skills/playwright-cli/` |
147+
| `.claude/agents` | `templates/agents/` |
148+
| `.cursor/rules/playwright-agents.mdc` | `templates/cursor-rules/playwright-agents.mdc` |
149+
| `.cursor/rules/vasu-playwright-utils.mdc` | `templates/cursor-rules/vasu-playwright-utils.mdc` |
150+
| `.cursor/rules/project.mdc` | `templates/cursor-rules/project.mdc` |
143151

144152
`.cursor/rules/project.mdc` loads `CLAUDE.md` into Cursor so both Claude Code and Cursor share the same project instructions.
145153

154+
#### Syncing `playwright-cli` skill into `templates/`
155+
156+
After refreshing the skill locally (e.g. `npx skills update microsoft/playwright-cli --skill playwright-cli -a claude-code` so `.claude/skills/playwright-cli` is current), sync it into templates and commit:
157+
158+
```bash
159+
npm run sync:playwright-cli-skill
160+
```
161+
146162
## Issues and Feedback
147163

148164
If you encounter any issues or have feedback, please [Raise an Issue](https://github.com/vasu31dev/playwright-ts-lib/issues) on GitHub.

bin/setup.js

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)