From grammarly-pack
Sets up Grammarly API local dev with TypeScript client, mocked Vitest tests, project structure, and fixtures for fast iteration and testing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grammarly-pack:grammarly-local-dev-loopThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up a development workflow for Grammarly API integrations with mocked responses and vitest.
Set up a development workflow for Grammarly API integrations with mocked responses and vitest.
grammarly-integration/
├── src/grammarly/
│ ├── client.ts # API client with token management
│ ├── scoring.ts # Writing Score API
│ ├── detection.ts # AI + Plagiarism detection
│ └── types.ts # TypeScript interfaces
├── tests/
│ ├── fixtures/ # Mock API responses
│ └── scoring.test.ts
├── .env.local
└── package.json
import { describe, it, expect, vi } from 'vitest';
const mockFetch = vi.fn();
vi.stubGlobal('fetch', mockFetch);
describe('Writing Score', () => {
it('should return scores for valid text', async () => {
mockFetch.mockResolvedValueOnce({
ok: true,
json: async () => ({ overallScore: 85, engagement: 80, correctness: 90, clarity: 85, tone: 82 }),
});
// Test scoring logic
});
it('should reject text under 30 words', async () => {
mockFetch.mockResolvedValueOnce({ ok: false, status: 400, text: async () => 'Text too short' });
// Test error handling
});
});
See grammarly-sdk-patterns for production patterns.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin grammarly-packProvides reference architecture, TypeScript project structure, and API matrix for Grammarly integrations including client, scoring, detection, and chunking.
Identifies grammar, logical, and flow errors in text with categorized, targeted fix suggestions. Useful for proofreading docs, emails, marketing copy, or drafts.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.