Skip to content
Back to skills

Contentrain Diff

ASecurity

View content diffs between Contentrain branches. Use when comparing changes, reviewing branch differences, or checking what changed.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 23, 2026
ai-agentsbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add Contentrain/ai --skill contentrain-diff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Contentrain Diff?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Contentrain Diff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/contentrain-contentrain-diff/badge)](https://www.skillsdirectory.com/skills/contentrain-contentrain-diff)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: contentrain-diff
description: "View content diffs between Contentrain branches. Use when comparing changes, reviewing branch differences, or checking what changed."
metadata:
  author: Contentrain
  version: "1.0.0"
---

# Skill: Review Pending Branches with `contentrain diff`

> Inspect pending Contentrain branches and decide whether to merge, reject, or defer them.

---

## When to Use

Use this when:

- the project has pending `contentrain/*` branches
- the user asks to review or merge changes
- branch pressure is growing and cleanup is needed

---

## Steps

### 1. Check Branch Pressure

Start with `contentrain status`.

If many `contentrain/*` branches are active, move into review immediately.

### 2. Run `contentrain diff`

Use the CLI to:

- list pending branches
- inspect the diff summary
- review full patch output

### 3. Evaluate the Change

Check:

- which model/content files changed
- whether the change matches the intended operation
- whether validation/normalize work was completed properly

### 4. Choose an Outcome

- merge when the diff is correct and complete
- delete when the change is wrong or should be rejected
- defer only when more human input is required

### 5. Report the Decision

Summarize:

- branch reviewed
- action taken
- base branch affected
- any follow-up branch still pending

## Browser Alternative

For visual branch review, use CLI serve:

```bash
contentrain serve
```

Navigate to http://localhost:3333/branches to see all pending branches with diffs, and merge or delete them visually.

## Related Skills

- **contentrain-serve** — Browser-based branch review and merge
- **contentrain** — Core architecture and MCP tool catalog

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.