Automated summary
This skill takes screenshots of a reference URL and the local Jahia render to visually compare a view before and after building it.
Strengths
- Automates screenshot capture using Playwright or Puppeteer with no manual setup.
- Provides a clear workflow to validate visual conformity of an implementation.
- Handles Jahia authentication for protected pages.
- Produces a design analysis to guide development.
Limitations
- Requires that a screenshot tool (Playwright/Puppeteer/Chrome) be available or installed.
- Comparison is manual; the user must inspect the screenshots to spot differences.
- Depends on a reference URL and a running local Jahia environment.
When building a Jahia view from an existing site or verifying that the local render matches the expected design.
When visual comparison is not needed, such as for automated functional tests.
Security analysis
CautionThe skill uses powerful tools (bash, npx, headless browsers) for a legitimate visual comparison workflow. It does not instruct destructive or exfiltrating actions, and the commands are transparent. However, the use of default credentials and arbitrary URL navigation warrants caution.
- •Uses bash and npx to execute commands and potentially install npm packages (playwright/puppeteer).
- •Instructs entering default Jahia credentials (root/root1234) into a local web form via Puppeteer.
- •Executes Node.js one-liners that launch a headless browser and navigate to user-provided URLs.
- •Screenshots could accidentally include sensitive data if capturing authenticated pages, though intent is legitimate.
Examples
Take a reference screenshot of https://www.example.com and describe its layout, colors, and typography before I build the Jahia component.Capture the local Jahia render at http://localhost:8080/cms/render/default/en/sites/mysite/home.html and compare it with /tmp/jahia-screenshots/reference.png. List the visual differences.After I deploy my changes, take a screenshot of the updated Jahia page and compare it with the reference screenshot to confirm it matches.name: jahia-dev-screenshot description: Takes screenshots of a reference URL and the local Jahia render for visual comparison. Use before building a view (inspiration) and after (validation).
Skill: jahia-dev-screenshot
Takes screenshots for two purposes:
- Reference — capture an existing site as a visual spec before building
- Result — capture the local Jahia render after building to compare
Step 1 — Detect screenshot tool
Check what is available:
# Playwright (preferred)
npx playwright --version 2>/dev/null
# Puppeteer
node -e "require('puppeteer'); console.log('ok')" 2>/dev/null
# System Chrome/Chromium
which google-chrome || which chromium || which chromium-browser 2>/dev/null
Use the first one that works. If none is available, ask the user:
No screenshot tool found. Which would you like to install?
npm install -g playwrightthennpx playwright install chromiumnpm install puppeteer(downloads Chromium automatically)- I'll take the screenshots manually and paste them in
If the user chooses manual, skip to Step 4 and ask them to paste the screenshots.
Step 2 — Take reference screenshot
Ask the user for the reference URL if not already provided.
Create the output directory:
mkdir -p /tmp/jahia-screenshots
With Playwright:
npx playwright screenshot \
--browser chromium \
--full-page \
"<REFERENCE_URL>" \
/tmp/jahia-screenshots/reference.png
With Puppeteer (Node.js one-liner):
node -e "
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
const page = await browser.newPage();
await page.setViewport({ width: 1440, height: 900 });
await page.goto('<REFERENCE_URL>', { waitUntil: 'networkidle2' });
await page.screenshot({ path: '/tmp/jahia-screenshots/reference.png', fullPage: true });
await browser.close();
})();
"
After capturing, view the screenshot to use it as visual context:
view /tmp/jahia-screenshots/reference.png
Describe the key design elements you observe:
- Layout structure (hero, grid, sidebar, etc.)
- Color palette (dominant, accent, background)
- Typography (heading sizes, font weight)
- Component anatomy (what sub-elements make it up)
Share this description with the user before proceeding to build.
Step 3 — Take result screenshot (after building)
Once the view is built and deployed (yarn build + yarn jahia-deploy), capture the Jahia render.
Ask the user for the Jahia page URL, or construct it:
- Default:
http://localhost:8080/cms/render/default/en/sites/<siteName>/home.html - Or ask: "What is the URL of the page where the component is placed?"
Jahia requires authentication. Use the --auth header or log in first:
With Playwright:
npx playwright screenshot \
--browser chromium \
--full-page \
"http://localhost:8080/cms/render/default/en/sites/<siteName>/home.html" \
/tmp/jahia-screenshots/result.png
Note: if the page requires login, authenticate first:
node -e " const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ args: ['--no-sandbox'] }); const page = await browser.newPage(); await page.setViewport({ width: 1440, height: 900 }); await page.goto('http://localhost:8080/cms/login', { waitUntil: 'networkidle2' }); await page.type('#username', 'root'); await page.type('#password', 'root1234'); await Promise.all([page.waitForNavigation(), page.keyboard.press('Enter')]); await page.goto('<PAGE_URL>', { waitUntil: 'networkidle2' }); await page.screenshot({ path: '/tmp/jahia-screenshots/result.png', fullPage: true }); await browser.close(); })(); "
After capturing, view the screenshot:
view /tmp/jahia-screenshots/result.png
Step 4 — Compare and report gaps
View both screenshots and compare them side by side (or sequentially).
Report gaps to the user:
## Visual Comparison
### Reference: <URL>
[description of reference]
### Result: http://localhost:8080/...
[description of result]
### Gaps
- [ ] Background color differs (reference: dark navy, result: white)
- [ ] Hero text not centered
- [ ] CTA button missing border-radius
- [ ] Font size smaller than reference
### Suggested fixes
...
Ask: "Would you like me to fix these gaps?"
If yes, update the view's .tsx and .module.css files using /jahia-dev-create-view guidance, rebuild, and re-screenshot to verify.
Integration points
This skill is called from:
/jahia-dev-build-component— Step 0 (optional reference) and Step 4 (result check)/jahia-dev-create-view— Step 0 (optional reference) and after deploy
References
- Playwright CLI: https://playwright.dev/docs/cli
- Puppeteer: https://pptr.dev
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/jahia-screenshot-mte1lgz1' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/jahia-screenshot-mte1lgz1/download' --output '.skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md.part' && mv '.skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md.part' '.skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md' && test -s '.skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/jahia-dev-screenshot' && cp -R '.skill-downloads/jahia-screenshot-mte1lgz1' '.claude/skills/jahia-dev-screenshot'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/jahia-screenshot-mte1lgz1'openskills read 'jahia-screenshot-mte1lgz1'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/jahia-screenshot-mte1lgz1/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.