orchardcore-crestapps-roles

orchardcore-crestapps-roles is a skill for Claude Code from CrestApps/CrestApps.AgentSkills. It costs 204 tokens per session (2,785 once invoked), scanned A, original, MIT.

An Orchard Core content part for saving one or more role names on a content item. Roles are groups used to organize user permissions in Orchard Core.

In plain words
What is it for?
Use it to add role pickers to content types, restrict available roles, validate selections, and support role values in migrations, recipes, and content-item data.
Why use it?
It avoids custom role-selection fields and adds validation for required, single, or multiple selections. It can also prevent built-in or sensitive roles from being chosen in a particular context.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the crestapps-orchardcore plugin — 138 skills shipped together

Good fit Use it to add role pickers to content types, restrict available roles, validate selections, and support role values in migrations, recipes, and content-item data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CrestApps/CrestApps.AgentSkills --skill orchardcore-crestapps-roles
Clone the repo
git clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkills

Made for: Claude Code.

Or install crestapps-orchardcore, the plugin that ships this one along with the rest of its 138 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for orchardcore-crestapps-roles

README.md
[![agentmods](https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles/github.svg)](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles)
Your own site
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for orchardcore-crestapps-roles

Your own site · 80×15
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-crestapps-roles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 204 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00204 $0.02785
Opus 5.5 $0.00082 $0.01114
Sonnet 5.5 $0.00041 $0.00557
Haiku 4.5 $0.00020 $0.00279

Measured 5d ago against content hash 99e7e17e1112, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orchardcore-crestapps-roles scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/crestapps-orchardcore/skills/orchardcore-crestapps-roles/SKILL.md · 284 lines

How it starts

The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CrestApps Roles

Add roles to content with RolePickerPart

You are an Orchard Core expert. Use the CrestApps Roles module when a content item must persist selected Orchard Core role names. RolePickerPart is a reusable content part with settings that control requiredness, selection cardinality, and which roles editors cannot select.

Guidelines

  • Install CrestApps.OrchardCore.Roles in the web or startup project.
  • Enable the exact CrestApps.OrchardCore.Roles feature (Enhanced Roles). Its manifest depends on OrchardCore.Roles and OrchardCore.Resources.
  • The reusable part name is RolePickerPart; its stored value property is RoleNames.
  • The module's migration defines RolePickerPart as attachable and reusable (display name Role Picker, default position 999), so a type can attach it more than once under different names.
  • RolePickerPart, RolePickerPartSettings and RolePickerPartContentAccessControlSettings live in CrestApps.OrchardCore.Roles.Core.Models.
  • The editor is Orchard Core's bootstrap-select dropdown with live search, plus select-all and deselect-all when multiple selection is allowed.
  • Use RolePickerPartSettings only on a RolePickerPart content-type attachment, not on the reusable part definition or an unrelated field definition.
  • Set AllowSelectMultiple to false for a single role. The display driver validates that at most one role was submitted.
  • Set Required to true only when the item cannot be meaningful without a selected role.
  • Populate ExcludedRoles for built-in or sensitive roles that should never be selectable in this context.
  • Excluded roles are removed from submitted selections by the driver. They are not a security authorization mechanism.
  • On its own, a role-picker value is content metadata, not an access-control grant. To restrict who can view an item by these roles, enable Content Access Control (see the orchardcore-content-access-control skill), which builds on this part.
  • The editor lists role names from RoleManager<IRole>, removes excluded names, and orders the choices.
  • When Content Access Control marks the picker as restricting the content (RolePickerPartContentAccessControlSettings.IsContentRestricted), the editor label defaults to Which roles can see this content, the empty text reads Any role and the hint defaults to Leave empty so everyone can see it.; a display name or hint set on the part attachment still wins. Other pickers use the part's display name as label and empty text.
  • To filter lists by the reader's roles, use ContentAccessRoles and ContentAccessRoleIndex from CrestApps.OrchardCore.Roles.Core, never a per-item check over a large list.
  • Enable CrestApps.OrchardCore.Recipes when recipe JSON Schema support for settings and the RoleNames payload is needed.
  • Use sealed classes and file-scoped namespaces in generated C# examples.

Read the full file on GitHub · 284 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed 99e7e17e1112
  2. 13d ago Changed · +55 lines · +30 tokens per session 854ca4f3bc06
  3. 1mo ago Changed · +9 lines · +23 tokens per session 26c444dbd751
  4. 3mo ago First seen · 220 lines · 151 tokens per session scan A f1d0019c005f

Subscribe to this mod's changes

orchardcore-crestapps-roles is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (14 stars, last pushed 5d ago), licensed MIT. It adds 204 tokens to every session and 2,785 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

orchardcore-crestapps-roles compared with skills from other repositories

orchardcore-crestapps-roles next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orchardcore-crestapps-rolesCrestApps/CrestApps.AgentSkillsSkill145d agoMITA204Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code