migrating-rule-packs

Automates per-file code migrations using rule packs and parallel worktrees.

125|42|Updated May 19, 2025
One-click install
npx skills add https://github.com/SocketDev/socket-mcp --skill migrating-rule-packs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-rule-packs
Source: https://github.com/SocketDev/socket-mcp/tree/main/.claude/skills/fleet/migrating-rule-packs
Command: npx skills add https://github.com/SocketDev/socket-mcp --skill migrating-rule-packs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinates complex, mechanical code migrations by packaging rule packs, autonomous per-file workflows, and a feedback loop into a repeatable pattern. It enables deterministic transformations across many target files using parallel worktrees and automated PR-driven validation.

Core Features & Use Cases

  • Rule-pack driven migrations for mechanical changes (e.g., zod→typebox, fetch→http-request, API renames).
  • Autonomous per-file workflow with worktree isolation and per-file PRs to accelerate large migrations.
  • Built-in build/check/test loop with retry logic and PR creation to streamline iteration.
  • Feedback loop that rewrites reviewer comments into rule-pack rules for continuous improvement.
  • Use Case: large-scale migrations touching many files where changes are deterministic and parallelizable.

Quick Start

Survey the target files, land a reference PR, and implement a parallel worktree workflow to migrate each file.

Frequently Asked Questions about migrating-rule-packs

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

FAQPage Schema
How do I automate large-scale code migrations across many files?

Rule-pack migrations coordinate mechanical code changes by applying deterministic transformations to target files using parallel git worktrees. This approach enables autonomous per-file workflows with isolated branches for deterministic, parallelizable transformations across many files.

How does a parallel worktree workflow handle code transformations?

Parallel worktree workflows isolate mechanical code transformations by creating an autonomous per-file git branch for each target file. They run a built-in build, check, and test loop with retry logic before automatically creating individual pull requests for every migrated file.

Can I use rule packs for deterministic type-system migrations like zod to typebox?

Yes, rule packs are designed for deterministic, mechanical migrations such as moving from zod to typebox or lifting import paths. They package transformation rules applied repeatedly across many target files in parallel using isolated git worktrees.

What is the best way to turn PR review feedback into automated migration rules?

PR review feedback can be rewritten into migration rules using a built-in feedback loop. This mechanism captures reviewer comments and converts them into rule-pack rules, enabling continuous improvement for subsequent automated code transformations.

How do I start a mechanical code migration workflow using git worktrees?

To start a mechanical code migration, survey the target files, land a reference PR, and implement a parallel worktree workflow. This establishes a repeatable pattern for migrating each file autonomously with automated validation and feedback.

When should I avoid using parallel worktrees for code migrations?

Parallel worktree migrations should be avoided for non-deterministic or highly interdependent code changes. This approach requires transformations to be mechanical and parallelizable, making it unsuitable for complex refactoring lacking isolated, per-file boundaries.