Registry / lobehub

lobehub/lobehub/split-large-file

Refactor a source file over 1200 lines into a directory of cohesive modules without changing behavior, test-first. Use when asked to split, decompose, or shrink a large file (拆分大文件, 拆文件, 重构大文件); with no file given, pick one.

Agent skill · version 2.3.3-canary.1 · from lobehub/lobehub

Install

npx yarkr-cli add skill:lobehub/lobehub/split-large-file

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:lobehub/lobehub/split-large-file
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:lobehub/lobehub/split-large-file

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:lobehub/lobehub/split-large-file

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.