
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
jondoescoding-cursor-rules
Advanced tools
CLI tool to manage custom Cursor AI rule templates for enhanced AI-assisted development
A powerful CLI tool to manage and distribute custom Cursor AI rule templates for enhanced AI-assisted development.
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.
--type
parameter--type cursor
(Default).cursor/rules/
.mdc
files--type claude-code
.claude/
.md
files.mdc
files)Cursor rules are markdown files placed in .cursor/rules/
that provide context and coding standards to Cursor AI. They help ensure consistent:
.md
files)Claude Code templates are workflow guides placed in .claude/
that optimize your collaboration with Claude Code:
# 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
npm install -g jondoescoding-cursor-rules
jondoescoding-cursor-rules --help
--type cursor
)Installed to .cursor/rules/
- Used by Cursor AI for coding assistance
Template | Description | File Types |
---|---|---|
typescript | TypeScript coding standards and best practices | *.ts , *.tsx |
react | React development standards and patterns | *.jsx , *.tsx |
nodejs | Node.js backend development standards | *.js , *.ts , server/**/* , api/**/* |
Template | Description | File Types |
---|---|---|
python/llm/observability/langfuse | Complete LangFuse tracing setup for FastAPI + LangChain/LangGraph | **/*.py , src/**/* , api/**/* |
Template | Description | File Types |
---|---|---|
writing/content-curation-rule | Viral content formats for Twitter and LinkedIn | **/*.md , **/*.txt |
writing/scott-adams-writing-principles | Clear, persuasive writing principles from Scott Adams | **/*.md , **/*.txt , content/**/* |
writing/seo-long-form-article-blueprint | Complete blueprint for high-converting SEO articles | **/*.md , content/**/* , blog/**/* |
writing/tweet-interview-process | Systematic approach for creating viral, conversion-focused tweets | **/*.md , social/**/* , content/**/* |
writing/twitter-thread-creation | Step-by-step guide for creating viral Twitter threads | **/*.md , social/**/* , twitter/**/* |
Template | Description | File Types |
---|---|---|
tasking/task-management | Comprehensive task management system with dementia-friendly clear documentation | tasks/**/* , task-logs/**/* , .cursor/task-logs/**/* |
--type claude-code
)Installed to .claude/
- Used for Claude Code workflow optimization
Template | Description | Purpose |
---|---|---|
memory-management | Claude Code memory and context management strategies | Improve context retention across conversations |
project-setup | Optimal project structure and configuration for Claude Code | Set up projects for effective AI collaboration |
workflow-optimization | Communication patterns and productivity tips for Claude Code | Maximize efficiency when working with Claude |
Each template includes:
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
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
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
};
Field | Description | Example |
---|---|---|
description | Brief description of the rule's purpose | "React development standards" |
globs | File patterns where this rule applies | ["**/*.tsx", "**/*.jsx"] |
alwaysApply | Whether to apply to all files regardless of globs | false (recommended) |
Include These Sections:
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
# 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
templates/
directory{
"name": "your-custom-cursor-rules",
"description": "Your team's cursor rules",
"author": "Your Name"
}
npm publish
npx your-custom-cursor-rules --all
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
.cursor/rules/
directorytemplates/
to .cursor/rules/
git checkout -b feature/new-template
node bin/cli.js your-template
MIT License - see LICENSE file for details.
Inspired by CitrusRules and the Cursor AI community's effort to improve AI-assisted development through better context and standards.
FAQs
CLI tool to manage custom Cursor AI rule templates for enhanced AI-assisted development
The npm package jondoescoding-cursor-rules receives a total of 21 weekly downloads. As such, jondoescoding-cursor-rules popularity was classified as not popular.
We found that jondoescoding-cursor-rules demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isnβt whitelisted.