From 2f2851dbd16f53466bfb75cacdbcdd5d953fa26f Mon Sep 17 00:00:00 2001 From: LongSimple Date: Sun, 9 Mar 2025 13:05:28 -0400 Subject: [PATCH] update readme --- cursor-rules-cli/README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/cursor-rules-cli/README.md b/cursor-rules-cli/README.md index ee99fa9..559278c 100644 --- a/cursor-rules-cli/README.md +++ b/cursor-rules-cli/README.md @@ -16,6 +16,7 @@ A simple tool that helps you find and install the right Cursor rules for your pr - 🎨 Provides a colorful, user-friendly interface - 🔀 Works with custom rule repositories - 🔒 100% privacy-focused (all scanning happens locally) +- 🔄 GitHub API integration for reliable downloads ## Installation @@ -46,14 +47,29 @@ cursor-rules -d /path/to/my/project | `--quick-scan` | Faster scan (checks package files only) | | `--max-results N` | Show top N results (default: 20) | -## Custom Repositories (not tested yet) +## Custom Repositories ```bash -# Use rules from your own repository -cursor-rules --custom-repo your-username/your-repo +# Use rules from your own GitHub repository +cursor-rules --source https://github.com/your-username/your-repo # Save repository setting for future use -cursor-rules --custom-repo your-username/your-repo --save-config +cursor-rules --source https://github.com/your-username/your-repo --save-config +``` + +## Repository URL Format + +The tool now uses the GitHub API to reliably download rules. You can specify the repository URL in several formats: + +```bash +# Standard GitHub repository URL (recommended) +cursor-rules --source https://github.com/username/repo + +# With a specific branch +cursor-rules --source https://github.com/username/repo/tree/branch-name + +# Legacy raw content URL will also work +cursor-rules --source https://raw.githubusercontent.com/username/repo/branch ``` ## Configuration