autoresearch-finalize

Generate independent reviewable branches from a noisy commit history.

Updated Jan 17, 2023
One-click install
npx skills add https://github.com/MjxOro/dotfiles --skill autoresearch-finalize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autoresearch-finalize
Source: https://github.com/MjxOro/dotfiles/tree/main/omp/agent/skills/autoresearch-finalize
Command: npx skills add https://github.com/MjxOro/dotfiles --skill autoresearch-finalize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node, git, and includes scripts (resource) components.

What problem does it solve?

Finalize an autoresearch session by turning a noisy branch of experiments into a clean, reviewable set of independent branches starting from the merge-base, making it easy to review, merge, or discard individual ideas.

Core Features & Use Cases

  • Group experiments into logical changesets from the merge-base with one idea per branch.
  • Independent review: Each branch can be landed in any order without cross-branch file conflicts, simplifying code review and collaboration.
  • Guardrails and verification: Preflight checks detect overlapping file changes, ensure last-kept commits exist, and verify that the union of created branches matches the original autoresearch work.
  • Use Case: When an autoresearch session produces multiple logical experiments, quickly isolate each into its own branch to enable focused reviews and clean history.

Quick Start

Run the finalize.sh script with your groups.json to generate independent reviewable branches.

Frequently Asked Questions about autoresearch-finalize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split a messy git branch with multiple experiments into independent reviewable branches?

To split a messy git branch into independent reviewable branches, you group experiments from the merge-base into a groups.json file and run finalize.sh. This creates one branch per logical changeset, enabling focused code review and clean history.

What is a merge-base and why use it for grouping git commits into branches?

A merge-base is the common ancestor commit used to group git commits into independent branches. Starting groups from the merge-base ensures each branch represents one isolated idea, allowing them to be landed in any order without cross-branch file conflicts.

Do I need node and git installed to run the finalize.sh script?

Yes, you need both node and git installed to run the finalize.sh script. These dependencies are required to expand short hashes, process the groups.json input, and generate the independent reviewable branches from your commit history.

How do I verify that my generated branches match the original autoresearch work?

To verify that generated branches match the original autoresearch work, the finalize.sh script includes built-in guardrails. It runs preflight checks and verifies that the union of created branches exactly matches the original autoresearch commit history.

What happens if my git experiments have overlapping file changes?

If your git experiments have overlapping file changes, the script's preflight guardrails will detect the overlap during execution. This prevents the creation of branches that would cause cross-branch file conflicts during code review or merging.

What is the best way to prepare a noisy commit history for code review?

The best way to prepare a noisy commit history for code review is to isolate each logical experiment into its own branch. By expanding short hashes and grouping from the merge-base, you ensure each branch can be reviewed or discarded individually.