grammarly-sdk-patterns

Featured

Apply production-ready Grammarly SDK patterns for TypeScript and Python. Use when implementing Grammarly integrations, refactoring SDK usage, or establishing team coding standards for Grammarly. Trigger with phrases like "grammarly SDK patterns", "grammarly best practices", "grammarly code patterns", "idiomatic grammarly".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Grammarly SDK Patterns ## Overview Production patterns for Grammarly API: typed client, token management, text chunking for large documents, and Python integration. ## Instructions ### Step 1: Typed API Client ```typescript class GrammarlyClient { private token: string; private expiresAt: number = 0; private base = 'https://api.grammarly.com/ecosystem/api'; constructor(private clientId: string, private clientSecret: string) {} private async ensureToken() { if (Date.now() < this.expiresAt - 60000) return; const res = await fetch(`${this.base}/v1/oauth/token`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ grant_type: 'client_credentials', client_id: this.clientId, client_secret: this.clientSecret }), }); const { access_token, expires_in } = await res.json(); this.token = access_token; this.expiresAt = Date.now() + expires_in * 1000; } async score(text: string) { await this.ensureToken(); const res = await fetch(`${this.base}/v2/scores`, { method: 'POST', headers: { 'Authorization': `Bearer ${this.token}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ text }), }); return res.json(); } async detectAI(text: string) { await this.ensureToken(); const res = await fetch(`${this.base}/v1/ai-detection`, { method: 'POST', headers: { 'Authorization': `Bearer ${this.token}`, 'Content-Typ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

deepgram-sdk-patterns

Apply production-ready Deepgram SDK patterns for TypeScript and Python. Use when implementing Deepgram integrations, refactoring SDK usage, or establishing team coding standards for Deepgram. Trigger: "deepgram SDK patterns", "deepgram best practices", "deepgram code patterns", "idiomatic deepgram", "deepgram typescript".

2,266 Updated today
jeremylongshore
AI & Automation Featured

groq-sdk-patterns

Apply production-ready Groq SDK patterns for TypeScript and Python. Use when implementing Groq integrations, refactoring SDK usage, or establishing team coding standards for Groq. Trigger with phrases like "groq SDK patterns", "groq best practices", "groq code patterns", "idiomatic groq".

2,266 Updated today
jeremylongshore
AI & Automation Featured

elevenlabs-sdk-patterns

Apply production-ready ElevenLabs SDK patterns for TypeScript and Python. Use when implementing ElevenLabs integrations, refactoring SDK usage, or establishing team coding standards for audio AI applications. Trigger: "elevenlabs SDK patterns", "elevenlabs best practices", "elevenlabs code patterns", "idiomatic elevenlabs", "elevenlabs typescript".

2,266 Updated today
jeremylongshore
AI & Automation Featured

assemblyai-sdk-patterns

Apply production-ready AssemblyAI SDK patterns for TypeScript and Python. Use when implementing AssemblyAI integrations, refactoring SDK usage, or establishing team coding standards for transcription workflows. Trigger with phrases like "assemblyai SDK patterns", "assemblyai best practices", "assemblyai code patterns", "idiomatic assemblyai".

2,266 Updated today
jeremylongshore
AI & Automation Solid

grammarly-data-handling

Implement Grammarly data handling patterns for document processing. Use when handling large documents, managing text chunking, or implementing data pipelines for Grammarly API. Trigger with phrases like "grammarly data", "grammarly documents", "grammarly text processing", "grammarly pipeline".

2,266 Updated today
jeremylongshore