Coding & Development🤖claude💬gpt⌨️cursor🌐universal

cursorrules-tools 🦊

An assortment of tools to assist with development in the Cursor IDE

Quick Start

Install this Skill

npx skills add trevor-nichols/cursorrules-tools
# cursorrules-tools 🦊

A collection of powerful utilities designed to enhance your experience with Cursor IDE, the AI-powered code editor.

[![GitHub](https://img.shields.io/badge/GitHub-SlyyCooper-blue)](https://github.com/SlyyCooper)
[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)

## Overview

This repository contains five specialized tools to help developers get the most out of Cursor IDE by improving AI context, managing ignored files, analyzing dependencies, and more.

## Tools
### 1. `cr` (Cursor Rules)

**Purpose**: Generates a `.cursorrules` template file to help you get started creating your own rules, providing better context to Cursor's AI.

**Features**:
- Creates a directory tree structure for your project
- Maintains a system prompt in your `.cursorrules` file
- Watches for file system changes to automatically update rules
- Respects `.cursorignore` patterns
- Creates a `.cursorrules` file with a basic template.

**Usage**:
```bash
# Update .cursorrules file once
./cr

# Watch for changes and update automatically
./cr --watch
```

### 2. `ci` (Cursor Ignore)

**Purpose**: Manages `.cursorignore` files to specify which files and directories should be excluded from Cursor's AI analysis.

**Features**:
- Creates `.cursorignore` files with saved patterns
- Maintains a global list of saved patterns
- Adds/removes patterns to/from `.cursorignore`

**Usage**:
```bash
# Create .cursorignore with saved patterns
./ci

# Add a pattern
./ci --add "node_modules"

# Remove a pattern
./ci --remove "node_modules"

# List all saved patterns
./ci --list

# Show help
./ci --help
```

### 3. `cb` (Codebase)

**Purpose**: Generates comprehensive snapshots of your codebase in a structured format with XML-like tags, making it easy to share your project with chatbots like ChatGPT or Claude.

**Features**:
- Creates a markdown file with your entire codebase structure
- Encapsulates file contents in XML-like tags
- Excludes files based on patterns from `.cursorignore`
- Handles binary files and large files appropriately
- Supports syntax highlighting based on file extensions

**Usage**:
```bash
# Generate a snapshot with default settings
./cb

# Specify a different directory and output file
./cb -d /path/to/project -o output.md

# Include markdown files in the snapshot
./cb -m

# Show verbose output
./cb -v
```

### 4. `analyze_dependencies`

**Purpose**: Analyzes project dependencies using Claude 3.7 Sonnet to identify outdated packages and version gaps.

**Features**:
- Finds and analyzes `package.json` and `requirements.txt` files
- Uses Claude 3.7 Sonnet to analyze version information
- Identifies outdated packages and version gaps
- Provides formatted analysis results with markdown
- Can analyze directory structure to provide file descriptions

**Usage**:
```bash
# Analyze dependencies in the current directory
./analyze_dependencies

# The script will automatically find package.json and requirements.txt files
```

### 5. `url-to-md`

**Purpose**: An HTML-to-Markdown converter CLI for creating documentation from web content.

**Features**:
- Fetches HTML content from URLs
- Converts HTML to Markdown with customizable options
- Supports batch processing of multiple URLs
- Generates tables of contents from headings
- Saves both Markdown and optionally raw HTML files

**Usage**:
```bash
# Run the interactive CLI
./url-to-md

# Follow the prompts to:
# - Choose single URL or batch processing
# - Enter URL(s) or file containing URLs
# - Configure conversion options
```

### 6. `CRS-1_prompt.md`

**Purpose**: A comprehensive prompt template designed to work with your codebase snapshot to generate custom `.cursorrules` files.

**Features**:
- Follows the Cursor Rules Specification (CRS-1) format
- Helps AI models understand how to create effective `.cursorrules` files
- Structures the rules with identity establishment, technical constraints, and more
- Provides clear guidelines for AI behavior and knowledge framework
- Works perfectly with the output from the `cb` tool

**Usage**:
1. Generate a codebase snapshot using the `cb` tool
2. Provide both the codebase snapshot and the `CRS-1_prompt.md` to a chatbot (like ChatGPT or Claude)
3. The AI will analyze your codebase and generate a custom `.cursorrules` file tailored to your project

```bash
# First, generate your codebase snapshot
./cb -o my-codebase-snapshot.md

# Then, provide both files to a chatbot (chatGPT, Claude, etc.)
```

## Installation

1. Clone the repository:
```bash
git clone https://github.com/SlyyCooper/cursorrules-tools.git
cd cursorrules-tools
```

2. Install required dependencies:
```bash
# For Python scripts
pip install requests questionary html2text rich anthropic

# Make scripts executable
chmod +x ci cr cb analyze_dependencies url-to-md
```

## Requirements

- Python 3.6+
- Bash shell (for `ci` script)
- Anthropic API key (for `analyze_dependencies`)
- Internet connection (for `url-to-md` and `analyze_dependencies`)

## How

... (truncated)
Repository
5stars
0forks
View on GitHub
Details
DiscoveredJan 19, 2026
Last UpdatedMay 3, 2025
Quality Score
18/100