en un clic
new-template
Scaffold a new Gatsby page template with GraphQL query
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Scaffold a new Gatsby page template with GraphQL query
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Build 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
Basé sur la classification professionnelle SOC
| 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 verify