dockerhub-credentials

dockerhub-credentials is a skill for Claude Code, Codex from mock-server/mockserver-monorepo. It costs 87 tokens per session (1,152 once invoked), scanned C, original, Apache-2.0.

A workflow for creating or rotating a Docker Hub personal access token and storing the credentials in AWS Secrets Manager. Docker Hub is a service for storing and sharing Docker images.

In plain words
What is it for?
Use it to configure Docker image pushes for the MockServer project, validate Docker Hub access, and save the credentials for Buildkite.
Why use it?
It gives CI pipelines a controlled place to obtain image-publishing credentials and checks whether usable local credentials already exist.

Skill for Claude CodeCodex

About the project

MockServer is a testing server and proxy that imitates APIs, records and changes network traffic, and deliberately introduces failures. It is for developers testing applications against unavailable dependencies, debugging requests, and checking how systems handle degraded services across several network protocols. The catalogue add-ons help operate, configure, and test MockServer.

mock-server/mockserver-monorepo · 4,965 stars · on GitHub · mock-server.com

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/mock-server/mockserver-monorepo/dockerhub-credentials
Any agent
npx skills add mock-server/mockserver-monorepo --skill dockerhub-credentials
Clone the repo
git clone --depth 1 https://github.com/mock-server/mockserver-monorepo

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 dockerhub-credentials

README.md
[![agentmods](https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/dockerhub-credentials.svg)](https://agentmods.dev/skills/mock-server/mockserver-monorepo/dockerhub-credentials)
Your own site
<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/dockerhub-credentials"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/dockerhub-credentials.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,152 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.1 $0.00087 $0.01152
Opus 5 $0.00044 $0.00576
Sonnet 5 $0.00017 $0.00230
Haiku 4.5 $0.00009 $0.00115

Measured 6d ago against content hash 7f16645f25dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

dockerhub-credentials scanned grade C 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 6d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

# Try to extract credentials (the helper name comes from credsStore above)
.opencode/skills/dockerhub-credentials/SKILL.md · 118 lines

How it starts

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

Store Docker Hub Credentials in AWS Secrets Manager

This skill guides you through creating (or rotating) Docker Hub credentials and storing them in AWS Secrets Manager (mockserver-build/dockerhub) for use by Buildkite pipelines.

Prerequisites

  • AWS CLI installed and configured with the mockserver-build SSO profile
  • Authenticated to AWS: aws sso login --profile mockserver-build
  • Docker Hub account with push access to the mockserver/mockserver repository
  • Terraform resources deployed (the aws_secretsmanager_secret.dockerhub resource in terraform/buildkite-agents/build-secrets.tf must exist)

Step 1: Try Local Docker Credentials (Optional Shortcut)

Before asking the user to create a new token, check if Docker Hub credentials are already available locally:

# Check what credential store is configured
cat ~/.docker/config.json | python3 -c "import sys,json; print(json.load(sys.stdin).get('credsStore','none'))"

# Try to extract credentials (the helper name comes from credsStore above)
echo "https://index.docker.io/v1/" | docker-credential-desktop get 2>/dev/null

If credentials are found, ask the user if they want to use them. Note that credentials from Docker Desktop may be session tokens rather than reusable PATs — prefer creating a dedicated PAT in Step 2 for production use.

Step 2: Create a Docker Hub Personal Access Token

If no local credentials are available (or the user wants a fresh token):

  1. Instruct the user to navigate to Docker Hub:
    • URL: https://app.docker.com/settings/personal-access-tokens
    • Or: Docker Hub → Avatar → Account Settings → Personal Access Tokens
  2. Click Generate New Token
  3. Settings:
    • Description: mockserver-ci (or similar)
    • Permissions: Read & Write (needed to push images)
    • Expiration: Choose based on rotation policy (recommended: 1 year)
  4. Copy the generated token (format: dckr_pat_...)

Ask the user to provide:

  • Docker Hub username
  • Personal Access Token

Read the full file on GitHub · 118 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. 6d ago First seen · 118 lines · 87 tokens per session scan C 7f16645f25dc

Subscribe to this mod's changes

dockerhub-credentials is a skill published in the GitHub repository mock-server/mockserver-monorepo (4,965 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 1,152 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

plano-deployment-security

Apply Plano deployment and production security practices. Use for Docker networking, state storage choices, readiness checks, and environment-based secret handling.

katanemo/plano · 32 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

securing-kubernetes-on-cloud

This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…

xalgorix/xalgorix · 80 tokens

detecting-privilege-escalation-in-kubernetes-pods

Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.

xalgorix/xalgorix · 40 tokens

implementing-rbac-hardening-for-kubernetes

Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.

xalgorix/xalgorix · 41 tokens

docker-socket-mount

Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.

PurpleAILAB/Decepticon · 67 tokens