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 $0.00000 $0.00126
Sonnet 5 $0.00000 $0.00050
Haiku 4.5 $0.00000 $0.00025

Measured 10d ago against content hash 0115b7c98cc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 10d 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. 10d 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 1mo 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

Other skills, from other repositories

instagram-api

Use when wiring an agent into Instagram's Graph API: publishing a Reel through the create/poll/publish container dance, reading per-media insights, checking the 24h publish cap, or ingesting Reel metrics into 02-DOCS/wiki/shortform. NOT TikTok (that is tiktok-api), NOT YouTube (that is youtube-api), NOT cross-platform…

ericrisco/rsc-harness · 91 tokens

wp-plugin-rest-auth-bypass

Scan WordPress REST API plugin endpoints for unauthenticated state-changing operations — discover write endpoints (POST/PUT/PATCH/DELETE) exposed without auth, enumerate all plugin routes, and test for unauthorized content publishing, settings modification, and data leakage.

uphiago/recon-skills · 57 tokens

content-distribution

Use when the user wants to publish a post, article, or announcement to multiple platforms at once — DEV.to, Hashnode, GitHub Discussions, Reddit, Bluesky, LinkedIn, Medium, or Twitter/X. Handles platform-specific format adaptation, idempotent re-publish, per-community anti-spam rules, and scheduling. Write your…

AutomateLab-tech/content-distribution-mcp · 82 tokens

media-write

Guided co-creation writing skill. Interviews the user, drafts content section by section, generates platform-specific variants from shared source. Creates the content manifest. Works with a brief from /media-idea or accepts freeform input.

Minara-AI/media-agent · 52 tokens

media-image

Generate and manage images for posts. Uses excalidraw-skill for diagrams and illustrations (hand-drawn style). Optionally uses DALL-E for photo-style hero images. Handles platform-specific resizing with ImageMagick. Updates the content manifest with asset references.

Minara-AI/media-agent · 58 tokens

media-publish

Publish content to all configured platforms. Reads the content manifest, validates files, and invokes each platform's publish.sh with credential isolation. Supports --dry-run. Handles partial failures gracefully. Works independently — you can write markdown by hand and just use this skill.

Minara-AI/media-agent · 58 tokens