Skip to content

Commit 53ecdfc

Browse files
authored
Merge pull request #74 from Automattic/docs-agent/build-with-wordpress-skills
Update live agent skills
2 parents ed04179 + e367d12 commit 53ecdfc

21 files changed

Lines changed: 168 additions & 147 deletions

File tree

plugins/aider/skills/studio/SKILL.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use MCP for:
3737
- `wp_cli`
3838
- audits
3939
- workflow telemetry
40-
- `validate_html_blocks` and `validate_and_fix_blocks`
40+
- `validate_blocks`
4141
- `take_screenshot` and `inspect_design`
4242

4343
Use the CLI for:
@@ -63,11 +63,12 @@ Use direct file edits for theme and plugin files when writing code.
6363
6. Use `wp_cli` for arbitrary WordPress operations instead of dropping to the shell.
6464
7. If MCP is unavailable or not the right tool for the task, fall back to the smallest `studio` CLI command that gets the job done.
6565
8. Quote and escape user-provided shell arguments when using the CLI fallback.
66-
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_html_blocks` first when the content may contain `core/html` blocks, then run `validate_and_fix_blocks`.
67-
10. If `validate_html_blocks` or `validate_and_fix_blocks` reports invalid blocks, treat that as a required fix step:
68-
- use the reported `Expected` versus `Actual` markup to identify the serialization mismatch
69-
- repair the block markup instead of leaving invalid content in place
70-
- re-run `validate_html_blocks` or `validate_and_fix_blocks`, as appropriate
66+
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_blocks`. Prefer the `filePath` argument when the content lives in a template, template part, pattern, or other file.
67+
10. Treat every `validate_blocks` issue as a required fix step:
68+
- if the static `core/html` policy reports invalid HTML blocks, rewrite those blocks as editable core or plugin blocks before calling `validate_blocks` again
69+
- once the HTML policy passes, use the live-editor validation report to identify serialization mismatches
70+
- when `validate_blocks` applies an auto-fix to a file, do not manually replace the file content; review the returned diff only for class, nesting, or CSS-selector follow-up
71+
- for inline content, use the returned fixed block content exactly when an auto-fix is proposed
7172
- repeat until the report shows all blocks valid
7273
11. After visible site changes, use `take_screenshot` to review the result on desktop and mobile when layout or styling matters.
7374
12. When screenshots reveal a layout or styling issue, use `inspect_design` before editing CSS so the fix targets the element carrying the rendered style.
@@ -79,7 +80,7 @@ Use direct file edits for theme and plugin files when writing code.
7980
- Prefer MCP tools over shell commands when both can accomplish the task.
8081
- Validate theme and plugin slugs before using them in paths or commands.
8182
- Do not invent site paths; derive them from Studio tools or the Studio home.
82-
- Serialized block content must not be left unvalidated. `validate_and_fix_blocks` is mandatory after block-content writes or updates.
83+
- Serialized block content must not be left unvalidated. `validate_blocks` is mandatory after block-content writes or updates.
8384
- Keep review loops proportional to the task; do not force screenshots or validation when they add no value.
8485
- Do not place generated artifacts in the agent launch directory by default. Use the selected Studio site path.
8586
- If the user asks for performance, accessibility, or broader frontend QA, hand off to `auditing` rather than embedding that workflow here.

plugins/amp/.agents/skills/studio/SKILL.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use MCP for:
3737
- `wp_cli`
3838
- audits
3939
- workflow telemetry
40-
- `validate_html_blocks` and `validate_and_fix_blocks`
40+
- `validate_blocks`
4141
- `take_screenshot` and `inspect_design`
4242

