refactor: move SKILL.md to src, add playwriter skill command
- Move skills/playwriter/SKILL.md to playwriter/src/skill.md (source of truth) - Add 'playwriter skill' CLI command to output full docs - Make skills/playwriter/SKILL.md a lightweight stub pointing to CLI - Generate prompt.md to dist/ instead of src/ - Strip CLI-only content from MCP prompt
This commit is contained in:
@@ -5,7 +5,7 @@ this is the playwriter codebase
|
||||
the extension uses chrome.debugger to manage the user browser
|
||||
|
||||
read ./README.md for an overview of how this extension and mcp work
|
||||
read skills/playwriter/SKILL.md to understand the MCP docs (source of truth)
|
||||
read playwriter/src/skill.md to understand the MCP docs (source of truth)
|
||||
|
||||
## backward compatibility
|
||||
|
||||
@@ -140,11 +140,13 @@ extension/ contains the chrome extension code. you need to run `pnpm build` to m
|
||||
|
||||
when I ask you to release extension run package.json release script
|
||||
|
||||
playwriter contains the ws server and MCP code. also the tests for the mcp are there. skills/playwriter/SKILL.md is the source of truth for MCP docs - edit that file to update agent instructions. the build script generates playwriter/src/prompt.md (gitignored) from SKILL.md, stripping CLI-only sections.
|
||||
playwriter contains the ws server and MCP code. also the tests for the mcp are there. playwriter/src/skill.md is the source of truth for MCP docs - edit that file to update agent instructions. the build script generates playwriter/dist/prompt.md from skill.md, stripping CLI-only sections.
|
||||
|
||||
playwriter/src/resource.md is for more generic knowledge about playwright that the agent can use when necessary, for things like best practices for selecting locators on the page
|
||||
|
||||
website/public/resources/ and website/public/SKILL.md are auto-generated by `playwriter/scripts/build-resources.ts` during `pnpm build`. DO NOT edit these files manually - edit the source files instead (e.g. `debugger-examples.ts`, `editor-examples.ts`, `styles-examples.ts`, `skills/playwriter/SKILL.md`)
|
||||
website/public/resources/ and website/public/SKILL.md are auto-generated by `playwriter/scripts/build-resources.ts` during `pnpm build`. DO NOT edit these files manually - edit the source files instead (e.g. `debugger-examples.ts`, `editor-examples.ts`, `styles-examples.ts`, `playwriter/src/skill.md`)
|
||||
|
||||
skills/playwriter/SKILL.md is a lightweight stub that tells agents to run `playwriter skill` for full, up-to-date instructions.
|
||||
|
||||
## CDP docs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user