본문으로 건너뛰기
cccskills
무료GitHub에 공개

mysql reporter

Query MySQL databases to summarize sales, user behavior, and business metrics. The skill checks available tables, runs read-only queries, and presents results as Markdown tables with explanations of key figures, changes, and conclusions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

生成 MySQL 查询报表。当用户需要查询 MySQL 数据库并以报表形式展示结果时使用此技能,包括:统计销售数据、分析用户行为、生成业务报表、查询业务指标等。

연동 도구MySQL
설치 방법 보기

이럴 때 유용합니다

  • Summarizing sales data
  • Analyzing user behavior
  • Reporting business metrics
  • Creating reports from database records

포함된 파일(5)

  • SKILL.md2.2 KB
  • scripts/_mysql_common.py1.8 KB
  • scripts/describe_table.py3.8 KB
  • scripts/list_tables.py1.3 KB
  • scripts/query.py7.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

MySQL 报表技能

根据用户的指令,通过终端脚本访问 MySQL 数据库,根据查询结果构建报表。

操作流程

  1. 理解用户的指令,明确报表的需求和目标
  2. 通过 terminal 进入技能目录:cd /home/gem/skills/mysql-reporter
  3. 使用 uv run scripts/list_tables.py 查看可用表;如果脚本提示缺少 MySQL 配置,按“环境变量缺失处理”回复用户
  4. 必要时用 uv run scripts/describe_table.py --table 表名 查看表结构
  5. 生成正确且高效的只读 SQL,通过 uv run scripts/query.py --sql "SQL语句" --timeout 60 执行查询并获取结果
  6. 使用 Markdown 表格呈现查询结果,说明关键指标、变化与结论

环境变量缺失处理

脚本只读取 Agent 沙盒中的环境变量,不读取后端 .env 或 Docker Compose 变量。必填变量包括:

  • MYSQL_HOST
  • MYSQL_USER
  • MYSQL_PASSWORD
  • MYSQL_DATABASE

可选变量包括:

  • MYSQL_PORT:默认 3306
  • MYSQL_DATABASE_DESCRIPTION:数据库业务说明,用于辅助理解表和指标含义

如果执行脚本时出现 MySQL configuration missing required key,不要继续猜测连接信息或编造报表。应明确告诉用户:需要在个人设置中的「沙盒环境变量」里配置缺失的 MYSQL_* 变量;保存后仅对新建沙盒生效,需要重新发起任务或新建会话后再执行。

关键约束

  • 生成的 SQL 查询必须正确且高效,避免全表扫描
  • MySQL 操作必须通过本技能 scripts/ 下的 CLI 脚本执行,不要调用平台内置 MySQL tools
  • 不要在报表或错误说明中输出 MYSQL_PASSWORD 等敏感环境变量的值,只能说明缺少哪些变量名
  • 只返回报表相关的结论,不要返回原始 SQL 查询语句

允许的工具

  • terminal:执行 scripts/list_tables.py、scripts/describe_table.py、scripts/query.py
  • 网络检索工具:必要时补充背景信息

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Organize complex research by splitting a topic into focused questions, assigning research agents, and checking important claims. Findings become a structured report with source links, conflicting evidence, and clearly stated uncertainties.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing research literature
  • Researching industries and competitors
  • Comparing technologies for selection
xerrors/Yuxi7.4천2026년 10월 17일 업데이트

Add compact visual summaries to Markdown answers using static HTML and CSS. Show comparisons, key metrics, timelines, or simple relationships in a preview, while keeping explanations and detailed information in the surrounding text.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing key metrics visually
  • Showing a process or sequence of steps
  • Summarizing events on a timeline
xerrors/Yuxi7.4천2026년 10월 17일 업데이트

image-gen

무료

Generate images, posters, and illustrations from written descriptions using an external image API, with Qwen-Image as the default. Save the finished image in the agent's working environment and display it through the artifact presentation tool.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Generating an illustration from a written description
  • Creating a poster with a specified style
  • Saving and displaying images generated with Qwen-Image
xerrors/Yuxi7.4천2026년 10월 17일 업데이트

Search configured Yuxi knowledge bases to answer questions using internal or uploaded documents. Open source text, locate relevant passages, inspect mind maps, and identify supporting files so answers can be traced back to their evidence.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Answering questions from internal documents
  • Locating passages that support a claim
  • Exploring knowledge base structure with mind maps
xerrors/Yuxi7.4천2026년 10월 17일 업데이트

xerrors의 스킬 모두 보기

이 스킬의 문제 신고