login

A login procedure for the Nometria deployment platform. It checks for an existing API key or token and explains how to create or provide one when authentication is missing.

In plain words
What is it for?
Checking environment variables, local files, or Nometria CLI credentials, and guiding the user to create an API key in Nometria settings.
Why use it?
It prevents deployment commands from failing because credentials were not configured. It also identifies where an existing credential was found before asking whether to replace it.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/nometria/claude-code-plugin/login
Any agent
npx skills add nometria/claude-code-plugin --skill login
Clone the repo
git clone --depth 1 https://github.com/nometria/claude-code-plugin

Made for: Claude Code, Codex.

Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00008 $0.00772
Opus 5 $0.00004 $0.00386
Sonnet 5 $0.00002 $0.00154
Haiku 4.5 $0.00001 $0.00077

Measured 2d ago against content hash ed91fbaee143, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

login scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST https://app.nometria.com/listUserMigrations \
skills/login/SKILL.md · 99 lines

How it starts

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

Nometria Login

Help the user set up their Nometria API token for deployments.

Step 1: Check existing token

# Check environment (API key or JWT)
echo "API_KEY: $([ -n "$NOMETRIA_API_KEY" ] && echo 'set' || echo 'not set')"
echo "TOKEN: $([ -n "$NOMETRIA_TOKEN" ] && echo 'set' || echo 'not set')"

# Check .env
grep -s 'NOMETRIA_API_KEY\|NOMETRIA_TOKEN' .env .env.local 2>/dev/null && echo "Found in .env" || echo ".env: not found"

# Check nom CLI credentials
cat ~/.nometria/credentials.json 2>/dev/null && echo "Found ~/.nometria/credentials.json" || echo "~/.nometria/credentials.json: not found"

If a token already exists, tell the user they're already authenticated and show which source it was found in. Ask if they want to update it.

Step 2: Get the token

Tell the user:

To get your Nometria API key:

  1. Go to https://nometria.com/settings/api-keys
  2. Sign in to your account
  3. Click Generate New Key
  4. Copy the key and paste it here

Your key is stored locally and never sent anywhere except the Nometria API. Alternatively, you can use nom login from the CLI.

Wait for the user to provide the token. They will paste it in the chat.

Step 3: Validate the token

Once the user provides a token, validate it by making a test API call:

curl -s -X POST https://app.nometria.com/listUserMigrations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <USER_TOKEN>" \
  -d '{}'

If the response contains "success": true, the token is valid. If it returns 401 or an error, tell the user the token is invalid and ask them to try again.

Step 4: Store the token

If the current directory has a .env file, append to it:

NOMETRIA_API_KEY=<key>

If no .env exists, create .env with the key.

Also check if .gitignore contains .env. If not, warn the user:

⚠️ Make sure .env is in your .gitignore to avoid committing your token.

Step 5: Create workspace config

If no nometria.json exists and the user has migrations, ask if they want to link this workspace to one of their apps. If yes, create nometria.json:

Read the full file on GitHub · 99 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. 2d ago First seen · 99 lines · 8 tokens per session scan A ed91fbaee143

Subscribe to this mod's changes

login is a skill published in the GitHub repository nometria/claude-code-plugin (3 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 772 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens