umbraco-global-context

Generate Umbraco global context tokens, implementations, and extension manifests.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/albanistrefi/umbraco_CLI --skill umbraco-global-context-albanistrefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-global-context
Source: https://github.com/albanistrefi/umbraco_CLI/tree/main/skills/extensions/umbraco-global-context
Command: npx skills add https://github.com/albanistrefi/umbraco_CLI --skill umbraco-global-context-albanistrefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the challenge of sharing shared, type-safe state and functions across the Umbraco backoffice without duplicating logic across multiple extensions.

Core Features & Use Cases

  • Design global context state: Define what data should persist for the entire backoffice session (e.g., centralized service state or shared flags).
  • Generate context token and implementation: Create a context token and a global context class following Umbraco’s extension patterns.
  • Register the extension manifest: Publish the global context via the package manifest so backoffice consumers can reliably use it.
  • Use case: Coordinate communication between UI components where multiple plugins need to read and update the same shared session-level state.

Quick Start

Generate an Umbraco global context package by following the latest official global context documentation and output the token, implementation, and manifest files.

Frequently Asked Questions about umbraco-global-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share state between Umbraco backoffice extensions?

To share state between Umbraco backoffice extensions, implement a global context that provides a persistent, session-scoped shared state and API surface for cross-extension coordination. This prevents logic duplication across multiple plugins.

What is a global context in the Umbraco backoffice?

A global context in the Umbraco backoffice is a persistent, session-scoped shared state and API surface. It enables centralized service state and shared functions available throughout the session for cross-extension coordination.

How do I register a global context extension manifest in Umbraco?

To register a global context extension manifest in Umbraco, generate a context token and implementation class, then publish the globalContext extension via the package manifest so backoffice consumers can reliably access the shared state.

Do I need a context token to implement type-safe state in Umbraco?

Yes, you need a context token to implement type-safe state in Umbraco. Creating the context token and a global context class follows Umbraco’s extension patterns, ensuring shared session-level state is type-safe across consumers.

When should I use a global context instead of local component state in Umbraco?

Use a global context instead of local component state in Umbraco when multiple UI components or plugins need to read and update the same shared session-level state, requiring cross-extension coordination and centralized service state.