fast-dev

A setup tool for speeding up Kibana plugin development with a mock server, Storybook for testing interface components, and Jest test mocks.

In plain words
What is it for?
Use it to develop server routes with simulated APIs, preview React components in isolation, and run unit tests with mocked services.
Why use it?
It reduces waiting for Kibana to restart and lets you work on routes, interfaces, and tests with less dependence on a full Kibana and Elasticsearch setup.

Command

Part of the kibana-plugin-helper plugin — 1 skill, 8 commands, 5 agents shipped together

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 commands/ch-bas/kibana-plugin-helper/fast-dev
Clone the repo
git clone --depth 1 https://github.com/ch-bas/kibana-plugin-helper

Or install kibana-plugin-helper, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 5 agents.

Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,027 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.00031 $0.01027
Opus 5 $0.00015 $0.00513
Sonnet 5 $0.00006 $0.00205
Haiku 4.5 $0.00003 $0.00103

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

Security

Grade A, and why

fast-dev 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 http://localhost:3000/api/your_plugin/items
commands/fast-dev.md · 160 lines

How it starts

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

Set Up Fast Development Environment

Configure your plugin for maximum development speed. Ask the user:

  1. What's your biggest bottleneck?

    • Waiting for Kibana to start
    • Route changes requiring restarts
    • Testing UI components
    • Running integration tests
    • All of the above
  2. Do you have Elasticsearch running locally?

    • Yes (we'll connect the mock server to it)
    • No (we'll use fully mocked ES)
  3. Which parts of your plugin are you actively developing?

    • Server routes
    • React components
    • Saved object types
    • Embeddables
    • All of the above

Generation Steps

Based on answers, generate the appropriate setup:

For Route Development: Mock Server

Create dev/mock-server/ with the mock server that simulates Kibana's core APIs:

# Start mock server (< 1 second startup)
cd dev/mock-server && npm install && npm start

Routes are available at http://localhost:3000/api/your_plugin/... with hot reload.

For UI Development: Storybook

Create .storybook/ config and example stories:

# Run Storybook (no Kibana needed)
yarn storybook your-plugin

For Unit Tests: Jest with Mocks

Create test/mocks/ with pre-configured Kibana core mocks:

# Run tests in watch mode (instant feedback)
yarn jest plugins/your-plugin --watch

For Faster Kibana Startup: Optimized Config

Create kibana.dev.yml with disabled plugins and optimized settings:

# Start Kibana with minimal plugins
yarn start --config kibana.dev.yml

For Integration Tests: Functional Test Config

Create test/api_integration/config.ts for lighter-weight API testing.

Files to Generate

Depending on selections, create:

your-plugin/
├── dev/
│   └── mock-server/           # Standalone route testing
│       ├── mock-server.mjs
│       ├── package.json
│       └── README.md
├── .storybook/                # UI component development
│   ├── main.ts
│   └── preview.tsx
├── test/
│   ├── mocks/                 # Kibana core mocks for Jest
│   │   ├── core_mocks.ts
│   │   ├── es_client_mock.ts
│   │   └── saved_objects_mock.ts
│   └── api_integration/       # Lightweight integration tests
│       └── config.ts
├── kibana.dev.yml             # Fast Kibana startup config
└── scripts/
    └── dev.sh                 # One-command dev environment

Read the full file on GitHub · 160 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 · 160 lines · 31 tokens per session scan A b6eccac022ec

Subscribe to this mod's changes

fast-dev is a command published in the GitHub repository ch-bas/kibana-plugin-helper (3 stars, last pushed 6mo ago), licensed MIT. It adds 31 tokens to every session and 1,027 once invoked, about $0.0002 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.