提供通用的SQL查询方法和数据库查询基础。使用 exec_sql 工具执行查询。
/plugin marketplace add SeSiTing/siti-claude-marketplace/plugin install op-plugin@siti-claude-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
COMMON.md参考:通用规范
所有查询使用 exec_sql 工具执行,参数替换为实际值。
重要:在执行 SQL 前,必须先打印出完整的目标 SQL 语句,然后再使用 exec_sql 工具执行。
重要:执行 SQL 后,必须对查询结果进行结构化展示:
-- 查询表结构
DESC table_name;
SHOW COLUMNS FROM table_name;
SHOW TABLE STATUS LIKE 'table_name';
-- 查询所有数据库
SHOW DATABASES;
-- 查询当前数据库
SELECT DATABASE();
-- 查询指定数据库的所有表
SHOW TABLES FROM database_name;
-- 查询表的创建语句
SHOW CREATE TABLE table_name;
-- 查询前 N 条记录
SELECT * FROM table_name LIMIT N;
-- 查询去重
SELECT DISTINCT column_name FROM table_name;
-- 查询排序
SELECT * FROM table_name ORDER BY column_name DESC;
-- 查询统计
SELECT COUNT(*) FROM table_name WHERE condition;
{参数名}都需要替换为实际值deleted_at = 0 条件exec_sql 执行Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.