@elysiumoss/grepo
v0.4.0
Published
AI-powered GitHub repository management CLI — generate READMEs, topics, descriptions, and more using Gemini
Maintainers
Readme
grepo
Overview
grepo automates the heavy lifting of repository maintenance. By integrating with LLM providers like Google Gemini, it intelligently analyzes your codebase to generate professional READMEs, suggest relevant repository topics, and craft repository descriptions.
flowchart TD
User["User Command"] --> CLI["grepo CLI"]
CLI --> GH["GitHub API / Gitingest"]
GH -->|Repo Context| CLI
CLI --> LLM["LLM (Gemini)"]
LLM -->|Analysis/Doc Content| Generator["Documentation Generator"]
Generator --> Output["Output (README/Mermaid)"]Installation
Ensure you have Bun installed, then install grepo globally:
bun add -g @elysiumoss/grepoUsage
Generate a new README.md for a repository:
grepo readme https://github.com/owner/repo --format md --pushAutomatically update repository topics based on code analysis:
grepo topics https://github.com/owner/repo --apply --mergeCLI Reference
| Command | Description |
| :--- | :--- |
| readme | Generate and optionally push a README documentation file |
| topics | Analyze code and suggest/apply repository topics |
| describe | Generate a repository description and detect homepage URLs |
| summary | Provide a comprehensive summary of the repository |
| tech | List technologies, frameworks, and tools used |
| improve | Suggest 5 specific, actionable improvements |
Options:
--format md|mdx: Output format (default:md)--push: Push the generated file directly to the GitHub repository--apply: Apply changes (topics/description) directly to the GitHub API--dry-run: Preview changes without writing or pushing--model <id>: Manually specify the LLM model to use
Configuration
grepo requires authentication for repository access and AI analysis. Configure these via environment variables or a .env file:
GEMINI_API_KEY: Required for AI code analysis.GH_TOKENorGITHUB_TOKEN: Required for pushing files, updating topics, or repository descriptions.
Example .env file:
GEMINI_API_KEY=AIzaSy...
GH_TOKEN=ghp_...Development
- Clone the repo:
git clone https://github.com/ElysiumOSS/grepo cd grepo bun install - Build the project:
bun run build - Run tests:
bun run test
See .github/CONTRIBUTING.md and .github/DEVELOPMENT.md for detailed guidelines.
License
This project is licensed under the MIT License.
