Skip to main content
skill CX Codex

momentic-maintain — Claude Code skill: test failure analysis

Investigate where a Momentic run first went wrong, classify the cause, and repair a test when a lasting test change makes sense. Use it to examine failures, retries, and recovered runs.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add momentic-ai/skills --skill momentic-maintain -a claude-code
Open on GitHub

What momentic-maintain does

The skill investigates a specific run through MCP, tracing failed steps and their screenshots to find the earliest point where the run diverged. For a new classification it uses momentic ai classify; for automated repair and verification, it uses momentic ai triage.

It can inspect branch runs, failures on the main branch, quarantined tests, and runs that succeeded after a retry. Existing classifications and healing state are also part of the investigation. Fetching run metadata through the API requires MOMENTIC_API_KEY; keep the key out of logs and commits. The skill should not weaken a test to conceal an application bug, missing fixture, invalid credentials, outage, or Momentic defect.

What it helps with

  • trace a run back to the first step that left the expected state
  • classify a test failure from run evidence
  • inspect tests that passed only after a retry
  • fix an unstable postcondition to reduce retries
  • repair a test and verify the change

Example prompts for the agent

  • Investigate the Momentic run on my branch and find the first step that went wrong.
  • Review failed tests on the main branch for this period and classify their causes.
  • Check quarantined tests and fix the unstable condition if that won't hide an application bug.

How to install momentic-maintain

1Skills CLI (Vercel)

npx skills add momentic-ai/skills --skill momentic-maintain -a claude-code

2Manually: put the files in place

~/.claude/skills/momentic-maintain/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/momentic-maintain/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about momentic-maintain

How do I install momentic-maintain in Claude Code?

Run npx skills add momentic-ai/skills --skill momentic-maintain -a claude-code. The skill file is located at ~/.claude/skills/momentic-maintain/SKILL.md.

What does momentic-maintain do?

It investigates Momentic test runs, classifies failures, and helps repair a test when a lasting test change is appropriate. It uses MCP for investigation and Momentic commands for classification and automated repair.

Do I need an API key to use momentic-maintain?

Fetching run metadata through the API requires MOMENTIC_API_KEY. Do not print the key in logs or commit it.

Similar skills

SKILL.md skills catalog →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor