AgentSkillsCN

github-expert

专家GitHub研究,包括仓库分析、代码搜索、贡献者模式和项目评估

SKILL.md
--- frontmatter
name: github-expert
description: Expert GitHub research including repository analysis, code search, contributor patterns, and project evaluation
version: 1.0.0
author: USER
tags: [github, repository, code-search, open-source, project-analysis]

GitHub Expert

Purpose

Analyze GitHub repositories, search code patterns, evaluate projects, and extract insights from the open-source ecosystem.

Activation Keywords

  • github, repository, repo
  • open source, OSS
  • code search, find code
  • project analysis, repo evaluation
  • contributors, stars, forks

Core Capabilities

1. Repository Analysis

  • Project health metrics
  • Code quality indicators
  • Dependency analysis
  • Security assessment
  • Activity patterns

2. Code Search

  • Pattern matching
  • Cross-repo search
  • Implementation examples
  • Usage patterns
  • Best practices discovery

3. Project Evaluation

  • Maintenance status
  • Community health
  • Documentation quality
  • Release cadence
  • Issue responsiveness

4. Contributor Analysis

  • Key contributors
  • Contribution patterns
  • Bus factor
  • Community diversity
  • Sponsorship/backing

5. Trend Analysis

  • Rising projects
  • Technology adoption
  • Language trends
  • Framework popularity
  • Ecosystem mapping

Repository Health Metrics

MetricGoodWarningConcern
Last commit<1 month1-6 months>6 months
Open issuesManagedGrowingAbandoned
PR response<1 week1-4 weeks>1 month
Contributors5+ active2-4 active1 only
Stars growthSteadyFlatDeclining
SecurityUp-to-dateMinor issuesVulnerabilities

Repository Evaluation Template

markdown
## Repository Analysis: [owner/repo]

### Overview
- **Stars**: X | **Forks**: Y | **Open Issues**: Z
- **Language**: Primary (X%), Secondary (Y%)
- **License**: [License type]
- **Created**: [Date] | **Last Commit**: [Date]

### Health Score: [A-F]

### Metrics
| Aspect | Score | Notes |
|--------|-------|-------|
| Maintenance | X/10 | [Assessment] |
| Documentation | X/10 | [Assessment] |
| Community | X/10 | [Assessment] |
| Security | X/10 | [Assessment] |
| Code Quality | X/10 | [Assessment] |

### Key Findings
- [Finding 1]
- [Finding 2]
- [Finding 3]

### Recommendations
- [Use/Don't use for X]
- [Alternative if applicable]

### Red Flags
- [Any concerns]

### Dependencies
- Key deps: [List]
- Vulnerabilities: [Count]

Code Search Patterns

code
# Find specific implementations
language:typescript "useEffect" filename:*.tsx

# Find configuration patterns
filename:tsconfig.json "strict": true

# Find security patterns
language:javascript crypto.createHash

# Find API usage
language:python "requests.post" path:src/

# Find test patterns
language:javascript describe( path:test/

Project Comparison Framework

markdown
## Comparison: [Project A] vs [Project B]

| Criteria | Project A | Project B |
|----------|-----------|------------|
| Stars | X | Y |
| Weekly downloads | X | Y |
| Bundle size | X KB | Y KB |
| Last release | Date | Date |
| TypeScript | Yes/No | Yes/No |
| Maintenance | Active/Slow | Active/Slow |
| Learning curve | Low/Med/High | Low/Med/High |

### Recommendation
[Which to use and why]

Example Usage

code
User: "Analyze the Prisma ORM repository"

GitHub Expert Response:

## Repository Analysis: prisma/prisma

### Overview
- Stars: 36k+ | Forks: 1.4k | Open Issues: 2.5k
- Language: TypeScript (92%), Rust (5%)
- License: Apache-2.0
- Created: 2016 | Last Commit: Today

### Health Score: A

### Assessment
| Aspect | Score | Notes |
|--------|-------|-------|
| Maintenance | 10/10 | Daily commits, active team |
| Documentation | 9/10 | Excellent docs site |
| Community | 9/10 | Active Discord, discussions |
| Security | 9/10 | Regular updates |
| Code Quality | 9/10 | Strict TypeScript, tested |

### Key Findings
- Enterprise-backed (Prisma Data Inc.)
- Regular major releases
- Strong TypeScript support
- Growing ecosystem (Accelerate, Pulse)

### Recommendation
Excellent choice for TypeScript/Node.js projects.
Production-ready with strong support.