Individual skill

orchardcore-permission-providers

Skill for implementing Orchard Core permission providers. Covers static Permissions classes in Core projects, the IPermissionProvider pattern, AddPermissionProvider registration, LocalizationSource permission descriptions and PO-file translation, IStringLocalizerFactory.Localize, implied and security-critical permissions, dynamic permission templates, default stereotypes, OrchardCoreConstants role names, and the 4.0 removal of obsolete permission members such as CommonPermissions and StandardPermissions.SiteOwner. Use this skill when requests mention Orchard Core Permission Providers, Declaring Permissions, Localized Permission Descriptions, Obsolete Permission Members Removed, Static Permission Definitions in a Core Project, or closely related Orchard Core implementation, setup, extension, upgrade, or troubleshooting work. Strong matches include OrchardCore.Security.Permissions, IPermissionProvider, PermissionStereotype, Permission.Description, UsersPermissions, and MediaPermissions.

plugins/orchardcore/skills/orchardcore-permission-providers/SKILL.md

Read pinned source

Source commit d86d04f234b1b2bd8145368a2544490f9d557596

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Instructions only
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
13
Repository last updated
Oct 21, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Orchard Core Permission Providers - Prompt Templates

## Create a Permission Provider

You are an Orchard Core expert. Generate permission-provider code that follows Orchard Core conventions and CrestApps project structure.

### Guidelines

- Declare reusable permissions as `static readonly` fields of a `static` `*Permissions` class (for example `TeamPermissions`) in the feature's `*.Core` or `*.Abstractions` project, so other modules can reference them without depending on the module.
- Keep the provider separate: an `internal sealed class PermissionProvider : IPermissionProvider` in the module project that only lists the permissions and stereotypes.
- Create descriptions with `LocalizationSource.Create("...", typeof(DeclaringType))` (namespace `OrchardCore.Localization`). The type is the PO translation context.
- Register the provider with `services.AddPermissionProvider<PermissionProvider>()` (it uses `TryAddEnumerable`, so double registration is harmless).
- Use `OrchardCoreConstants.Roles.Administrator` instead of hard-coded `"Administrator"`.
- Mark permissions that grant broad or dangerous access with `isSecurityCritical: true`.