# Function canExecuteSkill

Skills module exports (Voyager-style skill library) - Issue #528 Split from agents.ts for file size compliance (Issue #285)

- canExecuteSkill(agentRole: AgentRole, rbac: SkillRBAC): boolean

  Checks if an agent role can execute a skill based on RBAC rules.

  #### Parameters

  - agentRole: AgentRole

    The role of the agent attempting execution

  - rbac: SkillRBAC

    The skill's RBAC configuration

  #### Returns boolean

  True if the role is allowed to execute the skill

  - Defined in packages/nexus-agents/src/agents/skills/skill-security.ts:86