general-create-condition

Create configurable extension conditions using TypeScript and extension manifests.

5.2k|2.9k|Updated Jun 10, 2013
One-click install
npx skills add https://github.com/umbraco/Umbraco-CMS --skill general-create-condition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: general-create-condition
Source: https://github.com/umbraco/Umbraco-CMS/tree/main/src/Umbraco.Web.UI.Client/.claude/skills/general-create-condition
Command: npx skills add https://github.com/umbraco/Umbraco-CMS --skill general-create-condition

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to create and implement custom conditions that control when extensions are active within an application, streamlining feature toggling based on context.

Core Features & Use Cases

  • Custom Condition Creation: Define new rules based on application state, user permissions, or other context data.
  • Structured File Setup: Organize condition logic using TypeScript files, constants, and manifests.
  • Use Case: For instance, activate a special extension only when the user is an admin or the current section is "Content".

Quick Start

Use the skill to develop a new condition that triggers only for users with specific permissions.

Frequently Asked Questions about general-create-condition

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

FAQPage Schema
How do I create custom conditions for extension activation?

You can control extension activation by developing configurable conditions based on application context, user permissions, or predefined criteria, allowing you to dynamically toggle features within your application workflow.

How does context-based condition logic work in application extensions?

Context-based extension conditions evaluate application state and user permissions against predefined criteria to dynamically toggle feature activation, allowing extensions to load only when specific contextual requirements are met.

Do I need TypeScript to configure extension conditions?

Yes, TypeScript is required to configure extension conditions. Customizing condition logic also requires familiarity with the extension API to properly structure constants, files, and manifest integration for feature management.

What is the best way to manage feature toggling based on user permissions?

The best way to manage feature toggling based on user permissions is to build custom condition rules that evaluate context data, enabling dynamic extension activation only when specific administrative criteria are met.

Can I activate an extension only when the application section is Content?

Yes, you can activate an extension only when the application section is Content by defining a custom condition that checks the current application context, restricting feature availability to specific sections.