Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ahoym avatar

Init

  • 1 installs
  • 2 repo stars
  • Updated July 18, 2026
  • ahoym/dotfiles

init is a Claude Code skill that initializes an autonomous consolidation loop by creating a git worktree, scaffolding output files from templates, and running pre-flight checks.

About

init bootstraps an autonomous consolidation loop by creating a dated git worktree and branch, scaffolding output files from templates, and running pre-flight checks. It counts learnings, skills, references, guidelines, and personas in the collection and analyzes recent commit cadence to suggest how many loop iterations to run. It then prints the launch command for the consolidation runner script. It is the setup step for a periodic corpus-curation workflow.

  • Creates a dated git worktree and branch for an autonomous consolidation loop
  • Scaffolds output files from 7 templates and runs pre-flight checks
  • Suggests iteration count from a cadence analysis of recent commits

Init by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,983 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Jul 19, 2026 (Skillselion catalog sync)
At a glance

init capabilities & compatibility

Capabilities
worktree setup · scaffolding · pre flight check · cadence analysis
Works with
github
Use cases
orchestration · planning
Pricing
Free
From the docs

What init says it does

Initialize an autonomous consolidation loop with worktree, output scaffolding, and pre-flight checks.
SKILL.md
Create a worktree for autonomous consolidation, scaffold output files from templates, run pre-flight checks, and print the launch command.
SKILL.md
npx skills add https://github.com/ahoym/dotfiles --skill init

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars2
Last updatedJuly 18, 2026
Repositoryahoym/dotfiles

What it does

Set up a dated worktree, scaffold output files, and print the launch command for an autonomous consolidation loop.

When should I use this skill?

You are starting a periodic autonomous consolidation or curation run over a learnings/skills collection and need the worktree and scaffolding set up.

What you get

A ready dated worktree with scaffolded output files, pre-flight metrics, and the printed launch command.

  • git worktree and branch
  • scaffolded progress.md and report.md

By the numbers

  • copies all 7 templates
  • suggests 10, 15, or 20 iterations by cadence

Files

SKILL.mdMarkdownGitHub ↗

Initialize Consolidation Loop

Create a worktree for autonomous consolidation, scaffold output files from templates, run pre-flight checks, and print the launch command.

Instructions

1. Derive names

  • Date: today's date in YYYY-MM-DD format
  • Worktree path: claude/worktrees/consolidate-<date>
  • Branch: consolidate/<date>

2. Check for existing worktree

If claude/worktrees/consolidate-<date>/ already exists, offer: 1. Reuse — keep existing worktree, skip creation 2. Remove and recreategit worktree remove then create fresh 3. New with timestamp — append -HHMM (24h hour+minute) to create claude/worktrees/consolidate-<date>-<HHMM> with branch consolidate/<date>-<HHMM> 4. Abort — do nothing

3. Create worktree

git worktree add claude/worktrees/consolidate-<date> -b consolidate/<date> HEAD

If the branch consolidate/<date> already exists, use it without -b:

git worktree add claude/worktrees/consolidate-<date> consolidate/<date>

4. Scaffold output files

Copy all templates to the worktree in one Bash call:

mkdir -p claude/worktrees/consolidate-<date>/claude/consolidate-output && cp ~/.claude/ralph/consolidate/templates/*.md claude/worktrees/consolidate-<date>/claude/consolidate-output/

This copies all 7 templates (spec.md, broad-sweep-methodology.md, deep-dive-methodology.md, progress.md, decisions.md, report.md, review.md) verbatim. Only progress.md and report.md are modified in the next step — the other 5 are never read by this skill.

5. Run pre-flight

Gather collection metrics:

1. Recent commits: git log --oneline -10 — check if collection was recently curated 2. File counts (use Glob in the worktree):

  • Learnings: claude/worktrees/consolidate-<date>/claude/learnings/**/*.md (recursive — catches cluster subdirectories; exclude CLAUDE.md index files from count)
  • Skills: claude/worktrees/consolidate-<date>/claude/commands/**/SKILL.md
  • Skill references: claude/worktrees/consolidate-<date>/claude/skill-references/**/*.md
  • Guidelines: claude/worktrees/consolidate-<date>/claude/guidelines/*.md
  • Personas: claude/worktrees/consolidate-<date>/claude/commands/set-persona/*.md

3. Cadence analysis — scan the last 10 commits for curation-related keywords (curate, compress, fold, genericize, deduplicate, prune, consolidat). Count how many of the last 5 commits are curation commits. Classify:

  • Recent (3+ of last 5): suggest 10 iterations — corpus likely clean
  • Moderate (1-2 of last 5): suggest 15 iterations — some staleness possible
  • Stale (0 of last 5): suggest 20 iterations — full sweep warranted

4. Update progress.md and report.md — parallel-Read both (Edit requires recent Read), then parallel-Edit both (1 Edit per file):

  • progress.md: replace the (pending) block (lines 18–24 in template) with actual values
  • report.md: single Edit spanning from | Started | through | Persona files | — replace <!-- timestamp --> / <!-- branch name --> / <!-- worktree path --> with actuals and — | — health rows with N | — counts

6. Confirm to the operator

Consolidation loop initialized.

  Worktree: claude/worktrees/consolidate-<date>/
  Branch:   consolidate/<date>

  Pre-flight:
    Recent commits: <summary — note if recently curated>
    Learnings:       N files
    Skills:          N directories
    Skill references: N files
    Guidelines:      N files
    Personas:        N files

  Cadence: <recent|moderate|stale> (<X> curation commits in last 5)

  To launch:
    cd claude/worktrees/consolidate-<date>
    bash ~/.claude/ralph/consolidate/wiggum.sh <suggested_iterations>

Example

/ralph:consolidate:init

Consolidation loop initialized.

  Worktree: claude/worktrees/consolidate-2026-02-26/
  Branch:   consolidate/2026-02-26

  Pre-flight:
    Recent commits: ce44582 Compress allowed-tools... (curation 2 commits ago)
    Learnings:       12 files
    Skills:          23 directories
    Skill references: 16 files
    Guidelines:      3 files
    Personas:        4 files
    Cadence: recent (3 curation commits in last 5)

  To launch:
    cd claude/worktrees/consolidate-2026-02-26
    bash ~/.claude/ralph/consolidate/wiggum.sh 10

Related skills

FAQ

What does init create?

A dated git worktree and branch, scaffolded output files from 7 templates, and a printed command to launch the consolidation runner.

How does it decide the iteration count?

It scans the last commits for curation keywords and classifies cadence as recent, moderate, or stale, suggesting 10, 15, or 20 iterations.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.