agentleFS
ZhangHanDongZhangHanDong/cowork-skills/skills/github-generate/SKILL.md

github-generate

Skill46 starsChanged 10 months agoMITView on GitHub

CRITICAL: Use for generating skills from GitHub repositories. Triggers on: generate skill from repo, create skills from GitHub, cowork generate, generate llms.txt, convert repo to skills, make skills from repository, parse repository, GitHub 转 skill, 从仓库生成 skill, 生成技能, extract API from code

  • Reads credentials

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user wants to:

    line 14
  2. Distinctive:

    Create skills from a library or framework

    line 17

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub Repository to Skills Generator

Generate Claude Code skills from any GitHub repository by extracting public APIs and documentation.


When to Use

Use this skill when the user wants to:

  • Convert a GitHub repository into skills
  • Generate llms.txt documentation from source code
  • Create skills from a library or framework
  • Parse Rust/TypeScript/Python source code to extract APIs

Workflow

1. Identify the Repository

Extract the GitHub repository from the user's request:

  • Full URL: https://github.com/tokio-rs/tokio
  • Short form: tokio-rs/tokio
  • Just name: Search first with cowork search tokio

2. Generate Skills

Execute the cowork generate command:

# Basic generation
cowork generate user/repo

# Specify language(s)
cowork generate user/repo --lang rust

# Only generate llms.txt (for review)
cowork generate user/repo --llms-only -o ./output

# From specific branch/tag
cowork generate user/repo --ref v1.0.0

# Install to specific agents
cowork generate user/repo -a claude-code -a cursor

3. Review Output

The command generates:

  • llms.txt - Comprehensive API documentation
  • skills/ directory - One SKILL.md per module

Example Interactions

User: "帮我把 tokio 转成 skill"

Response:

Let me generate skills from the tokio repository.

First, I'll run the generation command:
cowork generate tokio-rs/tokio --lang rust

User: "Create a skill from this repo: https://github.com/vercel/next.js"

Response:

I'll generate skills from the Next.js repository.
cowork generate vercel/next.js --lang typescript

Command Reference

OptionDescription
--lang <LANG>Languages to parse (rust, typescript, python)
--llms-onlyOnly generate llms.txt
-o, --output <PATH>Output directory
--ref <REF>Git ref (branch, tag, commit)
-a, --agent <AGENT>Install to agent(s)
--split-modulesSplit into per-module skills (default: true)

Requirements

  • GITHUB_TOKEN environment variable must be set
  • Token needs repo scope for private repositories

Supported Languages

LanguageParserExtracts
Rustsynpub fn, struct, enum, trait, impl
TypeScripttree-sitterexport function, class, interface, type
Pythontree-sitterdef, class (excluding _ private)

Related Skills

WhenSee
Search for repositoriesgithub-search
Install existing skillscowork install
Manage local skillscowork list, cowork sync

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.