AgentSkillsCN

skill-metrics-manager

掌握项目指标的收集与管理能力——包括执行审计、创建新指标、开展状态分析等。

SKILL.md
--- frontmatter
name: skill-metrics-manager
description: プロジェクトのメトリクス収集(監査の実行、新規メトリクスの作成、ステータス分析)を管理するスキル。

Skill: Metrics Manager

Description

This skill manages the project's metrics collection system. It allows you to run audits (measurements) and create new metric collectors. Use this skill when the user asks to:

  • "Check the metrics" or "Run an audit".
  • "Add a new metric" or "Measure something new".
  • "Analyze the project's status".

Usage

1. Run Audit (Measurement)

To collect current metrics and save them to the history:

bash
.gemini/skills/skill-metrics-manager/scripts/run-audit.sh

This script will:

  1. Execute all registered collectors.
  2. Update .ops/audit_logs/metrics.json (latest).
  3. Archive the result to .ops/audit_logs/history/metrics_YYYYMMDD-HHMMSS.json.

2. Add New Metric

To create a new collector script:

bash
.gemini/skills/skill-metrics-manager/scripts/create-collector.sh [metric_name]
  • metric_name: A short, descriptive name (e.g., check_todos, python_coverage).
  • The script is created in .ops/metrics/collectors/.
  • Action: After running this command, you MUST edit the generated file to implement the logic.

Metric Definitions