Skills Plugins MCP Prompt Model 博客 我的中心
Development #api #agent

dbskill

为 Agent 提供统一的数据库访问能力,支持 Direct 直连与 API 模式、多库与审计。在需要查库表结构、执行只读查询或写操作时使用。

DeepseekModel Curated skill Quality Good · 64 v1.0.0

Get

https://deepseekmodel.com/api/download.php?id=lifangbiz-dbskill-dbskill-skill-md&format=skill
Download .skill Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name dbskill description 为 Agent 提供统一的数据库访问能力,支持 Direct 直连与 API 模式、多库与审计。在需要查库表结构、执行只读查询或写操作时使用。 DBSkill Skill 为 Agent 提供统一的数据库访问能力,支持: Direct 模式:脚本直连数据库; API 模式:通过 Web 服务 API 访问数据库; 多数据库、多权限级别与审计日志。 目录结构 dbskill/ ├── SKILL.md ├── scripts/ │ ├── schema.py │ ├── query.py │ └── execute.py └── config.example.yaml 配置示例 在项目根或 dbskill/ 目录下创建 config.yaml 。每个 databases.<别名> 必须配置 mode : direct 或 api 。示例: databases: main: mode: direct type: postgres host: localhost port: 5432 user: postgres password: example database: mydb permission: readonly default_db: main audit: enabled: true log_dir: ./logs/audit retention_days: 30 Direct / API 双模式示例见 dbskill/config.example.yaml 。 Direct 模式调用示例 from dbskill.scripts.schema import get_schema from dbskill.scripts.query import run_query from dbskill.scripts.execute import run_execute # 读取主库的表结构 schema = get_schema(table= "users" , db_alias= "main" ) # 只读查询(内部强制只允许 SELECT/CTE) rows = run_query( sql= "SELECT id, name FROM users WHERE status = :status" , params={ "status" : "active" }, db_alias= "main" , ) # 写操作(仅 permission 为 write/full 时允许) affected = run_execute( sql= "UPDATE users SET name = :name WHERE id = :id" , params={ "name" : "new-name" , "id" : 1 }, db_alias= "main" , ) API 模式(概览) 当 config.yaml 中某个数据库配置为 mode: api 并填写 api_url 、 api_token 时,Skill 将通过 HTTP 调用 Web 服务执行 schema / query / execute 。示例见 dbskill/config.example.yaml 中的 analytics 库。
Keywords that activate this skill. Click one to copy it.

This skill does not provide trigger words.

The downloaded .skill package contains the following fields.
Field Description
formatFormat tag (skill/v1)
skill_idUnique skill ID
nameSkill name
versionVersion
descriptionDescription
categoryCategories (array)
trigger_wordsTrigger words
tagsTags
sourceSource
source_urlSource URL (this page)
exported_atExported at (set per download)
system_promptSystem prompt body
model_configModel config: provider / model / temperature / max_tokens / top_p
examplesExamples
install_guideImport guide for Coze / Dify / Claude / custom frameworks
The same skill can be exported in different platform formats.
.skill Standard format with system_prompt and model_config, ready for any agent framework Download
.skillpro Enhanced format with scripts, tools, dependencies and hooks Download
.json Plain JSON export with system_prompt and model parameters only Download
Coze Markdown with frontmatter, for Coze platform import Download
Dify Dify DSL, import directly after creating an app Download

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。