Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

fork-intelligence分叉情报

Agent Skill

fork-intelligence 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,224

周安装

51

GitHub Stars

37

下载量

408
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fork-intelligence(分叉情报)
来源仓库:https://github.com/terrylica/cc-skills
仓库路径:skills/fork-intelligence
安装命令:
npx skills add https://github.com/terrylica/cc-skills --skill fork-intelligence
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill fork-intelligence

简介

fork-intelligence 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景进行信息检索的场景,如情报分析、智能筛选等。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 了解具体用法。
  • 安装前建议确认权限范围和维护状态,注意可能触发联网、命令执行或文件读写操作。
  • 该技能归类为研究检索类,当前维护状态尚不明确,建议进一步核实稳定性。

SKILL.md

Fork Intelligence

Systematic methodology for discovering valuable work in GitHub fork ecosystems. Stars-only filtering misses 60-100% of substantive forks — this skill uses branch-level divergence analysis, upstream PR cross-referencing, and domain-specific heuristics to find what matters.

Validated empirically across 10 repositories spanning Python, Rust, TypeScript, C++/Python, and Node.js (tensortrade, backtesting.py, kokoro, pymoo, firecrawl, barter-rs, pueue, dukascopy-node, ArcticDB, flowsurface).

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

FIRST — TodoWrite Task Templates

MANDATORY: Select and load the appropriate template before any fork analysis.

Template A — Full Analysis (new repository)

1. Get upstream baseline (stars, forks, default branch, last push)
2. List all forks with pagination, note timestamp clusters
3. Filter to unique-timestamp forks (skip bulk mirrors)
4. Check default branch divergence (ahead_by/behind_by)
5. Check non-default branches for all forks with recent push or >1 branch
6. Evaluate commit content, author emails, tags/releases
7. Cross-reference upstream PR history from fork owners
8. Tier ranking and cross-fork convergence analysis
9. Produce report with actionable recommendations

Template B — Quick Scan (triage only)

1. Get upstream baseline
2. List forks, filter by timestamp clustering
3. Check default branch divergence only
4. Report forks with ahead_by > 0

Template C — Targeted Fork Evaluation (specific fork)

1. Compare fork vs upstream on all branches
2. Examine commit messages and changed files
3. Check for tags/releases, open issues, PRs
4. Assess cherry-pick viability

Signal Priority Order

Ranked by empirical reliability across 10 repositories. See signal-priority.md for details.

RankSignalReliabilityWhat It Catches
1Branch-level divergenceHighestWork on feature branches (50%+ of substantive forks)
2Upstream PR cross-referenceHighRebased/force-pushed work invisible to compare API
3Tags/releases on forkHighIndependent maintenance intent
4Commit email domainsHighInstitutional contributors (@company.com)
5Timestamp clusteringMediumEliminates 85%+ mirror noise
6Cross-fork convergenceMediumReveals unmet upstream demand
7StarsLowestOften anti-correlated with actual value

Pipeline — 7 Steps

Step 1: Upstream Baseline

UPSTREAM="OWNER/REPO"
gh api "repos/$UPSTREAM" --jq '{forks_count, pushed_at, default_branch, stargazers_count}'

Step 2: List All Forks + Timestamp Clustering

# List all forks with activity signals
gh api "repos/$UPSTREAM/forks" --paginate \
  --jq '.[] | {full_name, pushed_at, stargazers_count, default_branch}'

Timestamp clustering: Forks sharing exact pushed_at with upstream are bulk mirrors created by GitHub's fork mechanism and never touched. Group by pushed_at — forks with unique timestamps warrant investigation. This alone eliminates 85%+ of noise.

# Filter to unique-timestamp forks (skip bulk mirrors)
gh api "repos/$UPSTREAM/forks" --paginate \
  --jq '.[] | {full_name, pushed_at, stargazers_count}' | \
  jq -s 'group_by(.pushed_at) | map(select(length == 1)) | flatten'

Step 3: Default Branch Divergence

BRANCH=$(gh api "repos/$UPSTREAM" --jq '.default_branch')

# For each candidate fork
gh api "repos/$UPSTREAM/compare/$BRANCH...FORK_OWNER:$BRANCH" \
  --jq '{ahead_by, behind_by, status}'

The status field meanings:

  • identical — pure mirror, skip
  • behind — stale mirror, skip
  • diverged — has original commits AND is behind (interesting)
  • ahead — has original commits, up-to-date with upstream (rare, most valuable)

