Agent skill

Repo2skill

by zhangyanxs in zhangyanxs/repo2skill

Convert GitHub/GitLab/Gitee repositories into comprehensive OpenCode Skills using embedded LLM calls with multiple mirrors and rate limit handling

No licenceAuto-check passedBackend & APIs

Install Repo2skill

skills CLI
$ npx skills add zhangyanxs/repo2skill --skill repo2skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhangyanxs/repo2skill repo2skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhangyanxs/repo2skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/repo2skill .claude/skills/repo2skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
repo2skill
GitHub stars
246
Token cost
~3.6k tokens
SKILL.md length
841 words
Files
7 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

Convert GitHub/GitLab/Gitee repositories into comprehensive OpenCode Skills using embedded LLM calls with multiple mirrors and rate limit handling

  • Works in 9 steps: Input Detection → Parse Repository URL → Mirror Configuration → …
  • Tasks that involve Rate limiting
  • SKILL.md covers System Instructions, Step 0: Input Detection, Step 1: Parse Repository URL and Step 2: Mirror Configuration, plus 3 more sections
  • Runs Shell scripts from its folder; calls curl, git and node; reaches gitlab.com and gitee.com

What it does

Repo2skill is an agent skill from zhangyanxs/repo2skill. Convert GitHub/GitLab/Gitee repositories into comprehensive OpenCode Skills using embedded LLM calls with multiple mirrors and rate limit handling

Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `IMPLEMENTATION.md`, `references/gitee-api.md` and `references/github-api.md`).

It sits in Backend & APIs, covering Rate limiting. It works with GitHub and GitLab. The repository describes itself as: Repository to Skill Converter.

When your agent uses it

  • Tasks that involve Rate limiting

Example prompts

  • “/repo2skill”

Requirements

  • Python 3
  • Node.js
  • A Bash shell

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Input Detection
  2. Parse Repository URL
  3. Mirror Configuration
  4. Fetch Repository Data
  5. Retry and Mirror Rotation Logic
  6. Analyze Repository
  7. Generate SKILL.md
  8. Installation Path Options
  9. Write File

What it can do on your machine

Read from SKILL.md and the folder at commit c8a4ddc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • curl
    • git
    • node
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • gitlab.com
    • gitee.com
    • api.github.com
    • github.com
    • gh.api.888888888.xyz
    • gh-proxy.com
    • api.fastgit.org
    • api.kgithub.com
    • githubapi.muicss.com
    • github.91chi.fun
    • mirror.ghproxy.com
    • raw.githubusercontent.com
    • raw.fastgit.org
    • raw.kgithub.com
    • gl.gitmirror.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Repo2skill loads about 3.6k tokens when it runs, and up to ~5.1k if it reads all its reference files. Until then it costs about 39 tokens; SKILL.md has 841 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~3.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 841 words (~3,573 tokens).

“You are repo2skill, a specialized assistant that converts GitHub/GitLab/Gitee repositories or local project directories into comprehensive OpenCode Skills.”

— opening of SKILL.md by zhangyanxs
name
repo2skill
version
1.0.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references) in repo2skill of zhangyanxs/repo2skill.

  • SKILL.md
  • IMPLEMENTATION.md
  • references/gitee-api.md
  • references/github-api.md
  • references/gitlab-api.md
  • scripts/.gitkeep
  • scripts/utils.sh

Open the folder on GitHubat commit c8a4ddc

Compare with similar skills

Repo2skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Repo2skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Repo2skill this skillzhangyanxs/repo2skill246—~3.6kAutomated safety check: PassNone
Better Auth Security Best PracticesEpicenterHQ/epicenter4.8k—~896Automated safety check: PassCustom licence
Dload Fetch Toolphp-internal/dload105—~1.1kAutomated safety check: PassBSD-3-Clause
Latchkeyimbue-ai/latchkey130—~1.1kAutomated safety check: PassMIT
Apikerhodgef/apiker127—~1.4kAutomated safety check: PassMIT
Goosetown Researcher GitHubaaif-goose/goosetown155—~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.

    4.8k GitHub stars~896 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Dload Fetch Tool

    php-internal/dload

    Get a CLI tool — native binary or PHAR — from a GitHub release into a project folder with dload (vendor/bin/dload).

    105 GitHub stars~1.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Latchkey

    imbue-ai/latchkey

    Interact with arbitrary third-party or self-hosted services (AWS, Slack, Google Drive, Dropbox, GitHub, GitLab, Linear, Coolify...) using their HTTP APIs.

    130 GitHub stars~1.1k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Apiker

    hodgef/apiker

    Develop, review, and extend the Apiker library — a framework for building serverless REST APIs on Cloudflare Workers + Durable Objects.

    127 GitHub stars~1.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Goosetown Researcher GitHub

    aaif-goose/goosetown

    Search GitHub issues, PRs, code, and discussions using the gh CLI.

    155 GitHub stars~1.6k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Implementing API Key Security Controls

    mukul975/Anthropic-Cybersecurity-Skills

    Implements secure API key generation with sufficient entropy, server-side hashing (SHA-256/bcrypt) instead of plaintext storage, per-key scoping to endpoints/IPs/rate limits, zero-downtime rotation…

    34k GitHub stars~4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed

Works with

Categories

Questions about Repo2skill

What does Repo2skill do?

Convert GitHub/GitLab/Gitee repositories into comprehensive OpenCode Skills using embedded LLM calls with multiple mirrors and rate limit handling. Repo2skill is an agent skill from zhangyanxs/repo2skill.

When should I use Repo2skill?

Repo2skill fits situations like: tasks that involve Rate limiting.

How do I install Repo2skill in Claude Code?

Run `npx skills add zhangyanxs/repo2skill --skill repo2skill -a claude-code`. Or copy the skill folder (repo2skill in zhangyanxs/repo2skill) into .claude/skills/repo2skill in your project. Claude Code loads it when a task matches its description.

How do I install Repo2skill in Codex?

Run `npx skills add zhangyanxs/repo2skill --skill repo2skill -a codex`. Or copy the skill folder (repo2skill in zhangyanxs/repo2skill) into .agents/skills/repo2skill in your project. Codex loads it when a task matches its description.

Can I use Repo2skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhangyanxs/repo2skill --skill repo2skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repo2skill, .gemini/skills/repo2skill, .github/skills/repo2skill and .opencode/skills/repo2skill in your project.

What does Repo2skill need to run?

Going by SKILL.md and its folder, Repo2skill needs a shell for the scripts in its folder and the command-line tools its instructions call (curl, git, node and bash). Our summary lists: Python 3; Node.js; A Bash shell.

Does Repo2skill access the network?

SKILL.md names 15 domains. In commands or code: gitlab.com, gitee.com, api.github.com, github.com, gh.api.888888888.xyz, gh-proxy.com, api.fastgit.org, api.kgithub.com, githubapi.muicss.com, github.91chi.fun, mirror.ghproxy.com, raw.githubusercontent.com, raw.fastgit.org, raw.kgithub.com and gl.gitmirror.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Repo2skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Repo2skill use?

No licence was found for Repo2skill or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Repo2skill use?

About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Repo2skill?

Skills that share tags, products or a category with Repo2skill: Better Auth Security Best Practices (EpicenterHQ/epicenter, 4.8k stars), Dload Fetch Tool (php-internal/dload, 105 stars), Latchkey (imbue-ai/latchkey, 130 stars) and Apiker (hodgef/apiker, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Repo2skill?

zhangyanxs (a GitHub user) maintains it in zhangyanxs/repo2skill, which has 246 GitHub stars. The repository was last updated on February 23, 2026.

Source: zhangyanxs/repo2skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.