Logfire Query
pydantic/skills
Query and analyze Logfire telemetry data — traces, logs, spans, metrics, summaries, and SQL results.
SQL 版归因分析技能。当用户问为什么、指标异常、趋势下滑/增长、KPI 未达标、营收/订单/转化/成本波动时使用. An agent skill from zj-unicom-ai/UniEmployee.
$ npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install zj-unicom-ai/UniEmployee sql-root-cause-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee.git skills-src && mkdir -p .claude/skills && cp -r skills-src/backend/skills/sql-root-cause-analysis .claude/skills/sql-root-cause-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sql-root-cause-analysis" agent skill from https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysis into .claude/skills/sql-root-cause-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sql-root-cause-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install zj-unicom-ai/UniEmployee sql-root-cause-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee.git skills-src && mkdir -p .agents/skills && cp -r skills-src/backend/skills/sql-root-cause-analysis .agents/skills/sql-root-cause-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sql-root-cause-analysis" agent skill from https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysis into .agents/skills/sql-root-cause-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sql-root-cause-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install zj-unicom-ai/UniEmployee sql-root-cause-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/backend/skills/sql-root-cause-analysis .cursor/skills/sql-root-cause-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sql-root-cause-analysis" agent skill from https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysis into .cursor/skills/sql-root-cause-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sql-root-cause-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/zj-unicom-ai/UniEmployee.git --path backend/skills/sql-root-cause-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install zj-unicom-ai/UniEmployee sql-root-cause-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/backend/skills/sql-root-cause-analysis .gemini/skills/sql-root-cause-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sql-root-cause-analysis" agent skill from https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysis into .gemini/skills/sql-root-cause-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sql-root-cause-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install zj-unicom-ai/UniEmployee sql-root-cause-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee.git skills-src && mkdir -p .github/skills && cp -r skills-src/backend/skills/sql-root-cause-analysis .github/skills/sql-root-cause-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sql-root-cause-analysis" agent skill from https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysis into .github/skills/sql-root-cause-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sql-root-cause-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install zj-unicom-ai/UniEmployee sql-root-cause-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/backend/skills/sql-root-cause-analysis .opencode/skills/sql-root-cause-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sql-root-cause-analysis" agent skill from https://github.com/zj-unicom-ai/UniEmployee/tree/main/backend/skills/sql-root-cause-analysis into .opencode/skills/sql-root-cause-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sql-root-cause-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sql-root-cause-analysisSQL 版归因分析技能。当用户问为什么、指标异常、趋势下滑/增长、KPI 未达标、营收/订单/转化/成本波动时使用. An agent skill from zj-unicom-ai/UniEmployee.
SQL Root Cause Analysis is an agent skill from zj-unicom-ai/UniEmployee. SQL 版归因分析技能。当用户问为什么、指标异常、趋势下滑/增长、KPI 未达标、营收/订单/转化/成本波动时使用。
Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering SQL, Root cause analysis and OKRs and executive reporting. It works with SQL. The repository describes itself as: 面向企业的数字员工构建与运行平台:把专业员工的经验、流程与判断标准,固化为可随时上岗、可配置、可审批、可观测的 AI 数字员工。 The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit abd8ed0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
SQL Root Cause Analysis loads about 433 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 115 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from zj-unicom-ai/UniEmployee at commit abd8ed0, republished under its MIT licence (© zj-unicom-ai). 115 words, ~433 tokens.
.claude/skills/sql-root-cause-analysis/SKILL.md (or your agent's skills folder).你是数据分析师。遇到“为什么”“下降原因”“增长来自哪里”“异常波动”“KPI 未达标”等问题时,必须按本规程做归因分析。只使用小数可用的 SQL / 表格 / 知识库 / 连接器工具,禁止使用 run_python、文件系统和本地脚本。
先从用户问题中识别:
口径不清但可合理假设时,先说明假设后继续;缺少关键字段时,先检索 schema 再判断。
sql_db_smart_search(user_query="用户原始问题") 获取相关表结构。sql_db_table_relationship(table_names="...")。sql_db_profile(table_names="..."),确认行数、字段非空率、时间范围和数值范围。sql_db_quality_check(query="核心 SQL")。如果样本量小、缺失多或结果为空,后续结论必须降级。先跑总览 SQL,确认异常是否真实存在:
如果异常不存在,直接说明“当前数据不支持异常判断”,不要继续编造原因。
对每个可用维度分别计算:
优先下钻这些维度:
贡献度公式:
维度项变化量 / 总体变化量
总体变化量为 0 时,不计算贡献度,改用当前值占比和变化率解释。
当指标是收入、销售额、GMV 等金额类指标时,尽量拆成:
判断方向:
输出必须包含四段:
© zj-unicom-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in backend/skills/sql-root-cause-analysis of zj-unicom-ai/UniEmployee.
Open the folder on GitHubat commit abd8ed0
SQL Root Cause Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| SQL Root Cause Analysis this skillzj-unicom-ai/UniEmployee | 358 | — | ~433 | Automated safety check: Pass | MIT | |
| Logfire Querypydantic/skills | 140 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Semantic Analystsidequery/sidemantic | 129 | — | ~982 | Automated safety check: Pass | AGPL-3.0 | |
| Advanced Analytics Dashboardsickn33/agentic-awesome-skills | 47k | 1 repos | ~3.3k | Automated safety check: Pass | MIT | |
| Code Nest Project Specxiaou61/Code-Nest | 770 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Sassasjs/core | 132 | — | ~3.1k | Automated safety check: Pass | MIT |
pydantic/skills
Query and analyze Logfire telemetry data — traces, logs, spans, metrics, summaries, and SQL results.
sidequery/sidemantic
Answer analytical, KPI, metric, trend, cohort, and business-performance questions through a Sidemantic semantic layer.
sickn33/agentic-awesome-skills
Dashboard metric register: metric, source module, formula, period, value, target, trend, owner and last-updated, as CSV, SQL, JSON Schema or Notion on request.
xiaou61/Code-Nest
Code-Nest 多模块全栈项目协作规范与落点导航。Use when modifying this repository for feature development, bug fixing, refactor, API change, SQL migration, or frontend-backend联调 so changes land in the correct module…
sasjs/core
Expert guidance for the SAS programming language - DATA step, PROC SQL, macro language, formats, ODS, and common procedures.
totvs/engpro-advpl-tlpp-skills
Queries the TOTVS Protheus ERP data dictionary for tables, fields, indexes, parameters, triggers and lookups, including impact checks during refactoring.
zj-unicom-ai/UniEmployee
Prepares account managers for visits to government and enterprise customers: looks up the customer file, matches products, builds a Word solution document and files visit minutes.
zj-unicom-ai/UniEmployee
Exports the article list and original article text from a Tencent ima knowledge base through a logged-in Chrome session, using browser automation.
zj-unicom-ai/UniEmployee
Produces a full business health analysis from sales, finance, inventory and customer CSV files: core KPIs, monthly trends, drill-downs and recommendations.
zj-unicom-ai/UniEmployee
Produces a competitor benchmarking dashboard as an HTML page with an ECharts price comparison, from built-in profile cards plus fresh web research.
zj-unicom-ai/UniEmployee
Analyzes insurance operating data such as premium, loss ratio, renewal rate and expense ratio by branch, product and channel, flags anomalies and builds an HTML dashboard.
zj-unicom-ai/UniEmployee
Assesses a reported market event such as a competitor price cut, new launch or negative press, verifies it, grades urgency from P0 to P2 and produces a short alert card.
Works with
SQL 版归因分析技能。当用户问为什么、指标异常、趋势下滑/增长、KPI 未达标、营收/订单/转化/成本波动时使用. An agent skill from zj-unicom-ai/UniEmployee. SQL Root Cause Analysis is an agent skill from zj-unicom-ai/UniEmployee.
SQL Root Cause Analysis fits situations like: tasks that involve SQL; tasks that involve Root cause analysis; tasks that involve OKRs and executive reporting.
Run `npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a claude-code`. Or copy the skill folder (backend/skills/sql-root-cause-analysis in zj-unicom-ai/UniEmployee) into .claude/skills/sql-root-cause-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a codex`. Or copy the skill folder (backend/skills/sql-root-cause-analysis in zj-unicom-ai/UniEmployee) into .agents/skills/sql-root-cause-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zj-unicom-ai/UniEmployee --skill sql-root-cause-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sql-root-cause-analysis, .gemini/skills/sql-root-cause-analysis, .github/skills/sql-root-cause-analysis and .opencode/skills/sql-root-cause-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: SQL Root Cause Analysis is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
SQL Root Cause Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 433 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with SQL Root Cause Analysis: Logfire Query (pydantic/skills, 140 stars), Semantic Analyst (sidequery/sidemantic, 129 stars), Advanced Analytics Dashboard (sickn33/agentic-awesome-skills, 47k stars) and Code Nest Project Spec (xiaou61/Code-Nest, 770 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
zj-unicom-ai (a GitHub organization) maintains it in zj-unicom-ai/UniEmployee, which has 358 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 8, 2026.
Source: zj-unicom-ai/UniEmployee on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.