detect-metrics
Lists available metric functions and constructors within the yardstick package to clarify metric structures.
Install
mkdir -p .claude/skills/detect-metrics && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5016" && unzip -o skill.zip -d .claude/skills/detect-metrics && rm skill.zipInstalls to .claude/skills/detect-metrics
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Detect and list all metric functions in the yardstick package. Use when a user asks to find, list, or identify all metrics in the package.Key capabilities
- →List metric functions
- →Identify metric constructors
- →Verify exported metrics
- →Scan package for definitions
How it works
The skill uses grep commands to scan the yardstick package for metric definitions, constructors, and exported functions.
Inputs & outputs
When to use detect-metrics
- →Listing all available metric functions
- →Finding metric definitions or constructors
- →Verifying exported metrics from the NAMESPACE file
About this skill
Detect metrics
Detection commands
Find all metric definitions (recommended):
grep -E ".* <- new_.*_metric\(" R/*.R
Find available metric constructors:
grep -E "^new_.*_metric <- function" R/*.R
Check exported metrics:
grep "^export(" NAMESPACE | sed 's/export(//' | sed 's/)//'
Metric structure
Each metric has:
- Generic function calling
UseMethod() - Constructor wrap:
metric_name <- new_*_metric(metric_name, direction = "minimize"|"maximize"|"zero") - Data frame method using
*_metric_summarizer() - Vector implementation:
metric_name_vec()
Key files
R/aaa-new.R- Metric constructor definitionsR/fair-aaa.R- Groupwise metric constructorR/template.R- Metric summarizer functions
When not to use it
- →Non-yardstick package analysis
- →General R package development
Prerequisites
Limitations
- →Limited to yardstick package
How it compares
It provides automated detection of internal package structures instead of manual documentation lookup.
Compared to similar skills
detect-metrics side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| detect-metrics (this skill) | 1 | 6mo | Review | Beginner |
| backtesting-trading-strategies | 10 | 27d | Review | Intermediate |
| data-quality-frameworks | 6 | 2mo | Review | Intermediate |
| trulens-running-evaluations | 1 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
backtesting-trading-strategies
jeremylongshore
Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".
data-quality-frameworks
wshobson
Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.
trulens-running-evaluations
truera
Execute TruLens evaluations and view results
test-reporting-analytics
proffesor-for-testing
Advanced test reporting, quality dashboards, predictive analytics, trend analysis, and executive reporting for QE metrics. Use when communicating quality status, tracking trends, or making data-driven decisions.
extract-test-set
tradingstrategy-ai
Extract raw price dataframe for a test case
copilot-benchmark
jafreck
Run the Copilot agent benchmark suite against a target repo. Use when asked to run benchmarks, benchmark Lore, measure Copilot performance, compare control vs lore-enabled, or evaluate tool effectiveness.