Skip to content

QwaSeeK/.cursor

 
 

Repository files navigation

Cursor Developer Configuration

Test Installation Script

A personal Cursor IDE configuration with strict AI agent policies and reusable development workflows.

Features

  • Strict AI Boundaries - Git-only access policy protects privacy and sensitive data
  • Universal Standards - Framework-agnostic development rules for any tech stack
  • Workflow Automation - Ready-to-use command templates for common tasks
  • Self-Maintaining - Automatic documentation synchronization
  • Easy Distribution - One-command sync to any project

Note: This project is located in the home directory at ~/.cursor

Installation

Prerequisites: Install Cursor IDE first

Quick Install:

# Using curl
bash <(curl -fsSL https://raw.githubusercontent.com/hacker-cb/.cursor/master/install.sh)

# Using wget
bash <(wget -qO- https://raw.githubusercontent.com/hacker-cb/.cursor/master/install.sh)

The script will:

  • Backup your existing .cursor directory
  • Install shared workspace configuration
  • Automatically restore your personal settings

See INSTALL.md for detailed instructions and troubleshooting.

Quick Start

Setup Your Project

  1. Navigate to your project directory
  2. Run sync-shared-rules to get universal development rules
  3. Run manage-cursor-rules to generate/validate project-specific rules
  4. Review and customize rules in .cursor/rules/

The setup process works for both new and existing projects - the commands automatically detect and adapt.

Shared Rules

The shared rules provide universal guidance:

  • Rules and commands management
  • Version control and collaboration
  • Development workflow (planning, features, bugs, refactoring)
  • Code quality and standards
  • Testing conventions
  • Security practices
  • Documentation standards
  • Environment setup
  • Release management

See rules/ directory for all shared rules.

Commands

Workflow templates that guide development tasks. All commands are framework-agnostic and adapt to your project.

Note: Only commands/shared/ is tracked by git. You can add your own custom commands to other folders in commands/ - they won't be synced or committed.

System Commands

Workspace maintenance and setup:

Command Status Description
sync‑shared‑rules Stable One-way sync of shared developer rules from this workspace (~/.cursor/rules/) to a target project's .cursor/rules/ directory. Handles conflicts interactively.
manage‑cursor‑rules Stable Analyze project and manage cursor rules. For new projects: generates rules from scratch. For existing: validates and refactors against current codebase, or quickly cleans up outdated content.
display‑rules‑summary Stable Scan and display all Cursor rules with their apply modes, descriptions, and metadata. Helps understand which rules are active and their configuration.

Git & CI/CD Commands

Version control and continuous integration workflows:

Command Status Description
github‑workflows Stable Manage GitHub workflow runs with three operational modes: check status, auto-fix failures, or watch running workflows. Choose your workflow based on what you need to accomplish.

Code Quality Commands

Analysis and review workflows:

Command Status Description
code‑review Stable Comprehensive code review workflow covering functionality, quality, security, performance, testing, and documentation to ensure changes meet project standards before merge
analyze‑project‑structure Stable Comprehensive analysis of project architecture, dependencies, configuration, code quality, testing, security, and deployment setup with prioritized fix recommendations

Testing & Security Commands

Testing coverage and security audit workflows:

Command Status Description
add‑test‑coverage Stable Analyze project for test coverage gaps, suggest testing frameworks if missing, identify missing tests by priority, and implement tests systematically with user-guided selection
security‑audit Stable Comprehensive security review to identify and fix vulnerabilities in dependencies, code, authentication, authorization, data handling, and infrastructure configuration using industry best practices

About

Cursor settings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%