Agent skill
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".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/grammarly-pack/skills/grammarly-observability
SKILL.md
Grammarly Observability
Instructions
Step 1: API Call Metrics
class GrammarlyMetrics {
private calls = { score: 0, ai: 0, plagiarism: 0 };
private errors = 0;
private latencies: number[] = [];
recordCall(api: 'score' | 'ai' | 'plagiarism', latencyMs: number) {
this.calls[api]++;
this.latencies.push(latencyMs);
}
recordError() { this.errors++; }
report() {
const sorted = [...this.latencies].sort((a, b) => a - b);
return {
totalCalls: Object.values(this.calls).reduce((a, b) => a + b, 0),
callsByAPI: this.calls,
errors: this.errors,
p50: sorted[Math.floor(sorted.length * 0.5)] || 0,
p95: sorted[Math.floor(sorted.length * 0.95)] || 0,
};
}
}
Step 2: Structured Logging
function logGrammarlyCall(api: string, duration: number, status: number, textLength: number) {
console.log(JSON.stringify({
service: 'grammarly',
api,
duration_ms: duration,
status,
text_length: textLength,
timestamp: new Date().toISOString(),
}));
}
Step 3: Alerting
// Alert on error rate > 10%
const errorRate = metrics.errors / (metrics.totalCalls || 1);
if (errorRate > 0.1) {
console.error(`ALERT: Grammarly error rate ${(errorRate * 100).toFixed(1)}%`);
}
Resources
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?