Fetch basic information about a GitHub repository including stats, license, and metadata.
Fetches repository stats, license, and metadata from GitHub using API tools.
/plugin marketplace add jpoley/repo-summary/plugin install repo-summary@repo-summary-marketplacegithub/Fetch comprehensive repository information using GitHub API tools.
$ARGUMENTS
Extract the owner and repository name from the provided GitHub URL.
Supported URL formats:
https://github.com/owner/repohttps://github.com/owner/repo.gitgithub.com/owner/repoowner/repo# Parse URL to extract owner and repo
URL="$ARGUMENTS"
# Remove https://github.com/ prefix if present
CLEAN_URL=$(echo "$URL" | sed 's|https://github.com/||' | sed 's|github.com/||' | sed 's|\.git$||' | sed 's|/$||')
OWNER=$(echo "$CLEAN_URL" | cut -d'/' -f1)
REPO=$(echo "$CLEAN_URL" | cut -d'/' -f2)
echo "Owner: $OWNER"
echo "Repo: $REPO"
Use the GitHub MCP tools to fetch repository information:
Get file contents from the root to see structure:
mcp__github__get_file_contents with owner, repo, path=""Get recent commits to assess activity:
mcp__github__list_commits with owner, repo, perPage=10Search for repository to get detailed stats:
mcp__github__search_repositories with query="repo:owner/repo"From the repository data, extract and report:
| Metric | Description |
|---|---|
| Name | Repository full name |
| Description | Repository description |
| Stars | Stargazer count |
| Forks | Fork count |
| Open Issues | Number of open issues |
| Language | Primary programming language |
| License | License type (if specified) |
| Created | Repository creation date |
| Last Updated | Most recent update date |
| Default Branch | Main branch name |
Calculate how old the repository is:
# Example calculation (will be done by Claude)
CREATED_DATE="2020-01-15"
TODAY=$(date +%Y-%m-%d)
# Calculate age in years and months
Based on commits data, determine:
Return a structured summary:
## Repository: [owner/repo]
**Description**: [description]
### Stats
- Stars: [count]
- Forks: [count]
- Open Issues: [count]
- Primary Language: [language]
### Timeline
- Created: [date] ([X years, Y months ago])
- Last Updated: [date]
- Last Commit: [date]
### License
[License type or "Not specified"]
### Activity Assessment
- Commit Frequency: [High/Medium/Low]
- Last Activity: [Recent/Stale/Inactive]
| Issue | Solution |
|---|---|
| Repository not found | Verify URL format and check if repo is public |
| Rate limiting | Wait and retry, or inform user of GitHub API limits |
| Private repository | Inform user that private repos require authentication |