Install
openclaw skills install reporeadAnalyze GitHub repositories using RepoRead AI. Use when the user asks to "analyze a repo", "generate docs", "security audit a repo", "create a README", or wa...
openclaw skills install reporeadRepoRead is an AI-powered platform that analyzes GitHub repositories and generates documentation, technical architecture breakdowns, security audits, visual diagrams, and LLM-optimized summaries. Connect via the MCP server (preferred) or REST API to analyze any public GitHub repository.
Sign up at reporead.com and create an API key at reporead.com/settings. Keys use the rrk_ prefix.
export REPOREAD_API_KEY="rrk_your_api_key_here"
Add to your shell profile (~/.zshrc, ~/.bashrc) to persist across sessions.
bash {baseDir}/scripts/check-connection.sh
This confirms your API key is valid and shows your current token balance.
Add to your MCP configuration (e.g. claude_desktop_config.json, .mcp.json):
{
"mcpServers": {
"reporead": {
"type": "streamable-http",
"url": "https://api.reporead.com/mcp",
"headers": {
"Authorization": "Bearer rrk_your_api_key_here"
}
}
}
}
Replace rrk_your_api_key_here with your actual API key.
When the MCP server is connected, these tools are available:
| Tool | Description |
|---|---|
import_repository(github_url) | Import a GitHub repo by URL |
list_repositories(page?, per_page?) | List imported repos |
get_repository(repository_id) | Get repo details by ID |
start_analysis(repository_id, analysis_type, branch?) | Queue an analysis job |
list_analyses(page?, per_page?, repository_id?, status?, analysis_type?) | List jobs with filters |
get_analysis(analysis_id) | Get full analysis results |
get_analysis_status(analysis_id) | Lightweight status poll |
get_token_balance() | Check available tokens and tier |
If the MCP server is not configured, use the REST API helper script:
# Check token balance
bash {baseDir}/scripts/reporead-api.sh balance
# Import a repository
bash {baseDir}/scripts/reporead-api.sh import https://github.com/owner/repo
# Start an analysis
bash {baseDir}/scripts/reporead-api.sh analyze <repository_id> technical
# Check analysis status
bash {baseDir}/scripts/reporead-api.sh status <analysis_id>
# Get full analysis results
bash {baseDir}/scripts/reporead-api.sh results <analysis_id>
# List repositories
bash {baseDir}/scripts/reporead-api.sh repos
Or call the REST API directly:
Base URL: https://api.reporead.com/public/v1
Auth: Authorization: Bearer $REPOREAD_API_KEY
| Endpoint | Method | Description |
|---|---|---|
/repositories | POST | Import repo {"github_url": "..."} |
/repositories | GET | List repos ?page=1&per_page=20 |
/repositories/{id} | GET | Get repo details |
/analyses | POST | Start analysis {"repository_id": "...", "analysis_type": "..."} |
/analyses | GET | List analyses ?repository_id=...&status=... |
/analyses/{id} | GET | Get full results |
/analyses/{id}/status | GET | Lightweight status check |
/tokens/balance | GET | Check token balance |
| Context | Type | What You Get |
|---|---|---|
| New to a codebase, need orientation | technical | Architecture, patterns, key components |
| Need to create or update documentation | readme | Full README documentation |
| Pre-deploy, PR review, or security audit | security | Vulnerability analysis, risk assessment |
| Need visual architecture diagrams | mermaid | Workflow and system diagrams |
| Building AI tools that consume repo context | llmstxt | LLM-optimized summary |
Default: Use technical if unsure.
Full docs: Combine readme + mermaid.
Free tier: readme and llmstxt only. Paid tiers unlock all types.
get_token_balance() to verify sufficient tokenslist_repositories() to avoid duplicatesimport_repository(github_url) — save the returned idstart_analysis(repository_id, analysis_type) — save the returned idget_analysis_status(analysis_id) every 10 seconds until status is completed or failedget_analysis(analysis_id) — the results field contains the full outputWhen the user says "explain this repo" or you need context before coding:
start_analysis(repo_id, "technical")When the user wants a README, docs, or visual diagrams:
start_analysis(repo_id, "readme")start_analysis(repo_id, "mermaid")When reviewing a repo for vulnerabilities or doing a PR audit:
start_analysis(repo_id, "security")get_token_balance() before starting an analysisavailable_tokens is low, tell the user — they can purchase more at reporead.com/settingsreserved_tokens shows tokens held for in-progress analysesget_analysis_status, not get_analysis — much lighter payloadqueued → processing → completed or failedfailed, show the error field to the user — do not retry automaticallylist_repositories before import_repository to avoid "already imported" errorsbranch parameter is optional — defaults to the repo's default branchanalysis_type must be one of: readme, technical, security, mermaid, llmstxt