Skip to content

skills: invoke-not-read guard + split visual-verification into vaadin-playwright-screenshot - #116

Merged
jcgueriaud1 merged 3 commits into
masterfrom
skills-invoke-not-read
Jul 23, 2026
Merged

skills: invoke-not-read guard + split visual-verification into vaadin-playwright-screenshot#116
jcgueriaud1 merged 3 commits into
masterfrom
skills-invoke-not-read

Conversation

@jcgueriaud1

@jcgueriaud1 jcgueriaud1 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This branch carries two related skill changes.

1. Invoke-don't-read guard (commit 2c14322)

Problem

Both skills direct the agent to bundled reference filesvaadin-playwright-test points at api-reference.md, element-mapping.md, and TESTING.md. Those files only load into context when a skill is invoked via the Skill tool, not when its SKILL.md is opened by hand.

But the instructions that route agents here (and the skills' own cross-references) say "use / follow / load the skill" — which reads naturally as "go read its markdown." An agent that does that ends up with SKILL.md and none of the references.

Observed failure: an agent read vaadin-playwright-test/SKILL.md directly, never received api-reference.md, and so unzip+javap'd the DramaFinder jar to discover the API — the exact thing this skill's own "Never download or unzip the DramaFinder jar/sources to discover its API" rule forbids.

Change

  • vaadin-playwright-test/SKILL.md — a header guard tying the invoke-don't-read rule to why "never unzip the jar" holds; description verb load this skillinvoke this skill (via the Skill tool).
  • A header guard on the visual-verification skill and its cross-reference.

2. Split visual-verification → vaadin-playwright-screenshot (commit 33b4126)

Replace visual-verification with vaadin-playwright-screenshot, focused solely on capturing screenshots via a temporary DramaFinder test. Screenshot validation was generic (not DramaFinder-specific), so it's dropped rather than kept as a separate skill.

  • Acceptance criteria as the argument — the skill takes the criteria to screenshot (inline, or a reference to a spec/ticket); one screenshot proves each criterion.
  • Portability — states the DramaFinder version that ships the agent helpers and fails clearly if absent; lets the criteria argument be a reference rather than only inline text.
  • Generated agent-api-reference.md — so agents look up VisualVerificationTest, AgentReporting, AgentReport, AgentReportProvider, and ComponentSnapshot without unzipping the sources jar, mirroring the element api-reference.md: a JBang generator (tools/generate-agent-api-reference.java), a CI staleness guard (.github/workflows/agent-api-reference.yml), and SKILL/AGENTS pointers with a raw-GitHub-URL fallback.
  • Marketplace + README updated to the new skill set.

🤖 Generated with Claude Code

jcgueriaud1 and others added 2 commits July 22, 2026 13:04
Both skills point agents at bundled reference files — vaadin-playwright-test
at api-reference.md / element-mapping.md / TESTING.md, visual-verification at
vaadin-playwright-test — but those load only when a skill is *invoked* via the
Skill tool, not when its SKILL.md is opened by hand. Instructions that say
"use / follow / load the skill" read as "go read the markdown", so an agent
can end up with only SKILL.md and none of the references.

Observed failure: an agent read vaadin-playwright-test's SKILL.md directly,
never got api-reference.md, and unzipped the DramaFinder jar to discover the
API — exactly what the skill's own "never unzip the jar" rule forbids.

- vaadin-playwright-test: header guard tying the invoke-don't-read rule to why
  "never unzip the jar" works; description verb "load" -> "invoke (via the
  Skill tool)".
- visual-verification: header guard; its internal pointer to
  vaadin-playwright-test now says "invoke ... via the Skill tool".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the visual-verification skill with vaadin-playwright-screenshot,
focused solely on capturing screenshots via a temporary DramaFinder test
(screenshot validation was generic, not DramaFinder-specific, so it's dropped
rather than kept as a separate skill).

- Take the acceptance criteria to screenshot as the skill argument (inline or a
  reference to a spec/ticket); one screenshot proves each criterion.
- Portability: state the DramaFinder version that ships the agent helpers and
  fail clearly if absent; let the criteria argument be a reference.
- Add a generated agent-api-reference.md (VisualVerificationTest, AgentReporting,
  AgentReport, AgentReportProvider, ComponentSnapshot) so agents look the API up
  without unzipping the sources jar, mirroring the element api-reference:
  generator tool, CI staleness guard, and SKILL/AGENTS pointers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jcgueriaud1 jcgueriaud1 changed the title skills: invoke via the Skill tool, not read SKILL.md skills: invoke-not-read guard + split visual-verification into vaadin-playwright-screenshot Jul 23, 2026
@jcgueriaud1
jcgueriaud1 merged commit f202a00 into master Jul 23, 2026
3 checks passed
@jcgueriaud1
jcgueriaud1 deleted the skills-invoke-not-read branch July 23, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant