You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP β†’
Socket
Book a DemoInstallSign in
Socket

jondoescoding-cursor-rules

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jondoescoding-cursor-rules

CLI tool to manage custom Cursor AI rule templates for enhanced AI-assisted development

2.1.0
latest
Source
npmnpm
Version published
Weekly downloads
27
-93.33%
Maintainers
1
Weekly downloads
Β 
Created
Source

🎯 JonDoesCoding Cursor Rules CLI

A powerful CLI tool to manage and distribute custom Cursor AI rule templates for enhanced AI-assisted development.

npm version License: MIT

πŸš€ What This Does

This CLI tool allows you to quickly install pre-configured templates for both Cursor AI and Claude Code into your projects. Choose the right import type for your AI development workflow.

Key Features

  • πŸ“¦ Dual AI Support: Templates for both Cursor AI and Claude Code
  • 🎨 Multiple Categories: Pre-built templates for popular technologies
  • πŸ”§ Customizable: Easy to add your own custom templates
  • 🌐 Shareable: Distribute your team's standards as npm packages
  • 🎯 Targeted Installation: Choose exactly what you need with --type parameter

πŸ€– Import Types

--type cursor (Default)

  • Purpose: Cursor AI coding rules and standards
  • Location: .cursor/rules/
  • Format: .mdc files
  • Use Case: Guide Cursor AI's code suggestions and completions

--type claude-code

  • Purpose: Claude Code workflow optimization
  • Location: .claude/
  • Format: .md files
  • Use Case: Improve communication and productivity with Claude Code

πŸ“‹ Template Types Explained

Cursor AI Rules (.mdc files)

Cursor rules are markdown files placed in .cursor/rules/ that provide context and coding standards to Cursor AI. They help ensure consistent:

  • Code style and formatting
  • Architecture patterns
  • Best practices
  • Error handling approaches
  • Naming conventions

Claude Code Configuration (.md files)

Claude Code templates are workflow guides placed in .claude/ that optimize your collaboration with Claude Code:

  • Project setup and organization
  • Communication patterns
  • Context management strategies
  • Productivity workflows
  • Best practices for AI collaboration

πŸ›  Installation & Usage

# List available templates by type
npx jondoescoding-cursor-rules --list --type cursor
npx jondoescoding-cursor-rules --list --type claude-code

# Install specific templates (defaults to cursor type)
npx jondoescoding-cursor-rules typescript
npx jondoescoding-cursor-rules writing/scott-adams-writing-principles

# Install with explicit type
npx jondoescoding-cursor-rules --type cursor python/llm/observability/langfuse
npx jondoescoding-cursor-rules --type claude-code memory-management

# Install multiple templates
npx jondoescoding-cursor-rules typescript react nodejs
npx jondoescoding-cursor-rules --type claude-code memory-management project-setup

# Install all available templates of a type
npx jondoescoding-cursor-rules --all --type cursor
npx jondoescoding-cursor-rules --all --type claude-code

Global Installation

npm install -g jondoescoding-cursor-rules
jondoescoding-cursor-rules --help

πŸ“š Available Templates

🎯 Cursor AI Rules (--type cursor)

Installed to .cursor/rules/ - Used by Cursor AI for coding assistance

Core Templates

TemplateDescriptionFile Types
typescriptTypeScript coding standards and best practices*.ts, *.tsx
reactReact development standards and patterns*.jsx, *.tsx
nodejsNode.js backend development standards*.js, *.ts, server/**/*, api/**/*

Python Templates

TemplateDescriptionFile Types
python/llm/observability/langfuseComplete LangFuse tracing setup for FastAPI + LangChain/LangGraph**/*.py, src/**/*, api/**/*

Writing Templates

TemplateDescriptionFile Types
writing/content-curation-ruleViral content formats for Twitter and LinkedIn**/*.md, **/*.txt
writing/scott-adams-writing-principlesClear, persuasive writing principles from Scott Adams**/*.md, **/*.txt, content/**/*
writing/seo-long-form-article-blueprintComplete blueprint for high-converting SEO articles**/*.md, content/**/*, blog/**/*
writing/tweet-interview-processSystematic approach for creating viral, conversion-focused tweets**/*.md, social/**/*, content/**/*
writing/twitter-thread-creationStep-by-step guide for creating viral Twitter threads**/*.md, social/**/*, twitter/**/*

Task Management Templates

TemplateDescriptionFile Types
tasking/task-managementComprehensive task management system with dementia-friendly clear documentationtasks/**/*, task-logs/**/*, .cursor/task-logs/**/*

πŸ€– Claude Code Configuration (--type claude-code)

Installed to .claude/ - Used for Claude Code workflow optimization

TemplateDescriptionPurpose
memory-managementClaude Code memory and context management strategiesImprove context retention across conversations
project-setupOptimal project structure and configuration for Claude CodeSet up projects for effective AI collaboration
workflow-optimizationCommunication patterns and productivity tips for Claude CodeMaximize efficiency when working with Claude

Template Details

Each template includes:

  • βœ… Coding standards and style guidelines
  • βœ… Best practices for the technology
  • βœ… Common patterns and examples
  • βœ… Error handling recommendations
  • βœ… Performance considerations

πŸ“ Project Structure

jondoescoding-cursor-rules/
β”œβ”€β”€ bin/
β”‚   └── cli.js              # Main CLI script
β”œβ”€β”€ templates/              # Rule templates directory
β”‚   β”œβ”€β”€ typescript.mdc      # TypeScript rules
β”‚   β”œβ”€β”€ react.mdc          # React rules
β”‚   β”œβ”€β”€ nodejs.mdc         # Node.js rules
β”‚   β”œβ”€β”€ python/            # Python-specific templates
β”‚   β”‚   └── llm/           # LLM development templates
β”‚   β”‚       └── observability/
β”‚   β”‚           └── langfuse.mdc  # LangFuse tracing guide
β”‚   └── writing/           # Content creation templates
β”‚       β”œβ”€β”€ content-curation-rule.mdc
β”‚       β”œβ”€β”€ scott-adams-writing-principles.mdc
β”‚       β”œβ”€β”€ seo-long-form-article-blueprint.mdc
β”‚       β”œβ”€β”€ tweet-interview-process.mdc
β”‚       └── twitter-thread-creation.mdc
β”‚   └── tasking/            # Task management templates
β”‚       └── task-management.mdc
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ cursor-rules/        # Cursor AI rule templates
β”‚   β”‚   β”œβ”€β”€ [all above templates]
β”‚   └── .claude/            # Claude Code configuration templates
β”‚       β”œβ”€β”€ memory-management.md
β”‚       β”œβ”€β”€ project-setup.md
β”‚       └── workflow-optimization.md
β”œβ”€β”€ package.json           # Package configuration
└── README.md             # This file

βž• Adding New Templates

1. Create Template File

Create a new .mdc file in the templates/ directory. You can organize templates in nested folders:

# Root level template
touch templates/your-template-name.mdc

# Nested template (creates folder structure automatically)
mkdir -p templates/category/subcategory
touch templates/category/subcategory/your-template.mdc

2. Template Format

Follow this structure for your template:

---
description: Brief description of what this rule does
globs: ["**/*.ext", "**/*.pattern"]
alwaysApply: false
---

# Your Rule Title

## Section 1: Standards
Your coding standards here...

## Section 2: Best Practices
Best practices specific to this technology...

## Section 3: Examples
```language
// Good example
const goodExample = () => {
  // Implementation
};

// Avoid
const badExample = () => {
  // What not to do
};

3. Frontmatter Configuration

FieldDescriptionExample
descriptionBrief description of the rule's purpose"React development standards"
globsFile patterns where this rule applies["**/*.tsx", "**/*.jsx"]
alwaysApplyWhether to apply to all files regardless of globsfalse (recommended)

4. Template Content Guidelines

Include These Sections:

  • πŸ“ Code Style: Formatting, naming conventions, structure
  • πŸ—οΈ Architecture: Patterns, organization, best practices
  • πŸ”’ Security: Security considerations and practices
  • ⚑ Performance: Optimization tips and patterns
  • πŸ§ͺ Testing: Testing approaches and examples
  • πŸ“– Examples: Clear good vs bad code examples

Template Example:

---
description: Python development standards with Django
globs: ["**/*.py", "django/**/*"]
alwaysApply: false
---

# Python + Django Development Rules

## Code Style
- Follow PEP 8 style guidelines
- Use type hints for function parameters and return values
- Maximum line length of 88 characters (Black formatter)
- Use descriptive variable and function names

## Django Best Practices
- Use Django's built-in authentication system
- Implement proper model validation
- Use Django forms for data validation
- Follow the Model-View-Template pattern

## Examples
```python
# Good
from typing import Optional
from django.contrib.auth.models import User

def get_user_profile(user_id: int) -> Optional[User]:
    try:
        return User.objects.get(id=user_id)
    except User.DoesNotExist:
        return None

# Avoid
def get_user_profile(user_id):
    return User.objects.get(id=user_id)  # No error handling

πŸ”§ Development & Customization

Local Development

# Clone and setup  
git clone https://github.com/jondoescoding/jondoescoding-cursor-rules.git
cd jondoescoding-cursor-rules
npm install

# Test locally
node bin/cli.js --list
node bin/cli.js typescript

Publishing Your Own Version

  • Fork this repository
  • Customize templates in the templates/ directory
  • Update package.json with your package name:
    {
      "name": "your-custom-cursor-rules",
      "description": "Your team's cursor rules",
      "author": "Your Name"
    }
    
  • Publish to npm:
    npm publish
    
  • Share with your team:
    npx your-custom-cursor-rules --all
    

Customizing for Your Team

Create organization-specific rules:

# Example: Create a company-wide rule set with categories
templates/
β”œβ”€β”€ company-typescript.mdc    # Your TS standards
β”œβ”€β”€ company-react.mdc        # Your React patterns  
β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ rest.mdc             # REST API conventions
β”‚   └── graphql.mdc         # GraphQL patterns
β”œβ”€β”€ testing/
β”‚   β”œβ”€β”€ unit.mdc            # Unit testing standards
β”‚   └── integration.mdc     # Integration testing
└── python/
    β”œβ”€β”€ fastapi.mdc         # FastAPI patterns
    └── llm/
        └── langchain.mdc   # LangChain standards

πŸ” How It Works

  • CLI Detection: The tool checks for existing .cursor/rules/ directory
  • Auto-Creation: Creates the directory if it doesn't exist
  • Template Copy: Copies selected templates from templates/ to .cursor/rules/
  • Cursor Integration: Cursor AI automatically loads rules from this directory
  • Smart Application: Rules apply only to files matching their glob patterns

🀝 Contributing

  • Fork the repository
  • Create a feature branch: git checkout -b feature/new-template
  • Add your template following the guidelines above
  • Test locally: node bin/cli.js your-template
  • Submit a pull request

Template Contribution Guidelines

  • βœ… Include comprehensive examples
  • βœ… Cover both good and bad practices
  • βœ… Use appropriate glob patterns
  • βœ… Test with actual Cursor AI
  • βœ… Document any special considerations

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ†˜ Support

  • πŸ› Issues: Report bugs via GitHub Issues
  • πŸ’‘ Feature Requests: Submit via GitHub Issues
  • πŸ“– Documentation: Check this README and template examples
  • πŸ’¬ Questions: Start a GitHub Discussion

πŸŽ‰ Acknowledgments

Inspired by CitrusRules and the Cursor AI community's effort to improve AI-assisted development through better context and standards.

Keywords

cursor

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.