testing-blocks

testing-blocks is a skill for Claude Code from adobe/skills. It costs 114 tokens per session (867 once invoked), scanned A, original, Apache-2.0.

A testing guide for AEM Edge Delivery Services changes to blocks, scripts, styles, and related configuration. It covers unit tests, browser checks with Playwright, and linting.

In plain words
What is it for?
Use it to validate block changes, run unit tests, check the site in a real browser, and prepare changes for a pull request.
Why use it?
It helps catch broken functionality and code problems before changes are submitted for review.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aem-edge-delivery-services plugin — 29 skills shipped together

Good fit Use it to validate block changes, run unit tests, check the site in a real browser, and prepare changes for a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adobe/skills/testing-blocks
About the project

Adobe Skills is a collection of skills, plugins, agents, and MCP servers that extend AI coding agents with workflows for Adobe products and other tasks. Developers use it to help coding agents work with Adobe analytics and application-building tools. The catalogue entries are the repository’s own skills, plugins, agents, and MCP integrations.

adobe/skills · 343 stars · on GitHub · adobe.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add adobe/skills --skill testing-blocks
Clone the repo
git clone --depth 1 https://github.com/adobe/skills

Made for: Claude Code.

Or install aem-edge-delivery-services, the plugin that ships this one along with the rest of its 29 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing-blocks

README.md
[![agentmods](https://agentmods.dev/badge/skills/adobe/skills/testing-blocks/github.svg)](https://agentmods.dev/skills/adobe/skills/testing-blocks)
Your own site
<a href="https://agentmods.dev/skills/adobe/skills/testing-blocks"><img src="https://agentmods.dev/badge/skills/adobe/skills/testing-blocks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing-blocks

Your own site · 80×15
<a href="https://agentmods.dev/skills/adobe/skills/testing-blocks"><img src="https://agentmods.dev/badge/skills/adobe/skills/testing-blocks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Nov 2026
  • Snyk pass 14 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.00867
Opus 5.5 $0.00046 $0.00347
Sonnet 5.5 $0.00023 $0.00173
Haiku 4.5 $0.00011 $0.00087

Measured 19d ago against content hash 20f38e0bde69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing-blocks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aem/edge-delivery-services/skills/testing-blocks/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing Blocks

Validate code changes and write maintainable tests in AEM Edge Delivery Services projects.

  • content-driven-development: test content created during CDD is what you validate against
  • aem-cli: running aem up (ports in git worktrees, serving ./content/, cleaning up stale ./content/ files that shadow remote .aem.page updates)

Testing Workflow

  • Step 1: Run linting and fix issues
  • Step 2: Validate in a browser (MANDATORY when validating a code change)
  • Step 3: Decide which tests to commit, and write them
  • Step 4: Run the project's tests

Step 2: Browser Validation

Exercise the block in a real browser on the test content URL(s): every variant, mobile, tablet and desktop widths (e.g. 375px, 768px, 1200px), and every interaction. Use whatever tooling you have: browser/Playwright MCP tools, a throwaway Playwright script (delete it afterwards), or a manual browser.


Step 3: Committed Tests

Committed tests guard functional behavior so it doesn't silently regress. Write a test only when a wrong answer is plausible and costly to miss. 100% coverage is not the goal, and neither is a test per variant or per branch; a block with static decoration and no behavior may need no tests at all.

Use the project's test tools. Find them in package.json scripts, test config and existing tests, and follow their file locations and naming. Don't add a second framework. aem-boilerplate ships without one; if the project has no test setup, ask the user before adding one.

Browser (E2E) tests assert the block's functional behavior. Rules for E2E specs:

  • Run them against the block's library page (the canonical example content). It is author-facing reference content and the happy path: don't add rows to it to drive a test. Cover edge cases in unit tests or on a separate drafts page (e.g. ./content/drafts/).
  • Locate elements by role and accessible name. Don't use classes or ids the block's own decorate() adds, or hardcoded authored copy; when you need a label, read it from the page at runtime. The block root class (.{block}) comes from aem.js and is stable.
  • Assert behavior, not visuals: no computed CSS (toHaveCSS, getComputedStyle), geometry (boundingBox), or screenshot comparisons (toHaveScreenshot).

Read the full file on GitHub · 53 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -240 lines · +53 tokens per session 20f38e0bde69
  2. 1mo ago Changed · -2 lines 73435b37dc5c
  3. 3mo ago First seen · 295 lines · 61 tokens per session scan A ebf05af1c14a

Subscribe to this mod's changes

testing-blocks is a skill published in the GitHub repository adobe/skills (343 stars, last pushed today), licensed Apache-2.0. It adds 114 tokens to every session and 867 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

testing-blocks compared with skills from other repositories

testing-blocks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-blocksadobe/skillsSkill343todayApache-2.0A114Claude Code
diagnosing-bugsjellydn/my-ai-toolsSkill132todayMITA34Claude Code
testing-setupandroid/skillsSkill11k11d agoApache-2.0A42Claude Code
experiment-iterative-coderEvoScientist/EvoSkillsSkill4933d agoApache-2.0A145Claude Code
verifysd0xdev/sd0x-harnessSkill1969d agoMITA17Claude Code
check-coveragesd0xdev/sd0x-harnessSkill1969d agoMITA27Claude Code
debug-itsmallnest/goal-workflowSkill3042d agoMITA98Claude Code