metrics-adapter

metrics-adapter is a skill for Claude Code, Codex from amirtaherkhani/dev-io-mcp. It costs 0 tokens per session (252 once invoked), scanned A, original, MIT.

Instructions for recording post engagement data such as views, likes, bookmarks, shares, and comments, with optional synchronization to a remote dev.io service.

In plain words
What is it for?
They are for changing engagement counters, saving them in local JSON, and optionally sending the updated metrics to a configured HTTP service.
Why use it?
They keep local data as the primary record and define how remote failures, tokens, and stored files should be handled safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit They are for changing engagement counters, saving them in local JSON, and optionally sending the updated metrics to a configured HTTP service.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amirtaherkhani/dev-io-mcp/metrics-adapter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add amirtaherkhani/dev-io-mcp --skill metrics-adapter
Clone the repo
git clone --depth 1 https://github.com/amirtaherkhani/dev-io-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metrics-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/amirtaherkhani/dev-io-mcp/metrics-adapter/github.svg)](https://agentmods.dev/skills/amirtaherkhani/dev-io-mcp/metrics-adapter)
Your own site
<a href="https://agentmods.dev/skills/amirtaherkhani/dev-io-mcp/metrics-adapter"><img src="https://agentmods.dev/badge/skills/amirtaherkhani/dev-io-mcp/metrics-adapter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metrics-adapter

Your own site · 80×15
<a href="https://agentmods.dev/skills/amirtaherkhani/dev-io-mcp/metrics-adapter"><img src="https://agentmods.dev/badge/skills/amirtaherkhani/dev-io-mcp/metrics-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00252
Opus 5.5 $0.00000 $0.00101
Sonnet 5.5 $0.00000 $0.00050
Haiku 4.5 $0.00000 $0.00025

Measured 3mo ago against content hash 0115b7c98cc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

metrics-adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/metrics-adapter/SKILL.md · 31 lines

What it actually says

Metrics Adapter

Use this skill when working on views, likes, bookmarks, shares, comments, or remote dev.io synchronization.

Local behavior

  • Metrics are stored in data/post-metrics.json.
  • A post is identified by its Markdown file name, not an arbitrary path.
  • Supported events are view, like, bookmark, share, and comment.
  • Every update refreshes updatedAt.

Remote behavior

Remote synchronization is opt-in through:

DEV_IO_API_BASE_URL=https://your-dev-io-domain.example
DEV_IO_API_TOKEN=optional-token

The current adapter sends POST /api/posts/metrics with { file, metrics }. Treat this as an integration boundary, not proof of an official dev.io API. Do not add a new endpoint or SDK dependency based on assumption alone.

Safety and correctness

  • Persist local metrics before attempting remote synchronization.
  • Surface non-2xx remote responses as errors.
  • Do not log bearer tokens or conversation content.
  • Test the Kubernetes-backed metrics path and configured remote failure behavior.
  • Do not commit data/post-metrics.json.
  • Do not commit data/remote-posts.json; it is local runtime mapping state.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 31 lines · 0 tokens per session scan A 0115b7c98cc8

Subscribe to this mod's changes

metrics-adapter is a skill published in the GitHub repository amirtaherkhani/dev-io-mcp (0 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 252 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

metrics-adapter compared with skills from other repositories

metrics-adapter next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metrics-adapteramirtaherkhani/dev-io-mcpSkill04mo agoMITA0Claude Code, Codex
instagram-apiericrisco/rsc-harnessSkill7072d agoMITA91Claude Code, Codex
content-distributionAutomateLab-tech/content-distribution-mcpSkill429d agoMITA82Claude Code
sql-database-assistantMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A69Claude Code, Codex
own-voice-rewriteMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A193Claude Code, Codex
storyboard-designerMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A159Claude Code, Codex
video-script-writerMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A126Claude Code, Codex