Agent skill

Repo To Skill

by NeuroAIHub in NeuroAIHub/BrainPilot

Convert a GitHub repository or local codebase into a well-structured Claude Code skill with progressive disclosure.

AGPL-3.0Auto-check passedAgent Workflows

Install Repo To Skill

skills CLI
$ npx skills add NeuroAIHub/BrainPilot --skill repo-to-skill -a claude-code

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

GitHub CLI
$ gh skill install NeuroAIHub/BrainPilot repo-to-skill --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/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/skills/skills/01_Meta-Skills/repo-to-skill .claude/skills/repo-to-skill && 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
repo-to-skill
GitHub stars
1.1k
Token cost
~2.5k tokens
SKILL.md length
912 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Convert a GitHub repository or local codebase into a well-structured Claude Code skill with progressive disclosure.

  • Works in 5 steps: Acquire the Repository → Explore the Repository → Design the Skill Structure → …
  • The user provides a GitHub URL
  • SKILL.md covers Purpose, When to Use, Workflow Overview and Phase 1: Acquire the Repository, plus 6 more sections
  • Calls git; reaches github.com

What it does

Repo To Skill is an agent skill from NeuroAIHub/BrainPilot. Convert a GitHub repository or local codebase into a well-structured Claude Code skill with progressive disclosure. Use this skill whenever the user provides a GitHub URL or local repo path and asks to turn it into a skill, create a skill from a repo, or convert a library/tool/framework into reusable skill documentation. Also trigger when users say things like 'make a skill from this repo', 'turn this codebase into a skill', or 'I want a skill for [library name]'.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Skill authoring. It works with GitHub. The repository describes itself as: BrainPilot: Automating Brain Discovery with Agentic Research. The licence is AGPL-3.0.

When your agent uses it

  • The user provides a GitHub URL
  • Local repo path and asks to turn it into a skill
  • Create a skill from a repo
  • Convert a library/tool/framework into reusable skill documentation

Example prompts

  • “make a skill from this repo”
  • “turn this codebase into a skill”
  • “I want a skill for [library name]”
  • “/repo-to-skill”

Requirements

  • Python 3

Workflow steps

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

  1. Acquire the Repository
  2. Explore the Repository
  3. Design the Skill Structure
  4. Write the SKILL.md
  5. Write Reference Files

What it can do on your machine

Read from SKILL.md and the folder at commit 93f6855. 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

    Shell commands in SKILL.md call:

    • git

    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:

    • github.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

Repo To Skill loads about 2.5k tokens when it runs. Until then it costs about 121 tokens; SKILL.md has 912 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from NeuroAIHub/BrainPilot at commit 93f6855, republished under its AGPL-3.0 licence (© NeuroAIHub). 912 words, ~2,503 tokens.

