mcpbeat Sign in

Metrics Agent Skill

Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

1k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
106350
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/google-gemini/gemini-cli --skill metrics

The instruction itself

12 sections, as written by the author

Phase: The Brain (Metrics & Root-Cause Analysis)

Goal

Analyze time-series repository metrics and current repository state to identify

trends, anomalies, and opportunities for proactive improvement. You are

empowered to formulate hypotheses, rigorously investigate root causes, and

propose changes that safely improve repository health, productivity, and

maintainability.

Context

  • Time-series repository metrics are stored in

tools/gemini-cli-bot/history/metrics-timeseries.csv.

  • Recent point-in-time metrics are in

tools/gemini-cli-bot/history/metrics-before-prev.csv and the current run's

metrics.

  • Preservation Status: The orchestrator will provide a System Directive telling you whether PR creation is enabled for this run. If enabled, your proposed changes may be automatically promoted to a Pull Request. In this case, you MUST activate the 'prs' skill to generate a PR description and stage your changes. If PR creation is NOT enabled, you MUST NOT stage file changes or attempt to create a patch. Instead, simply report your findings.

Repo Policy Priorities

When analyzing data and proposing solutions, prioritize the following in order:

  • Security & Quality: Security fixes, product quality, and release

blockers.

  • Maintainer Workload: Keeping a manageable and focused workload for core

maintainers.

  • Community Collaboration: Working effectively with the external

contributor community, maintaining a close collaborative relationship, and

treating them with respect.

  • Productivity & Maintainability: Proactively recommending changes that

improve the developer experience or simplify repository maintenance, even if

no immediate "anomaly" is detected.

LLM-Powered Classification

You are explicitly authorized to use the Gemini CLI (bundle/gemini.js) within

your proposed scripts to perform classification tasks (e.g., sentiment analysis,

advanced triage, or semantic labeling).

  • Preference for Determinism: Always prefer deterministic TypeScript/Git

logic (System 1) when it can achieve equivalent quality and reliability. Use

the LLM only when heuristic or semantic understanding is required.

  • Strict Role Separation: Use Gemini CLI ONLY for classification (data

labeling). Do not use it for execution or decision-making.

  • Default Policy Enforcement: When generating scripts that invoke Gemini

CLI, they MUST NOT use the specialized tools/gemini-cli-bot/ci-policy.toml.

They should rely on the default repository policies.

Instructions

  • Load and analyze tools/gemini-cli-bot/history/metrics-timeseries.csv.
  • Identify significant anomalies or deteriorating trends over time (e.g.,

latency_pr_overall_hours steadily increasing, open_issues growing faster

than closure rates).

  • Proactive Opportunities: Even if metrics are stable, identify areas where

maintainability or productivity could be improved.

  • Cost Savings (Lowest Priority): Monitor actions_spend_minutes and Gemini

usage for significant anomalies. You may proactively recommend cost savings

for both Actions and Gemini usage, provided that other repository health and

latency priorities are satisfied first.

2. Hypothesis Testing & Deep Dive

For the single most significant identified trend or opportunity (or a small

set of highly related ones):

  • Develop Competing Hypotheses: Brainstorm multiple potential root causes or

improvement strategies.

  • Gather Evidence: Use your tools (e.g., gh CLI, GraphQL) to collect data

that supports or refutes EACH hypothesis. You may write temporary local

scripts to slice the data.

  • Select Root Cause: Identify the hypothesis or strategy most strongly

supported by the data.

3. Maintainer Workload Assessment

Before blaming or proposing reflexes that rely on maintainer action:

  • Quantify Capacity: Assess the volume of open, unactioned work (untriaged

issues, review requests) against the number of active maintainers.

  • If the ratio indicates overload, **do not propose solutions that simply

generate more pings**. Instead, prioritize systemic triage, automated routing,

or auto-closure reflexes.

4. Actor-Aware Bottleneck Identification

Before proposing an intervention, accurately identify the blocker:

  • Waiting on Author: Needs a polite nudge or closure grace period.
  • Waiting on Maintainer: Needs routing, aggregated reports, or escalation.
  • Waiting on System (CI/Infra): Needs tooling fixes or reporting.

5. Policy Critique & Evaluation

  • Review Existing Policies: Examine the existing automation in

.github/workflows/ and scripts in tools/gemini-cli-bot/reflexes/scripts/.

  • Analyze Effectiveness: Determine if current policies are achieving their

goals.

6. Investigation Conclusion

  • Summarize your findings for the Orchestrator. When modifying scripts in

tools/gemini-cli-bot/metrics/scripts/, you MUST NEVER change the output

format (comma-separated values to stdout).

Other skills for the same job

different authors, same section of the catalogue
XLSX
by anthropics
vendor ×15

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

5k tokens scripts
XLSX
by w95
×7

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

3k tokens
Raffle Winner Picker
by frostant
×5

Picks random winners from lists, spreadsheets, or Google Sheets for giveaways, raffles, and contests. Ensures fair, unbiased selection with transparency.

949 tokens
Fda Database
by christophacham
×4

Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.

32k tokens scripts
Matlab
by christophacham
×4

MATLAB and GNU Octave numerical computing for matrix operations, data analysis, visualization, and scientific computing. Use when writing MATLAB/Octave scripts for linear algebra, signal processing, image processing, differential equations, optimization, statistics, or creating scientific visualizations. Also use when the user needs help with MATLAB syntax, functions, or wants to convert between MATLAB and Python code. Scripts can be executed with MATLAB or the open-source GNU Octave interpreter.

25k tokens
Umap Learn
by ComeOnOliver
×4

UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.

14k tokens
D3 Viz
by chrisvoncsefalvay
×3

Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or interactions. Use this for bespoke visualisations beyond standard charting libraries, whether in React, Vue, Svelte, vanilla JavaScript, or any other environment.

20k tokens
Alphafold Database
by christophacham
×3

Access AlphaFold 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), for drug discovery and structural biology.

7k tokens

How to use it

Copy the folder

Take google-gemini/metrics from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.