一键导入
fork-merge
Discover and merge useful features from sibling forks into the user's fork. Invoke only on explicit user request via /fork-merge with a fork URL.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Discover and merge useful features from sibling forks into the user's fork. Invoke only on explicit user request via /fork-merge with a fork URL.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Rewrite user's original prompt by integrating their critique of the agent's failed response.
Deconstruct LLM "neuroslop" — machine clichés, puffery, weasel-wording, Markdown abuse, rhythmic monotony. Use when user asks to humanize, dehumanize-AI, очистить от нейрослопа, депорезать, redact AI-generated copy, edit a draft from ChatGPT/Claude/Gemini, or refine corporate/PR/wiki text that "sounds AI".
Git workflow patterns — branching, committing, rebasing, conflict resolution. Use when working with git operations.
Relentlessly interview user to stress-test a plan/design.
Generate conversation handoff document for the next agent session.
Generate a comprehensive CLAUDE.md for the current repository — first runs Anthropic's /init for a baseline, then restructures with an extended standardized template (sections, security flows, anti-patterns, data models, CI/CD, common issues). Use when a repo has no CLAUDE.md or you want to enrich an existing one with extended structure.
| name | fork-merge |
| description | Discover and merge useful features from sibling forks into the user's fork. Invoke only on explicit user request via /fork-merge with a fork URL. |
| argument-hint | <my-fork-url> [--limit N] |
| disable-model-invocation | true |
| stage | proving |
Goal: turn "find useful patches scattered across sibling forks of upstream X" into one interactive pipeline — discover ahead forks → parallel research → SUMMARY → user picks → cherry-pick into per-feature branches → push + open PRs.
<my-fork-url> (required). Parse from args; ask once if missing.--limit N (optional). Overrides hard caps in Phase 1 (default: unlimited compare calls until rate-limit guard trips).gh --version missing → ask user to sudo apt install gh (or brew install gh) and gh auth login (or set GITHUB_TOKEN). Stop.gh api user -q .login fails → not authenticated. Ask user to run gh auth login or export GITHUB_TOKEN. Stop. (Do NOT grep gh auth status for scopes — fine-grained PATs don't expose scopes; permission failures surface as 403 at use time and are handled per-operation in Phase 1 / Phase 7.)git -C $PWD rev-parse --show-toplevel succeeds → STOP. $PWD is inside a git repo; workdir would pollute it. Ask user to cd ~ (or any non-repo path).WORKDIR=$PWD/.fork-merge-<repo>-<unix-ts>/.git clone <my-fork-url> $WORKDIR/origin.gh repo view <owner>/<repo> --json parent -q .parent.nameWithOwner. If null → STOP with diagnostic of which case fired (not a fork / parent deleted-or-private / URL is upstream itself).git -C $WORKDIR/origin remote add upstream <upstream-url> + git fetch upstream.gh api rate_limit -q .resources.core.remaining. If < (fork_count + 50) → STOP, show reset time from .resources.core.reset.gh api repos/<upstream>/forks --paginate -q '.[] | {full_name, default_branch, pushed_at, stargazers_count, node_id}' > $WORKDIR/forks-raw.json. Dedup by node_id.gh api repos/<upstream>/compare/<upstream-default>...<fork-owner>:<fork-default> → ahead_by, behind_by, commits[], merge_base_commit. Parallelism: max 4 (xargs -P 4) to avoid secondary abuse rate-limit.ahead_by > 1 AND merge_base_commit != null AND behind_by <= 10000. Save to $WORKDIR/forks.json.forks.json. For each fork, judge by: commit messages (first 5), pushed_at recency, stars, owner/repo name.$WORKDIR/shortlist.json with explicit dropped_reason for each excluded entry.<owner>-<repo> (sanitize via tr / -; on collision append -2, -3, …).git remote add <safe-name> <fork-url> then git fetch <safe-name> — serial fetches (avoids .git/packed-refs races).researcher subagents in parallel (one message, N Agent tool calls). Each researcher receives: workdir path, remote name, base (upstream/<default>), head (<safe-name>/<fork-default>), commit SHAs, brief upstream-project description. Returns structured REPORT (see REFERENCE.md §2 for schema).$WORKDIR/SUMMARY.md from TEMPLATES/SUMMARY.md — checkboxes [ ] per feature with source, risk, one-line rationale.$WORKDIR/PLAN.md from TEMPLATES/PLAN.md — per-feature: commits to pick (with is_merge_commit/has_lfs flags), apply order, expected conflicts, cherry-pick strategy.<WORKDIR>/SUMMARY.md, mark [x] features you want, then say "continue"". STOP. Wait for explicit signal.SUMMARY.md, filter PLAN by [x]. Show refined PLAN to user. Continue on confirmation.git checkout -b feature/<slug> origin/<default>.-m 1) / empty (--skip) / LFS-flagged (stop & warn) / force-pushed bad-object (skip feature, continue).git cherry-pick --abort, STOP, show conflicting files + remaining features list.git push origin feature/<slug> + gh pr create --base main --head feature/<slug>. PR body = feature rationale from REPORT.SUMMARY.md with final per-feature status: PUSHED / SKIPPED / CONFLICT / LFS-BLOCKED.$WORKDIR/SUMMARY.md → ~/.claude/plans/fork-merge-<repo>-<unix-ts>.md.chmod -R +w $WORKDIR && rm -rf $WORKDIR.rm -rf workdir before all branches are pushed (or user explicitly aborts).gh pr create against upstream — always head=user's fork, base=user's fork main.