Important: Always compare from the upstream repo's perspective (repos/UPSTREAM/compare/...). The reverse direction (repos/FORK/compare/...) returns 404 for some repositories.

Step 4: Non-Default Branch Analysis (CRITICAL)

This is the single biggest methodology improvement. Across all 10 repos tested, 50%+ of the most valuable fork work lived exclusively on feature branches.

Examples:

  • flowsurface/aviu16: 7,000-line GPU shader heatmap only on shader-heatmap
  • ArcticDB/DerThorsten: 147 commits across conda_build, clang, apple_changes
  • pueue/FrancescElies: Duration display only on cesc/duration
  • barter-rs: 6 of 12 top forks had work only on feature branches
# List branches on a fork
gh api "repos/FORK_OWNER/REPO/branches" --jq '.[].name' | head -20

# Check divergence on a specific branch
gh api "repos/$UPSTREAM/compare/$BRANCH...FORK_OWNER:FEATURE_BRANCH" \
  --jq '{ahead_by, behind_by, status}'

Heuristics for which forks need branch checks:

  • Any fork with pushed_at more recent than upstream but ahead_by == 0 on default branch
  • Any fork with more than 1 branch
  • Branch count > 10 is suspicious — likely non-trivial work (ArcticDB: Rohan-flutterint had 197 branches)

Step 5: Commit Content Evaluation

gh api "repos/$UPSTREAM/compare/$BRANCH...FORK_OWNER:BRANCH" \
  --jq '.commits[] | {sha: .sha[:8], message: .commit.message | split("\n")[0], date: .commit.committer.date[:10], author: .commit.author.email}'

What to look for:

  • Commit email domains reveal institutional contributors (@man.com, @quantstack.net)
  • Subtract merge commits from ahead_by count (e.g., akeda2/pueue showed 35 ahead but 28 were upstream merges)
  • Build system changes (CMakeLists.txt, Cargo.toml, pyproject.toml) indicate platform enablement
  • Protobuf schema changes indicate architectural-level features
  • Test files alongside source changes signal production-intent work

Step 6: Fork-Specific Signals

# Tags/releases (strongest independent maintenance signal)
gh api "repos/FORK_OWNER/REPO/tags" --jq '.[].name' | head -10
gh api "repos/FORK_OWNER/REPO/releases" --jq '.[] | {tag_name, name, published_at}' | head -5

# Open issues on the fork (signals independent project maintenance)
gh api "repos/FORK_OWNER/REPO/issues?state=open" --jq 'length'

# Check if repo was renamed (strong divergence intent signal)
gh api "repos/FORK_OWNER/REPO" --jq '.name'
SignalStrengthExample
Tags/releases on forkHighestpueue/freesrz93 had 6 releases
Open PRs against upstreamHighFormal proposals with review context
Open issues on the forkHighIndependent project maintenance
Repo renamedMediumflowsurface/sinaha81 became volume_flow
Build config changesHigh (compiled languages)Cargo.toml, CMakeLists.txt diff
Description changedWeakMany vanity renames with no code

Step 7: Cross-Fork Convergence + Upstream PR History

# Check upstream PRs from fork owners
gh api "repos/$UPSTREAM/pulls?state=all" --paginate \
  --jq '.[] | select(.head.repo.fork) | {number, title, state, user: .user.login}'

Cross-fork convergence: When multiple forks independently solve the same problem, it signals unmet upstream demand:

  • firecrawl: 3 forks adopted Patchright for anti-detection
  • flowsurface: 3 forks added technical indicators independently
  • kokoro: 2 independent batched inference implementations
  • barter-rs: 4 forks added Bybit support

Upstream PR cross-reference catches:

  • Rebased/force-pushed work invisible to compare API
  • Work that was merged upstream (fork shows 0 ahead but was historically significant)
  • Declined PRs with valuable code that the fork still maintains

Tier Classification

After running the pipeline, classify forks into tiers:

TierCriteriaAction
Tier 1: Major ExtensionsNew features, architectural changes, >10 original commitsDeep evaluation, cherry-pick candidates
Tier 2: Targeted FeaturesFocused additions, bug fixes, 2-10 commitsCherry-pick individual commits
Tier 3: InfrastructureCI/CD, packaging, deployment, docsEvaluate if relevant to your setup
Tier 4: HistoricalMerged upstream or stale but once significantNote for context, no action needed

