npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cursor-rule

v1.0.3

Published

CLI工具用于自动生成Cursor项目规则

Readme

Cursor-CLI

自动生成Cursor项目规则的命令行工具,旨在统一团队开发规范,提高AI编程场景下的精准度。

功能特点

  • 自动检测项目技术栈并生成相应规则
  • 支持手动指定开发语言生成规则
  • 生成三类规则文件:
    • general.mdc: 通用项目规则(RuleType: Always)
    • [语言].mdc: 特定语言规则(RuleType: Auto Attached)
    • document.mdc: 文档规范(RuleType: Auto Attached)

安装

使用npm安装

npm install -g cursor-rule

使用方法

在项目中自动生成规则

# 自动检测项目类型
cursor-rule init

# 指定开发语言
cursor-rule init --lang=javascript

查看支持的语言列表

cursor-rule list-langs

显示帮助信息

cursor-rule --help

生成的规则

工具会在项目目录下的.cursor/rules目录中生成以下文件:

  1. general.mdc: 包含项目的基本信息和通用规范,对所有聊天框生效
  2. [语言].mdc: 特定语言的编码规范和最佳实践
  3. document.mdc: 文档文件的编写规范

定制规则模板

您可以在src/templates目录中添加或修改规则模板,支持以下文件:

  • general.template.mdc: 通用规则模板
  • [语言].template.mdc: 特定语言规则模板
  • document.template.mdc: 文档规则模板

支持的语言

  • JavaScript
  • TypeScript
  • Python
  • Java
  • Go
  • Rust
  • C#
  • C++
  • PHP
  • Ruby
  • Swift
  • Kotlin
  • Dart

贡献指南

欢迎贡献代码、报告问题或提出改进建议。

许可证

MIT