Xpersona
D

diff-analysis

CLAWHUB · Unverified

Analyzes changesets with risk scoring, categorization by type and impact, and release note preparation Skill: diff-analysis Owner: athola Summary: Analyzes changesets with risk scoring, categorization by type and impact, and release note preparation Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:12:18.674Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:34:02.507Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:50:45.905Z | user Release v1.9.16 v1.9.14 | 2026-06-30T17:59:53.462Z | user Release v1.9.14 v1.9

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-imbue-diff-analysis
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-imbue-diff-analysis/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

136,023 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: diff-analysis
description: |
  Analyzes changesets with risk scoring, categorization by type and impact, and release note preparation
version: 1.9.8
triggers:
  - changes
  - semantic-analysis
  - risk-assessment
  - categorization
  - summaries
  - extracting insights from raw change data
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/imbue", "emoji": "\ud83e\udd9e", "requires": {"config": ["night-market.imbue:proof-of-work"]}}}
source: claude-night-market
source_plugin: imbue
---

> **Night Market Skill** — ported from [claude-night-market/imbue](https://github.com/athola/claude-night-market/tree/master/plugins/imbue). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


## Table of Contents

- [Overview](#overview)
- [When to Use](#when-to-use)
- [Activation Patterns](#activation-patterns)
- [4-Step Methodology](#4-step-methodology)
- [Exit Criteria](#exit-criteria)

# Diff Analysis Methodology

## Overview

Structured method for analyzing changesets: categorize changes, assess risks, generate insights. Works for git diffs, configuration changes, API migrations, schema updates, or document revisions.

## When To Use
- Extracting insights from raw change data
- Categorizing and prioritizing changes before code reviews
- Preparing release notes or changelogs
- Assessing migration scope and risk

## When NOT To Use

- Quick context catchup - use catchup instead
- Full PR review - use review-core with pensive skills

## Activation Patterns
**Trigger Keywords**: diff, changes, release notes, changelog, migration, impact, risk assessment

**Auto-Load When**: Git diffs present, change analysis requested, impact assessment needed.

## Progressive Loading

Load modules based on workflow stage:

### Always Load
- `modules/semantic-categorization.md` for change categorization workflow

### Conditional Loading
- `modules/risk-assessment-framework.md` when risk assessment is needed
- `modules/git-diff-patterns.md` when working with git repositories

### Integration
- Use `sanctum:git-workspace-review` for git data gathering
- Use `imbue:proof-of-work` for capturing analysis evidence
- Use `imbue:structured-output` for formatting final deliverables

## Required TodoWrite Items
1. `diff-analysis:baseline-established`
2. `diff-analysis:changes-categorized`
3. `diff-analysis:risks-assessed`
4. `diff-analysis:summary-prepared`

Mark each item complete as you finish the corresponding step.

## 4-Step Methodology

### Step 1: Establish Baseline (`diff-analysis:baseline-established`)
Define comparison scope: what states are being compared, boundary of analysis, and scale metrics.

For git contexts, load `modules/git-diff-patterns.md`. For other contexts, compare relevant artifacts.

### Step 2: Categorize Changes (`diff-analysis:changes-categorized`)
Group changes by semantic type. Load `modules/semantic-categorization.md` for change categories, semantic catego

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-imbue-diff-analysis",
  "version": "1.9.19",
  "publishedAt": 1787749938674
}

modules/git-diff-patterns.md

---
name: git-diff-patterns
description: Git-specific commands and patterns for diff analysis
parent_skill: imbue:diff-analysis
category: tool-integration
tags: [git, diff, baseline, integration]
estimated_tokens: 200
---

# Git Diff Patterns

## Baseline Establishment

Define comparison scope in git repositories:

```bash
# Show latest commit for context
git log --oneline -1 HEAD

# Find common ancestor between branches
git merge-base HEAD main

# Show summary of changes between baseline and HEAD
git diff --stat <baseline>..HEAD | tail -1

# Count changed files
git diff --name-only <baseline>..HEAD | wc -l
```

## Change Type Isolation

Use `--diff-filter` to focus on specific change categories:

```bash
git diff --name-only --diff-filter=A <baseline>  # Additions
git diff --name-only --diff-filter=M <baseline>  # Modifications
git diff --name-only --diff-filter=D <baseline>  # Deletions
git diff --name-only --diff-filter=R <baseline>  # Renames
```

## Integration with Sanctum

Before running diff analysis on git repositories, use `sanctum:git-workspace-review` to gather repository context:

- Repository confirmation (pwd, branch)
- Status overview (staged vs unstaged)
- Diff statistics
- Diff details

Then proceed with imbue-specific semantic analysis and risk assessment.

## Usage Pattern

1. **Sanctum First**: Use `sanctum:git-workspace-review` to gather raw git data
2. **Imbue Second**: Apply semantic categorization and risk assessment to findings
3. **Evidence**: Use `imbue:proof-of-work` to capture analysis artifacts
4. **Output**: Format with `imbue:structured-output` for downstream consumption

modules/risk-assessment-framework.md

---
name: risk-assessment-framework
description: Framework for evaluating change risk and impact, reusable across review workflows
parent_skill: imbue:diff-analysis
category: risk-analysis
tags: [risk, impact, assessment, testing, quality]
reusable_by: [pensive:rust-review, pensive:api-review, pensive:architecture-review, pensive:bug-review]
estimated_tokens: 400
---

# Risk Assessment Framework

## Risk Indicators

Evaluate each change category for potential impact across these dimensions:

### Breaking Changes
- Public API modifications (function signatures, return types)
- Schema changes (database, data structures, serialization formats)
- Contract alterations (protocols, interfaces, message formats)
- Dependency version changes with incompatible APIs

### Security-Sensitive
- Authentication mechanisms or credential handling
- Authorization logic or permission checks
- Cryptography usage (encryption, hashing, signing)
- Input validation or sanitization
- Network communication or protocol handling

### Data Integrity
- Database operations (writes, updates, migrations)
- State management logic
- Persistence logic or serialization
- Transaction handling
- Data validation or constraints

### External Dependencies
- Third-party service integrations
- Library updates or version bumps
- API client changes
- Infrastructure dependencies (databases, queues, caches)

### Performance-Critical
- Hot paths or frequently-executed code
- Caching mechanisms
- Resource allocation (memory, file handles, connections)
- Algorithmic changes in core operations

## Risk Levels

Classify overall risk based on indicators:

- **Low**: Internal refactors, documentation updates, test additions with no production code changes
- **Medium**: Feature additions with detailed tests, non-breaking API extensions, configuration changes with rollback plans
- **High**: Breaking changes requiring coordination, security modifications, schema migrations, changes to critical paths

## Test Coverage Flagging

Identify changes requiring additional testing attention:

- **Untested Changes**: New code or modifications without corresponding test updates
- **Test-Only Changes**: Test updates without production code (potential false positives)
- **Coverage Gaps**: High-risk changes with insufficient test scenarios
- **Integration Points**: Changes affecting external systems without integration tests

## Risk Scoring Methodology

1. **Identify Indicators**: Note which risk dimensions apply to each change
2. **Count High-Risk Indicators**: Breaking, security, data integrity take precedence
3. **Assess Test Coverage**: Reduce risk level if detailed tests present
4. **Consider Scope**: Smaller, isolated changes generally lower risk than widespread modifications
5. **Assign Level**: Use conservative assessment (when in doubt, elevate risk)

## Output Format

For each high or medium risk change:
- **Change**: Brief description
- **Risk Level**: Low/Medium/High
- **Indicators**: Which dimensions trig

modules/semantic-categorization.md

---
name: semantic-categorization
description: Framework for categorizing changes by type and semantic meaning
parent_skill: imbue:diff-analysis
category: analysis-framework
tags: [categorization, semantic-analysis, change-types]
estimated_tokens: 300
---

# Semantic Categorization

## Change Categories

Group changes by their structural nature:

- **Additions**: New capabilities, files, or entities introduced
- **Modifications**: Changes to existing behavior or structure
- **Deletions**: Removed capabilities or deprecated items
- **Renames/Moves**: Reorganization without functional change

## Semantic Categories

Classify changes by their purpose and impact:

- **Features**: New user-facing capabilities or functionality
- **Fixes**: Corrections to existing behavior, bug resolutions
- **Refactors**: Structural improvements without behavior change
- **Tests**: Test coverage additions or modifications
- **Documentation**: Explanatory content, guides, or inline documentation changes
- **Configuration**: Settings, environment variables, infrastructure, or build configuration changes

## Entity-Level Diff (Primary: sem)

When [sem](https://github.com/Ataraxy-Labs/sem) is
available (see `leyline:sem-integration`), use
entity-level diffs:

```bash
# Check sem availability
if command -v sem &>/dev/null; then
  sem diff --format json <baseline>
fi
```

This returns entities (functions, classes, methods)
with `change_type` of added, modified, deleted, or
renamed. Group by `change_type` to populate the
structural categories above.

## File-Level Diff (Fallback: git)

When sem is unavailable, use git's `--diff-filter`
flag to isolate change types at file level:

```bash
git diff --name-only --diff-filter=A <baseline>  # Added files
git diff --name-only --diff-filter=M <baseline>  # Modified files
git diff --name-only --diff-filter=D <baseline>  # Deleted files
git diff --name-only --diff-filter=R <baseline>  # Renamed files
```

## Cross-Cutting Changes

Identify changes that span multiple categories or subsystems:
- Feature additions that also update tests and documentation
- Refactors that touch multiple modules
- Configuration changes that affect multiple environments
- Breaking changes that require coordinated updates

## Categorization Workflow

1. **Structural First**: Group by addition/modification/deletion
2. **Semantic Second**: Within each structural group, classify by purpose
3. **Cross-Reference**: Note changes that appear in multiple semantic categories
4. **Prioritize**: Order by impact (breaking > feature > fix > refactor)

Sponsored

Ads related to diff-analysis and adjacent AI workflows.