momentic-test

Создание, запуск и поддержка Momentic E2E-тестов и модулей, которые сериализуются на диск в виде файлов *.test.yaml и *.module.yaml. Momentic использует быстрые и точные AI-агенты для автоматизации взаимодействий с браузером с целью тестирования веб-приложений.

npx skills add https://github.com/momentic-ai/skills --skill momentic-test

Write Momentic tests

  1. Identify the target app from momentic.config.yaml, existing tests and modules, and dependencies. For momentic/mobile-test or momentic/mobile-module (including /v2), Android/iOS apps, or a momentic-mobile dependency, use npx momentic-mobile and local MCP server momentic-mobile. For momentic/test or momentic/module (including /v2), browser apps, or a momentic dependency, use npx momentic and local MCP server momentic. In a mixed repo, follow the target test, module, or app; ask if unclear. Use that product's CLI and local MCP tools, not the other product's. Read, list, and search product-specific references only inside its references/products/web/ or references/products/mobile/ directory. Read shared references when the active skill calls for them, including run evidence, classification, and manual artifacts. Exclude the other product's references from broader repository or installed-skill searches.
  2. Read the web guide when testing a browser app, or the mobile guide when testing Android or iOS. Confirm the expected result, environment, and authentication.
  3. Edit known v2 YAML directly and run the selected CLI's lint. Reload an active session before validating saved edits. For v1 changes, unfamiliar screens, or live validation, use MCP as below.
  4. Validate the changed saved steps and their prerequisites, then terminate the session. Report the result and any steps left unverified. Ask before changing a requested assertion that the app doesn't satisfy.

Start a session

Create a new test with momentic_test_create, then call momentic_session_start with its ID. For an existing test, start it directly. Read the returned Step Authoring Guide and use its active step IDs. Read Session details for creation inputs, persisted versus active state, and step references.

Use momentic_get_artifacts to discover tests, environments, and other artifacts. 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 with the product guide's tools and inspect the screenshots. Request state only when the image doesn't show enough to choose a target or explain a failure.
  3. Save successful steps with momentic_test_splice_steps. Attach each returned CacheId to its exact step and use the updated step IDs.
  4. Run the smallest saved range covering the change, including its next dependent step. Reuse prerequisites already run in this session.

Run one operation at a time per session. If a preview or run returns a stepRunnerId, call momentic_poll_runner with timeoutSeconds greater than 0 before the next operation. Reset when accumulated state could hide a failure. For nested steps, use the parent chain from the active session or splice response. After about three attempts at the same failure, stop and ask the user what to do.

Disable cache only when requested, behavior must be chosen afresh, or a proven bad match persists after correcting the description and readiness.

Get approval before previewing or running actions that submit, purchase, delete, send, create data, or have any other non-idempotent side effect. Also get approval for shared-module edits and expensive full-test runs. Execute approved side effects once, following the product guide; don't preview them and replay them. Report saved side-effect steps left unverified.

Reuse modules

For a reusable flow of roughly four or more steps, discover modules through the product guide and read one with momentic_module_get before using it. Modules can't contain modules. Respect declared parameters, defaults, and enums. In MCP step strings, inputs are JavaScript expressions, not {{ }} templates.

Use hosted momentic_search_docs for current step options and configuration. Read MCP setup when the hosted server isn't connected. Without hosted sign-in, use https://momentic.ai/docs/llms.txt.

Больше skills от momentic-ai

momentic-explore-prompt
momentic-ai
Generate an explore-prompt.md file that gives Momentic's explore agent (`momentic ai explore diff` / `momentic ai explore latest`) repo-specific context — which applications to test, the URLs tests must target, how to authenticate, where to save generated tests, and repo quirks. Use when setting up or improving the prompt file passed via `--prompt-file`.
momentic-mobile-test
momentic-ai
Создавайте, запускайте и поддерживайте мобильные E2E-тесты и модули Momentic для Android и iOS. Используйте инструменты Momentic MCP для проверки на реальных устройствах и применяйте прямые правки YAML v2 только для локальных изменений мобильного v2 с высокой степенью уверенности.
momentic-result-classification
momentic-ai
Классифицируйте или объясняйте результаты тестовых запусков Momentic с помощью инструментов Momentic MCP. Используйте, когда пользователь просит категоризировать сбой, понять, почему запуск не удался, провести триаж результатов тестов или сравнить результаты запусков с прошлыми результатами.
momentic-spec
momentic-ai
Повышение корректности кода с использованием спецификаций Momentic в процессе разработки функций