resim-ai/signalskills/signalflag-compose-metrics
Claude Code and agent skill by resim-ai/signalskills
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
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-metricsSemi-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
Every metric carries
skip_if_no_data:trueonly for the plan's optional rows;falsefor 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 asvideofails silently) - the plan's template; the media ("what ran") metric first in the test set; 5–20 test metrics per set
Order of work
- Start from the branch. Find the project with a paged
list_projects(whoamishows only some). Branch exists? Read its config (get_metrics_config) and keep every topic and column as-is: schemas only grow. - Topics from the plan and
Emitted, not charted. Every emit carries every column, noNone, 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[]. - Metrics row by row. No system template draws it → custom template (
templates.md), never dropped. - Validate with MCP
validate_metrics_configon 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. - Preview with
preview_metricwhere the branch has data; it checks SQL columns; costs daily query budget. - Prove it with a scratch sync. The validator can't see templates and parses SQL more loosely than import. After
check_token.pyexits 0, sync the exact files to a fresh<branch>-scratch-<yyyymmdd-hhmm>(metrics.sync_config, snippet inconfig-reference.md); accepted there = accepted on the branch, bar step 1's additive check. - Fill the brief's `## Config`: path, topics and their columns, sets, dashboards, what was previewed.
Traps
| Symptom | Cause | |
|---|---|---|
| "unknown template foo.liquid" at sync | Template file isn't in .resim/metrics/templates/ | |
| Status check silently wrong | A 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 sync | A topic or column from the branch's live config was dropped or retyped | |
Custom chart RENDER_ERROR json_parse_failed | Server Liquid has no json filter; see templates.md | |
| Validator passes, sync fails to parse | Stricter 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
- SKILL.md in the repositoryCheckingskills/signalflag-compose-metrics/SKILL.md
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
[](https://verified-skill.com/skills/resim-ai/signalskills/signalflag-compose-metrics)