porting-another-repository
БесплатноБез исполняемых скриптовНе проверенPlan how to port a feature, configuration, or implementation from this repository into another repository. Analyzes the source feature here and the target…
от dyoshikawa★ 1 671 звезда на GitHubОб этом скилле
arguments = the user's request
Parse arguments as:
target_repo: the repository to port INTO, inowner/repoform, a URL, or a local pathscope: what to port from THIS repository (a feature name, directory, file, or rough description)
If target_repo is not provided, ask the user which repository to port into.
If scope is not provided, ask the user what part of this repository they want to port.
The direction is fixed: the source is this repository, the target is target_repo. This skill never modifies the target repository directly — it only produces a porting plan on disk for the user to apply manually.
Step 0: Prepare the Output Directory
Compute a single timestamp once and reuse it for every file:
ts="$(date +%Y%m%d-%H%M)"
out="tmp/porting-another-repository-${ts}"
mkdir -p "${out}"
All artifacts in this run go under ${out}/. Do not recompute the timestamp per file — every file must share the same directory.
Step 1: Analyze the Source (This Repository)
Understand exactly what is being ported. Prefer targeted symbol and search tools over reading whole files.
Identify, for the requested scope:
- The entry points and the files that implement it.
- Its dependencies within this repo (shared utilities, base classes, types, config) that would also need to come along.
- Any build/test/tooling wiring it relies on (scripts, configs, fixtures, CI steps).
- External package dependencies it pulls in.
Write the result to ${out}/01-source-analysis.md.
Step 2: Analyze the Target Repository
Understand the target's conventions so the port fits in naturally.
- If
target_repois a local path, inspect it directly (grep/read). - If it is
owner/repoor a URL, usegh repo view,gh api repos/<owner/repo>/contents/<path>, and the deepwiki MCP (mcp__deepwiki__ask_question,mcp__deepwiki__read_wiki_contents) to learn its structure.
Capture:
- Language, package manager, build/test tooling, and directory layout.
- Where the equivalent of the source feature would live in the target's structure.
- Naming, style, and architectural conventions the port must follow.
- Existing functionality that overlaps or conflicts with what is being ported.
Write the result to ${out}/02-target-analysis.md.
Step 3: Produce the Porting Plan
Map source concepts onto the target. Use a small mapping table (source path/symbol → target path/symbol) — it is far easier to read than prose for this.
Cover:
- A step-by-step sequence of changes, ordered so the target stays buildable.
- Required dependency additions (with versions) and tooling/config changes.
- Adaptations needed to match the target's conventions (renames, refactors, API shape changes).
- Risks, open questions, and anything deliberately out of scope.
- A short test/verification plan for the target.
Write the result to ${out}/03-porting-plan.md.
Step 4: Produce Concrete Diffs
For each step in the plan, write the concrete code/config the user should add to the target, in fenced blocks labeled with their target file paths. Where an existing target file changes, show a unified-diff-style snippet. Keep these ready to copy-paste.
Write the result to ${out}/04-diff.md.
Step 5: Write the Overview and Report
Write ${out}/00-overview.md last, as the index for the run. It must contain:
- Source repo and
scope, target repo, and the timestamp. - A one-paragraph summary of what is being ported and the recommended approach.
- A links list to the other files (
01-source-analysis.md…04-diff.md) with a one-line description of each. - Top risks and open questions surfaced during the analysis.
Then report to the user:
- The absolute path of
${out}/. - A one-line summary of the port (what moves, where it lands).
- The top open questions the user needs to decide before applying the plan.
Установить porting-another-repository в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл porting-another-repository?
Plan how to port a feature, configuration, or implementation from this repository into another repository. Analyzes the source feature here and the target repo's conventions, then writes a multi-file porting plan (overview, source analysis, target analysis, plan, diff) to tmp/porting-another-repository-{YYYYMMDD-HHmm}/*.md for the user to review and apply manually.
Как установить скилл porting-another-repository?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл porting-another-repository запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic