regen-baseline

Community

Regenerate baselines safely after changes

Authoraphrody-code
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents failing tests and CI snapshots from blocking legitimate development changes by letting you regenerate the tracked output baselines in a controlled, validated way.

Core Features & Use Cases

  • Regenerates 7 tracked snapshots across fixture render formats (text, json, jsonl, md, sarif) and rule render formats (json, text).
  • Guards against stale binaries by refusing to run when n2b --version does not match the version declared in the repo’s Rust/Cargo manifests.
  • Enables human review by showing a git diff --stat summary so you can confirm only the expected output changes landed.
  • Use case: after upgrading the n2b CLI/reporting output or adding/changing rules, update the snapshots so the test suite reflects the new, correct behavior.

Quick Start

Run the regen script from the repo root to refresh the baseline snapshots tracked under tests/snapshots/baseline.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: regen-baseline
Download link: https://github.com/aphrody-code/n2b/archive/main.zip#regen-baseline

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.