agent-manifesto-kit 0.0.0-development → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +159 -95
  3. package/collection/NOTICE.md +36 -36
  4. package/collection/agents/code-reviewer.md +103 -103
  5. package/collection/agents/docs-manager.md +127 -127
  6. package/collection/bundles/kit-adopt/README.md +36 -36
  7. package/collection/bundles/kit-adopt/conventions/recommended-companions.md +43 -43
  8. package/collection/bundles/kit-adopt/pipelines/kit-adopt.md +52 -52
  9. package/collection/bundles/kit-adopt/skills/kit-adopt/SKILL.md +72 -72
  10. package/collection/bundles/qa-automation/README.md +48 -0
  11. package/collection/bundles/qa-automation/RECOMMENDS.md +19 -0
  12. package/collection/bundles/qa-automation/agents/qa-explorer.md +55 -0
  13. package/collection/bundles/qa-automation/agents/qa-test-reviewer.md +71 -0
  14. package/collection/bundles/qa-automation/conventions/qa-verification.md +50 -0
  15. package/collection/bundles/qa-automation/pipelines/qa-test-debug.md +66 -0
  16. package/collection/bundles/qa-automation/pipelines/qa-test-from-spec.md +65 -0
  17. package/collection/bundles/qa-automation/skills/qa-playwright-cli/SKILL.md +83 -0
  18. package/collection/bundles/qa-automation/skills/qa-test-debugger/SKILL.md +60 -0
  19. package/collection/bundles/qa-automation/skills/qa-test-writer/SKILL.md +60 -0
  20. package/collection/bundles/sdd/README.md +50 -50
  21. package/collection/bundles/sdd/RECOMMENDS.md +21 -21
  22. package/collection/bundles/sdd/agents/sdd-gap-analyzer.md +79 -79
  23. package/collection/bundles/sdd/agents/sdd-spec-reviewer.md +75 -75
  24. package/collection/bundles/sdd/conventions/sdd-doc-set.md +136 -136
  25. package/collection/bundles/sdd/pipelines/sdd-adopt.md +60 -60
  26. package/collection/bundles/sdd/pipelines/sdd-bootstrap.md +60 -60
  27. package/collection/bundles/sdd/skills/sdd-doc-author/SKILL.md +69 -69
  28. package/collection/bundles/sdd/skills/sdd-feature-author/SKILL.md +71 -71
  29. package/collection/bundles/sdd/skills/sdd-index-sync/SKILL.md +61 -61
  30. package/collection/bundles/sdd/templates/docs/INDEX.md +35 -35
  31. package/collection/bundles/sdd/templates/docs/api.md +23 -23
  32. package/collection/bundles/sdd/templates/docs/architecture.md +42 -42
  33. package/collection/bundles/sdd/templates/docs/db.md +22 -22
  34. package/collection/bundles/sdd/templates/docs/decisions/ADR-template.md +24 -24
  35. package/collection/bundles/sdd/templates/docs/design.md +43 -43
  36. package/collection/bundles/sdd/templates/docs/idea.md +46 -46
  37. package/collection/bundles/sdd/templates/docs/operations.md +28 -28
  38. package/collection/bundles/sdd/templates/docs/roadmap.md +26 -26
  39. package/collection/bundles/sdd/templates/docs/security.md +24 -24
  40. package/collection/bundles/sdd/templates/docs/testing.md +34 -34
  41. package/collection/bundles/sdd/templates/features/F000_template/requirements.md +38 -38
  42. package/collection/bundles/sdd/templates/features/F000_template/scenarios.md +26 -26
  43. package/collection/bundles/sdd/templates/features/F000_template/tasks.md +11 -11
  44. package/collection/skills/brainstorm/SKILL.md +46 -46
  45. package/collection/skills/business-analyst/SKILL.md +58 -58
  46. package/collection/skills/documentation-maintenance/SKILL.md +60 -60
  47. package/collection/skills/explain-code/SKILL.md +81 -81
  48. package/collection/skills/frontend-audit/SKILL.md +135 -135
  49. package/collection/skills/frontend-impeccable-design/SKILL.md +135 -135
  50. package/collection/skills/frontend-impeccable-polish/SKILL.md +118 -118
  51. package/collection/skills/implement-feature/SKILL.md +99 -99
  52. package/collection/skills/memory-management/SKILL.md +75 -75
  53. package/collection/skills/meta-tags-optimizer/SKILL.md +73 -73
  54. package/collection/skills/pencil-design/SKILL.md +83 -83
  55. package/collection/skills/playwright-cli/SKILL.md +104 -104
  56. package/collection/skills/prepare-release-notes/SKILL.md +109 -109
  57. package/collection/skills/refactor-code/SKILL.md +104 -104
  58. package/collection/skills/review-code/SKILL.md +98 -98
  59. package/collection/skills/schema-markup-generator/SKILL.md +80 -80
  60. package/collection/skills/task-complete/SKILL.md +79 -79
  61. package/collection/skills/task-discovery/SKILL.md +69 -69
  62. package/collection/skills/task-validation/SKILL.md +71 -71
  63. package/collection/skills/test-review/SKILL.md +72 -72
  64. package/collection/skills/test-writer/SKILL.md +78 -78
  65. package/collection/skills/work-with-git/SKILL.md +154 -154
  66. package/dist/cli.js +31 -22
  67. package/dist/commands/adopt.js +240 -40
  68. package/dist/providers.js +3 -6
  69. package/package.json +48 -49
