user-role-identification

Identify actors and authorization-relevant properties for proposed changes.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/machenjie/rd-skills --skill user-role-identification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: user-role-identification
Source: https://github.com/machenjie/rd-skills/tree/main/src/foundation/capabilities/user-role-identification
Command: npx skills add https://github.com/machenjie/rd-skills --skill user-role-identification

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill prevents authorization and security mistakes by ensuring you accurately identify who participates in a change and what each actor can access.

Core Features & Use Cases

  • Role inventory first: Builds a complete, typed actor catalog (end users, support, admins, operators, service accounts, external systems, and more) before designing behaviors or permissions.
  • Data visibility scoping: Forces explicit declarations of what data each actor can see, what they cannot see (including “all-aggregation” cases), and where tenant boundaries apply.
  • Risk-driven handoff: Flags when roles create IDOR, privilege escalation, trust-boundary violations, financial/compliance risks, or audit gaps, and routes to the right downstream modeling skills.

Quick Start

Ask an AI to produce a role inventory for a change affecting order visibility, including actor types, authentication methods, data visibility by object/field, tenant scope, allowed/denied actions, and which downstream models must be invoked.

Frequently Asked Questions about user-role-identification

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

FAQPage Schema
How do I identify actors and access boundaries for a proposed system change?

Identifying actors requires building a typed actor catalog detailing authentication mechanisms, trust levels, and data visibility before designing behaviors. This ensures access control boundaries are explicit, preventing authorization mistakes during system modifications.

When do I need to enforce tenant boundaries at the query and write layer?

Tenant boundaries must be enforced at the query and write layer whenever multi-tenant data visibility is involved. Explicit scoping prevents unauthorized cross-tenant access by declaring exactly what data each actor can see and manipulate within their tenant scope.

How do I scope data visibility for different user roles in an RBAC system?

Scoping data visibility for RBAC requires explicitly declaring what data each actor type can see, cannot see, and aggregate. This role inventory approach forces clear visibility declarations by object and field, securing endpoints against IDOR and privilege escalation.

How do I handle webhook trust levels and external system authentication?

Handling webhook trust requires classifying external systems as typed actors with explicit authentication mechanisms and trust levels. This prevents trust-boundary violations by ensuring external calls are subject to the same authorization checks as internal service-to-service calls.

What is the best way to model permission boundaries for service-to-service calls?

Modeling permission boundaries for service-to-service calls requires treating services as typed actors with explicit goals and data visibility limits. This approach flags unclear enforcement predicates and escalates risks to dedicated threat-modeling workflows.

How do I escalate security risks when authorization enforcement predicates are unclear?

Escalating security risks when enforcement predicates are unclear involves routing the typed actor catalog to permission-boundary-modeling and threat-modeling workflows. This handoff flags audit gaps, IDOR, and privilege escalation risks for deeper analysis.