Install
openclaw skills install gqllintClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
GraphQL anti-pattern & security analyzer -- detects query depth/complexity issues, resolver N+1 problems, over/under fetching, rate limiting & auth gaps, schema design issues, and client query safety problems in GraphQL codebases
openclaw skills install gqllintGQLLint scans codebases for GraphQL anti-patterns: query depth/complexity issues, resolver N+1 problems, over/under fetching, rate limiting & auth gaps, schema design issues, and client query safety problems. It uses regex-based pattern matching against 90 GraphQL-specific patterns across 6 categories, lefthook for git hook integration, and produces markdown reports with actionable remediation guidance. 100% local. Zero telemetry.
Note: GQLLint focuses on GraphQL-specific patterns (schema definitions, resolvers, client queries, server configuration). It does NOT analyze general JavaScript/TypeScript quality or REST API patterns.
gqllint scan [file|directory]One-shot GraphQL quality scan of files or directories.
How to execute:
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [target]
What it does:
Example usage scenarios:
gqllint scan .gqllint scan src/resolvers/gqllint scan src/gqllint scan .gqllint scan .gqllint scan --tier pro [file|directory]Extended scan with 60 patterns covering depth, N+1, fetching, and auth issues.
How to execute:
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [target] --tier pro
What it does:
gqllint scan --format json [directory]Generate JSON output for CI/CD integration.
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [directory] --format json
gqllint scan --format html [directory]Generate HTML report for browser viewing.
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [directory] --format html
gqllint scan --category RN [directory]Filter scan to a specific check category (QD, RN, OF, RL, SD, CQ).
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [directory] --category RN
gqllint scan --tier team [directory]Full scan with all 90 patterns across all 6 categories including schema design and client safety.
How to execute:
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [directory] --tier team
What it does:
gqllint scan --verbose [directory]Verbose output showing every matched line and pattern details.
bash "<SKILL_DIR>/scripts/dispatcher.sh" --path [directory] --verbose
gqllint statusShow license and configuration information.
bash "<SKILL_DIR>/scripts/dispatcher.sh" status
gqllint patternsList all available detection patterns with IDs, severities, and descriptions.
bash "<SKILL_DIR>/scripts/dispatcher.sh" patterns
GQLLint detects 90 GraphQL anti-patterns across 6 categories:
| Category | Code | Patterns | Description | Severity Range |
|---|---|---|---|---|
| Query Depth & Complexity | QD | 15 | Unbounded depth, no complexity limit, introspection leak, recursive fragments | low -- critical |
| Resolver N+1 | RN | 15 | Database calls in loops, no DataLoader, sequential awaits, missing batching | low -- critical |
| Over/Under Fetching | OF | 15 | SELECT *, no pagination, eager loading, missing projections, full object returns | low -- critical |
| Rate Limiting & Auth | RL | 15 | No auth on mutations, open playground, missing rate limit, no CORS, no persisted queries | low -- critical |
| Schema Design | SD | 15 | Raw scalars in mutations, no input types, JSON scalar, naming issues, no deprecation | low -- high |
| Client Query Safety | CQ | 15 | String concatenation, template injection, no error handling, missing variables, no codegen | low -- critical |
| Tier | Patterns | Categories |
|---|---|---|
| Free | 30 | QD, RN |
| Pro | 60 | QD, RN, OF, RL |
| Team | 90 | QD, RN, OF, RL, SD, CQ |
| Enterprise | 90 | QD, RN, OF, RL, SD, CQ + priority support |
GQLLint uses a deductive scoring system starting at 100 (perfect):
| Severity | Point Deduction | Description |
|---|---|---|
| Critical | -25 per finding | Severe risk (query injection, N+1 loops, introspection leak, unauth mutations) |
| High | -15 per finding | Significant problem (no depth limit, no pagination, open playground, resolver waterfalls) |
| Medium | -8 per finding | Moderate concern (schema design gaps, missing rate limits, over-fetching) |
| Low | -3 per finding | Informational / best practice suggestion |
| Grade | Score Range | Meaning |
|---|---|---|
| A | 90-100 | Excellent GraphQL quality |
| B | 80-89 | Good GraphQL with minor issues |
| C | 70-79 | Acceptable but needs improvement |
| D | 60-69 | Poor GraphQL quality |
| F | Below 60 | Critical GraphQL problems |
Users can configure GQLLint in ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"gqllint": {
"enabled": true,
"apiKey": "YOUR_LICENSE_KEY_HERE",
"config": {
"severityThreshold": "medium",
"ignorePatterns": ["**/test/**", "**/fixtures/**", "**/*.test.*"],
"ignoreChecks": [],
"reportFormat": "text"
}
}
}
}
}
The user might say things like: