Metrics logo

Metrics

Organization
ai-analyst-lab
metrics

Browse, search, and display metric definitions from the active dataset's metric dictionary. Trigger on "/metrics", "show me the metrics", "what metrics do we track?", "how is [metric name] calculated?", "what's the definition of [metric]?", "list all metrics", "define conversion rate", "how do we measure retention?", "show me all KPIs". Also use mid-analysis to confirm a metric's exact definition before computing it.

Overview

Publisherai-analyst-lab
Repositoryai-analyst-plugin
Skill namemetrics
Stars
34
Forks
13
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ai-analyst-lab on GitHub. Read the source before you install it.

Installation

Install the Metrics AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/metrics
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/metrics .claude/skills/metrics
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Metrics in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Metrics on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Metrics is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill: Metrics

Purpose

Browse, search, and display metric definitions from the active dataset's metric dictionary. Provides quick access to how metrics are defined, computed, and validated.

When to Use

  • User says /metrics or "show me the metrics" or "what metrics do we track?"
  • During analysis, to confirm a metric's definition before computing it
  • When writing a metric spec, to check for existing definitions

Deference rule: metric-shaped meaning questions ("what does ARR mean here?", "how is churn defined?") come here first; if the metric is not in the dictionary and the term looks organizational (a product, team, or general glossary term), hand off to the business skill before suggesting metric-spec.

Invocation

/metrics — list all metrics for the active dataset /metrics {id} — show full spec for a specific metric /metrics category={cat} — filter by category (e.g., monetization) /metrics search={term} — search metric names and descriptions

Instructions

Step 1: Load Metric Dictionary

  1. Read .knowledge/active.yaml to identify the active dataset.
  2. Read .knowledge/datasets/{active}/metrics/index.yaml for the metric list.
  3. If no metrics directory exists: "No metric dictionary for this dataset. Use the metric-spec skill to define metrics."

Step 2: Execute Command

List all (/metrics):

  • Display as a table: id, name, category, direction, validation_status
  • Group by category
  • Show total count
  • If dictionary is empty AND user mentions specific analysis context (e.g., "revenue analysis", "conversion analysis"):
    • Read .knowledge/datasets/{active}/schema.md to explore available tables/columns
    • Suggest 3-5 relevant metrics the user could define for their analysis context
    • Include suggested SQL formulas for each
    • Reference the metric-spec skill for formalization

Show specific (/metrics {id}):

  • Read .knowledge/datasets/{active}/metrics/{id}.yaml
  • Display: name, category, owner, full definition (formula, unit, direction, granularity), source tables, dimensions, guardrails, typical range, validation status
  • If metric not found:
    • Suggest closest match from index (fuzzy string match on name)
    • Fallback search strategy: Search working/, outputs/, and .knowledge/analyses/ for recent usage of the metric name
    • If found in recent work, extract the formula/definition used and offer to formalize it
    • If not found anywhere, suggest defining it via metric-spec skill

Filter by category (/metrics category=monetization):

  • Filter index by category field
  • Display filtered table
  • If no matches: list available categories and suggest closest match

Search (/metrics search=revenue):

  • Search metric names and descriptions (case-insensitive substring)
  • Display matching metrics
  • If no matches found:
    • Don't just say "not found" — be proactive
    • Read .knowledge/datasets/{active}/schema.md to explore tables/columns
    • Identify columns related to the search term (e.g., "revenue" → find total_amount, revenue, sales columns)
    • Suggest 3-5 metrics the user could define based on available data
    • Include table.column references and suggested formulas
    • Offer to define the metric via metric-spec skill

Step 3: Contextual Suggestions

After displaying metrics, suggest relevant actions:

  • "Want to validate {metric} against the current data? Use the data-profiling skill."
  • "Need to define a new metric? Use the metric-spec skill."
  • "Want to see how {metric} trends over time? Ask me to analyze it."

Edge Cases

  • No active dataset: Prompt to connect one via /connect-data
  • Empty metric dictionary: Suggest using metric-spec skill. If user mentioned specific analysis context (revenue, conversion, engagement), proactively suggest relevant metrics to define.
  • Metric referenced but not in dictionary: Search recent work for usage, extract definition if found, offer to formalize it.
  • Stale validation: Flag metrics where last_validated is >30 days ago
  • Search returns no results: Explore schema and suggest metrics related to the search term rather than just reporting "not found"

Why These Guidelines Matter

The goal is to make the metrics skill helpful in all scenarios — even when the dictionary is empty or search fails. Users often ask about metrics before they're formally defined. Instead of dead-ending with "not found," we want to:

  1. Understand user context — If they mention "revenue analysis" or search for "revenue", they're signaling what domain they care about
  2. Explore available data — Read the schema to see what's actually available
  3. Suggest concrete next steps — Provide specific metric candidates with formulas, not just generic advice
  4. Lower friction for formalization — Make it easy to go from "I need this metric" to "this metric is now defined"

This approach turns the metrics skill from a simple dictionary lookup into an intelligent assistant that helps users build their metric dictionary organically.

Frequently asked questions

What does the Metrics AI skill do?

Browse, search, and display metric definitions from the active dataset's metric dictionary. Trigger on "/metrics", "show me the metrics", "what metrics do we track?", "how is [metric name] calculated?", "what's the definition of [metric]?", "list all metrics", "define conversion rate", "how do we measure retention?", "show me all KPIs". Also use mid-analysis to confirm a metric's exact definition before computing it.

Why use Metrics on TypingMind?

Because you install it once and use it with any model. Metrics is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Metrics in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/metrics. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Metrics?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Metrics?

As many as you like. As long as a model supports skills, you can use Metrics with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Metrics AI skill free?

Yes. It is published on GitHub by ai-analyst-lab under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