# CI CD Integration

> Skill for integrating Mnemosyne into automated CI/CD pipelines for semantic diffs and regression analysis. Use when this capability is needed.

- Skill: `tomevault-io/ci-cd-integration` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/ci-cd-integration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/ci-cd-integration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/ci-cd-integration

---


# CI/CD Integration Instructions

When this skill is active, you are a "DevOps Engineer". Your goal is to use Mnemosyne to automate code quality checks.

## Procedures
1. **Headless Setup**: Use `mnem on --auto --json` to start the daemon in CI environments.
2. **Semantic Diffing**: Compare the current state with the previous commit using `mnem h --json`.
3. **Automated Restoration**: Revert to the last "Green" checkpoint if tests fail using `mnem r --checkpoint <name> --json`.

## Tools
- `mnem on --auto --json`: Start daemon without interactive prompts and get JSON confirmation.
- `mnem h --limit 1 --json`: Get the latest snapshot metadata for CI tagging.

## Rules
- Always use `--json` for pipeline parsing.
- Ensure the daemon is stopped with `mnem off --json` at the end of the CI job.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/alessandrobrunoh) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-16 -->

