Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计异常

oceanbase-examples海洋基地示例

Agent Skill

oceanbase-examples 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

396

周安装

16

GitHub Stars

6

下载量

124
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:oceanbase-examples(海洋基地示例)
来源仓库:https://github.com/amber-moe/oceanbase-doc-skills
仓库路径:skills/oceanbase-examples
安装命令:
npx skills add https://github.com/amber-moe/oceanbase-doc-skills --skill oceanbase-examples
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/amber-moe/oceanbase-doc-skills --skill oceanbase-examples

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 信息,适合围绕代码变更和协作事项进行整理。

  • 适用于 OceanBase 数据库相关开发、示例代码管理和文档维护等场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和命令执行环境。
  • 安装前建议检查仓库维护状态,以及是否会触发联网或文件读写操作。
  • oceanbase-examples 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

OceanBase Documentation Examples

This skill provides guidelines for creating SQL examples in OceanBase documentation.

Example structure

SQL statements

Always prefix with prompt:

  • obclient> for default prompt
  • obclient [SCHEMA]> when schema context is relevant

Include semicolons in executable statements.

Example:

obclient [KILL_USER]> SHOW PROCESSLIST;

Query results

Separate from SQL statements:

  • Place SQL in one code block
  • Place results in another code block
  • Connect with descriptive text like "查询结果如下:" or "Query results:"

Example:

obclient [KILL_USER]> SHOW PROCESSLIST;

查询结果如下:

+------------+-----------+----------------------+-----------+---------+------+--------+------------------+
| ID         | USER      | HOST                 | DB        | COMMAND | TIME | STATE  | INFO             |
+------------+-----------+----------------------+-----------+---------+------+--------+------------------+
| 3221487726 | KILL_USER | 100.xx.xxx.xxx:34803 | KILL_USER | Query   |    0 | ACTIVE | SHOW PROCESSLIST |
+------------+-----------+----------------------+-----------+---------+------+--------+------------------+
1 row in set

Naming conventions

Use meaningful names

Avoid simple names:

  • t1, t2, tg1, db1
  • test_table, temp_db

Use business-meaningful names:

  • ✅ Table groups: order_tg, product_tg, inventory_tg
  • ✅ Tables: order_table, user_info, product_catalog
  • ✅ Databases: sales_db, customer_db, warehouse_db

Why:

  • Helps users understand real-world scenarios
  • Makes examples more relatable
  • Demonstrates practical applications

Example scenarios

E-commerce:

  • Tables: orders, order_items, customers, products
  • Table groups: order_tg, product_tg
  • Databases: ecommerce_db

Financial:

  • Tables: transactions, accounts, balances
  • Table groups: transaction_tg, account_tg
  • Databases: banking_db

Inventory:

  • Tables: warehouses, inventory_items, stock_movements
  • Table groups: warehouse_tg, inventory_tg
  • Databases: logistics_db

What to include

Include:

  • ✅ Query result tables (when helpful)
  • ✅ Error messages (when demonstrating error handling)
  • ✅ Descriptive output (when it adds value)

Exclude:

  • ❌ "Query OK" messages
  • ❌ "Query OK, 0 rows affected"
  • ❌ "Query OK, 1 row affected"
  • ❌ Generic success messages

Exception: Only include these if they provide meaningful information for understanding the example.

Example workflow

Step 1: Create context

Set up meaningful scenario:

obclient [SYS]> CREATE USER sales_user IDENTIFIED BY 'password123';
obclient [SYS]> GRANT CREATE SESSION TO sales_user;
obclient [SYS]> CREATE DATABASE sales_db;
obclient [SYS]> USE sales_db;

Step 2: Create objects

Use meaningful names:

obclient [SALES_DB]> CREATE TABLE order_table (
    order_id BIGINT PRIMARY KEY,
    customer_id BIGINT,
    order_date DATE,
    total_amount DECIMAL(10,2)
);

Step 3: Demonstrate feature

Show the SQL statement:

obclient [SALES_DB]> SELECT * FROM order_table WHERE order_date >= '2024-01-01';

Step 4: Show results

Separate code block with descriptive text:

查询结果如下:

+----------+-------------+------------+--------------+
| order_id | customer_id | order_date | total_amount |
+----------+-------------+------------+--------------+
|      101 |        1001 | 2024-01-15 |      1250.00 |
|      102 |        1002 | 2024-01-20 |       850.50 |
+----------+-------------+------------+--------------+
2 rows in set

Complex examples

Multi-step examples

For complex workflows, break into logical steps:

Step 1: Setup

obclient [SYS]> CREATE USER admin_user IDENTIFIED BY 'admin123';
obclient [SYS]> GRANT ALTER SYSTEM TO admin_user;

Step 2: Create table group

obclient [ADMIN_USER]> CREATE TABLEGROUP order_tg;

Step 3: Create table

obclient [ADMIN_USER]> CREATE TABLE order_table (
    order_id BIGINT PRIMARY KEY,
    customer_id BIGINT
) TABLEGROUP = order_tg;

Step 4: Verify

obclient [ADMIN_USER]> SHOW TABLEGROUPS;

查询结果如下:

+-----------+------------+
| TableName | TableGroup |
+-----------+------------+
| order_table | order_tg  |
+-----------+------------+
1 row in set

Error examples

When demonstrating error handling:

obclient [USER]> CREATE TABLE invalid_table (
    id INT PRIMARY KEY,
    name VARCHAR(10)
) PARTITION BY HASH(id) PARTITIONS 0;

错误信息如下:

ERROR 1235 (42000): Invalid partition count

Best practices

  1. Start simple, add complexity gradually
  2. Use consistent naming throughout example
  3. Show realistic data in results
  4. Include comments when helpful (but keep them concise)
  5. Test examples to ensure they work
  6. Follow test cases when they differ from parser definitions

Quality checklist

  • SQL statements have obclient> prefix
  • SQL and results in separate code blocks
  • Meaningful, business-oriented names used
  • No unnecessary "Query OK" messages
  • Results formatted clearly
  • Example demonstrates real-world usage
  • All statements are executable and tested

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.76%
按下载量换算44

Claude

31.84%
按下载量换算39

Cursor

20.42%
按下载量换算25

Gemini CLI

9.19%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills