Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/opengis-skills --skill sqlsugargit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/sqlsugar)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/sqlsugar"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/sqlsugar/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/sqlsugar"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/sqlsugar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.02510 |
| Opus 5 | $0.00026 | $0.01255 |
| Sonnet 5 | $0.00011 | $0.00502 |
| Haiku 4.5 | $0.00005 | $0.00251 |
Grade A, and why
sqlsugar scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/DotNetNext/SqlSugar
官方文档: https://www.donet5.com/Home/Doc
NuGet:
SqlSugar/SqlSugarCore许可证: MIT
概述
SqlSugar 主要特性:
- 多数据库:SQL Server / MySQL / Oracle / PostgreSQL / SQLite / 达梦 / 人大金仓 / 神舟通用 / GBase / Highgo / Oscar / Tdengine / ClickHouse / OceanBase / MariaDB / Access / 行云数据库
- Code First / DB First 双模式
- 链式查询:
Queryable<T>().Where(...).Select(...).ToList() - Lambda 表达式 → SQL
- 批量操作:
Insertable / Updateable / Deleteable.ExecuteCommand() - 多种主键策略:自增、Guid、雪花 ID
- 读写分离 / 分库分表
- AOT 友好(高级版)
- 事务:
UseTran自动管理
安装
dotnet add package SqlSugarCore # .NET 6+
# 或
dotnet add package SqlSugar # .NET Framework
创建客户端
using SqlSugar;
var db = new SqlSugarClient(new ConnectionConfig {
DbType = DbType.MySql,
ConnectionString = "server=127.0.0.1;uid=root;pwd=...;database=demo",
IsAutoCloseConnection = true,
InitKeyType = InitKeyType.Attribute // 通过特性识别主键
});
db.Aop.OnLogExecuting = (sql, p) => Console.WriteLine(sql);
多数据库:使用
SqlSugarClient(List<ConnectionConfig>)或SqlSugarScope(推荐 DI 注入)。
在 ASP.NET Core 中注册
builder.Services.AddSingleton<ISqlSugarClient>(sp =>
new SqlSugarScope(new ConnectionConfig {
DbType = DbType.SqlServer,
ConnectionString = builder.Configuration.GetConnectionString("Default"),
IsAutoCloseConnection = true
}));
实体定义
[SugarTable("users")]
public class User
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
[SugarColumn(Length = 50, IsNullable = false)]
public string Name { get; set; } = "";
public int Age { get; set; }
[SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
public DateTime? CreateTime { get; set; }
[SugarColumn(IsIgnore = true)]
public string Computed { get; set; } = "";
}
CRUD
// 插入(自增主键回填)
int id = db.Insertable(new User { Name = "Tom", Age = 18 })
.ExecuteReturnIdentity();
// 批量
db.Insertable(list).ExecuteCommand();
// 更新
db.Updateable(new User { Id = 1, Name = "Tom2" }).ExecuteCommand();
db.Updateable<User>().SetColumns(u => new User { Age = u.Age + 1 })
.Where(u => u.Id == 1).ExecuteCommand();
// 删除
db.Deleteable<User>().Where(u => u.Id == 1).ExecuteCommand();
db.Deleteable<User>(new[] { 1, 2, 3 }).ExecuteCommand();
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago Changed e13171ac80e9
- 12d ago First seen · 302 lines · 53 tokens per session scan A 9f357e837662
sqlsugar is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 2,510 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
azure-resource-manager-postgresql-dotnet
Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…
entity-framework-core
Design, tune, or review EF Core data access with proper modeling, migrations, query translation, performance, and lifetime management for modern .NET applications. USE FOR: DbContext, migrations, model configuration, EF queries, tracking, loading, performance, transactions, and EF6 migration decisions. DO NOT USE FOR…
entity-framework6
Maintain or migrate EF6-based applications with realistic guidance on what to keep, what to modernize, and when EF Core is or is not the right next step. USE FOR: EF6 codebases; runtime versus ORM migration decisions; EDMX, code-first, ObjectContext, and legacy data-access review. DO NOT USE FOR: unrelated stacks…
creating-oracle-to-postgres-master-migration-plan
Discovers all projects in a .NET solution, classifies each for Oracle-to-PostgreSQL migration eligibility, and produces a persistent master migration plan. Use when starting a multi-project Oracle-to-PostgreSQL migration, creating a migration inventory, or assessing which .NET projects contain Oracle dependencies.
entity-framework-migration
Use when modernizing legacy Entity Framework data layers to EF Core with help for model mapping, DbContext refactors, phased cutovers, and migration risk review. USE FOR: migrate EF6 to EF Core, refactor DbContext configuration, convert model mappings and conventions, plan phased database cutover, validate query…
SQLAlchemy ORM Expert
Comprehensive SQLAlchemy skill for customer support tech enablement, covering ORM patterns, session management, query optimization, async operations, and PostgreSQL integration.