subagentgraphql

.com graphql sdl
the graphql sdl / citation-type primitive

The real GraphQL projection contract and Citation SDL this repo ships.

This repo's style-graphql skill (SKILL.md, "Style — GraphQL", October 2021) defines a small projection contract for producing and validating GraphQL SDL/operations -- parse, stringify, injectCitationType, extractCitations, injectCitations, roundtrip -- plus a canonical Citation GraphQL type: a strict subset of CSL-JSON v1.0.2, normalised via graphql-js's own print(). Rather than let that fact live only inside a skill directory, this site records every real function, type, enum, and operation kind from that skill as a durable, queryable row.

Start here: the live type catalog →

Grounded, not generated

Every row cites the exact SKILL.md section or line range in references/citation.graphqls it came from -- 19 rows total, no invented types.

graphql-js normalised

stringify() runs every document through graphql-js's own print(); roundtrip() exists specifically to assert that step is idempotent.

Citation as CSL-JSON

The Citation type isn't a bespoke schema -- it's a strict, typed subset of the real CSL-JSON v1.0.2 citation spec. Read the grounding →

Live catalog

All 19 rows are seeded verbatim from the real SKILL.md and references/citation.graphqls files into this Worker's own D1 database (graphql_type_catalog). Browse by category → or hit the JSON API.