publish-mock-server
БесплатноБез исполняемых скриптовНе проверенBuild and publish the mock-server Docker image to GitHub Container Registry. Use when mock server fixtures or code have changed and need to be published.
от vfarcic★ 340 звёзд на GitHubОб этом скилле
Publish Mock Server
Build and publish the mock-server Docker image to ghcr.io/vfarcic/dot-ai-mock-server:latest.
Prerequisites
- Docker is installed and running (use
sudo dockerif your user is not in thedockergroup) - Authenticated to ghcr.io. The simplest path is to reuse the
ghtoken (needswrite:packagesscope):gh auth token | docker login ghcr.io -u vfarcic --password-stdin
Steps
Run all commands from the repository root. The build context is the
mock-server/directory (relative — do NOT hardcode an absolute path).
Set up a multi-arch builder (one-time per machine)
The default
dockerdriver cannot push a multi-platform manifest, and buildingarm64on anamd64host needs QEMU. Register the emulator and create a container-driver builder:docker run --privileged --rm tonistiigi/binfmt --install arm64 docker buildx create --name mockbuilder --driver docker-container --use --bootstrapBuild and push multi-arch Docker image
Tag both
latestand the current dot-ai release version (so downstream repos can pin to a contract version instead of a digest). Derive the version from the rootpackage.json:VERSION=$(node -p "require('./package.json').version") docker buildx build --builder mockbuilder \ --platform linux/amd64,linux/arm64 \ -t ghcr.io/vfarcic/dot-ai-mock-server:latest \ -t ghcr.io/vfarcic/dot-ai-mock-server:$VERSION \ --push mock-serverVerify the push
Confirm both tags resolve to the same digest and carry both platforms:
docker buildx imagetools inspect ghcr.io/vfarcic/dot-ai-mock-server:latestNote the manifest-list digest (
sha256:…) — downstream repos pin to it.
Usage
After publishing, consumers (like dot-ai-ui) can use:
services:
mock-api:
image: ghcr.io/vfarcic/dot-ai-mock-server:latest
ports:
- "3001:3001"
When to Publish
Run this skill when:
- Fixtures are added or modified in
mock-server/fixtures/ - Mock server code changes (
server.ts,routes.ts) - API schemas change that affect mock responses
Notes
- Publishes
latestplus an immutable version tag matching the dot-ai release (e.g.1.22.0).latestis mutable; downstream repos should pin to the version tag or the digest for reproducible tests. - Publishing is manual (not wired into CI/release), so re-run this skill after merging any change that affects the mock contract — cutting a dot-ai release does NOT rebuild the image.
- Image is ~230MB (Node.js alpine + fixtures)
Установить publish-mock-server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл publish-mock-server?
Build and publish the mock-server Docker image to GitHub Container Registry. Use when mock server fixtures or code have changed and need to be published.
Как установить скилл publish-mock-server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл publish-mock-server запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic