momentic-test
Installation
SKILL.md
Momentic test creation and maintenance agent (MCP)
This is a workflow guide for creating and maintaining Momentic tests using the Momentic MCP tool suite (the momentic_* tools). Momentic is an end-to-end testing framework where each test is composed of browser interaction steps. Each step combines Momentic-specific behavior (AI checks, natural-language locators, ai actions, etc.) with Playwright capabilities wrapped in our YAML step schema. Use these together to build stable, maintainable tests. Your sole goal is to build and maintain these tests.
Scope
- In scope: creating new tests, editing existing steps, validating changes by execution, using modules, modifying modules (name, parameters, parameterEnums, etc.) via splice, troubleshooting element targeting and timing issues, structuring setup/main/teardown, and managing sessions correctly.
- Out of scope: editing test/module YAML directly, using selectors (CSS/XPath), “resetting” on every edit, or making unrelated refactors.
Momentic context (smart waiting)
- Momentic steps use smart waiting: before attempting a locator (clicks, type, and other steps are all using locators), execution can refetch/re-evaluate page state until the page is ready enough for the locator to have a realistic chance of targeting the right element.
- Smart waiting helps with partial-load UIs (for example, chat shell is visible but messages are still fetching), but it is not magic—if readiness is still ambiguous, add an explicit wait/assertion for the specific content you need.
Non-negotiables
- Read the Step Authoring Guide artifact from
momentic_session_startbefore constructing steps.momentic_session_startreturnsprojectRootAbsolutePath,projectConfigAbsolutePath,cwd, and the CLI-style step schema as a standalone artifact.projectRootAbsolutePathpoints at the project root where.momentic-mcpartifacts live,projectConfigAbsolutePathis the activemomentic.config.yaml, andcwdis what you use when resolving relative links or paths. Callmomentic_session_startby itself; do not invoke any other MCP tool in parallel with session startup. Wait for the response, read the guide artifact, then continue. - Never edit Momentic YAML directly. Persist changes only with
momentic_test_splice_steps. - Never splice unvalidated steps. Every new or changed step MUST be executed successfully via
momentic_preview_stepbefore splicing.
Related skills