بنقرة واحدة
new-template
Scaffold a new Gatsby page template with GraphQL query
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Scaffold a new Gatsby page template with GraphQL query
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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
| 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