Agent SkillsTracer-Cloud/opensre › cicd-analytics-demo

cicd-analytics-demo

GitHub

用于分析指定仓库过去30天的CI/CD性能与可靠性,包括执行次数、PR失败率及阻塞时间等指标。通过扫描本地工作区选择仓库并调用工具生成只读分析报告,帮助用户评估CI成本与稳定性。

core/agent_harness/prompts/skills/cicd_analytics_demo/SKILL.md Tracer-Cloud/opensre

Trigger Scenarios

用户请求分析仓库的CI/CD性能或可靠性 询问CI失败率、Flaky测试成本或默认分支构建耗时 从启动菜单选择探索仓库CI/CD表现

Install

npx skills add Tracer-Cloud/opensre --skill cicd-analytics-demo -g -y
More Options

Non-standard path

npx skills add https://github.com/Tracer-Cloud/opensre/tree/main/core/agent_harness/prompts/skills/cicd_analytics_demo -g -y

Use without installing

npx skills use Tracer-Cloud/opensre@cicd-analytics-demo

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill cicd-analytics-demo -a claude-code -g -y

安装 repo 全部 skill

npx skills add Tracer-Cloud/opensre --all -g -y

预览 repo 内 skill

npx skills add Tracer-Cloud/opensre --list

SKILL.md

Frontmatter
{
    "name": "cicd-analytics-demo",
    "tools": [
        "scan_local_git_workspace",
        "analyze_github_ci_reliability",
        "schedule_ci_reliability_loop",
        "cli_exec",
        "ask_user_choice"
    ],
    "description": "CI\/CD performance and reliability analytics for one repository over the last 30 days: executions, PR failure rate, CI-caused vs source failures, developer time blocked, default-branch red time, via analyze_github_ci_reliability; also the first-experience demo that scans the machine and picks a repository first. Use for \"analyze <repo> CI\/CD performance\", \"how reliable is our CI\", \"what does flaky CI cost us\". Not for listing currently failing checks (github-ci-health). Multi-step; load before acting."
}

══════════════════════════════════════════════════════════ CI/CD ANALYTICS DEMO SKILL — interactive-shell action agent: ══════════════════════════════════════════════════════════

WHEN TO USE:

  • The user picked "Explore a repo and analyze its CI/CD performance" from the startup demo menu, or asks to "run the CI/CD analytics demo", "analyze my repo's CI/CD performance", "show me how reliable our CI is", or "how much time does CI cost us".
  • The user names a repository and asks for its CI/CD performance, reliability, failure rate, or downtime.

USE THESE TOOLS:

  • scan_local_git_workspace
  • analyze_github_ci_reliability
  • schedule_ci_reliability_loop
  • cli_exec
  • ask_user_choice

DO NOT USE THIS SKILL FOR:

  • Fixing a failing check. Use github-ci-fix.
  • Setting up the local CI fix loop or prerequisites. Use github-ci-fix-onboarding.
  • Listing the checks that are failing right now. Use github-ci-health.

HARD RULES:

  • Every number in the reply comes from a tool result. Never estimate, round up, or invent executions, failures, rates, or minutes.
  • Never run gh, git, or shell_run for this flow; the scan and analysis tools own discovery and analysis end to end and are read-only. The analysis itself is read-only: no Slack messages, no pushes, no issue writes. Use cli_exec only for the Slack continuation in step 4.
  • The scan tool draws the workspace chart in the shell itself. Do not repeat the chart or the repository list as text; add one sentence at most.
  • analyze_github_ci_reliability renders the finished report in the shell. Output its response_text exactly (one line there) and never retype the numbers; continue to the next step.
  • If a tool reports a missing GitHub token, say the one command the user runs (opensre integrations setup github) and offer to continue afterwards. Do not fall back to a different data source.
  • Decision points use ask_user_choice with the exact option texts below. End the turn after calling it; the answer arrives as the next user message.
  • Ask each question once. When the answer arrives, continue with the next step immediately: do not reload this skill, do not restate the options, and never ask what the answer or the request "means". A repository name in the request or in the answer is the repository; go straight to step 3.

Steps, in order (headers are mandatory, see the labeling rules below). When the request already names the repository (the startup demo does the scan and the repository choice itself before submitting), start at step 3 and use headers [3/4] and [4/4] only.

  1. Scan this machine. Call scan_local_git_workspace() with no arguments. Say in one sentence what was found, using summary from the result.

  2. Pick the repository. From the scan result, candidates are repositories with a github name and has_workflows true, ordered by commits. Then call ask_user_choice with title Which repository should I analyze? and options, in this order:

    • up to three candidates as <owner/repo> (<commits> commits, CI configured)
    • Use the open-source example repository (Tracer-Cloud/opensre) If there are no candidates, offer only the example repository and say why. WAIT for the answer.
  3. Analyze CI/CD reliability. Call analyze_github_ci_reliability(owner="<owner>", repo="<repo>") for the chosen repository. In the shell the tool paints the full report itself and returns a one-line summary; do not restate the figures. Then output the tool's headline field verbatim as its own line: it already names the biggest cost. Do not compute, convert, or reword any figure yourself, and do not add a recap, bullet list, or "verified result" of your own after the headline: the next assistant text is the step 4 header.

  4. Offer what to do next. Call ask_user_choice with title What would you like to do next? and these exact options:

    • Set up an agent that reports CI/CD reliability every weekday
    • Connect OpenSRE to Slack and hand off DevOps chores for your team
    • Exit demo WAIT for the answer. On the first option, call schedule_ci_reliability_loop(owner="<owner>", repo="<repo>") for the analyzed repository, output its response_text verbatim, and stop; it schedules a weekday 08:00 local check that delivers to this shell's inbox and never posts anywhere else. Each tick is deterministic (no model turn); /loops service install keeps it running when no shell is open. On the second, call cli_exec with payload integrations verify slack; if Slack is not configured, call cli_exec with payload integrations setup slack, otherwise say it is connected. Then explain in two sentences how to hand off a chore from Slack (mention OpenSRE in a channel or DM it). Never post, reply, or send anything to Slack in this demo. On Exit demo, reply with one line and stop.

Step labeling rules (UX):

  • Before every numbered step's tool calls, emit this exact header format as assistant text in the SAME response as the tool calls, then one short status sentence:

    [n/4]

  • Never start tool calls for a new step without its header.

Version History

  • f22b81d Current 2026-09-09 05:04

Same Skill Collection

core/agent_harness/prompts/skills/architecture_audit/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix_onboarding/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix/SKILL.md
core/agent_harness/prompts/skills/github_ci_health/SKILL.md
core/agent_harness/prompts/skills/github_cli/SKILL.md
core/agent_harness/prompts/skills/github_security_fix/SKILL.md
core/agent_harness/prompts/skills/morning_report/SKILL.md
integrations/github/tools/ci_fix/SKILL.md
integrations/github/tools/github_cli/SKILL.md
integrations/github/tools/security_fix/SKILL.md
integrations/github/tools/workflow/SKILL.md
integrations/posthog/tools/skills/posthog-summary/SKILL.md
integrations/sentry/tools/skills/sentry-summary/SKILL.md
integrations/yandex_cloud/tools/SKILL.md
tools/github_cli/SKILL.md
tools/system/python_execution_tool/skills/github-star-velocity/SKILL.md

Metadata

Files
0
Version
f22b81d
Hash
76edf98e
Indexed
2026-09-09 05:04

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 23:41
浙ICP备14020137号-1 $Carte des visiteurs$