Wp Headless And Wpgraphql logo

Wp Headless And Wpgraphql

Community
jorgerosal
wp-headless-and-wpgraphql

Headless WordPress and WPGraphQL review guidance. Use when reviewing decoupled WordPress architectures, WPGraphQL schema design, `register_graphql_field`, `register_graphql_connection`, `graphql_register_types`, Next.js/Gatsby/Remix frontends, preview mode, auth flows, persisted queries, or build/revalidation pipelines. Helps review schema boundaries, resolver performance, preview/auth correctness, cache invalidation, and content modeling decisions for headless WordPress stacks.

Overview

Publisherjorgerosal
Repositorywordpress-skills
Skill namewp-headless-and-wpgraphql
Stars
113
Forks
13
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jorgerosal on GitHub. Read the source before you install it.

Installation

Install the Wp Headless And Wpgraphql AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jorgerosal/wordpress-skills/tree/main/claude-skills/wp-headless-and-wpgraphql
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jorgerosal/wordpress-skills.git /tmp/wordpress-skills
mkdir -p .claude/skills
cp -r /tmp/wordpress-skills/claude-skills/wp-headless-and-wpgraphql .claude/skills/wp-headless-and-wpgraphql
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wp Headless And Wpgraphql in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wp Headless And Wpgraphql on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wp Headless And Wpgraphql is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WordPress Headless and WPGraphQL Skill

Overview

Systematic review guidance for headless WordPress projects that expose content through WPGraphQL or adjacent APIs. Core principle: the schema should reflect durable content boundaries and predictable frontend needs, while auth, preview, caching, and build pipelines must stay explicit about trust boundaries and invalidation rules.

When to Use

Use when:

  • Reviewing WPGraphQL-powered themes, plugins, or headless integrations
  • Auditing custom schema extensions and resolver code
  • Reviewing frontend data-fetching patterns for WordPress content
  • Planning preview, draft, auth, or revalidation flows
  • Checking build pipelines, webhook invalidation, or persisted-query setups

Don't use for:

  • Classic REST-only WordPress integrations with no GraphQL surface (use wp-rest-api-development)
  • ACF field-group design with no headless frontend concerns (use wp-acf-and-content-modeling)
  • General plugin architecture review without a decoupled frontend (use wp-plugin-development)
  • Pure Playground demo setups (use wp-playground-development)

Code Review Workflow

  1. Identify the integration surface

    • WPGraphQL plugin usage and version assumptions
    • Custom schema registration (register_graphql_field, register_graphql_connection, register_graphql_object_type)
    • Frontend queries, fragments, and route/data loaders
    • Preview, auth, webhook, and cache invalidation flows
  2. Check data-model boundaries first

    • Does the GraphQL shape mirror the actual content model?
    • Are taxonomies/CPTs/options exposed intentionally rather than incidentally?
    • Are frontend needs being solved with durable schema design instead of ad hoc resolver logic?
  3. Review auth and preview behavior

    • Who can read drafts, revisions, private content, or preview tokens?
    • Are frontend preview endpoints explicit about capability checks and token validation?
    • Is the app leaking unpublished content through over-broad queries or caches?
  4. Review query and resolver efficiency

    • N+1 resolver patterns
    • Expensive meta lookups or unbounded connections
    • Missing field-level guards or pagination defaults
    • Over-fetching caused by schema or fragment design
  5. Review cache and build invalidation

    • Clear boundaries between origin cache, application cache, and CDN cache
    • Deterministic revalidation/webhook behavior
    • No build pipeline assumptions that require manual cache busting after every edit
  6. Classify findings

    • CRITICAL: unpublished content exposure, insecure preview/auth flow, unbounded resolver enabling data leakage or production instability
    • WARNING: fragile schema modeling, expensive resolvers, missing pagination, weak invalidation rules, frontend tightly coupled to unstable field shapes
    • INFO: could improve naming, fragments, schema docs, persisted-query discipline, or build observability

File-Type Specific Checks

WPGraphQL Schema Extensions

  • CRITICAL: schema exposes private/meta data without explicit permission checks
  • WARNING: resolver performs repeated get_post_meta() / WP_Query work per node without batching or caching
  • WARNING: field names or return types do not match the domain model and force frontend workarounds
  • INFO: could group related fields into object types or connections instead of one-off scalar sprawl

