Claude-code-plugins-plus-skills grammarly-migration-deep-dive

install
source · Clone the upstream repo
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jeremylongshore/claude-code-plugins-plus-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/saas-packs/grammarly-pack/skills/grammarly-migration-deep-dive" ~/.claude/skills/jeremylongshore-claude-code-plugins-plus-skills-grammarly-migration-deep-dive && rm -rf "$T"
manifest: plugins/saas-packs/grammarly-pack/skills/grammarly-migration-deep-dive/SKILL.md
source content

Grammarly Migration Deep Dive

Overview

The Grammarly Text Editor SDK was deprecated January 2024. Current APIs are Writing Score (v2), AI Detection (v1), and Plagiarism Detection (v1). This skill covers migrating from the deprecated SDK to the current REST APIs.

Migration: Text Editor SDK to REST APIs

Before (Deprecated SDK)

<!-- The deprecated approach embedded Grammarly in text editors -->
<script src="https://cdn.grammarly.com/grammarly-sdk.js"></script>
<grammarly-editor-plugin client-id="YOUR_ID">
  <textarea></textarea>
</grammarly-editor-plugin>

After (Current REST APIs)

// Server-side scoring replaces client-side editor integration
async function scoreContent(text: string) {
  const token = await getAccessToken();
  const response = await fetch('https://api.grammarly.com/ecosystem/api/v2/scores', {
    method: 'POST',
    headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({ text }),
  });
  return response.json();
}

Key Differences

FeatureDeprecated SDKCurrent API
ExecutionClient-sideServer-side
Real-time suggestionsYesNo
Writing scoresNoYes
AI detectionNoYes
Plagiarism detectionNoYes

Resources