4343
Use the CLI for:
@@ -63,11 +63,12 @@ Use direct file edits for theme and plugin files when writing code.
6363
6. Use `wp_cli` for arbitrary WordPress operations instead of dropping to the shell.
6464
7. If MCP is unavailable or not the right tool for the task, fall back to the smallest `studio` CLI command that gets the job done.
6565
8. Quote and escape user-provided shell arguments when using the CLI fallback.
66-
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_html_blocks` first when the content may contain `core/html` blocks, then run `validate_and_fix_blocks`.
67-
10. If `validate_html_blocks` or `validate_and_fix_blocks` reports invalid blocks, treat that as a required fix step:
68-
- use the reported `Expected` versus `Actual` markup to identify the serialization mismatch
69-
- repair the block markup instead of leaving invalid content in place
70-
- re-run `validate_html_blocks` or `validate_and_fix_blocks`, as appropriate
66+
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_blocks`. Prefer the `filePath` argument when the content lives in a template, template part, pattern, or other file.
67+
10. Treat every `validate_blocks` issue as a required fix step:
68+
- if the static `core/html` policy reports invalid HTML blocks, rewrite those blocks as editable core or plugin blocks before calling `validate_blocks` again
69+
- once the HTML policy passes, use the live-editor validation report to identify serialization mismatches
70+
- when `validate_blocks` applies an auto-fix to a file, do not manually replace the file content; review the returned diff only for class, nesting, or CSS-selector follow-up
71+
- for inline content, use the returned fixed block content exactly when an auto-fix is proposed
7172
- repeat until the report shows all blocks valid
7273
11. After visible site changes, use `take_screenshot` to review the result on desktop and mobile when layout or styling matters.
7374
12. When screenshots reveal a layout or styling issue, use `inspect_design` before editing CSS so the fix targets the element carrying the rendered style.
@@ -79,7 +80,7 @@ Use direct file edits for theme and plugin files when writing code.
7980
- Prefer MCP tools over shell commands when both can accomplish the task.
8081
- Validate theme and plugin slugs before using them in paths or commands.
8182
- Do not invent site paths; derive them from Studio tools or the Studio home.
82-
- Serialized block content must not be left unvalidated. `validate_and_fix_blocks` is mandatory after block-content writes or updates.
83+
- Serialized block content must not be left unvalidated. `validate_blocks` is mandatory after block-content writes or updates.
8384
- Keep review loops proportional to the task; do not force screenshots or validation when they add no value.
8485
- Do not place generated artifacts in the agent launch directory by default. Use the selected Studio site path.
8586
- If the user asks for performance, accessibility, or broader frontend QA, hand off to `auditing` rather than embedding that workflow here.

plugins/claude-code/skills/studio/SKILL.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use MCP for:
3737
- `wp_cli`
3838
- audits
3939
- workflow telemetry
40-
- `validate_html_blocks` and `validate_and_fix_blocks`
40+
- `validate_blocks`
4141
- `take_screenshot` and `inspect_design`
4242

4343
Use the CLI for:
@@ -63,11 +63,12 @@ Use direct file edits for theme and plugin files when writing code.
6363
6. Use `wp_cli` for arbitrary WordPress operations instead of dropping to the shell.
6464
7. If MCP is unavailable or not the right tool for the task, fall back to the smallest `studio` CLI command that gets the job done.
6565
8. Quote and escape user-provided shell arguments when using the CLI fallback.
66-
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_html_blocks` first when the content may contain `core/html` blocks, then run `validate_and_fix_blocks`.
67-
10. If `validate_html_blocks` or `validate_and_fix_blocks` reports invalid blocks, treat that as a required fix step:
68-
- use the reported `Expected` versus `Actual` markup to identify the serialization mismatch
69-
- repair the block markup instead of leaving invalid content in place
70-
- re-run `validate_html_blocks` or `validate_and_fix_blocks`, as appropriate
66+
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_blocks`. Prefer the `filePath` argument when the content lives in a template, template part, pattern, or other file.
67+
10. Treat every `validate_blocks` issue as a required fix step:
68+
- if the static `core/html` policy reports invalid HTML blocks, rewrite those blocks as editable core or plugin blocks before calling `validate_blocks` again
69+
- once the HTML policy passes, use the live-editor validation report to identify serialization mismatches
70+
- when `validate_blocks` applies an auto-fix to a file, do not manually replace the file content; review the returned diff only for class, nesting, or CSS-selector follow-up
71+
- for inline content, use the returned fixed block content exactly when an auto-fix is proposed
7172
- repeat until the report shows all blocks valid
7273
11. After visible site changes, use `take_screenshot` to review the result on desktop and mobile when layout or styling matters.
7374
12. When screenshots reveal a layout or styling issue, use `inspect_design` before editing CSS so the fix targets the element carrying the rendered style.
@@ -79,7 +80,7 @@ Use direct file edits for theme and plugin files when writing code.
7980
- Prefer MCP tools over shell commands when both can accomplish the task.
8081
- Validate theme and plugin slugs before using them in paths or commands.
8182
- Do not invent site paths; derive them from Studio tools or the Studio home.
82-
- Serialized block content must not be left unvalidated. `validate_and_fix_blocks` is mandatory after block-content writes or updates.
83+
- Serialized block content must not be left unvalidated. `validate_blocks` is mandatory after block-content writes or updates.
8384
- Keep review loops proportional to the task; do not force screenshots or validation when they add no value.
8485
- Do not place generated artifacts in the agent launch directory by default. Use the selected Studio site path.
8586
- If the user asks for performance, accessibility, or broader frontend QA, hand off to `auditing` rather than embedding that workflow here.

