repo2skill

Convert GitHub, GitLab, Gitee, or local projects into OpenCode skills.

236|48|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/zhangyanxs/repo2skill --skill repo2skill-zhangyanxs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repo2skill
Source: https://github.com/zhangyanxs/repo2skill/tree/main/repo2skill
Command: npx skills add https://github.com/zhangyanxs/repo2skill --skill repo2skill-zhangyanxs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Automates converting GitHub/GitLab/Gitee repositories or local project directories into structured OpenCode Skills, reducing manual setup time and enabling AI-assisted skill generation.

Core Features & Use Cases

  • Discovery and parsing of remote URLs or local paths
  • Mirror-based data collection and robust retry logic
  • End-to-end Skill generation with YAML frontmatter and comprehensive sections

Quick Start

Provide a repository URL or local path and request a complete OpenCode Skill creation.

Frequently Asked Questions about repo2skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a GitHub repository into an OpenCode Skill?

You can convert a GitHub repository into an OpenCode Skill by providing its URL, which triggers automated endpoint discovery, mirror-based data collection, and LLM analysis to generate a structured SKILL.md file.

Can I generate skills from local project directories instead of remote repositories?

Yes, you can generate skills from local project directories by providing a local path instead of a remote URL, applying the same LLM-driven content analysis and structured skill generation process.

What is the process for creating structured OpenCode skills from existing codebases?

Creating structured OpenCode skills from existing codebases involves automated URL parsing or local path discovery, data collection via API mirrors with retry logic, and LLM analysis to generate YAML frontmatter and comprehensive sections.

Does this skill generation tool support GitLab and Gitee repositories?

Yes, this skill generation tool supports GitLab and Gitee repositories alongside GitHub, parsing remote URLs from these platforms to fetch data and drive LLM-based skill generation.

How does the LLM analysis handle repository data collection failures?

LLM analysis handles repository data collection failures using robust retry logic within its mirror-based data fetching mechanism, ensuring reliable endpoint discovery and content extraction before generating the final skill.