with one click
new-template
Scaffold a new Gatsby page template with GraphQL query
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Scaffold a new Gatsby page template with GraphQL query
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | new-template |
| description | Scaffold a new Gatsby page template with GraphQL query |
| argument-hint | [template-name] |
Create a new Gatsby page template named $ARGUMENTS.
File header: Every file starts with:
/************************
* Author: [MR FERRY™] *
* <Month Year> *
************************/
Location: Templates go in src/templates/
Structure: Each template typically:
Layout from ../components/LayoutSeo from ../components/Seo<Layout>Head component using <Seo> for SEOpageQuery GraphQL query at the bottomPage context: Templates receive context from gatsby-node.ts via pageContext prop. Define the context
interface in src/types/DataTypes.ts.
Data flow: Page-level data comes from exported graphql queries, not useStaticQuery.
src/templates/$ARGUMENTS.tsx with Layout wrapper and page querysrc/types/DataTypes.tsgatsby-node.ts using createPage()createSlice() in gatsby-node.tsgit add on new filesbun run typecheck to verifyBuild and optionally serve the Gatsby production site
Build with Contentful preview API to test draft content
Start the Gatsby development server with TypeScript checking
Scaffold a new React component following project conventions
Run TypeScript type checking on the project without emitting files