Python Testing
macalbert/envilder
Mandatory testing conventions including AAA pattern, test naming, assertions, and mocks.
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
$ npx skills add liaohch3/claude-tap --skill js-in-html-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install liaohch3/claude-tap js-in-html-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/liaohch3/claude-tap.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/js-in-html-testing .claude/skills/js-in-html-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "js-in-html-testing" agent skill from https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testing into .claude/skills/js-in-html-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "js-in-html-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add liaohch3/claude-tap --skill js-in-html-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install liaohch3/claude-tap js-in-html-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/liaohch3/claude-tap.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/js-in-html-testing .agents/skills/js-in-html-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "js-in-html-testing" agent skill from https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testing into .agents/skills/js-in-html-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "js-in-html-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add liaohch3/claude-tap --skill js-in-html-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install liaohch3/claude-tap js-in-html-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/liaohch3/claude-tap.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/js-in-html-testing .cursor/skills/js-in-html-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "js-in-html-testing" agent skill from https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testing into .cursor/skills/js-in-html-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "js-in-html-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/liaohch3/claude-tap.git --path .agents/skills/js-in-html-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add liaohch3/claude-tap --skill js-in-html-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install liaohch3/claude-tap js-in-html-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/liaohch3/claude-tap.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/js-in-html-testing .gemini/skills/js-in-html-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "js-in-html-testing" agent skill from https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testing into .gemini/skills/js-in-html-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "js-in-html-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install liaohch3/claude-tap js-in-html-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add liaohch3/claude-tap --skill js-in-html-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/liaohch3/claude-tap.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/js-in-html-testing .github/skills/js-in-html-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "js-in-html-testing" agent skill from https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testing into .github/skills/js-in-html-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "js-in-html-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add liaohch3/claude-tap --skill js-in-html-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install liaohch3/claude-tap js-in-html-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/liaohch3/claude-tap.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/js-in-html-testing .opencode/skills/js-in-html-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "js-in-html-testing" agent skill from https://github.com/liaohch3/claude-tap/tree/main/.agents/skills/js-in-html-testing into .opencode/skills/js-in-html-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "js-in-html-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
js-in-html-testingTests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
For logic that lives inside an HTML file, such as the diff navigation in a trace viewer page, this skill splits testing into two layers. The first copies the core algorithms into Python and checks them with pytest, which is quick and needs no browser; it suits pure computation, state decisions and matching logic that does not touch the DOM.
The second layer builds a test HTML file with the data embedded, opens it in Chromium through Playwright and inspects the DOM after simulated clicks and key presses. That covers things like disabled buttons and overlays that show and hide. Notes warn that `</script>` text inside test data breaks script parsing and must be escaped, that test data has to match the viewer's JSONL format, and that Playwright is installed with `uv pip install playwright`.
Read from SKILL.md and the folder at commit 4cc867d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
JS-in-HTML Testing loads about 924 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 167 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from liaohch3/claude-tap at commit 4cc867d, republished under its MIT licence (© liaohch3). 167 words, ~924 tokens.
.claude/skills/js-in-html-testing/SKILL.md (or your agent's skills folder).For JavaScript logic embedded in HTML files (e.g., diff navigation in viewer.html), use a two-layer testing approach.
Replicate core JS algorithms in Python and verify correctness via pytest.
Best for: pure computation logic, state decisions, matching algorithms — anything that doesn't depend on the DOM.
Example: tests/test_diff_matching.py
# Replicate JS findPrevSameModel / findNextSameModel
def find_diff_parent_by_prefix(entries, idx): ...
def find_next_by_prefix(entries, idx): ...
# Replicate JS updateNavButtons state computation
def compute_nav_button_states(entries, cur_idx):
prev_idx = find_diff_parent_by_prefix(entries, cur_idx)
...
return (prev_enabled, next_enabled)Advantages: fast (0.02s), no browser dependency, integrates with existing pytest setup.
Generate HTML with test data embedded, open it in real Chromium via Playwright, and verify DOM state and user interactions.
Best for: button disabled states, overlay show/hide, keyboard events, click navigation, etc.
Example: tests/test_nav_browser.py
def _build_test_html():
from claude_tap.viewer import VIEWER_SCRIPT_ANCHOR, _read_viewer_template
template = _read_viewer_template()
records = [json.dumps(e) for e in TEST_ENTRIES]
data_js = "const EMBEDDED_TRACE_DATA = [\n" + ",\n".join(records) + "\n];\n"
# Inject data into template
return template.replace(
VIEWER_SCRIPT_ANCHOR,
f"<script>\n{data_js}</script>\n{VIEWER_SCRIPT_ANCHOR}",
1,
)@pytest.fixture(scope="module")
def browser_page(html_file):
from playwright.sync_api import sync_playwright
pw = sync_playwright().start()
browser = pw.chromium.launch(headless=True)
page = browser.new_page()
page.goto(f"file://{html_file}")
page.wait_for_selector(".sidebar-item", timeout=5000)
yield page
browser.close()
pw.stop()def _get_nav_state(page):
return page.evaluate("""() => {
const overlay = document.querySelector('.diff-overlay');
if (!overlay) return { overlayExists: false };
return {
overlayExists: true,
prevDisabled: overlay.querySelector('.diff-nav-prev')?.disabled,
nextDisabled: overlay.querySelector('.diff-nav-next')?.disabled,
title: overlay.querySelector('.diff-title')?.textContent,
};
}""")# Click buttons
page.click(".diff-nav-next")
# Keyboard navigation
page.keyboard.press("ArrowRight")
# Call internal JS functions
page.evaluate("selectEntry(2)")
page.evaluate("showDiff()")</script> text (e.g., when Claude discusses code), which breaks <script> block parsing. Escape it: line.replace("</script>", '</scr" + "ipt>')turn, duration_ms, request_id, request.path, etc.)uv pip install playwright# Fast unit tests
uv run pytest tests/test_diff_matching.py -v
# Browser integration tests
uv run pytest tests/test_nav_browser.py -v
# All (excluding slow e2e)
uv run pytest tests/ --ignore=tests/test_e2e.py -v© liaohch3, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/js-in-html-testing of liaohch3/claude-tap.
Open the folder on GitHubat commit 4cc867d
JS-in-HTML Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| JS-in-HTML Testing this skillliaohch3/claude-tap | 3.3k | — | ~924 | Automated safety check: Pass | MIT | |
| Python Testingmacalbert/envilder | 138 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Temporal Python Testingwshobson/agents | 40k | 12 repos | ~1.2k | Automated safety check: Pass | MIT | |
| E2E TestingOpentrons/opentrons | 521 | — | ~3k | Automated safety check: Notes | Apache-2.0 | |
| Dotnet Testingnovotnyllc/dotnet-artisan | 233 | — | ~972 | Automated safety check: Pass | MIT | |
| Dotnet Testingmacalbert/envilder | 138 | — | ~1.6k | Automated safety check: Pass | MIT |
macalbert/envilder
Mandatory testing conventions including AAA pattern, test naming, assertions, and mocks.
wshobson/agents
Test Temporal workflows with pytest, time-skipping, and mocking strategies.
Opentrons/opentrons
E2E testing conventions for Protocol Designer and Labware Library using Playwright + pytest in e2e-testing/.
novotnyllc/dotnet-artisan
Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing…
macalbert/envilder
Mandatory testing conventions for .NET (xUnit, AwesomeAssertions).
PramodDutta/qaskills
The complete QA skill for Claude Code — turn Claude into an expert QA engineer that picks the right test type, writes reliable Playwright, Cypress, and pytest tests, eliminates flaky tests, enforces…
liaohch3/claude-tap
Runs a real Codex CLI session through claude-tap and produces trace evidence and viewer screenshots for pull requests that touch capture, proxying or the viewer.
liaohch3/claude-tap
Records a real tmux end-to-end run with asciinema, converts it to a GIF and MP4, and captures trace viewer screenshots with Playwright.
liaohch3/claude-tap
Runs local checks on maintainer docs for stale review dates, missing manifest paths and plan state drift, matching what the CI workflow enforces.
liaohch3/claude-tap
Records headless Playwright sessions as .webm videos to show a bug fix working or to give pull request reviewers visual evidence.
liaohch3/claude-tap
Runs a single merge-readiness check on a pull request: metadata, GitHub Actions status, local lint, format and test gates, and PR body rules, ending in READY or NOT_READY.
liaohch3/claude-tap
Pushes the current work to GitHub and, when pending commits change code, bumps the version in pyproject.toml so CI publishes a new PyPI release.
Works with
Categories
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM. For logic that lives inside an HTML file, such as the diff navigation in a trace viewer page, this skill splits testing into two layers. The first copies the core algorithms into Python and checks them with pytest, which is quick and needs no browser; it suits pure computation, state decisions and matching logic that does not touch the DOM.
JS-in-HTML Testing fits situations like: adding tests for JavaScript that is inlined in a single HTML page; checking button states, overlays and keyboard navigation in a generated HTML viewer; verifying a pure JavaScript algorithm quickly without launching a browser.
Run `npx skills add liaohch3/claude-tap --skill js-in-html-testing -a claude-code`. Or copy the skill folder (.agents/skills/js-in-html-testing in liaohch3/claude-tap) into .claude/skills/js-in-html-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add liaohch3/claude-tap --skill js-in-html-testing -a codex`. Or copy the skill folder (.agents/skills/js-in-html-testing in liaohch3/claude-tap) into .agents/skills/js-in-html-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add liaohch3/claude-tap --skill js-in-html-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/js-in-html-testing, .gemini/skills/js-in-html-testing, .github/skills/js-in-html-testing and .opencode/skills/js-in-html-testing in your project.
Going by SKILL.md and its folder, JS-in-HTML Testing needs the command-line tools its instructions call (uv). Our summary lists: Python with pytest; Playwright for Python and Chromium; uv.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
JS-in-HTML Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 924 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with JS-in-HTML Testing: Python Testing (macalbert/envilder, 138 stars), Temporal Python Testing (wshobson/agents, 40k stars), E2E Testing (Opentrons/opentrons, 521 stars) and Dotnet Testing (novotnyllc/dotnet-artisan, 233 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
liaohch3 (a GitHub user) maintains it in liaohch3/claude-tap, which has 3,268 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 22, 2026.
Source: liaohch3/claude-tap on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.