opsrobot: Skill for Cursor

.cursor/skills/doris-datamodel-docgen/SKILL.md

数据模型文档生成 is a skill for Cursor from opsrobot-ai/opsrobot. It costs 64 tokens per session (2,367 once invoked), scanned A, original, Apache-2.0.

A tool for generating Markdown data-model documents from Doris, an analytical database. It can pull table metadata and at least 100 sample rows, then fill in field descriptions from database comments or an agent.

In plain words
What is it for?
It is for documenting one table, several tables, all tables, or tables matching a prefix, including columns and JSON fields.
Why use it?
It turns database structure and sample data into a consistent document, while preserving existing column comments.

Skill for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is opsrobot-ai/opsrobot's own configuration. It tells Cursor how to work on opsrobot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opsrobot configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/generate-doris-datamodel-md.mjs --help.

Reuse

Borrowing it

Nothing to install: this file belongs to opsrobot-ai/opsrobot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/opsrobot-ai/opsrobot/main/.cursor/skills/doris-datamodel-docgen/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/opsrobot-ai/opsrobot

Made for: Cursor.

Wrote 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.

agentmods badge for 数据模型文档生成

README.md
[![agentmods](https://agentmods.dev/badge/skills/opsrobot-ai/opsrobot/doris-datamodel-docgen.svg)](https://agentmods.dev/skills/opsrobot-ai/opsrobot/doris-datamodel-docgen)
Your own site
<a href="https://agentmods.dev/skills/opsrobot-ai/opsrobot/doris-datamodel-docgen"><img src="https://agentmods.dev/badge/skills/opsrobot-ai/opsrobot/doris-datamodel-docgen.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.02367
Opus 5 $0.00032 $0.01184
Sonnet 5 $0.00013 $0.00473
Haiku 4.5 $0.00006 $0.00237

Measured 8d ago against content hash 74454d514149, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

数据模型文档生成 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 8d ago.

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.

.cursor/skills/doris-datamodel-docgen/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doris 数据模型文档自动生成

前置条件

  • 仓库根目录存在 .env,且可配置 DORIS_HOSTDORIS_PORTDORIS_USERDORIS_PASSWORD;默认库见 getCronDatabaseName() / getLogTablesDatabaseName()--log-database)。
  • 本机网络可连 Doris;已安装 Node(与项目一致)。
  • 依赖:使用项目已有 mysql2,无需额外 npm install

表列 · 字段说明规则(重要)

  1. 数据库有 COMMENTSHOW FULL COLUMNS 中的注释必须原样写入「说明」列,脚本不覆盖、不臆造。
  2. 数据库无 COMMENT:**由 Cursor Agent(大模型)**结合表数据,将「说明」补成准确业务描述(可整表重写该列,保持表格其它列不变)。
  3. Node 脚本角色(离线/CI 友好):
    • 默认 --description-source=hybrid:无 COMMENT 时,脚本用列名语义推断(高频表如 agent_sessions 有精确映射,其余由下划线词表组合中文)填「说明」;Agent 仍可在交付前按业务再润色。
    • --description-source=db-only:无 COMMENT 时「说明」固定为 ,不写入启发式;适合「先出结构 + 样例,再全交给 Agent 写说明」的流程。

推荐工作流:先 node scripts/generate-doris-datamodel-md.mjs …hybriddb-only)→ 在 Cursor 里 @ 生成的 md + 相关源码 → 请 Agent 仅优化「说明」列(有 COMMENT 的列勿改)。

自然语言 → 命令

意图 命令示例(均在仓库根执行)
只生成一张表 node scripts/generate-doris-datamodel-md.mjs --table=cron_runsnode scripts/generate-doris-datamodel-md.mjs cron_runs
多张表 node scripts/generate-doris-datamodel-md.mjs --tables=cron_jobs,cron_runs
当前库全部表 node scripts/generate-doris-datamodel-md.mjs --all-tables
按表名前缀筛选 node scripts/generate-doris-datamodel-md.mjs --all-tables --prefix=cron_
指定库名 node scripts/generate-doris-datamodel-md.mjs --database=opsRobot --table=foo
agent_sessions(日志库) node scripts/generate-doris-datamodel-md.mjs --log-database --table=agent_sessions --force
提高采样上限(内置至少 100 行,与 --sample-rows 取较大值) node scripts/generate-doris-datamodel-md.mjs --table=cron_runs --sample-rows=200 --force
仅表结构、不拉数据 node scripts/generate-doris-datamodel-md.mjs --table=foo --no-json-sample
说明列仅库注释 / 其余留「—」给 Agent node scripts/generate-doris-datamodel-md.mjs --table=foo --description-source=db-only --force
只打印不写盘(校对版式) node scripts/generate-doris-datamodel-md.mjs --table=cron_runs --print--dry-run
覆盖已有文件 加上 --force
大模型一键补概要 + 表列说明 + JSON 平铺说明 node scripts/generate-doris-datamodel-md.mjs --table=agent_sessions --llm --force(需 API Key,见下)
自定义 bundle 输出目录 同上并加 --llm-bundle-dir=D:\\tmp\\bundles

Read the full file on GitHub · 89 lines

Changes

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.

  1. 8d ago First seen · 89 lines · 64 tokens per session scan A 74454d514149

Subscribe to this mod's changes

数据模型文档生成 is a skill published in the GitHub repository opsrobot-ai/opsrobot (135 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 64 tokens to every session and 2,367 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.

Related

Other skills, from other repositories

monitoring-observability

Monitoring and observability patterns for Prometheus metrics, Grafana dashboards, Langfuse v4 LLM tracing (astype, scorecurrentspan, shouldexportspan, LangfuseMedia), and drift detection. Use when adding logging, metrics, distributed tracing, LLM cost tracking, or quality drift monitoring.

yonatangross/orchestkit · 69 tokens

datadog

Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.

bobmatnyc/claude-mpm-skills · 43 tokens

monitoring-expert

Expert-level monitoring and observability with Prometheus, Grafana, logging, and alerting. Use when the user mentions observability, Prometheus, Grafana, logging, metrics, or alerting, or when the task involves The Three Pillars of Observability, Monitoring Fundamentals, Prometheus Configuration, or Alert Rules.

personamanagmentlayer/pcl · 70 tokens

observability-testing-patterns

Observability and monitoring validation patterns for dashboards, alerting, log aggregation, APM traces, and SLA/SLO verification. Use when testing monitoring infrastructure, dashboard accuracy, alert rules, or metric pipelines.

summarybotng/summarybot-ng · 47 tokens

Observability & Monitoring

Structured logging, metrics, distributed tracing, and alerting strategies.

ArieGoldkin/ai-agent-hub · 17 tokens

gh-issue

Size-audit, write, and split BanyanDB issues that somebody else or an automated TDD workflow can implement. Use whenever the user asks to file or revise an issue, decide whether an issue is too large, make an issue TDD-ready, turn a design into tickets, or split an umbrella into executable leaves. Do not draft or file…

apache/skywalking-banyandb · 91 tokens