momentic-spec

tarafından momentic-ai

Momentic spec'lerini kullanarak özellik geliştirme sürecinde kod doğruluğunu iyileştirin

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

Specify product behavior with Momentic

  1. Read momentic-test for product selection, the selected CLI and local MCP server, and product-specific and linked shared references. Read repository guidance and nearby tests and modules.
  2. List the tests to add or change for the request. If none are affected, say why.
  3. Write the expected behavior before implementing it. Review the test diff against the request and summarize the expected failure to confirm the specification. Prepare required accounts, data, permissions, and services before running new tests once to confirm the expected failure. If setup is blocked, report it instead of treating it as an expected failure.
  4. Implement the change. Update the specification first if the requirement changes.
  5. Enable tests that should now pass and run the smallest affected set through the app. Run the repository's required product-code checks too.
  6. Report verified behavior, tests not run, and tests still disabled.

Read the web guide when specifying browser behavior, or the mobile guide for Android/iOS.

Choose coverage

Update existing tests for changed behavior; add a test for a new user flow. Start with user-named tests; expand only for demonstrated behavioral impact. Keep one changed contract to a focused test delta. Preserve unrelated setup, teardown, data, assertions, and intent. Don't weaken tests to match an incorrect implementation or work around a product bug. Trace shared components to real behavioral impact when finding affected tests; don't infer coverage from filenames alone. Reuse modules for established setup and navigation, checking their callers before changing shared behavior. Follow nearby naming, setup, and assertion style.

Prepare the run

Momentic validates end-to-end checkpoints, not every edit or commit. A checkpoint exercises behavior in the product with an observable outcome, including the expected failure before implementation in step 3. For a small change, the next checkpoint is usually the implemented change. Run once, diagnose failures, and make a coherent fix. Rerun only when the end-to-end outcome can reasonably have changed.

Mark a test disabled: true only when the product or a required dependency isn't ready. Record what must change before enabling it. Report missing local credentials as a validation gap rather than disabling a valid test.

Use existing test setup. Keep shared data stable and clean up only data created for the run. Restrict new setup tooling to approved test environments, authenticate it where needed, make it repeatable, and keep it out of production. Seed prerequisites, not the behavior being verified. Make tests repeatable from a clean environment without accidental prior state.

Before a long run, confirm the test set and expected duration unless already authorized. Treat unknown duration as long-running; confirm another long run unless iterative reruns were approved. If the user declines, continue with non-Momentic checks and report tests as not run.

momentic-ai tarafından daha fazla skill

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
Android ve iOS için Momentic mobil E2E testleri ve modülleri oluşturun, çalıştırın ve bakımını yapın. Canlı cihaz doğrulaması için Momentic MCP araçlarını kullanın ve doğrudan v2 YAML düzenlemelerini yalnızca yüksek güvenilirliğe sahip yerel mobil v2 değişiklikleri için kullanın.
momentic-result-classification
momentic-ai
Momentic test çalıştırma sonuçlarını Momentic MCP araçlarını kullanarak sınıflandırın veya açıklayın. Kullanıcı bir hatayı kategorize etmek, bir çalıştırmanın neden başarısız olduğunu anlamak, test sonuçlarını önceliklendirmek veya çalıştırma sonuçlarını geçmiş çalıştırma sonuçlarıyla karşılaştırmak istediğinde kullanın.
momentic-test
momentic-ai
Momentic E2E testlerini ve modüllerini oluşturun, çalıştırın ve bakımını yapın; bunlar disk üzerine *.test.yaml ve *.module.yaml dosyaları olarak serileştirilir. Momentic, web uygulamalarını test etmek amacıyla tarayıcı etkileşimlerini otomatikleştirmek için hızlı ve doğru yapay zeka ajanlarını kullanır.