/grammarly-pack:grammarly-deploy-integrationfrom grammarly-pack
Deploys Grammarly integration services to Vercel, Fly.io, and Cloud Run with Docker, health checks, and OAuth configuration.
Ships in grammarly-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deploy a containerized Grammarly writing assistant integration service with Docker. This skill covers building a production image that connects to the Grammarly Text API for checking grammar, clarity, and tone across submitted text. Includes environment configuration for OAuth client credentials, health checks that verify API token exchange and text analysis endpoints, and rolling update strategies for zero-downtime deployments serving real-time writing feedback.
FROM node:20-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
FROM node:20-slim
RUN addgroup --system app && adduser --system --ingroup app app
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY package*.json ./
USER app
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1
CMD ["node", "dist/index.js"]
export GRAMMARLY_CLIENT_ID="client_xxxxxxxxxxxx"
export GRAMMARLY_CLIENT_SECRET="secret_xxxxxxxxxxxx"
export GRAMMARLY_BASE_URL="https://api.grammarly.com/ecosystem/api"
export LOG_LEVEL="info"
export PORT="3000"
export NODE_ENV="production"
import express from 'express';
const app = express();
app.get('/health', async (req, res) => {
try {
const tokenRes = await fetch(`${process.env.GRAMMARLY_BASE_URL}/v1/oauth/token`, {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: new URLSearchParams({
grant_type: 'client_credentials',
client_id: process.env.GRAMMARLY_CLIENT_ID!,
client_secret: process.env.GRAMMARLY_CLIENT_SECRET!,
}),
});
if (!tokenRes.ok) throw new Error(`Grammarly OAuth returned ${tokenRes.status}`);
res.json({ status: 'healthy', service: 'grammarly-integration', timestamp: new Date().toISOString() });
} catch (error) {
res.status(503).json({ status: 'unhealthy', error: (error as Error).message });
}
});
docker build -t grammarly-integration:latest .
docker run -d --name grammarly-integration \
-p 3000:3000 \
-e GRAMMARLY_CLIENT_ID -e GRAMMARLY_CLIENT_SECRET -e GRAMMARLY_BASE_URL \
grammarly-integration:latest
curl -s http://localhost:3000/health | jq .
docker build -t grammarly-integration:v2 . && \
docker stop grammarly-integration && \
docker rm grammarly-integration && \
docker run -d --name grammarly-integration -p 3000:3000 \
-e GRAMMARLY_CLIENT_ID -e GRAMMARLY_CLIENT_SECRET -e GRAMMARLY_BASE_URL \
grammarly-integration:v2
| Issue | Cause | Fix |
|---|---|---|
401 Unauthorized | Invalid client credentials | Regenerate credentials in Grammarly Developer Hub |
403 Forbidden | App not approved for API access | Submit app for review in Grammarly partner portal |
400 Bad Request | Text below 30-word minimum | Validate input length before sending to API |
429 Rate Limited | Exceeding API rate limits | Cache results for identical text; implement backoff |
| Token exchange fails | Incorrect grant_type or URL | Verify OAuth endpoint and client_credentials flow |
See grammarly-webhooks-events.
What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/grammarly-ci-integrationConfigure Grammarly CI/CD integration with GitHub Actions and testing.
Use when setting up automated testing, configuring CI pipelines,
or integrating Grammarly tests into your build process.
Trigger with phrases like "grammarly CI", "grammarly GitHub Actions",
"grammarly automated tests", "CI grammarly".
/grammarly-common-errorsDiagnose and fix Grammarly common errors and exceptions.
Use when encountering Grammarly errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "grammarly error", "fix grammarly",
"grammarly not working", "debug grammarly".
/grammarly-npx claudepluginhub flight505/skill-forge --plugin grammarly-packOther plugins' skills for the same job