Skip to content

This repository contains standardized cursor rules for Tekdi projects, organized by technology stack and framework.

Notifications You must be signed in to change notification settings

tekdi/tekdi-cursor-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Editor Rules

This repository contains standardized editor rules for Tekdi projects, organized by technology stack and framework. Rules are available for both Cursor and Antigravity editors.

Setup Instructions

Prerequisites

  • Git installed on your system
  • Bash shell (available on macOS, Linux, and Windows with WSL/Git Bash)
  • Internet connection to clone the repository

Running the Script

  1. Download the script:

    wget https://raw.githubusercontent.com/tekdi/tekdi-cursor-rules/main/copy-editor-rules.sh

    or

    curl -O https://raw.githubusercontent.com/tekdi/tekdi-cursor-rules/main/copy-editor-rules.sh
  2. Make it executable:

    chmod +x copy-editor-rules.sh
  3. Run the script:

    ./copy-editor-rules.sh

What the Script Does

The script will:

  1. Clone this repository to a temporary directory
  2. Ask you to select your editor (cursor or antigravity)
  3. Ask you for your project's directory path
  4. Prompt you to select:
    • Project type (backend/frontend)
    • Programming language
    • Framework (if applicable)
  5. Copy the appropriate rules to your project's rules directory
  6. Create backups of any existing rules
  7. Clean up temporary files automatically

Interactive Prompts

The script will guide you through several prompts:

Editor Selection:

Which editor are you setting up rules for?
1) cursor
2) antigravity

Project Path:

Enter the path of the repository where you want to copy editor rules:
/path/to/your/project

Project Type:

Is this a backend or frontend repository?
1) backend
2) frontend

Language Selection:

  • Backend: java, php, python, nodejs
  • Frontend: javascript, html, css

Framework Selection (optional):

  • Backend Node.js: nestjs
  • Backend Python: fastapi, django
  • Frontend JavaScript: reactjs, angular

Example Usage

$ ./copy-editor-rules.sh

[INFO] === Editor Rules Copy Script ===
[INFO] This script will clone the tekdi-cursor-rules repository and copy the appropriate rules to your project.
[INFO] Cloning tekdi-cursor-rules repository...
[SUCCESS] Repository cloned successfully to temporary directory

[INFO] Which editor are you setting up rules for?
1) cursor
2) antigravity
1

[INFO] Enter the path of the repository where you want to copy editor rules:
/Users/developer/my-project

[INFO] Is this a backend or frontend repository?
1) backend
2) frontend
1

[INFO] Which programming language are you using?
Supported languages: java, php, python, nodejs
nodejs

[INFO] Which framework are you using? (Press Enter to skip if not using any specific framework)
Available frameworks: nestjs
nestjs

[INFO] Destination directory: /Users/developer/my-project/.cursor/rules
[INFO] Starting file copy process

[SUCCESS] === Copy process completed! ===
[INFO] Rules have been copied to: /Users/developer/my-project/.cursor/rules
[INFO] Total files copied: 12

Destination Directories

Editor Destination
cursor $PROJECT/.cursor/rules
antigravity $PROJECT/.agent/rules

File Organization

The script copies rules in the following order:

  1. Tekdi common rules (from cursor-rules/1-tekdi/)
  2. Project type rules (from cursor-rules/2-common/)
  3. Product rules (from cursor-rules/3-products/)
  4. Language & framework-specific rules:
    • cursor: copied from cursor-rules/4-frontend/ or cursor-rules/5-backend/
    • antigravity: copied from antigravity-rules/4-frontend/ or antigravity-rules/5-backend/

Backup and Safety

  • Existing rules are automatically backed up to .editor_rule_backup_[timestamp]
  • The script validates all paths before making changes
  • Temporary files are cleaned up automatically, even if the script is interrupted

Troubleshooting

Git not found:

[ERROR] Git is not installed. Please install git to use this script.

Install Git from git-scm.com

Network issues:

[ERROR] Failed to clone repository from https://github.com/tekdi/tekdi-cursor-rules.git

Check your internet connection and try again.

Invalid directory:

[ERROR] Directory '/path/to/project' does not exist.

Ensure the directory path exists and is accessible.

Repository Structure

tekdi-cursor-rules/
├── cursor-rules/         # Rules for Cursor editor
│   ├── 1-tekdi/          # Common Tekdi rules
│   ├── 2-common/         # Backend/Frontend common rules
│   ├── 3-products/       # Product-specific rules
│   ├── 4-frontend/       # Frontend language/framework rules
│   └── 5-backend/        # Backend language/framework rules
├── antigravity-rules/    # Editor-specific rules for Antigravity
│   ├── 4-frontend/       # Frontend language/framework rules
│   └── 5-backend/        # Backend language/framework rules
└── copy-editor-rules.sh  # Automated setup script

Editor Rules Usage Guide

Learn more how to use these rules selectively

Contributing

To add new rules or modify existing ones:

  1. Fork this repository
  2. Create a new branch for your changes
  3. Add your editor rules in the appropriate directory
  4. Submit a pull request

Support

For issues or questions:

  • Create an issue in this repository
  • Contact the Tekdi development team

About

This repository contains standardized cursor rules for Tekdi projects, organized by technology stack and framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages