resim-ai/signalskills/signalflag-compose-metrics

Claude Code and agent skill by resim-ai/signalskills

Trust tier 3
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when a SignalFlag (formerly ReSim) brief has an approved Metrics plan and its Config section is pending — writing or editing .resim/metrics/config.resim.yml, topics, SQL metrics, metrics sets, dashboards, status checks or custom Liquid/Plotly templates. A repo that already uploads and wants a metric added or changed → signalflag-update-metrics.

Install

npx vskill@latest install resim-ai/signalskills/signalflag-compose-metrics

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as resim-ai/signalskills/signalflag-compose-metrics.

signalflag-compose-metrics

Turns the Metrics plan into the synced config. Syntax, columns, queries: config-reference.md, templates.md. Previewing in depth: the MCP's author-metrics-config skill.

Where things go

.resim/metrics/config.resim.yml # the SDK's default: Batch(...) syncs it on enter
.resim/metrics/templates/*.liquid # custom templates; nowhere else

Every metric carries

  • skip_if_no_data: true only for the plan's optional rows; false for required and status-checked ones. Each required topic also gets a presence gate (config-reference.md): missing data otherwise passes
  • one-line description:, ≤ 120 chars
  • units: on scalars
  • media typed by file, column and template: GIF → image, MP4 → video (GIF as video fails silently)
  • the plan's template; the media ("what ran") metric first in the test set; 5–20 test metrics per set

Order of work

  1. Start from the branch. Find the project with a paged list_projects (whoami shows only some). Branch exists? Read its config (get_metrics_config) and keep every topic and column as-is: schemas only grow.
  2. Topics from the plan and Emitted, not charted. Every emit carries every column, no None, so a field only some rows have gets its own topic; data-first leans long-format (name, value). Event topics: event: true + name, description, status, tags, metrics: metric[].
  3. Metrics row by row. No system template draws it → custom template (templates.md), never dropped.
  4. Validate with MCP validate_metrics_config on the brief's branch. No branch yet? Use any branch; "topic X would be removed" is that branch's history. Validate the file you wrote, not an edited copy.
  5. Preview with preview_metric where the branch has data; it checks SQL columns; costs daily query budget.
  6. Prove it with a scratch sync. The validator can't see templates and parses SQL more loosely than import. After check_token.py exits 0, sync the exact files to a fresh <branch>-scratch-<yyyymmdd-hhmm> (metrics.sync_config, snippet in config-reference.md); accepted there = accepted on the branch, bar step 1's additive check.
  7. Fill the brief's `## Config`: path, topics and their columns, sets, dashboards, what was previewed.

Traps

SymptomCause
"unknown template foo.liquid" at syncTemplate file isn't in .resim/metrics/templates/
Status check silently wrongA status query takes exactly one ?
Chart is an XY path (x, y both positions)Not a line; a custom template
Project "doesn't exist"whoami list is partial; page list_projects
Removal error at syncA topic or column from the branch's live config was dropped or retyped
Custom chart RENDER_ERROR json_parse_failedServer Liquid has no json filter; see templates.md
Validator passes, sync fails to parseStricter parser at import, e.g. VALUES ('a'), ('b') needs the parentheses

Next: signalflag-ingest; its Batch syncs the config.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • templateCustom templates for code generation

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/resim-ai/signalskills/signalflag-compose-metrics/badge)](https://verified-skill.com/skills/resim-ai/signalskills/signalflag-compose-metrics)

Something wrong with this skill or its page? Tell us.