
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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.