Agent Skills: Grammarly Enterprise RBAC

|

UncategorizedID: jeremylongshore/claude-code-plugins-plus-skills/grammarly-enterprise-rbac

Install this agent skill to your local

pnpm dlx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/HEAD/plugins/saas-packs/grammarly-pack/skills/grammarly-enterprise-rbac

Skill Files

Browse the full folder contents for grammarly-enterprise-rbac.

Download Skill

Loading file tree…

plugins/saas-packs/grammarly-pack/skills/grammarly-enterprise-rbac/SKILL.md

Skill Metadata

Name
grammarly-enterprise-rbac
Description
|

Grammarly Enterprise RBAC

Overview

Manage Grammarly enterprise access with OAuth scopes and organization-level API credentials.

OAuth Scopes

| Scope | Access | |-------|--------| | scores-api:read | Read writing scores | | scores-api:write | Submit text for scoring | | ai-detection:read | Read AI detection results | | plagiarism:read | Read plagiarism results |

Instructions

Step 1: Separate Credentials Per Team

const teamClients = {
  content: new GrammarlyClient(process.env.GRAMMARLY_CONTENT_ID!, process.env.GRAMMARLY_CONTENT_SECRET!),
  marketing: new GrammarlyClient(process.env.GRAMMARLY_MARKETING_ID!, process.env.GRAMMARLY_MARKETING_SECRET!),
};

Step 2: Scope-Based Access

function canUseAPI(team: string, api: 'score' | 'ai' | 'plagiarism'): boolean {
  const permissions: Record<string, string[]> = {
    content: ['score', 'ai', 'plagiarism'],
    marketing: ['score'],
    engineering: ['score', 'ai'],
  };
  return permissions[team]?.includes(api) ?? false;
}

Resources