skill

Momentic Test

Create, run, and maintain Momentic browser E2E tests and modules stored as *.test.yaml and *.module.yaml files.

momentic-ai68,545+ installsVetted

About

# Write browser tests

1. Read `momentic.config.yaml` and the target test. Confirm the intended result, environment, and authentication. 2. Before choosing steps or editing YAML, read [Authoring](references/authoring.md) for file formats, step choices, timing, and module inputs. 3. For a known v2 change, edit the YAML and run `npx momentic lint`. Reload or restart an active session before validating the saved change. 4. For v1 changes, unfamiliar UI, or live validation, use the MCP steps below. 5. Run the changed saved steps and their prerequisites, then terminate the session. Read [Troubleshooting](references/troubleshooting.md) when a failure blocks you.

Use hosted `momentic_search_docs` for current step options and configuration. If hosted tools aren't connected, add `https://mcp.momentic.ai` as an HTTP MCP server and sign in with OAuth. See [MCP setup](https://momentic.ai/docs/mo/chatgpt-and-claude).

## Confirm side effects

Get approval before running or previewing an action that submits, purchases, deletes, sends, creates data, or has another non-idempotent side effect. Execute an approved side effect once, not once in preview and again in the saved test. Also confirm shared-module edits and expensive full-test runs.

## Start a session

Use `momentic_test_create` for a new test, then `momentic_session_start` with its test ID. For an existing test, start the session directly. Read the returned Step Authoring Guide and use its active step IDs, including for v2 files.

Use `momentic_get_artifacts` to discover unknown tests, modules, or environments. Use `momentic_test_get` to read a saved test outside the active session, and `momentic_get_environment_variables` when a step needs an unknown value.

## Preview, save, and validate

1. For a mid-test change, run through the preceding step in the same session. 2. Preview a group of adjacent steps with `momentic_preview_steps`. Preview an uncertain target individually with `momentic_preview_step`. 3. Inspect the screenshots. Request browser state only when the image doesn't show enough to choose a target or diagnose a failure. 4. Save a successful group with `momentic_test_splice_steps`. Attach each returned `CacheId` to its exact step and use the updated step IDs in the response. 5. Run the next dependent saved step or range. Validate the smallest saved range covering the changed behavior, reusing prerequisites already run in this session. Don't replay an approved side effect; report any saved steps left unverified.

Run one browser operation at a time per session. If a preview or run returns a `stepRunnerId`, wait for it with `momentic_poll_runner` before the next operation. Use a nonzero polling wait rather than repeatedly polling without waiting. Reset only when accumulated state could hide a failure. For nested steps, use the parent chain returned by the active session or splice response.

## Reuse modules

For a reusable flow of roughly four or more steps, call `momentic_module_recommend`, then `momentic_module_get` before reusing it. Modules can't contain modules. Respect declared parameters, defaults, and enum values. Module inputs are JavaScript expressions, not `{{ }}` templates.

Install

Run this command

npx skills add momentic-ai/skills

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Install with `npx skills add momentic-ai/skills`, or clone the repository and copy the `skills/momentic-test` folder into your Claude skills directory.

View source

Frequently asked questions

What is the Momentic Test skill?

Create, run, and maintain Momentic browser E2E tests and modules stored as *.test.yaml and *.module.yaml files.

How do I install Momentic Test?

Run this in your terminal:

npx skills add momentic-ai/skills
Which AI tools does Momentic Test work with?

It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.

Who made Momentic Test?

momentic-ai.

Is Momentic Test free?

Yes, it is free to use.

Related assets

More curated picks in Development & Code.

All Momentic Test alternatives →
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/skills && cp -r skills/skills/claude-api ~/.claude/skills/
Claude Api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
npx skills add heygen-com/hyperframes
Hyperframes CLI
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - p…1,464,086+
skillclaude_appclaude_codeclaude_api
npx skills add mattpocock/skills
Tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.1,046,962+
skillclaude_appclaude_codeclaude_api
npx skills add mattpocock/skills
Grilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrase…1,041,607+
skillclaude_appclaude_codeclaude_api
npx skills add mattpocock/skills
Code Review
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented cod…840,484+
skillclaude_appclaude_codeclaude_api
npx skills add mattpocock/skills
Diagnosing Bugs
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing…746,030+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code