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

claude-skill-sqlsugar

v1.0.0

Published

SqlSugar 使用规范 Skill for Claude Code - 基于 122 篇官方文档提炼

Readme

Claude Skill: SqlSugar 使用规范

基于 122 篇 SqlSugar 官方文档深度调研生成的 Claude Code Skill,帮助开发者写出符合官方推荐、线程安全且高性能的 SqlSugar 代码。

功能

  • 生命周期顾问:SqlSugarClient vs SqlSugarScope 选择、IOC 注册、线程安全排查
  • 代码审查:检查查询/CRUD/事务/多租户写法是否符合官方规范
  • 报错诊断:基于「偶发性错误排查决策树」定位生命周期、Queryable 状态、异步问题
  • 选型参考:SqlSugar vs EF Core vs Dapper 的对比与适用场景
  • 最佳实践:12 条决策启发式、17 条核心反模式、6 个核心心智模型

安装

方式一:npx(推荐,无需全局安装)

npx claude-skill-sqlsugar

方式二:全局安装

npm install -g claude-skill-sqlsugar

安装完成后,Skill 会被复制到 ~/.claude/skills/sqlsugar-usage-framework/

方式三:项目级安装

npm install --save-dev claude-skill-sqlsugar

注意:Claude Code 默认从用户级 ~/.claude/skills/ 加载 Skill。项目级安装后需要手动运行 npx claude-skill-sqlsugar 复制到用户目录。

使用

重启 Claude Code 后,可以通过以下方式激活:

/sqlsugar-usage-framework

或直接询问 SqlSugar 相关问题:

帮我看看这段 SqlSugar 代码有没有问题
SqlSugarClient 和 SqlSugarScope 应该怎么选?
多库事务应该怎么开启?
SqlSugar 高并发场景怎么优化?

内容来源

  • 本地文档:E:\cscodetest\SqlsugarDoc\docs 下的 122 篇官方 HTML 文档
  • 调研输出:Skill 目录下的 references/research/01-06.md
  • 外部评价:GitHub Issues、CSDN、博客园、官方论坛等公开资料

版本信息

  • Skill 版本:1.0.0
  • 文档版本:SqlSugar 5.1.4.215
  • 调研时间:2026-06-26

许可证

MIT