skills/repo-to-skill/SKILL.md
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]'.
npx skillsauth add haoxuanlithuai/awesome_cognitive_and_neuroscience_skills repo-to-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
Activate when the user:
1. Acquire repo → 2. Explore broadly → 3. Collect key info → 4. Design structure → 5. Write SKILL.md + references
# 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:
git clone https://github.com/<owner>/<repo>.git /tmp/skill-source-repo
If the user provides a local path (e.g., /srv/repos/my-library), use it directly. Verify it exists before proceeding.
Check if the repo is already cloned locally before downloading again.
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.
Read these files first (if they exist):
README.md / README.rst — project overview, installation, quick startCHANGELOG.md / CHANGES.rst / HISTORY.md — recent API changespyproject.toml / setup.py / setup.cfg / package.json — dependencies, versionCONTRIBUTING.md — project conventionsLICENSE — license typeThen list the top-level directory structure to understand the project layout.
Identify the main source directory (often src/, lib/, or the package name itself). Then:
__init__.py (or equivalent entry point) to find all exported modules/classes/functions__init__.py to get the public APILook for documentation in these common locations:
docs/ or doc/ directoryexamples/ directory — working code examples are goldtutorials/ directory — step-by-step guides.rst or .md files are useful).ipynb) in any directoryThese are the most valuable resources for a skill. For each example/tutorial:
Skim test files to discover edge cases, expected behaviors, and usage patterns that aren't in the docs.
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:
Based on exploration, decide:
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:
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:
# 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.
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.
---
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]
For each major topic area, create a reference file:
# 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]
Prefer copying existing high-quality content from the repo:
Only rewrite when the original content is poorly organized, outdated, or too verbose.
Before finishing, verify:
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.
development
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 viewers, volume-to-surface mapping, FreeSurfer/fMRIPrep integration, ROI management, and surface analysis. Use this skill whenever the user mentions pycortex, `import cortex`, cortical surfaces, brain flatmaps, WebGL brain viewers, cortical surface mapping, or wants to visualize neuroimaging data on the cortex, even if they don't explicitly name pycortex.
development
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 decomposition, source localization, decoding/MVPA, statistical testing, simulation, and visualization. Use this skill whenever the user works with EEG/MEG/sEEG/ECoG/NIRS/eye-tracking data in Python, mentions MNE, or needs neurophysiological analysis guidance.
development
Step-by-step guidance for contributing a new skill to the NeuroAIHub/awesome_cognitive_and_neuroscience_skills repository via GitHub Pull Request, including SKILL.md format requirements, quality rules, and PR checklist
testing
Specifies display parameters, set sizes, target-distractor similarity, and randomization constraints for visual search experiments