CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/persisted-query-strategy-reference

Pure-reference catalog of GraphQL Persisted Query strategies: the Apollo APQ SHA-256 hash protocol, the PersistedQueryNotFoundError retry flow, the `extensions.persistedQuery` payload, GET-vs-POST and CDN-cache implications, and the three operation modes (auto-register, strict allowlist, hybrid). Use to design or audit a server's persisted-query request layer. This strategy reference emits no tests; to author the runtime tests use apollo-server-tests, graphql-yoga-tests, or mercurius-tests, and for introspection lockdown see introspection-attack-surface-reference.

75

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

85%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, actionable reference catalog with executable code, clear per-mode flows, and strong verification/recovery tables. The only weakness is mild verbosity in the introductory definition and transition prose that assumes less than Claude's competence.

Suggestions

Trim the opening Apollo doc-quote definition of 'what a persisted query is' and the 'Two motivations, often conflated' framing — Claude already knows this; lead with the strategy-specific content.

Tighten the transitional prose in Mode 3 ('Best of both: dev gets the iteration speed of auto-register; prod gets the allowlist') to a single clause so the mode table/flow carries the meaning.

Consider moving the per-framework support table and Limitations into a short companion reference file if the catalog grows, keeping SKILL.md as the overview.

DimensionReasoningScore

Conciseness

The body is mostly dense, purposeful reference material (tables, code, numbered flows), but the opening doc-quote definition of what a persisted query is and framing prose like 'Two motivations, often conflated' and 'Best of both: dev gets the iteration speed...' could be tightened. Not score 3 because some explanatory framing explains concepts Claude already knows; not score 1 because the bulk is lean and reference-style rather than padded.

2 / 3

Actionability

Provides fully executable examples: ApolloServer persistedQueries config, the createPersistedQueryLink TypeScript snippet, and `npx graphql-codegen` commands, plus concrete per-mode request flows. Not score 2 because the core guidance is copy-paste ready rather than pseudocode.

3 / 3

Workflow Clarity

Each mode has a clearly numbered request flow (e.g. Mode 1 steps 1-5, Mode 2 steps 1-5), and the 'Testable behaviours' table plus the 'Anti-patterns' table provide explicit verification and error-recovery checkpoints ('These tests prove the chosen mode is actually in effect'). Not score 2 because validation/verification is explicit, not merely implied.

3 / 3

Progressive Disclosure

Well-organized single-file structure with clearly labeled sections (Overview, When to use, the three modes, Implementation patterns, Per-framework support, Testable behaviours, Anti-patterns, Limitations, References) and clearly signaled one-level external links; no nested/deep references. Not score 2 because navigation is clean and content is appropriately sectioned for a self-contained reference with no bundle files.

3 / 3

Total

11

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, specific description that states concrete capabilities, gives an explicit Use-to trigger, and actively disambiguates itself from sibling test-authoring and introspection skills. Written in third person with no fluff.

DimensionReasoningScore

Specificity

Lists multiple concrete capabilities in one sentence: 'the Apollo APQ SHA-256 hash protocol, the PersistedQueryNotFoundError retry flow, the `extensions.persistedQuery` payload, GET-vs-POST and CDN-cache implications, and the three operation modes'. Matches the score-3 anchor of listing multiple specific concrete actions; not score 2 because the action set is comprehensive rather than partial.

3 / 3

Completeness

Answers both what (a pure-reference catalog of specific strategies) and when via the explicit trigger 'Use to design or audit a server's persisted-query request layer'. Not score 2 because the 'when' is explicit, not merely implied.

3 / 3

Trigger Term Quality

Uses natural in-domain terms a user would actually say when needing this skill — 'GraphQL Persisted Query', 'Apollo APQ', 'allowlist', 'CDN-cache', 'auto-register'. Not score 2 because common variations are well covered rather than missing.

3 / 3

Distinctiveness Conflict Risk

Clear niche (GraphQL persisted-query strategy) plus active disambiguation: 'This strategy reference emits no tests; to author the runtime tests use apollo-server-tests, graphql-yoga-tests, or mercurius-tests'. Unlikely to trigger for the wrong skill; not score 2 because the boundary is explicit.

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents