Skip to content
Back to skills

Fake Rig Fixtures

ASecurity

Update fake-antminer or fake-proto-rig fixtures and verify their shared consumers.

  • 56 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
businesstestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add block/proto-fleet --skill fake-rig-fixtures --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fake Rig Fixtures?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fake Rig Fixtures
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/block-fake-rig-fixtures/badge)](https://www.skillsdirectory.com/skills/block-fake-rig-fixtures)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fake-rig-fixtures
description: Update fake-antminer or fake-proto-rig fixtures and verify their shared consumers.
---

# fake-rig-fixtures

`server/fake-antminer/` simulates the cgminer API (port 4028) and Antminer
Web API (port 80). `server/fake-proto-rig/` simulates the Proto miner REST
API. They are linked into multiple test surfaces:

- Plugin contract tests (`tests/plugin-contract/miners/`)
- E2E tests (`client/e2eTests/`)
- Local `just dev` (when virtual or fake plugins are configured)

A change that "fixes" one surface can break the others without the agent
noticing.

## What to do

1. After editing handler responses, models, or default config, identify
   which surfaces consume the fixture and run the relevant suite:
   - Plugin contract: `just test-contract`
   - ProtoFleet E2E: `just test-e2e-fleet`
   - ProtoOS E2E: `just test-e2e-protoos`
2. If the change is a new field or new endpoint, check that consumers
   under `plugin/antminer/` (or `plugin/proto/`) actually parse it. A
   silently-ignored field is the most common bug here.
3. The Antminer Web API uses digest auth with `root`/`root` defaults —
   don't change auth semantics without flagging it explicitly.

## What to avoid

- Don't add request-handler logic that depends on real-time clocks or
  external services. The fixtures must be deterministic for contract
  testing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.