fusion-framework-mocking

fusion-framework-mocking is a skill for Claude Code, Codex from equinor/fusion-skills. It costs 165 tokens per session (1,877 once invoked), scanned A, original, MIT.

A set of test helpers for supplying predictable Fusion Framework module state, such as a signed-in user, feature flags, application context, or fake HTTP responses. Fusion Framework is a set of modules used to build applications.

In plain words
What is it for?
It is for testing login and logout behavior, application context, feature flags, bookmarks, service discovery, HTTP responses, and custom Fusion modules.
Why use it?
It lets tests run without real login credentials, service registries, network calls, or backend systems. The modules' normal setup and validation still take part in the test.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for testing login and logout behavior, application context, feature flags, bookmarks, service discovery, HTTP responses, and custom Fusion modules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/equinor/fusion-skills/fusion-framework-mocking
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.

Any agent
npx skills add equinor/fusion-skills --skill fusion-framework-mocking
Clone the repo
git clone --depth 1 https://github.com/equinor/fusion-skills

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 fusion-framework-mocking

README.md
[![agentmods](https://agentmods.dev/badge/skills/equinor/fusion-skills/fusion-framework-mocking.svg)](https://agentmods.dev/skills/equinor/fusion-skills/fusion-framework-mocking)
Your own site
<a href="https://agentmods.dev/skills/equinor/fusion-skills/fusion-framework-mocking"><img src="https://agentmods.dev/badge/skills/equinor/fusion-skills/fusion-framework-mocking.svg" alt="Measured on agentmods" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00165 $0.01877
Opus 5 $0.00082 $0.00938
Sonnet 5 $0.00033 $0.00375
Haiku 4.5 $0.00016 $0.00188

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

Security

Grade A, and why

fusion-framework-mocking scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/.experimental/fusion-framework-mocking/SKILL.md · 149 lines

How it starts

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

Fusion Framework Mocking

When to use

Use when a test needs deterministic Fusion Framework module state — a signed-in user, a current context, seeded feature flags/bookmarks, or faked HTTP responses — without a real Entra ID tenant, service registry, or backend.

Typical triggers:

  • "How do I mock useAccessToken / sign in a test user?"
  • "Seed a current context for this test"
  • "Fake this HTTP endpoint's response"
  • "Mock service discovery so the app doesn't hit the network"
  • "Add a mock for my own module"
  • "Test signed-out / login / logout behavior"
  • "Assert a middleware was called"

Implicit triggers:

  • A test imports mockFramework, mockAppModules, or any @equinor/fusion-framework-module-*/mock entry point
  • A test needs the app to boot without real credentials or a running backend
  • Writing or reviewing a *.mock.ts/mock-configurator file for a Fusion module

When not to use

  • Rendering a component/hook or configuring Vitest/Browser Mode — use fusion-framework-testing
  • dev-server.config.ts API mocking/proxying for local ffc app dev — that is dev-time only, unrelated to test-time module mocks; see fusion-developer-app
  • Asserting on one specific call (arguments, call count, reset) — that is the test runner's job (vi.spyOn, vi.fn); this skill only covers seeding module state
  • Backend/service-repo test doubles (different repo, different stack)

Required inputs

Mandatory

  • Which boundary needs faking: auth, service discovery, context, bookmarks, feature flags, HTTP, analytics, telemetry, app manifest, or a custom module
  • Test scope: parent framework (mockFramework), an app's own modules (mockAppModules), or a bespoke module graph (a module's own enable*Mock)

Conditional

  • Signed-in user details (name, username, specific token claims) when auth matters
  • Whether the test must stay fully offline (every expected request needs an answering middleware)
  • Whether an OpenAPI document already describes the API under test

Read the full file on GitHub · 149 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 149 lines · 165 tokens per session scan A fdd6ffbd19a8

Subscribe to this mod's changes

fusion-framework-mocking is a skill published in the GitHub repository equinor/fusion-skills (1 stars, last pushed today), licensed MIT. It adds 165 tokens to every session and 1,877 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.