Domain-Specific Patterns

Different codebases exhibit different fork behaviors. See domain-patterns.md for full details.

DomainKey PatternExample
Scientific/MLResearchers fork-implement-publish-vanish, zero social engagementpymoo: 300-file fork with 0 stars
Trading/FinanceExchange connectors dominate; best forks are privatebarter-rs: 4 independent Bybit impls
Infrastructure/DevToolsSelf-hosting/SaaS-removal is the dominant themefirecrawl: devflowinc/firecrawl-simple (630 stars)
C++/Python MixedFeature work lives on branches; email domains reveal institutionsArcticDB: @man.com, @quantstack.net
Node.js LibrariesCheck npm publication as separate packagesdukascopy-node: kyo06 published dukascopy-node-plus
Rust CLICargo.toml diff is reliable quick filter; "superset" forks add subcommandspueue: freesrz93 added 7 subcommands

Quick-Scan Pipeline (5-minute triage)

For rapid triage of any new repo:

UPSTREAM="OWNER/REPO"
BRANCH=$(gh api "repos/$UPSTREAM" --jq '.default_branch')

# 1. Baseline
gh api "repos/$UPSTREAM" --jq '{forks_count, pushed_at, stargazers_count}'

# 2. Forks with unique timestamps (skip mirrors)
gh api "repos/$UPSTREAM/forks" --paginate \
  --jq '.[] | {full_name, pushed_at, stargazers_count}' | \
  jq -s 'group_by(.pushed_at) | map(select(length == 1)) | flatten | sort_by(.pushed_at) | reverse'

# 3. Check ahead_by for each candidate
# (loop over candidates from step 2)

# 4. Check upstream PRs from fork authors
gh api "repos/$UPSTREAM/pulls?state=all" --paginate \
  --jq '.[] | select(.head.repo.fork) | {number, title, state, user: .user.login}'

Known Limitations

LimitationImpactWorkaround
GitHub compare API 250-commit limitHighly divergent forks may truncateUse gh api repos/FORK/commits?per_page=1 to get total count
Private forks invisibleTrading firms keep best work privateAccepted limitation
Force-pushed branches break compare APIShows 0 ahead despite significant workCross-reference upstream PR history
Renamed forks may break API callsOld URLs may 404Use gh api repos/FORK_OWNER/REPO --jq '.name' to detect renames
Rate limiting on large fork ecosystems>1000 forks = many API callsUse timestamp clustering to reduce calls by 85%+
Maintainer dev forks look like independent workBranch names 1:1 with upstream PRsCross-reference branch names against upstream PR branch names

Report Template

Use this structure for the final analysis report:

# Fork Analysis Report: OWNER/REPO

**Repository**: OWNER/REPO (N stars, M forks)
**Analysis date**: YYYY-MM-DD

## Fork Landscape Summary

| Metric                                | Value  |
| ------------------------------------- | ------ |
| Total forks                           | N      |
| Pure mirrors                          | N (X%) |
| Divergent forks (ahead on any branch) | N      |
| Substantive forks (meaningful work)   | N      |
| Stars-only miss rate                  | X%     |

## Tiered Ranking

### Tier 1: Major Extensions

(fork details with ahead_by, key features, files changed)

### Tier 2: Targeted Features

...

### Tier 3: Infrastructure/Packaging

...

## Cross-Fork Convergence Patterns

(themes that multiple forks independently implemented)

## Actionable Recommendations

- Cherry-pick candidates
- Feature inspiration
- Security fixes

Post-Change Checklist

After modifying THIS skill:

  1. YAML frontmatter valid (no colons in description)
  2. Trigger keywords current in description
  3. All ./references/ links resolve
  4. Pipeline steps numbered consistently
  5. Shell commands tested against a real repository
  6. Append changes to evolution-log.md

Post-Execution Reflection

After this skill completes, reflect before closing the task:

  1. Locate yourself. — Find this SKILL.md's canonical path before editing.
  2. What failed? — Fix the instruction that caused it.
  3. What worked better than expected? — Promote to recommended practice.
  4. What drifted? — Fix any script, reference, or dependency that no longer matches reality.
  5. Log it. — Evolution-log entry with trigger, fix, and evidence.

Do NOT defer. The next invocation inherits whatever you leave behind.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.04%
按下载量换算147

Claude

34.01%
按下载量换算139

Cursor

17.75%
按下载量换算72

Gemini CLI

8.74%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills