Back to Blog

How to Export GitHub Starred Repos Using Claude Code?

GithubBackup

You've starred hundreds of repos. You know you should back them up. But writing scripts, managing tokens, handling pagination — it's all friction. What if you could just say "export my GitHub stars" and have it done?

That's exactly what the GitHub Star Export skill for Claude Code does. It's an AI agent that fetches all your starred repos, handles every edge case, and gives you a clean Markdown file. No manual scripting. No remembering command-line flags.

What Is Claude Code?

Claude Code is Anthropic's AI coding agent that runs in your terminal. It can read and write files, run shell commands, and interact with APIs — all driven by natural language. And with plugins (called "skills"), it gains specialized capabilities like exporting GitHub stars.

The github-repo-backup-skill is one such plugin. Install it once, and from then on, backing up your starred repos is a one-sentence request.

How It Works (3 Steps)

Step 1: Install the Plugin

In Claude Code, run:

/plugin marketplace add urumchi/github-repo-backup-skill
/plugin install github-repo-backup@mktime-github-backup

That's it. The skill is now available.

Step 2: Tell Claude What You Want

Just type:

> "Export my GitHub stars to markdown"

The agent takes over from here. It runs a pre-flight check on your environment (OS, network, available tools), checks whether you have a GitHub token set up, and guides you through token creation if needed — all inline, in natural language.

Step 3: Get Your Markdown File

Seconds later, you have a file named github-starred-repos-2026-06-12.md in your working directory. It contains every repo you've ever starred, neatly formatted in a sortable table.

The Output

Here's what the generated Markdown looks like:

# 📂 My GitHub Starred Repositories

**Export Date**: 2026-06-12  |  **Repos**: 847  |  **Total Stars**: 2,341,000

| # | Repository | Stars | Language | Starred At |
| :---: | :--- | :---: | :---: | :---: |
| 1 | [**tensorflow/tensorflow**](https://github.com/tensorflow/tensorflow) — Open Source ML Framework | ⭐ 188k | C++ | 2024-03-15 |
| 2 | [**vercel/next.js**](https://github.com/vercel/next.js) — The React Framework | ⭐ 128k | JavaScript | 2024-02-20 |

Clean, readable, and compatible with any Markdown viewer or note-taking tool.

Why This Beats Manual Scripts

| Approach | Token Setup | Pagination | Network Errors | Remembering Syntax |

|----------|:----------:|:----------:|:-------------:|:------------------:|

| Write your own script | You handle it | You handle it | You debug it | You remember it |

| Open-source scripts | You configure it | Handled | You debug it | You look it up |

| Claude Code skill | Agent guides you | Handled | Auto fallback | Natural language |

The skill doesn't just run a script — it diagnoses problems. Proxy blocking Node.js? It switches to curl. jq not installed? It tells you exactly how to install it. Rate limited? It explains what happened and what to do next.

Privacy: Your Token Stays Local

The skill runs entirely on your machine. Your GitHub token is read from your local environment variable and sent only to api.github.com. No third-party server ever sees your token or your repo list. The generated Markdown file stays on your disk.

What This Tool Doesn't Do

The free skill gives you a clean Markdown backup — and that's it. It's a snapshot of your starred repos at a point in time. There's no categorization, no search, no automatic updates, no AI processing. You'd need to re-run it manually whenever you want an updated export.

🚀 Want More? Try mktime.org

If you want more than a static Markdown file — if you want a complete starred repo management platform — check out:

👉 https://mktime.org

Here's what mktime.org adds on top of basic Markdown export:

  • 🤖 AI Smart Categorization — every repo is automatically sorted into one of 21 tech categories (Web Development, AI, DevOps, Blockchain, etc.)
  • 🏷️ AI Tag Generation — precise tech stack labels generated for each repository
  • 📝 AI One-Line Summary — bilingual (Chinese + English) summaries so you understand each repo at a glance
  • 🔄 Automatic Daily Sync — new stars are pulled in automatically, no re-runs needed
  • 🔍 Full-Text Search — search by name, description, language, or tags across your entire collection
  • 📊 Weekly Email Report — every Friday morning, get an email summarizing what you starred that week
  • 🌐 Beautiful Web Dashboard — browse, filter, and manage your repos in a Bauhaus-designed interface
  • 🔑 No Token Setup — log in with GitHub OAuth, no environment variables to manage

The Claude Code skill gives you a file. mktime.org gives you a knowledge base. It turns passive starring into active knowledge — a searchable, organized, AI-enriched personal library of every project you've ever found interesting.

Visit mktime.org →
Questions? We're happy to help at support@mktime.org.