vercel-ms

vercel-ms is a skill for Claude Code, Codex from DemboNauta/skill-doc-generator. It costs 74 tokens per session (1,014 once invoked), scanned A, original, MIT.

A guide to the npm package ms, a small JavaScript utility for converting between millisecond numbers and readable time values such as “2 days” or “1h”.

In plain words
What is it for?
Use it when parsing readable durations into milliseconds or formatting millisecond values for display in JavaScript applications.
Why use it?
It removes the need to write your own time-unit conversions and formatting code for delays, timeouts, and durations.

Skill for Claude CodeCodex

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

Good fit Use it when parsing readable durations into milliseconds or formatting millisecond values for display in JavaScript applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dembonauta/skill-doc-generator/vercel-ms
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 DemboNauta/skill-doc-generator --skill vercel-ms
Clone the repo
git clone --depth 1 https://github.com/DemboNauta/skill-doc-generator

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 vercel-ms

README.md
[![agentmods](https://agentmods.dev/badge/skills/dembonauta/skill-doc-generator/vercel-ms.svg)](https://agentmods.dev/skills/dembonauta/skill-doc-generator/vercel-ms)
Your own site
<a href="https://agentmods.dev/skills/dembonauta/skill-doc-generator/vercel-ms"><img src="https://agentmods.dev/badge/skills/dembonauta/skill-doc-generator/vercel-ms.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,014 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.00074 $0.01014
Opus 5 $0.00037 $0.00507
Sonnet 5 $0.00015 $0.00203
Haiku 4.5 $0.00007 $0.00101

Measured 8d ago against content hash 10f895881194, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

vercel-ms 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 8d 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.

examples/skills/vercel-ms/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vercel/ms — Millisecond Conversion Utility

Tiny utility (zero deps) that converts between millisecond numbers and human-readable time strings.

Install

npm install ms

Core API

import { ms, parse, format, parseStrict } from 'ms';

ms(string) → number

Parse a time string into milliseconds:

ms('2 days')   // 172800000
ms('1d')       // 86400000
ms('10h')      // 36000000
ms('2.5 hrs')  // 9000000
ms('1m')       // 60000
ms('5s')       // 5000
ms('1y')       // 31557600000
ms('-3 days')  // -259200000
ms('100')      // 100  (no unit → treated as ms)

ms(number) → string

Format milliseconds into a short string:

ms(60000)           // "1m"
ms(2 * 60000)       // "2m"
ms(-3 * 60000)      // "-3m"
ms(ms('10 hours'))  // "10h"

ms(number, { long: true }) → string

Format milliseconds into a verbose string:

ms(60000, { long: true })          // "1 minute"
ms(2 * 60000, { long: true })      // "2 minutes"
ms(ms('10 hours'), { long: true }) // "10 hours"

parse(str) / format(ms, options?)

Import separately when you only need one direction:

import { parse, format } from 'ms';

parse('1h')  // 3600000
format(2000) // "2s"
format(2000, { long: true }) // "2 seconds"

parseStrict(value: StringValue)

Like parse, but enforces TypeScript's StringValue type — rejects arbitrary strings at compile time:

import { parseStrict } from 'ms';

parseStrict('1h') // 3600000

function foo(s: string) {
  return parseStrict(s) // tsc error — s is not StringValue
}

Supported Units

Unit Accepted strings
Years years year yrs yr y
Months months month mo
Weeks weeks week w
Days days day d
Hours hours hour hrs hr h
Minutes minutes minute mins min m
Seconds seconds second secs sec s
Milliseconds milliseconds millisecond msecs msec ms

Read the full file on GitHub · 137 lines

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. 8d ago First seen · 137 lines · 74 tokens per session scan A 10f895881194

Subscribe to this mod's changes

vercel-ms is a skill published in the GitHub repository DemboNauta/skill-doc-generator (9 stars, last pushed 4mo ago), licensed MIT. It adds 74 tokens to every session and 1,014 once invoked, about $0.0004 per session on Opus 5. 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.