Download SKILL.mdSave it as .claude/skills/repo-to-skill/SKILL.md (or your agent's skills folder).
name
repo-to-skill
description
Convert a GitHub repository or local codebase into a well-structured Claude Code skill with progressive disclosure. Use this skill whenever the user provides a GitHub URL or local repo path and asks to turn it into a skill, create a skill from a repo, or convert a library/tool/framework into reusable skill documentation. Also trigger when users say things like 'make a skill from this repo', 'turn this codebase into a skill', or 'I want a skill for [library name]'.
version
1.0.0
authors
Claude (AI-assisted)
review_status
ai-generated

Repo-to-Skill: Convert a Repository into a Claude Code Skill

Purpose

This skill encodes the complete workflow for transforming a GitHub repository (or local codebase) into a well-structured Claude Code skill. It guides you through cloning, exploring, extracting key information, and assembling a skill with proper progressive disclosure — a concise SKILL.md entry point backed by detailed reference files.

When to Use

Activate when the user:

  • Provides a GitHub URL and asks to create a skill from it
  • Points to a local repository path and wants it converted to a skill
  • Says "make a skill from this repo/library/tool"
  • Wants to document a codebase as a reusable skill

Workflow Overview

1. Acquire repo  →  2. Explore broadly  →  3. Collect key info  →  4. Design structure  →  5. Write SKILL.md + references

Phase 1: Acquire the Repository

From GitHub URL
bash
# Clone to a working directory
git clone <github-url> /tmp/skill-source-repo
# or clone to a user-specified path

If the user provides just a repo name (e.g., "mne-tools/mne-python"), construct the URL:

bash
git clone https://github.com/<owner>/<repo>.git /tmp/skill-source-repo
From Local Path

If the user provides a local path (e.g., /srv/repos/my-library), use it directly. Verify it exists before proceeding.

Already Available

Check if the repo is already cloned locally before downloading again.


Phase 2: Explore the Repository

This is the most important phase. Explore broadly and deeply — the quality of the skill depends on how well you understand the repo. Use parallel subagents when possible to speed up exploration.

2.1 Top-Level Orientation

Read these files first (if they exist):

  • README.md / README.rst — project overview, installation, quick start
  • CHANGELOG.md / CHANGES.rst / HISTORY.md — recent API changes
  • pyproject.toml / setup.py / setup.cfg / package.json — dependencies, version
  • CONTRIBUTING.md — project conventions
  • LICENSE — license type

Then list the top-level directory structure to understand the project layout.

2.2 Core Source Code

Identify the main source directory (often src/, lib/, or the package name itself). Then:

  1. Read __init__.py (or equivalent entry point) to find all exported modules/classes/functions
  2. List all submodules/subdirectories
  3. For each major submodule, read its __init__.py to get the public API
  4. Read key implementation files for important classes/functions — focus on docstrings and signatures, not internal logic
2.3 Documentation

Look for documentation in these common locations:

  • docs/ or doc/ directory
  • examples/ directory — working code examples are gold
  • tutorials/ directory — step-by-step guides
  • API reference docs (often generated, but source .rst or .md files are useful)
  • Jupyter notebooks (.ipynb) in any directory
2.4 Examples and Tutorials

These are the most valuable resources for a skill. For each example/tutorial:

  • Note what it demonstrates
  • Extract the key code patterns
  • Identify the recommended parameter values and best practices
2.5 Tests (Optional)

Skim test files to discover edge cases, expected behaviors, and usage patterns that aren't in the docs.

Exploration Strategy

Use the Agent tool with subagent_type=Explore for broad exploration, or launch multiple parallel subagents to cover different areas simultaneously:

Agent 1: Explore top-level structure + README + core __init__.py files
Agent 2: Explore tutorials/ and examples/ directories, read representative files
Agent 3: Explore docs/ for API reference, read key module documentation

The goal is to collect:

  • Complete list of public API (classes, functions, constants)
  • Recommended usage patterns and pipelines
  • Parameter defaults and recommended values
  • Common pitfalls and gotchas
  • Code examples for each major feature

Phase 3: Design the Skill Structure

Determine Scope

Based on exploration, decide:

  • What is the skill's primary purpose? (e.g., "guide users through X analysis pipeline")
  • What are the major topic areas? (these become reference files)
  • What belongs in the main SKILL.md vs. references?
Progressive Disclosure Architecture
skill-name/
├── SKILL.md              (< 500 lines — overview, pipeline, quick reference)
└── references/
    ├── topic-a.md        (detailed API + examples for topic A)
    ├── topic-b.md        (detailed API + examples for topic B)
    ├── topic-c.md        (detailed API + examples for topic C)
    └── ...

Rules of thumb:

  • SKILL.md: Pipeline overview, core concepts, quick-start code, common pitfalls, reference table pointing to detail files
  • Each reference file: One major topic, complete API listing, detailed code examples, parameter tables
  • Keep each file under 300 lines for readability; split if larger
  • Include a "Reference Files" table in SKILL.md so the model knows when to read each file
Show full SKILL.md (350 more words)Show less
Reuse Repo Resources Directly

When the repo already has well-written documentation, examples, or reference material, copy them directly into references/ rather than rewriting. This saves effort and preserves accuracy:

bash
# Copy useful docs directly
cp /tmp/skill-source-repo/docs/api_reference.md references/
cp /tmp/skill-source-repo/examples/quickstart.py references/
cp /tmp/skill-source-repo/tutorials/getting_started.md references/

Rename files to be descriptive if needed. Add a brief header noting the source.


Phase 4: Write the SKILL.md

Naming Rule

Skill name may only contain lowercase letters, numbers, and hyphens. The name must match the folder name. For example, a skill in folder my-cool-tool/ must have name: "my-cool-tool" in its frontmatter.

Required Structure
markdown
---
name: "my-skill-name"
description: "One-line description of what this skill provides"
version: "1.0.0"
authors:
  - "Claude (AI-assisted)"
review_status: "ai-generated"
---

# Skill Title

## Purpose
What domain knowledge this skill encodes and why it's useful.

## When to Use This Skill
Trigger conditions — what user phrases/contexts activate this skill.

## Reference Files (Progressive Disclosure)
| Topic | File | When to Read |
|-------|------|--------------|
| Topic A | `references/topic-a.md` | User asks about A |
| Topic B | `references/topic-b.md` | User asks about B |

## Overview / Pipeline
High-level workflow or concept map.

## Quick Start
Minimal working example covering the most common use case.

## Key Concepts
Core data structures, important classes, essential functions.

## Common Pitfalls
Numbered list of mistakes to avoid, with brief explanations.

## [Additional sections as needed]
Writing Guidelines
  1. Lead with the pipeline/workflow — users want to know "what do I do first?"
  2. Include runnable code examples — not pseudocode
  3. Cite parameter values with sources when possible
  4. Keep SKILL.md under 500 lines — move details to references
  5. Use tables for API listings and parameter comparisons
  6. The reference table is critical — it tells the model when to load each file

Phase 5: Write Reference Files

For each major topic area, create a reference file:

markdown
# Topic Name Reference

## Table of Contents
1. [Section 1](#section-1)
2. [Section 2](#section-2)
...

## Section 1
[Detailed API, parameters, code examples]

## Section 2
[More details]
What to Include in References
  • Complete function/class signatures with all parameters
  • Parameter tables with types, defaults, and descriptions
  • Multiple code examples showing different use cases
  • Tips for parameter selection
  • Links between related functions
Reusing Repo Content

Prefer copying existing high-quality content from the repo:

  • Tutorial code → reference examples
  • API docstrings → function reference tables
  • README sections → overview content
  • Example scripts → working code snippets

Only rewrite when the original content is poorly organized, outdated, or too verbose.


Quality Checklist

Before finishing, verify:

  • Skill name contains only lowercase letters, numbers, and hyphens, and matches the folder name
  • SKILL.md is under 500 lines
  • All major features/modules are covered
  • Reference table in SKILL.md lists all reference files with "when to read" guidance
  • Each reference file has a table of contents
  • Code examples are complete and runnable
  • Common pitfalls section exists
  • Quick start example covers the most common use case
  • No reference file exceeds ~300 lines (split if needed)
  • Skill directory uses kebab-case naming

Example: Converting a Python Library

For a Python library like pandas:

pandas-guide/
├── SKILL.md                    # Overview, core objects (DataFrame, Series), quick start
└── references/
    ├── io.md                   # read_csv, read_excel, to_parquet, etc.
    ├── selection-indexing.md    # loc, iloc, boolean indexing, query
    ├── groupby-aggregation.md  # groupby, agg, transform, pivot_table
    ├── merging-joining.md      # merge, join, concat
    ├── time-series.md          # DatetimeIndex, resample, rolling
    └── visualization.md        # plot(), plot.bar(), etc.

The SKILL.md would contain the DataFrame/Series overview, a quick-start example, and a reference table pointing to each topic file.

© NeuroAIHub, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/skills/skills/01_Meta-Skills/repo-to-skill of NeuroAIHub/BrainPilot.

Open the folder on GitHubat commit 93f6855

Compare with similar skills

Repo To Skill 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.

Repo To Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Repo To Skill this skillNeuroAIHub/BrainPilot1.1k—~2.5kAutomated safety check: PassAGPL-3.0
Auto Skill Buildertradecatlabs/vibe-coding-cn17k1 repos~2.4kAutomated safety check: PassMIT
Skill Seekers Builderyusufkaraaslan/Skill_Seekers15k—~760Automated safety check: PassMIT
DBS Skill Makerdontbesilent2025/dbskill11k—~1.2kAutomated safety check: PassCustom licence
LubanLearnPrompt/luban-skill959—~3.1kAutomated safety check: PassMIT
Copilot Skill Creatorthomast1906/github-copilot-agent-skills202—~4.1kAutomated safety check: PassNone

Similar skills

  • Auto Skill Builder

    tradecatlabs/vibe-coding-cn

    Meta-skill that turns docs, APIs, code or specs into a reusable skill with references and a quality gate, and refactors skills that are unclear or misfire.

    17k GitHub starsUsed in 1 repo~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Skill Seekers Builder

    yusufkaraaslan/Skill_Seekers

    Detects the type of a knowledge source and uses the Skill Seekers MCP tools to turn docs, repos, PDFs or videos into packaged AI skills.

    15k GitHub stars~760 tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • DBS Skill Maker

    dontbesilent2025/dbskill

    Turns a problem you keep running into into a single installable, tested skill, and prepares a GitHub repository only when you ask to share it.

    11k GitHub stars~1.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Luban

    LearnPrompt/luban-skill

    鲁班(Luban)——Skill打磨工坊。把一个"能用的Skill"打磨成"能被理解、能被安装、能被传播、能被验证、能持续进化"的公共Skill资产。

    959 GitHub stars~3.1k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Copilot Skill Creator

    thomast1906/github-copilot-agent-skills

    Guides creating, updating, reviewing and validating GitHub Copilot agent skills, from deciding whether a skill is the right tool to structuring bundled resources.

    202 GitHub stars~4.1k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed
  • Skill Creator

    TheSyart/emperor-agent

    Create, update, import, or validate Emperor Skills (SKILL.md folders with optional scripts, references, and assets).

    195 GitHub stars~2k tokensUpdated 12 days ago
    Agent WorkflowsAuto-check passed

More from NeuroAIHub/BrainPilot

All 59 skills in this repo
  • Deeplabcut

    NeuroAIHub/BrainPilot

    Toolbox for markerless animal pose estimation with DeepLabCut.

    1.1k GitHub stars~1.7k tokensUpdated 9 days ago
    Auto-check passed
  • Fmriprep

    NeuroAIHub/BrainPilot

    Preprocess task-based or resting-state fMRI data with fMRIPrep — a robust, BIDS-App preprocessing pipeline built on FSL, ANTs, FreeSurfer, AFNI, and Nilearn.

    1.1k GitHub stars~4.1k tokensUpdated 9 days ago
    Auto-check passed
  • Mne Python Guide

    NeuroAIHub/BrainPilot

    Domain-validated pipeline guidance for EEG/MEG data analysis using MNE-Python: data loading, preprocessing (filtering, ICA, re-referencing), epoching, ERP/ERF computation, time-frequency…

    1.1k GitHub stars~2.3k tokensUpdated 9 days ago
    Auto-check passed
  • Netneurotools Guide

    NeuroAIHub/BrainPilot

    Domain-validated guidance for network neuroscience analysis using netneurotools: datasets, brain network metrics, connectivity consensus, modularity, spatial statistics, null models, and cortical…

    1.1k GitHub stars~2.6k tokensUpdated 9 days ago
    Auto-check passed
  • Nature Figure

    NeuroAIHub/BrainPilot

    Submission-grade Nature/high-impact journal figure workflow for Python or R.

    1.1k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • Pycortex Guide

    NeuroAIHub/BrainPilot

    Domain-validated guidance for cortical surface visualization and brain surface rendering of fMRI data using pycortex: data types (Volume, Vertex, Dataset), 2D cortical flatmaps, 3D WebGL brain…

    1.1k GitHub stars~1.6k tokensUpdated 9 days ago
    Auto-check passed

Works with

Categories

Questions about Repo To Skill

What does Repo To Skill do?

Convert a GitHub repository or local codebase into a well-structured Claude Code skill with progressive disclosure. Repo To Skill is an agent skill from NeuroAIHub/BrainPilot. Convert a GitHub repository or local codebase into a well-structured Claude Code skill with progressive disclosure.

When should I use Repo To Skill?

Repo To Skill fits situations like: the user provides a GitHub URL; local repo path and asks to turn it into a skill; create a skill from a repo; convert a library/tool/framework into reusable skill documentation.

How do I install Repo To Skill in Claude Code?

Run `npx skills add NeuroAIHub/BrainPilot --skill repo-to-skill -a claude-code`. Or copy the skill folder (packages/skills/skills/01_Meta-Skills/repo-to-skill in NeuroAIHub/BrainPilot) into .claude/skills/repo-to-skill in your project. Claude Code loads it when a task matches its description.

How do I install Repo To Skill in Codex?

Run `npx skills add NeuroAIHub/BrainPilot --skill repo-to-skill -a codex`. Or copy the skill folder (packages/skills/skills/01_Meta-Skills/repo-to-skill in NeuroAIHub/BrainPilot) into .agents/skills/repo-to-skill in your project. Codex loads it when a task matches its description.

Can I use Repo To Skill 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 NeuroAIHub/BrainPilot --skill repo-to-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repo-to-skill, .gemini/skills/repo-to-skill, .github/skills/repo-to-skill and .opencode/skills/repo-to-skill in your project.

What does Repo To Skill need to run?

Going by SKILL.md and its folder, Repo To Skill needs the command-line tools its instructions call (git). Our summary lists: Python 3.

Does Repo To Skill access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Repo To Skill 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. Review the folder before installing.

What licence does Repo To Skill use?

Repo To Skill is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Repo To Skill use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Repo To Skill?

Skills that share tags, products or a category with Repo To Skill: Auto Skill Builder (tradecatlabs/vibe-coding-cn, 17k stars), Skill Seekers Builder (yusufkaraaslan/Skill_Seekers, 15k stars), DBS Skill Maker (dontbesilent2025/dbskill, 11k stars) and Luban (LearnPrompt/luban-skill, 959 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Repo To Skill?

NeuroAIHub (a GitHub organization) maintains it in NeuroAIHub/BrainPilot, which has 1,062 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on October 2, 2026.

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