Frontend Query Layers

  • WARNING: route/page queries fetch large trees when only a few fields are rendered
  • WARNING: fragments duplicated inconsistently across templates/routes
  • WARNING: preview mode and production mode share caches unsafely
  • INFO: could persist shared fragments or centralize query documents by content type

Preview and Auth Flows

  • CRITICAL: preview endpoint trusts only a slug or post ID without validating capability/token ownership
  • CRITICAL: draft/private content becomes cacheable at CDN or app layer
  • WARNING: no distinction between editor preview traffic and public traffic
  • INFO: could document preview lifecycle, token expiry, and cache bypass rules more clearly

Build / Revalidation / Webhooks

  • WARNING: every content change triggers a full rebuild with no scoping
  • WARNING: webhooks do not identify which routes/content depend on the mutation
  • WARNING: no retry/verification path for failed revalidation events
  • INFO: could add event logs or replayable webhook delivery for debugging

Search Patterns for Quick Detection (HEADLESS-21)

Use these rg commands to locate headless and WPGraphQL surfaces quickly.

Schema and Resolver Discovery

bash
rg -n "register_graphql_(field|fields|connection|object_type|interface_type|union_type|enum_type)|graphql_register_types" . -g '*.{php}'
rg -n "WPGraphQL|graphql" . -g '*.{php,js,jsx,ts,tsx,md,yml,yaml}'

Frontend Query Discovery

bash
rg -n "gql`|graphql`|useQuery\(|ApolloClient|@apollo/client|urql|graphql-request|getStaticProps|getServerSideProps|generateStaticParams" . -g '*.{js,jsx,ts,tsx}'
rg -n "preview|draftMode|draftMode\(|revalidate|revalidatePath|revalidateTag" . -g '*.{js,jsx,ts,tsx}'

Risky Data and Cache Patterns

bash
rg -n "get_post_meta\(|WP_Query\(|meta_query|posts_per_page\s*=>\s*-1" . -g '*.{php}'
rg -n "webhook|revalidation|x-vercel|x-signature|secret|persisted query|persistedQuery" . -g '*.{php,js,jsx,ts,tsx,yml,yaml}'

Reference Files

  • references/graphql-schema-and-modeling.md - Schema boundaries, CPT/taxonomy mapping, connection design, and resolver patterns
  • references/auth-preview-and-drafts.md - Preview mode, private content, auth boundaries, and cache bypass rules
  • references/caching-builds-and-webhooks.md - Persisted queries, caching layers, route revalidation, and webhook delivery design

Output Format (HEADLESS-23)

For each finding include:

  1. Severity: CRITICAL, WARNING, or INFO
  2. File and line number
  3. Headless/WPGraphQL risk summary
  4. Why it matters for schema design, frontend correctness, or production stability
  5. Recommended safer pattern

If no issues are found, say so clearly and mention any residual risks such as incomplete preview documentation, missing invalidation observability, or schema areas likely to drift as the frontend evolves.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wp Headless And Wpgraphql AI skill do?

Headless WordPress and WPGraphQL review guidance. Use when reviewing decoupled WordPress architectures, WPGraphQL schema design, `register_graphql_field`, `register_graphql_connection`, `graphql_register_types`, Next.js/Gatsby/Remix frontends, preview mode, auth flows, persisted queries, or build/revalidation pipelines. Helps review schema boundaries, resolver performance, preview/auth correctness, cache invalidation, and content modeling decisions for headless WordPress stacks.

Why use Wp Headless And Wpgraphql on TypingMind?

Because you install it once and use it with any model. Wp Headless And Wpgraphql is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wp Headless And Wpgraphql in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jorgerosal/wordpress-skills/tree/main/claude-skills/wp-headless-and-wpgraphql. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wp Headless And Wpgraphql?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wp Headless And Wpgraphql?

As many as you like. As long as a model supports skills, you can use Wp Headless And Wpgraphql with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wp Headless And Wpgraphql AI skill free?

Yes. It is published on GitHub by jorgerosal under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