umbraco-context-api

Explain and demonstrate the Umbraco Context API for backoffice component communication.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers understand and implement the Context API in Umbraco backoffice, enabling better data sharing and communication between components.

Core Features & Use Cases

  • Understand Context API: Learn the core concepts of Umbraco's Context API.
  • Consume Context: Implement patterns to access data and services from parent components.
  • Provide Context: Implement patterns to make data and services available to descendant components.
  • Use Case: A developer needs to display user information in a custom backoffice section. They can use the Context API to consume the UMB_CURRENT_USER_CONTEXT and display the user's name and avatar.

Quick Start

Fetch the latest documentation for the Umbraco Context API from the provided URLs.

Frequently Asked Questions about umbraco-context-api

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

FAQPage Schema
How do I share data between components in the Umbraco backoffice?

The Umbraco Context API enables inter-component communication within the backoffice by allowing components to provide and consume data dynamically. You can use it to share services or state across parent and descendant components.

What is the Context API in Umbraco used for?

The Umbraco Context API is used for inter-component communication, allowing developers to share data and services between backoffice components. It provides specific patterns for consuming and providing context.

How do I consume context in an Umbraco backoffice extension?

You can consume Umbraco context using subscription patterns for dynamic updates or one-time patterns for static retrieval. This allows components to access shared data like the current user's information.

How do I provide context to descendant components in Umbraco?

You can provide context to descendant components in Umbraco using Context Tokens. This provision pattern makes specified data and services available to any nested components within your extension.

Can I access current user information in the Umbraco backoffice using the Context API?

Yes, you can consume the UMB_CURRENT_USER_CONTEXT to access and display current user information. This allows you to retrieve data like the user's name and avatar in custom backoffice sections.