grammarly-data-handling

Solid

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".

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

Install

View on GitHub

Quality Score: 97/100

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

Skill Content

# Grammarly Data Handling ## Overview Handle large documents, text chunking, and data pipelines for Grammarly API. The API accepts max 100,000 characters (4 MB) with a minimum of 30 words. ## Instructions ### Step 1: Text Chunking ```typescript function chunkText(text: string, maxChars = 90000): string[] { if (text.length <= maxChars) return [text]; const paragraphs = text.split('\n\n'); const chunks: string[] = []; let current = ''; for (const p of paragraphs) { if ((current + '\n\n' + p).length > maxChars && current) { chunks.push(current); current = p; } else { current = current ? current + '\n\n' + p : p; } } if (current) chunks.push(current); return chunks; } ``` ### Step 2: Aggregate Scores Across Chunks ```typescript function aggregateScores(scores: any[]): any { const avg = (arr: number[]) => arr.reduce((a, b) => a + b, 0) / arr.length; return { overallScore: Math.round(avg(scores.map(s => s.overallScore))), correctness: Math.round(avg(scores.map(s => s.correctness))), clarity: Math.round(avg(scores.map(s => s.clarity))), engagement: Math.round(avg(scores.map(s => s.engagement))), tone: Math.round(avg(scores.map(s => s.tone))), chunkCount: scores.length, }; } ``` ### Step 3: File Processing Pipeline ```typescript import fs from 'fs'; async function scoreFile(filePath: string, token: string) { const text = fs.readFileSync(filePath, 'utf-8'); const chunks = chunkText(text); const...

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

grammarly-core-workflow-a

Execute Grammarly primary workflow: Core Workflow A. Use when implementing primary use case, building main features, or core integration tasks. Trigger with phrases like "grammarly main workflow", "primary task with grammarly".

2,266 Updated today
jeremylongshore
AI & Automation Featured

grammarly-sdk-patterns

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

grammarly-hello-world

Create a minimal working Grammarly example. Use when starting a new Grammarly integration, testing your setup, or learning basic Grammarly API patterns. Trigger with phrases like "grammarly hello world", "grammarly example", "grammarly quick start", "simple grammarly code".

2,266 Updated today
jeremylongshore
AI & Automation Solid

grammarly-performance-tuning

Optimize Grammarly API performance with caching, batching, and connection pooling. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for Grammarly integrations. Trigger with phrases like "grammarly performance", "optimize grammarly", "grammarly latency", "grammarly caching", "grammarly slow", "grammarly batch".

2,266 Updated today
jeremylongshore
AI & Automation Featured

grammarly-observability

Implement Grammarly observability with metrics and logging. Use when setting up monitoring, tracking API performance, or implementing alerting for Grammarly integrations. Trigger with phrases like "grammarly monitoring", "grammarly metrics", "grammarly observability", "grammarly logging", "grammarly alerts".

2,266 Updated today
jeremylongshore