Agent Skills: Grammarly Cost Tuning

|

UncategorizedID: jeremylongshore/claude-code-plugins-plus-skills/grammarly-cost-tuning

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-cost-tuning

Skill Files

Browse the full folder contents for grammarly-cost-tuning.

Download Skill

Loading file tree…

plugins/saas-packs/grammarly-pack/skills/grammarly-cost-tuning/SKILL.md

Skill Metadata

Name
grammarly-cost-tuning
Description
|

Grammarly Cost Tuning

Pricing

Grammarly API pricing is enterprise/custom. Contact Grammarly for volume pricing.

Cost Optimization

Cache Results

Same text produces same scores — cache aggressively to avoid duplicate API calls.

Validate Before Calling

function shouldScore(text: string): boolean {
  const words = text.split(/\s+/).length;
  if (words < 30) return false; // API will reject
  if (words > 50000) return false; // Too expensive, chunk first
  return true;
}

Sample-Based Scoring

// For bulk content, score a sample instead of everything
function selectSample(documents: string[], sampleRate = 0.2): string[] {
  return documents.filter(() => Math.random() < sampleRate);
}

Track Usage

let apiCalls = { score: 0, ai: 0, plagiarism: 0 };
// Increment on each call, report daily

Resources

Next Steps

For architecture, see grammarly-reference-architecture.