# momentic-maintain

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 27300 installs · ★ 16
- Author: momentic-ai
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/momentic-ai/skills/tree/HEAD/skills/momentic-maintain/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/momentic-maintain

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add momentic-ai/skills --skill momentic-maintain -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/momentic-maintain/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/momentic-maintain/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add momentic-ai/skills --skill momentic-maintain -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/momentic-maintain/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add momentic-ai/skills --skill momentic-maintain -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/momentic-maintain/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install momentic-ai/skills momentic-maintain
```

2. **Manually: put the files in place**
- File: `.github/skills/momentic-maintain/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add momentic-ai/skills --skill momentic-maintain -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/momentic-ai/skills --path skills/momentic-maintain
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/momentic-maintain/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add momentic-ai/skills --skill momentic-maintain -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/momentic-ai/skills/tree/HEAD/skills/momentic-maintain/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [find-skills](https://affpapa.org/en/nevibecode/skills/find-skills.md) — skill · 4000000 installs
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [grill-me](https://affpapa.org/en/nevibecode/skills/grill-me.md) — skill · 1424476 installs
- [grill-with-docs](https://affpapa.org/en/nevibecode/skills/grill-with-docs.md) — skill · 1219756 installs
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs

From the same set: [momentic-ai/skills](https://affpapa.org/en/nevibecode/by/momentic-ai/skills.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