@@ -1,73 +1,73 @@
1
- ---
2
- name: meta-tags-optimizer
3
- description: Produces title tag, meta description, Open Graph, and Twitter Card metadata for a given page so it ranks and previews well in search results and on social platforms. Use when the user asks to write or improve page meta tags, fix CTR, or fix how a URL previews when shared.
4
- ---
5
-
6
- ## Scope
7
-
8
- - Produce a complete metadata package for a single page: title tag, meta description, canonical link, robots directive, Open Graph block, Twitter Card block, and the small set of common supporting tags (`viewport`, `author`, `article:published_time`, etc.) when relevant.
9
- - Offer multiple title and description variants when the user wants alternatives to compare.
10
- - Note CTR trade-offs between variants in plain language.
11
-
12
- ## Reference Versions
13
-
14
- This skill is written against:
15
- - **Open Graph protocol v1.0** — https://ogp.me
16
- - **Twitter / X Cards** — current cards markup as documented at https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards
17
- - **HTML Living Standard** for `<meta>` and `<link>` element semantics — https://html.spec.whatwg.org
18
- - **Length budgets** — title ≈ 50–60 characters, meta description ≈ 150–160 characters. These are approximations of pixel-width truncation observed in major search-engine SERPs (Google in particular) and are not formal specifications; budgets shift over time. Treat them as defaults the user may override at run time.
19
-
20
- The user may override any reference (e.g. a different SERP-budget source or a vendor-specific card spec) at run time; the skill follows the override and notes it in the output.
21
-
22
- ## Boundaries
23
-
24
- - Single responsibility: write metadata. Do not rewrite page body copy, generate schema markup, or route to other skills.
25
- - Do not change page URLs, slugs, or canonical targets without explicit user confirmation.
26
-
27
- ## Safety Constraints
28
-
29
- - Do not fabricate. Titles, descriptions, brand names, product names, image URLs, ranking promises, prices, or any factual claim must come from the user-supplied content or explicit user input. Fields that cannot be sourced are emitted as `missing`, never invented. This is the canonical no-fabrication rule for the skill.
30
- - Respect length budgets defined in `Reference Versions`. Exceeding a budget must be a deliberate trade-off the user is told about, not a silent overflow.
31
-
32
- ## Stop Conditions
33
-
34
- - Stop and ask when page URL, primary topic, target audience, or primary keyword cannot be identified.
35
- - Stop and report blocked when required inputs (page topic, primary keyword or angle) are missing and cannot be inferred from supplied content.
36
- - Stop and report blocked when the user asks for metadata that would misrepresent the page.
37
-
38
- ## Procedure
39
-
40
- If any Stop Condition fires during a step, halt and emit a `blocked` row in the output table; do not continue to later steps until the trigger is resolved. If an **optional** field cannot be sourced (e.g. no `og:image` URL, no `twitter:creator`), do not halt — emit the field as `missing` in the table per the Output Contract and continue.
41
-
42
- 1. Identify the page: URL, page type (article, product, landing, category, home), primary keyword or angle, target audience, and the page's value proposition.
43
- 2. Draft title tag(s). Target the title budget defined in `Reference Versions`, place the primary keyword early, keep brand suffix optional. Offer two or three variants when the user wants comparison.
44
- 3. Draft meta description(s). Target the description budget defined in `Reference Versions`, include the primary keyword once naturally, include a concrete value or call to action. Offer two or three variants when the user wants comparison.
45
- 4. Build the Open Graph block: `og:title`, `og:description`, `og:type`, `og:url`, `og:image`, `og:site_name`, and `og:locale` when known.
46
- 5. Build the Twitter Card block: `twitter:card` (default `summary_large_image`), `twitter:title`, `twitter:description`, `twitter:image`, and `twitter:site` / `twitter:creator` when supplied.
47
- 6. Add supporting tags as relevant: canonical link, `robots`, `viewport`, `author`, and article time tags for article pages.
48
- 7. Note the CTR trade-off between variants (e.g. "variant A leads with keyword, variant B leads with benefit") so the user can pick or A/B-test.
49
-
50
- ## Verification
51
-
52
- Before emitting the output, verify:
53
- - Title length within the budget defined in `Reference Versions`, primary keyword present and near the front.
54
- - Description length within the budget defined in `Reference Versions`, primary keyword present once, concrete CTA or value statement included.
55
- - OG and Twitter blocks reference the same canonical URL and a real image URL or `missing`.
56
- - No-fabrication rule held (see `Safety Constraints`).
57
- - Canonical link, if present, is absolute.
58
-
59
- ## Output Contract
60
-
61
- Emit:
62
-
63
- `Skill: meta-tags-optimizer - output below`
64
-
65
- Then provide, in order:
66
-
67
- 1. A fenced ```html block containing the recommended metadata, ready to drop into the page head. If multiple title or description variants were requested, include them as adjacent HTML comments so the user can swap.
68
- 2. A table:
69
-
70
- | Field | Value (chosen variant) | Length | Variants Offered | Notes |
71
- | --- | --- | --- | --- | --- |
72
-
73
- `Notes` must call out any field marked `missing`, any deliberate over-budget length, and the CTR trade-off between variants.
1
+ ---
2
+ name: meta-tags-optimizer
3
+ description: Produces title tag, meta description, Open Graph, and Twitter Card metadata for a given page so it ranks and previews well in search results and on social platforms. Use when the user asks to write or improve page meta tags, fix CTR, or fix how a URL previews when shared.
4
+ ---
5
+
6
+ ## Scope
7
+
8
+ - Produce a complete metadata package for a single page: title tag, meta description, canonical link, robots directive, Open Graph block, Twitter Card block, and the small set of common supporting tags (`viewport`, `author`, `article:published_time`, etc.) when relevant.
9
+ - Offer multiple title and description variants when the user wants alternatives to compare.
10
+ - Note CTR trade-offs between variants in plain language.
11
+
12
+ ## Reference Versions
13
+
14
+ This skill is written against:
15
+ - **Open Graph protocol v1.0** — https://ogp.me
16
+ - **Twitter / X Cards** — current cards markup as documented at https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards
17
+ - **HTML Living Standard** for `<meta>` and `<link>` element semantics — https://html.spec.whatwg.org
18
+ - **Length budgets** — title ≈ 50–60 characters, meta description ≈ 150–160 characters. These are approximations of pixel-width truncation observed in major search-engine SERPs (Google in particular) and are not formal specifications; budgets shift over time. Treat them as defaults the user may override at run time.
19
+
20
+ The user may override any reference (e.g. a different SERP-budget source or a vendor-specific card spec) at run time; the skill follows the override and notes it in the output.
21
+
22
+ ## Boundaries
23
+
24
+ - Single responsibility: write metadata. Do not rewrite page body copy, generate schema markup, or route to other skills.
25
+ - Do not change page URLs, slugs, or canonical targets without explicit user confirmation.
26
+
27
+ ## Safety Constraints
28
+
29
+ - Do not fabricate. Titles, descriptions, brand names, product names, image URLs, ranking promises, prices, or any factual claim must come from the user-supplied content or explicit user input. Fields that cannot be sourced are emitted as `missing`, never invented. This is the canonical no-fabrication rule for the skill.
30
+ - Respect length budgets defined in `Reference Versions`. Exceeding a budget must be a deliberate trade-off the user is told about, not a silent overflow.
31
+
32
+ ## Stop Conditions
33
+
34
+ - Stop and ask when page URL, primary topic, target audience, or primary keyword cannot be identified.
35
+ - Stop and report blocked when required inputs (page topic, primary keyword or angle) are missing and cannot be inferred from supplied content.
36
+ - Stop and report blocked when the user asks for metadata that would misrepresent the page.
37
+
38
+ ## Procedure
39
+
40
+ If any Stop Condition fires during a step, halt and emit a `blocked` row in the output table; do not continue to later steps until the trigger is resolved. If an **optional** field cannot be sourced (e.g. no `og:image` URL, no `twitter:creator`), do not halt — emit the field as `missing` in the table per the Output Contract and continue.
41
+
42
+ 1. Identify the page: URL, page type (article, product, landing, category, home), primary keyword or angle, target audience, and the page's value proposition.
43
+ 2. Draft title tag(s). Target the title budget defined in `Reference Versions`, place the primary keyword early, keep brand suffix optional. Offer two or three variants when the user wants comparison.
44
+ 3. Draft meta description(s). Target the description budget defined in `Reference Versions`, include the primary keyword once naturally, include a concrete value or call to action. Offer two or three variants when the user wants comparison.
45
+ 4. Build the Open Graph block: `og:title`, `og:description`, `og:type`, `og:url`, `og:image`, `og:site_name`, and `og:locale` when known.
46
+ 5. Build the Twitter Card block: `twitter:card` (default `summary_large_image`), `twitter:title`, `twitter:description`, `twitter:image`, and `twitter:site` / `twitter:creator` when supplied.
47
+ 6. Add supporting tags as relevant: canonical link, `robots`, `viewport`, `author`, and article time tags for article pages.
48
+ 7. Note the CTR trade-off between variants (e.g. "variant A leads with keyword, variant B leads with benefit") so the user can pick or A/B-test.
49
+
50
+ ## Verification
51
+
52
+ Before emitting the output, verify:
53
+ - Title length within the budget defined in `Reference Versions`, primary keyword present and near the front.
54
+ - Description length within the budget defined in `Reference Versions`, primary keyword present once, concrete CTA or value statement included.
55
+ - OG and Twitter blocks reference the same canonical URL and a real image URL or `missing`.
56
+ - No-fabrication rule held (see `Safety Constraints`).
57
+ - Canonical link, if present, is absolute.
58
+
59
+ ## Output Contract
60
+
61
+ Emit:
62
+
63
+ `Skill: meta-tags-optimizer - output below`
64
+
65
+ Then provide, in order:
66
+
67
+ 1. A fenced ```html block containing the recommended metadata, ready to drop into the page head. If multiple title or description variants were requested, include them as adjacent HTML comments so the user can swap.
68
+ 2. A table:
69
+
70
+ | Field | Value (chosen variant) | Length | Variants Offered | Notes |
71
+ | --- | --- | --- | --- | --- |
72
+
73
+ `Notes` must call out any field marked `missing`, any deliberate over-budget length, and the CTR trade-off between variants.
@@ -1,83 +1,83 @@
1
- ---
2
- name: pencil-design
3
- description: Creates and edits UI/UX designs in Pencil via its MCP server. Use for design-only requests. Do not implement application code for design-only tasks.
4
- ---
5
-
6
- ## Scope
7
-
8
- - Create and edit UI/UX designs in Pencil for design requests such as "Design the upload page" or "Rework the dashboard layout."
9
-
10
- ## What Is Pencil
11
-
12
- [Pencil](https://pencil.dev) is a UI/UX design tool for creating web and mobile mockups. Designs are stored as encrypted `.pen` files and can only be read or edited through the Pencil MCP server — never with standard file tools like Read or Grep.
13
-
14
- ## Prerequisites
15
-
16
- The Pencil MCP server must be installed, configured, and running in your Claude Code settings. Verify availability by confirming Pencil MCP tools such as `get_editor_state` and `get_guidelines` are callable. If they are unavailable, stop and ask the user to configure the Pencil MCP server before continuing.
17
-
18
- ## Safety Constraints
19
-
20
- - Never read `.pen` files with standard file tools; use the active Pencil document or a user-provided absolute `.pen` path through Pencil MCP tools.
21
- - Use Pencil MCP tools exclusively for `.pen` file operations.
22
- - Name all significant nodes by purpose, not primitive type: "Settings Panel" not "Frame 3".
23
- - Pencil renders siblings in reverse order in the Layers tab — order bottom-to-top, right-to-left when that matters.
24
- - For larger designs, split `batch_design` work by logical section. Avoid large insert operations with many descendants; prefer helper functions, loops, and smaller batches.
25
-
26
- ## Procedure
27
-
28
- 1. Check editor state: `get_editor_state(include_schema=true)`.
29
- 2. Before opening a document, call `open_document(path)` only when the user requested a specific `.pen` file and an absolute path is available; call `open_document()` with no path only when no active editor is open.
30
- 3. Inspect existing designs with `batch_get` before making any changes.
31
- 4. Retrieve relevant design guidelines using `get_guidelines` by category, name, and required params.
32
- 5. Consult available project brand, design guide, or UI documentation before major changes.
33
- 6. Call `snapshot_layout` to record the current state, then apply changes using `batch_design` with meaningful node names and proper sibling ordering.
34
- 7. Verify changes via `get_screenshot`, `batch_get`, and a post-change `snapshot_layout` when visual layout changes were made.
35
-
36
- If the target file, frame, screen, or implementation scope is unclear, ask one concise clarification before editing.
37
-
38
- ## Error Handling
39
-
40
- If `batch_design` fails, report the error; the failed operation batch is rolled back. If `batch_design` returns warnings, fix them in the next batch before proceeding to broader visual verification.
41
-
42
- ## Pencil MCP Tool Reference
43
-
44
- All tools below are MCP server commands provided by the Pencil MCP server.
45
-
46
- | Tool | What it does |
47
- | --- | --- |
48
- | `get_editor_state(include_schema=true)` | Returns the current document structure and available node types/properties |
49
- | `open_document(path)` | Opens a user-requested `.pen` file by absolute path; omit `path` only to open a new document when no active editor exists |
50
- | `batch_get(nodeIds, patterns, parentId, readDepth, ...)` | Reads current properties of one or more nodes or searches by pattern — always inspect before editing |
51
- | `get_guidelines(category, name, params)` | Lists or loads Pencil guides and styles |
52
- | `batch_design(filePath, input)` | Applies JavaScript snippets that create, update, move, replace, or delete nodes |
53
- | `get_screenshot(nodeId)` | Captures a node as an image; use `document` for the whole document |
54
- | `snapshot_layout()` | Records the current layout state for comparison |
55
- | `get_variables()` / `set_variables()` | Reads or writes design tokens (colors, spacing, typography) |
56
- | `find_empty_space_on_canvas()` | Locates free space for placing new elements |
57
- | `search_all_unique_properties(property)` | Finds all distinct values of a property across the document |
58
- | `replace_all_matching_properties(...)` | Bulk-updates a property value across matching nodes |
59
- | `export_nodes(nodeIds, format)` | Exports nodes as PNG, JPEG, WEBP, or PDF |
60
-
61
- ## Verification
62
-
63
- Before reporting completion, verify that layout problems are absent or explained using post-change `snapshot_layout` when visual layout changed, significant edited nodes can be read back with `batch_get`, and a screenshot was captured for visual changes unless unavailable.
64
-
65
- ## Output Contract
66
-
67
- Emit:
68
-
69
- `Skill: pencil-design - output below`
70
-
71
- Then include:
72
-
73
- | Field | Content |
74
- | --- | --- |
75
- | Status | `completed`, `skipped`, or `blocked` |
76
- | Target | Document, page, frame, or node area changed |
77
- | Files changed | `.pen` files created or modified |
78
- | Changes made | Design elements created, updated, or deleted |
79
- | Guidelines used | Pencil guidelines, style, or project design source consulted |
80
- | Verification | `snapshot_layout`, `batch_get`, screenshot path, or reason not run |
81
- | Assumptions / inferred decisions | Material assumptions or inferred design decisions, or `none` |
82
- | Warnings / Errors | Tool warnings or errors, or `none` |
83
- | Open questions | Clarifications needed, or `none` |
1
+ ---
2
+ name: pencil-design
3
+ description: Creates and edits UI/UX designs in Pencil via its MCP server. Use for design-only requests. Do not implement application code for design-only tasks.
4
+ ---
5
+
6
+ ## Scope
7
+
8
+ - Create and edit UI/UX designs in Pencil for design requests such as "Design the upload page" or "Rework the dashboard layout."
9
+
10
+ ## What Is Pencil
11
+
12
+ [Pencil](https://pencil.dev) is a UI/UX design tool for creating web and mobile mockups. Designs are stored as encrypted `.pen` files and can only be read or edited through the Pencil MCP server — never with standard file tools like Read or Grep.
13
+
14
+ ## Prerequisites
15
+
16
+ The Pencil MCP server must be installed, configured, and running in your Claude Code settings. Verify availability by confirming Pencil MCP tools such as `get_editor_state` and `get_guidelines` are callable. If they are unavailable, stop and ask the user to configure the Pencil MCP server before continuing.
17
+
18
+ ## Safety Constraints
19
+
20
+ - Never read `.pen` files with standard file tools; use the active Pencil document or a user-provided absolute `.pen` path through Pencil MCP tools.
21
+ - Use Pencil MCP tools exclusively for `.pen` file operations.
22
+ - Name all significant nodes by purpose, not primitive type: "Settings Panel" not "Frame 3".
23
+ - Pencil renders siblings in reverse order in the Layers tab — order bottom-to-top, right-to-left when that matters.
24
+ - For larger designs, split `batch_design` work by logical section. Avoid large insert operations with many descendants; prefer helper functions, loops, and smaller batches.
25
+
26
+ ## Procedure
27
+
28
+ 1. Check editor state: `get_editor_state(include_schema=true)`.
29
+ 2. Before opening a document, call `open_document(path)` only when the user requested a specific `.pen` file and an absolute path is available; call `open_document()` with no path only when no active editor is open.
30
+ 3. Inspect existing designs with `batch_get` before making any changes.
31
+ 4. Retrieve relevant design guidelines using `get_guidelines` by category, name, and required params.
32
+ 5. Consult available project brand, design guide, or UI documentation before major changes.
33
+ 6. Call `snapshot_layout` to record the current state, then apply changes using `batch_design` with meaningful node names and proper sibling ordering.
34
+ 7. Verify changes via `get_screenshot`, `batch_get`, and a post-change `snapshot_layout` when visual layout changes were made.
35
+
36
+ If the target file, frame, screen, or implementation scope is unclear, ask one concise clarification before editing.
37
+
38
+ ## Error Handling
39
+
40
+ If `batch_design` fails, report the error; the failed operation batch is rolled back. If `batch_design` returns warnings, fix them in the next batch before proceeding to broader visual verification.
41
+
42
+ ## Pencil MCP Tool Reference
43
+
44
+ All tools below are MCP server commands provided by the Pencil MCP server.
45
+
46
+ | Tool | What it does |
47
+ | --- | --- |
48
+ | `get_editor_state(include_schema=true)` | Returns the current document structure and available node types/properties |
49
+ | `open_document(path)` | Opens a user-requested `.pen` file by absolute path; omit `path` only to open a new document when no active editor exists |
50
+ | `batch_get(nodeIds, patterns, parentId, readDepth, ...)` | Reads current properties of one or more nodes or searches by pattern — always inspect before editing |
51
+ | `get_guidelines(category, name, params)` | Lists or loads Pencil guides and styles |
52
+ | `batch_design(filePath, input)` | Applies JavaScript snippets that create, update, move, replace, or delete nodes |
53
+ | `get_screenshot(nodeId)` | Captures a node as an image; use `document` for the whole document |
54
+ | `snapshot_layout()` | Records the current layout state for comparison |
55
+ | `get_variables()` / `set_variables()` | Reads or writes design tokens (colors, spacing, typography) |
56
+ | `find_empty_space_on_canvas()` | Locates free space for placing new elements |
57
+ | `search_all_unique_properties(property)` | Finds all distinct values of a property across the document |
58
+ | `replace_all_matching_properties(...)` | Bulk-updates a property value across matching nodes |
59
+ | `export_nodes(nodeIds, format)` | Exports nodes as PNG, JPEG, WEBP, or PDF |
60
+
61
+ ## Verification
62
+
63
+ Before reporting completion, verify that layout problems are absent or explained using post-change `snapshot_layout` when visual layout changed, significant edited nodes can be read back with `batch_get`, and a screenshot was captured for visual changes unless unavailable.
64
+
65
+ ## Output Contract
66
+
67
+ Emit:
68
+
69
+ `Skill: pencil-design - output below`
70
+
71
+ Then include:
72
+
73
+ | Field | Content |
74
+ | --- | --- |
75
+ | Status | `completed`, `skipped`, or `blocked` |
76
+ | Target | Document, page, frame, or node area changed |
77
+ | Files changed | `.pen` files created or modified |
78
+ | Changes made | Design elements created, updated, or deleted |
79
+ | Guidelines used | Pencil guidelines, style, or project design source consulted |
80
+ | Verification | `snapshot_layout`, `batch_get`, screenshot path, or reason not run |
81
+ | Assumptions / inferred decisions | Material assumptions or inferred design decisions, or `none` |
82
+ | Warnings / Errors | Tool warnings or errors, or `none` |
83
+ | Open questions | Clarifications needed, or `none` |
@@ -1,104 +1,104 @@
1
- ---
2
- name: playwright-cli
3
- description: Automates browser interactions for live UI exploration, testing, form filling, screenshots, and data extraction. Use when direct browser interaction is needed to answer questions that repository files cannot.
4
- ---
5
-
6
- ## Scope
7
-
8
- - Drive live browser automation when repository files, docs, and tests cannot reliably answer the current question.
9
- - Prefer repository evidence first. Run browser commands only when the codebase does not have the answer.
10
-
11
- ## What Is Playwright CLI
12
-
13
- [`playwright-cli`](https://playwright.dev/agent-cli/introduction) is a command-line tool for browser automation built on [Playwright](https://playwright.dev) (Microsoft's browser testing framework). It is invoked as a bash command and controls real browsers (Chrome, Firefox, WebKit, Edge) to navigate pages, interact with elements, capture screenshots, and inspect live UI state.
14
-
15
- ## Prerequisites
16
-
17
- Before using `playwright-cli`, confirm:
18
- - Node.js 20 or newer is available.
19
- - `playwright-cli` is installed and available globally or through `npx`; see the official installation guide at <https://playwright.dev/agent-cli/installation>.
20
- - `playwright-cli --help` or `npx playwright-cli --help` succeeds.
21
- - Required browsers are available, or can be installed with `playwright-cli install-browser`.
22
-
23
- A typical setup:
24
- ```bash
25
- npm install -g @playwright/cli@latest
26
- playwright-cli --help
27
- playwright-cli install-browser
28
- ```
29
-
30
- If the command is not available, stop and ask the user to set it up before continuing.
31
-
32
- ## Safety Constraints
33
-
34
- - Do not modify source files via browser automation.
35
- - Do not store credentials in session files or artifacts.
36
- - Do not run full test suites — use targeted, minimal interactions.
37
- - Do not perform destructive actions on live environments.
38
- - Before any persistent, external, authenticated, or non-local state-changing interaction, confirm the target URL/environment is intended and the action is necessary for the user's request.
39
- - Do not submit purchases, delete data, send messages, change permissions, or mutate live production data unless the user explicitly approved that exact action.
40
- - Do not use authentication, persistent profiles, saved sessions, or stored credentials unless explicitly approved.
41
-
42
- ## Core Capabilities
43
-
44
- - Navigate to URLs
45
- - Click, double-click, type, fill forms, hover, drag, check/uncheck elements
46
- - Take screenshots and capture accessibility snapshots
47
- - Evaluate JavaScript expressions
48
- - Inspect element attributes and DOM state
49
- - Read console logs and network requests
50
- - Manage named sessions, multiple tabs, and persistent browser profiles
51
- - Mock and route network requests
52
- - Record traces and videos for debugging
53
- - Support multiple browser types: Chrome, Firefox, WebKit, Edge
54
-
55
- ## Procedure
56
-
57
- 1. Use the smallest targeted browser flow that can answer the question.
58
- 2. Avoid long command chains without observing state between steps.
59
- 3. Use refs from the latest accessibility snapshot for interactions whenever possible.
60
- 4. Re-snapshot after navigation, submissions, or major UI state changes because refs are only valid for the current snapshot.
61
- 5. Use selectors or locators only when refs are unavailable or insufficient, and state that choice in the evidence.
62
- 6. Capture the final page state with a snapshot or screenshot before reporting.
63
-
64
- ## Error Handling
65
-
66
- When a browser command fails (page not found, element not found, timeout, JS error):
67
- - If the failure may be caused by stale refs after navigation or page change, take one fresh snapshot and retry once only for non-destructive actions.
68
- - Do not retry destructive, submitting, purchasing, deleting, or permission-changing actions without explicit user approval.
69
- - Record unresolved failures as `UNKNOWN` with the command, error reason, and available evidence.
70
- - Continue with any remaining independent actions.
71
-
72
- ## Artifact Organization
73
-
74
- Store generated artifacts in the CLI output directory. By default, `playwright-cli` writes generated files such as snapshots and screenshots under `.playwright-cli/`; projects may override this with `outputDir` in `.playwright/cli.config.json` or `PLAYWRIGHT_MCP_OUTPUT_DIR`.
75
-
76
- When an artifact is part of the final evidence, use an explicit `--filename` when the command supports it.
77
-
78
- ## Verification
79
-
80
- Before reporting completion, verify:
81
- - The final page state was captured with a snapshot or screenshot.
82
- - Claims about visual layout, canvas, charts, or non-accessible UI are supported by screenshots.
83
- - Claims about text, controls, and forms are supported by accessibility snapshot evidence when available.
84
- - Any console or network finding names the command used and the observed result.
85
- - All live UI findings are marked `CONFIRMED_FROM_LIVE_UI`; unavailable evidence is marked `UNKNOWN`.
86
-
87
- ## Output Contract
88
-
89
- Emit:
90
-
91
- `Skill: playwright-cli - output below`
92
-
93
- Then include:
94
-
95
- | Field | Content |
96
- | --- | --- |
97
- | Status | `completed`, `skipped`, or `blocked` |
98
- | URL / Environment | Page or app visited, including local/remote context when known |
99
- | Session / Profile | Session name, profile mode, or `default in-memory` |
100
- | Actions | Targeted steps performed |
101
- | Findings | Each finding labeled `CONFIRMED_FROM_LIVE_UI` or `UNKNOWN` |
102
- | Evidence | Snapshot excerpts, accessible names, stable refs/attributes, console/network facts, or artifact paths |
103
- | Artifacts | Screenshot, snapshot, trace, video, or PDF paths, or `none` |
104
- | Errors / Unknowns | Failed commands, missing access, unavailable credentials, or `none` |
1
+ ---
2
+ name: playwright-cli
3
+ description: Automates browser interactions for live UI exploration, testing, form filling, screenshots, and data extraction. Use when direct browser interaction is needed to answer questions that repository files cannot.
4
+ ---
5
+
6
+ ## Scope
7
+
8
+ - Drive live browser automation when repository files, docs, and tests cannot reliably answer the current question.
9
+ - Prefer repository evidence first. Run browser commands only when the codebase does not have the answer.
10
+
11
+ ## What Is Playwright CLI
12
+
13
+ [`playwright-cli`](https://playwright.dev/agent-cli/introduction) is a command-line tool for browser automation built on [Playwright](https://playwright.dev) (Microsoft's browser testing framework). It is invoked as a bash command and controls real browsers (Chrome, Firefox, WebKit, Edge) to navigate pages, interact with elements, capture screenshots, and inspect live UI state.
14
+
15
+ ## Prerequisites
16
+
17
+ Before using `playwright-cli`, confirm:
18
+ - Node.js 20 or newer is available.
19
+ - `playwright-cli` is installed and available globally or through `npx`; see the official installation guide at <https://playwright.dev/agent-cli/installation>.
20
+ - `playwright-cli --help` or `npx playwright-cli --help` succeeds.
21
+ - Required browsers are available, or can be installed with `playwright-cli install-browser`.
22
+
23
+ A typical setup:
24
+ ```bash
25
+ npm install -g @playwright/cli@latest
26
+ playwright-cli --help
27
+ playwright-cli install-browser
28
+ ```
29
+
30
+ If the command is not available, stop and ask the user to set it up before continuing.
31
+
32
+ ## Safety Constraints
33
+
34
+ - Do not modify source files via browser automation.
35
+ - Do not store credentials in session files or artifacts.
36
+ - Do not run full test suites — use targeted, minimal interactions.
37
+ - Do not perform destructive actions on live environments.
38
+ - Before any persistent, external, authenticated, or non-local state-changing interaction, confirm the target URL/environment is intended and the action is necessary for the user's request.
39
+ - Do not submit purchases, delete data, send messages, change permissions, or mutate live production data unless the user explicitly approved that exact action.
40
+ - Do not use authentication, persistent profiles, saved sessions, or stored credentials unless explicitly approved.
41
+
42
+ ## Core Capabilities
43
+
44
+ - Navigate to URLs
45
+ - Click, double-click, type, fill forms, hover, drag, check/uncheck elements
46
+ - Take screenshots and capture accessibility snapshots
47
+ - Evaluate JavaScript expressions
48
+ - Inspect element attributes and DOM state
49
+ - Read console logs and network requests
50
+ - Manage named sessions, multiple tabs, and persistent browser profiles
51
+ - Mock and route network requests
52
+ - Record traces and videos for debugging
53
+ - Support multiple browser types: Chrome, Firefox, WebKit, Edge
54
+
55
+ ## Procedure
56
+
57
+ 1. Use the smallest targeted browser flow that can answer the question.
58
+ 2. Avoid long command chains without observing state between steps.
59
+ 3. Use refs from the latest accessibility snapshot for interactions whenever possible.
60
+ 4. Re-snapshot after navigation, submissions, or major UI state changes because refs are only valid for the current snapshot.
61
+ 5. Use selectors or locators only when refs are unavailable or insufficient, and state that choice in the evidence.
62
+ 6. Capture the final page state with a snapshot or screenshot before reporting.
63
+
64
+ ## Error Handling
65
+
66
+ When a browser command fails (page not found, element not found, timeout, JS error):
67
+ - If the failure may be caused by stale refs after navigation or page change, take one fresh snapshot and retry once only for non-destructive actions.
68
+ - Do not retry destructive, submitting, purchasing, deleting, or permission-changing actions without explicit user approval.
69
+ - Record unresolved failures as `UNKNOWN` with the command, error reason, and available evidence.
70
+ - Continue with any remaining independent actions.
71
+
72
+ ## Artifact Organization
73
+
74
+ Store generated artifacts in the CLI output directory. By default, `playwright-cli` writes generated files such as snapshots and screenshots under `.playwright-cli/`; projects may override this with `outputDir` in `.playwright/cli.config.json` or `PLAYWRIGHT_MCP_OUTPUT_DIR`.
75
+
76
+ When an artifact is part of the final evidence, use an explicit `--filename` when the command supports it.
77
+
78
+ ## Verification
79
+
80
+ Before reporting completion, verify:
81
+ - The final page state was captured with a snapshot or screenshot.
82
+ - Claims about visual layout, canvas, charts, or non-accessible UI are supported by screenshots.
83
+ - Claims about text, controls, and forms are supported by accessibility snapshot evidence when available.
84
+ - Any console or network finding names the command used and the observed result.
85
+ - All live UI findings are marked `CONFIRMED_FROM_LIVE_UI`; unavailable evidence is marked `UNKNOWN`.
86
+
87
+ ## Output Contract
88
+
89
+ Emit:
90
+
91
+ `Skill: playwright-cli - output below`
92
+
93
+ Then include:
94
+
95
+ | Field | Content |
96
+ | --- | --- |
97
+ | Status | `completed`, `skipped`, or `blocked` |
98
+ | URL / Environment | Page or app visited, including local/remote context when known |
99
+ | Session / Profile | Session name, profile mode, or `default in-memory` |
100
+ | Actions | Targeted steps performed |
101
+ | Findings | Each finding labeled `CONFIRMED_FROM_LIVE_UI` or `UNKNOWN` |
102
+ | Evidence | Snapshot excerpts, accessible names, stable refs/attributes, console/network facts, or artifact paths |
103
+ | Artifacts | Screenshot, snapshot, trace, video, or PDF paths, or `none` |
104
+ | Errors / Unknowns | Failed commands, missing access, unavailable credentials, or `none` |