plugins/cline/.cline/skills/studio/SKILL.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use MCP for:
3737
- `wp_cli`
3838
- audits
3939
- workflow telemetry
40-
- `validate_html_blocks` and `validate_and_fix_blocks`
40+
- `validate_blocks`
4141
- `take_screenshot` and `inspect_design`
4242

4343
Use the CLI for:
@@ -63,11 +63,12 @@ Use direct file edits for theme and plugin files when writing code.
6363
6. Use `wp_cli` for arbitrary WordPress operations instead of dropping to the shell.
6464
7. If MCP is unavailable or not the right tool for the task, fall back to the smallest `studio` CLI command that gets the job done.
6565
8. Quote and escape user-provided shell arguments when using the CLI fallback.
66-
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_html_blocks` first when the content may contain `core/html` blocks, then run `validate_and_fix_blocks`.
67-
10. If `validate_html_blocks` or `validate_and_fix_blocks` reports invalid blocks, treat that as a required fix step:
68-
- use the reported `Expected` versus `Actual` markup to identify the serialization mismatch
69-
- repair the block markup instead of leaving invalid content in place
70-
- re-run `validate_html_blocks` or `validate_and_fix_blocks`, as appropriate
66+
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_blocks`. Prefer the `filePath` argument when the content lives in a template, template part, pattern, or other file.
67+
10. Treat every `validate_blocks` issue as a required fix step:
68+
- if the static `core/html` policy reports invalid HTML blocks, rewrite those blocks as editable core or plugin blocks before calling `validate_blocks` again
69+
- once the HTML policy passes, use the live-editor validation report to identify serialization mismatches
70+
- when `validate_blocks` applies an auto-fix to a file, do not manually replace the file content; review the returned diff only for class, nesting, or CSS-selector follow-up
71+
- for inline content, use the returned fixed block content exactly when an auto-fix is proposed
7172
- repeat until the report shows all blocks valid
7273
11. After visible site changes, use `take_screenshot` to review the result on desktop and mobile when layout or styling matters.
7374
12. When screenshots reveal a layout or styling issue, use `inspect_design` before editing CSS so the fix targets the element carrying the rendered style.
@@ -79,7 +80,7 @@ Use direct file edits for theme and plugin files when writing code.
7980
- Prefer MCP tools over shell commands when both can accomplish the task.
8081
- Validate theme and plugin slugs before using them in paths or commands.
8182
- Do not invent site paths; derive them from Studio tools or the Studio home.
82-
- Serialized block content must not be left unvalidated. `validate_and_fix_blocks` is mandatory after block-content writes or updates.
83+
- Serialized block content must not be left unvalidated. `validate_blocks` is mandatory after block-content writes or updates.
8384
- Keep review loops proportional to the task; do not force screenshots or validation when they add no value.
8485
- Do not place generated artifacts in the agent launch directory by default. Use the selected Studio site path.
8586
- If the user asks for performance, accessibility, or broader frontend QA, hand off to `auditing` rather than embedding that workflow here.

plugins/codex/plugins/wordpress-studio/skills/studio/SKILL.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use MCP for:
3737
- `wp_cli`
3838
- audits
3939
- workflow telemetry
40-
- `validate_html_blocks` and `validate_and_fix_blocks`
40+
- `validate_blocks`
4141
- `take_screenshot` and `inspect_design`
4242

