check-simple-state

Installation
SKILL.md

Checking Simple State in ABP

When to Use

  • Make an object implementing IHasSimpleStateCheckers<TState> conditionally enabled.
  • Attach permission, authentication, feature, or global-feature requirements to menu/toolbar/permission-like state.
  • Implement a reusable custom condition that needs scoped services.
  • Evaluate many states together and use a batch checker to avoid repeated backend calls.

When Not to Use

  • Define or read tenant/edition feature values — use manage-settings-and-features.
  • Authorize a service method or controller action — use permissions-and-authorization.
  • Enable or disable a module capability before startup — use toggle-global-features.
  • Conditionally expose a setting definition — SettingDefinition does not implement IHasSimpleStateCheckers<TState>.

How it works

The state type must implement:

Installs
16
GitHub Stars
32
First Seen
Sep 6, 2026