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

github-forkerGitHub forker 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

7,660

周安装

316

GitHub Stars

公开资料未说明

下载量

2,503
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:github-forker(GitHub forker 搜索)
来源仓库:https://github.com/chat2dev/github-forker
安装命令:
openclaw skills install github-forker
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install github-forker

简介

用于在用户 GitHub 账户下分叉指定存储库。

  • 适合复制开源项目到个人账户进行定制开发。
  • 通过 clawhub 安装后,响应“fork”类指令自动执行。
  • 需登录状态和对应仓库的 fork 权限。
  • 注意遵守原仓库许可证要求。github-forker 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
github-forker
description
>

GitHub Forker

Fork GitHub repositories extracted from text or images. You need GITHUB_TOKEN set in the environment with repo permissions.

What you do

  1. Extract all GitHub repository URLs from the input (text, image, or both)
  2. Fork each repository via the GitHub API
  3. Star the original repository after a successful fork
  4. Report results clearly

Step 1: Extract GitHub URLs

From text

Scan the input for patterns matching:

  • https://github.com/{owner}/{repo} (with or without trailing slash, path, or fragment)
  • github.com/{owner}/{repo} (without scheme)
  • {owner}/{repo} only when context makes it clearly a GitHub repo

Normalize each match to the canonical form: https://github.com/{owner}/{repo} Strip any extra path segments — you only need owner and repo name.

From images

When the user provides an image (screenshot, photo, diagram), use your vision capabilities to read the image and identify any GitHub URLs or repo references visible in it. Apply the same extraction rules as above to whatever text you find.

Truncated URLs

URLs are often cut off in screenshots or social media previews, like:

  • github.com/openchamber/op...
  • github.com/some-owner/proj…

When you detect a truncated URL (ends with ... or , or the repo name is clearly incomplete):

  1. Search GitHub for matching repos:
   curl -s -L \
     -H "Authorization: Bearer $GITHUB_TOKEN" \
     -H "Accept: application/vnd.github+json" \
     "https://api.github.com/search/repositories?q={owner}/{partial}+in:full_name&per_page=5"

Use whatever partial info you have — owner + partial repo name is ideal; owner alone works too.

  1. Use context to pick the best match. Look at surrounding text, tweet content, project name

mentioned, description keywords, and star count. If one result stands out clearly: - The repo name starts with the visible partial (e.g. op...openchamber matches) - The description aligns with what the user said (e.g. "UI真好" → pick the UI-focused one) - It has significantly more stars than the others

If you're confident, proceed directly and tell the user your reasoning:

   "github.com/openchamber/op..." → inferred openchamber/openchamber ⭐1.5k (Desktop UI for OpenCode, matches context "UI真好")
  1. Ask the user only when genuinely uncertain — when multiple results are plausible and

context doesn't help distinguish them:

   Found truncated URL "github.com/foo/bar..." — which repo did you mean?
   1. foo/barista ⭐420 — Coffee shop POS system
   2. foo/baroque ⭐38 — Baroque music generator
   Enter number (or 0 to skip):

Never fork a truncated URL without either a confident inference or explicit user confirmation.

Step 2: Fork via GitHub API

For each unique {owner}/{repo} pair, call the fork endpoint:

curl -s -L -X POST \
  -H "Authorization: Bearer $GITHUB_TOKEN" \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/{owner}/{repo}/forks

The -L flag is required — GitHub's API returns a 307 redirect that must be followed.

  • If GITHUB_TOKEN is not set, tell the user to set it and stop:
  export GITHUB_TOKEN="ghp_..."   # classic PAT (recommended)
  # To persist across sessions, add to ~/.zshrc or ~/.bash_profile
  • Fork requests are async on GitHub's side — a 202 response means "accepted", not "done".
  • If a repo is already forked, GitHub returns the existing fork (not an error) — that's fine.
  • Handle HTTP errors:

- 401: bad or expired token - 403: token lacks fork permission. For classic PATs, need repo or public_repo scope. For fine-grained PATs, need "Administration: Read and write" permission (not just contents). - 404: repo not found or private (token has no access)

Step 3: Star the original repository

After a successful fork, star the original repo:

curl -s -L -X PUT \
  -H "Authorization: Bearer $GITHUB_TOKEN" \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/user/starred/{owner}/{repo}

A 204 response means success. Star failures are non-fatal — if starring fails, note it in the report but don't treat the overall operation as failed.

Step 4: Report results

After all forks are attempted, show a clear summary:

Found X repositories:
✓ owner/repo — forked → https://github.com/YOUR_USERNAME/repo  ⭐ starred
✓ owner/repo — forked → https://github.com/YOUR_USERNAME/repo  (star failed: <reason>)
✗ owner/repo — failed: <reason>

If the token's authenticated username isn't obvious, extract it from the fork response (full_name field gives your-username/repo-name).

Edge cases

  • No URLs found: Tell the user clearly — "No GitHub repository URLs found in the input."
  • Private repos: Fork will fail with 404 if the token doesn't have access; report the error.
  • Duplicate URLs: Deduplicate before forking — fork each unique repo once.
  • Non-repo URLs: Ignore github.com/ paths that aren't owner/repo format (e.g., github.com/features, github.com/login).

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

79.57%
按下载量换算1,992

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills