ZR

zhangyanxs/repo2skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

251 stars 质量 47 趋势 18

张延xs/repo2skill是从https://github.com/zhangyanxs/repo2skill.导入的代理技能候选。

概览

张延xs/repo2skill是从https://github.com/zhangyanxs/repo2skill.导入的代理技能候选。

概述(AI 翻译)

⚡ 只需一个命令,即可将任何开源仓库转换为全面的OpenCode/Claude代码技能

你发现了一个很棒的开源项目,希望AI帮助你理解和操作,但遇到了这些问题:AI读不懂的代码太多?AI无法处理复杂的配置?手动复制粘贴让人疲惫?

repo2skill 就是来解决这些问题的!它就像一个“技能转换器”,可以把任何 GitHub/GitLab/Gitee 仓库转换成一个全面的技能包,AI 助手(OpenCode/Claude Code)都能直接理解和使用。你不需要手动下载代码、配置复杂环境或提供 API 密钥。只需提供链接,它就能处理一切!


✨ 主要特色

🎯 它的作用

  • ** 🤖 AI驱动分析**:利用你配置的OpenCode/Claude代码LLM智能分析仓库
  • ** 🌐 多平台支持**:支持GitHub、GitLab和Gitee——一站式工具
  • ** 📁 本地仓库支持**:直接分析本地项目目录——无需网络
  • ** ⚡ 智能镜像旋转**:内置10+ GitHub镜像,具备自动故障切换和速率限制处理

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🤖 repo2skill - Repository to Skill Converter

⚡ Convert any open-source repository into a comprehensive OpenCode/Claude Code Skill with one command

You found an amazing open-source project and want AI to help you understand and work with it, but faced these problems: Too much code for AI to read? Complicated configuration AI can’t handle? Manual copy-paste exhausting?

repo2skill is here to solve these problems! It’s like a “skill converter” that can transform any GitHub/GitLab/Gitee repository into a comprehensive skill package that AI assistants (OpenCode/Claude Code) can directly understand and use. You don’t need to manually download code, configure complex environments, or provide API keys. Just provide a link, and it handles everything!


✨ Key Features

🎯 What It Does

  • 🤖 AI-Powered Analysis: Uses your configured LLM in OpenCode/Claude Code to analyze repositories intelligently
  • 🌐 Multi-Platform Support: Supports GitHub, GitLab, and Gitee - one tool for all
  • 📁 Local Repository Support: Direct analysis of local project directories - no network required
  • ⚡ Intelligent Mirror Rotation: Built-in 10+ GitHub mirrors with automatic failover and rate limit handling
  • 📦 Zero Dependencies: No npm install, no API keys, no external packages - works out of the box
  • 🔄 Batch Conversion: Convert multiple repositories simultaneously with parallel processing
  • 📖 Complete Documentation: Generates comprehensive 18+ section skills covering installation, usage, API, FAQ, and more
  • 🛡️ Smart Retry Logic: Exponential backoff (1s, 2s, 4s, 8s) with automatic mirror switching
  • ✅ Ready to Use: Generated skills work immediately in OpenCode and Claude Code

⚡ Quick Start

Installation (30 seconds)

Simply copy the skill to your skills directory:

# Option 1: Global (recommended for all projects)
mkdir -p ~/.config/opencode/skills
cp -r repo2skill ~/.config/opencode/skills/

# Option 2: Claude-compatible
mkdir -p ~/.claude/skills
cp -r repo2skill ~/.claude/skills/

# Option 3: Project-specific
mkdir -p your-project/.opencode/skills
cp -r repo2skill your-project/.opencode/skills/

That’s it! No npm install, no API keys needed. 🎉

Usage (One Command)

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add zhangyanxs/repo2skill
新手?先看 mcpskill.org 教程 →