4343
Use the CLI for:
@@ -63,11 +63,12 @@ Use direct file edits for theme and plugin files when writing code.
6363
6. Use `wp_cli` for arbitrary WordPress operations instead of dropping to the shell.
6464
7. If MCP is unavailable or not the right tool for the task, fall back to the smallest `studio` CLI command that gets the job done.
6565
8. Quote and escape user-provided shell arguments when using the CLI fallback.
66-
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_html_blocks` first when the content may contain `core/html` blocks, then run `validate_and_fix_blocks`.
67-
10. If `validate_html_blocks` or `validate_and_fix_blocks` reports invalid blocks, treat that as a required fix step:
68-
- use the reported `Expected` versus `Actual` markup to identify the serialization mismatch
69-
- repair the block markup instead of leaving invalid content in place
70-
- re-run `validate_html_blocks` or `validate_and_fix_blocks`, as appropriate
66+
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_blocks`. Prefer the `filePath` argument when the content lives in a template, template part, pattern, or other file.
67+
10. Treat every `validate_blocks` issue as a required fix step:
68+
- if the static `core/html` policy reports invalid HTML blocks, rewrite those blocks as editable core or plugin blocks before calling `validate_blocks` again
69+
- once the HTML policy passes, use the live-editor validation report to identify serialization mismatches
70+
- when `validate_blocks` applies an auto-fix to a file, do not manually replace the file content; review the returned diff only for class, nesting, or CSS-selector follow-up
71+
- for inline content, use the returned fixed block content exactly when an auto-fix is proposed
7172
- repeat until the report shows all blocks valid
7273
11. After visible site changes, use `take_screenshot` to review the result on desktop and mobile when layout or styling matters.
7374
12. When screenshots reveal a layout or styling issue, use `inspect_design` before editing CSS so the fix targets the element carrying the rendered style.
@@ -79,7 +80,7 @@ Use direct file edits for theme and plugin files when writing code.
7980
- Prefer MCP tools over shell commands when both can accomplish the task.
8081
- Validate theme and plugin slugs before using them in paths or commands.
8182
- Do not invent site paths; derive them from Studio tools or the Studio home.
82-
- Serialized block content must not be left unvalidated. `validate_and_fix_blocks` is mandatory after block-content writes or updates.
83+
- Serialized block content must not be left unvalidated. `validate_blocks` is mandatory after block-content writes or updates.
8384
- Keep review loops proportional to the task; do not force screenshots or validation when they add no value.
8485
- Do not place generated artifacts in the agent launch directory by default. Use the selected Studio site path.
8586
- If the user asks for performance, accessibility, or broader frontend QA, hand off to `auditing` rather than embedding that workflow here.

plugins/copilot/skills/studio/SKILL.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use MCP for:
3737
- `wp_cli`
3838
- audits
3939
- workflow telemetry
40-
- `validate_html_blocks` and `validate_and_fix_blocks`
40+
- `validate_blocks`
4141
- `take_screenshot` and `inspect_design`
4242

4343
Use the CLI for:
@@ -63,11 +63,12 @@ Use direct file edits for theme and plugin files when writing code.
6363
6. Use `wp_cli` for arbitrary WordPress operations instead of dropping to the shell.
6464
7. If MCP is unavailable or not the right tool for the task, fall back to the smallest `studio` CLI command that gets the job done.
6565
8. Quote and escape user-provided shell arguments when using the CLI fallback.
66-
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_html_blocks` first when the content may contain `core/html` blocks, then run `validate_and_fix_blocks`.
67-
10. If `validate_html_blocks` or `validate_and_fix_blocks` reports invalid blocks, treat that as a required fix step:
68-
- use the reported `Expected` versus `Actual` markup to identify the serialization mismatch
69-
- repair the block markup instead of leaving invalid content in place
70-
- re-run `validate_html_blocks` or `validate_and_fix_blocks`, as appropriate
66+
9. After every file write, file edit, or `wp_cli` content update that contains serialized WordPress block markup, run `validate_blocks`. Prefer the `filePath` argument when the content lives in a template, template part, pattern, or other file.
67+
10. Treat every `validate_blocks` issue as a required fix step:
68+
- if the static `core/html` policy reports invalid HTML blocks, rewrite those blocks as editable core or plugin blocks before calling `validate_blocks` again
69+
- once the HTML policy passes, use the live-editor validation report to identify serialization mismatches
70+
- when `validate_blocks` applies an auto-fix to a file, do not manually replace the file content; review the returned diff only for class, nesting, or CSS-selector follow-up
71+
- for inline content, use the returned fixed block content exactly when an auto-fix is proposed
7172
- repeat until the report shows all blocks valid
7273
11. After visible site changes, use `take_screenshot` to review the result on desktop and mobile when layout or styling matters.
7374
12. When screenshots reveal a layout or styling issue, use `inspect_design` before editing CSS so the fix targets the element carrying the rendered style.
@@ -79,7 +80,7 @@ Use direct file edits for theme and plugin files when writing code.
7980
- Prefer MCP tools over shell commands when both can accomplish the task.
8081
- Validate theme and plugin slugs before using them in paths or commands.
8182
- Do not invent site paths; derive them from Studio tools or the Studio home.
82-
- Serialized block content must not be left unvalidated. `validate_and_fix_blocks` is mandatory after block-content writes or updates.
83+
- Serialized block content must not be left unvalidated. `validate_blocks` is mandatory after block-content writes or updates.
8384
- Keep review loops proportional to the task; do not force screenshots or validation when they add no value.
8485
- Do not place generated artifacts in the agent launch directory by default. Use the selected Studio site path.
8586
- If the user asks for performance, accessibility, or broader frontend QA, hand off to `auditing` rather than embedding that workflow here.

0 commit comments

Comments
 (0)