gatsby
Gatsby legacy framework skill covering GraphQL data layer, source plugins, image optimization, and migration paths. Use when maintaining or migrating Gatsby…
от skeletorflet★ 48 звёзд на GitHub
Установить gatsby в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
gatsby
Static site generator with React. GraphQL data layer unifies all content sources at build time.
Core Concepts
- GraphQL data layer: pull from any source, query at build time, shape per page
- Source plugins: gatsby-source-filesystem for local, gatsby-source-wordpress for CMS
- createPages API: gatsby-node.js programmatic page generation from queried nodes
- Schema customization: define types explicitly for content meshing across sources
Queries & Pages
- Page queries in page components only, useStaticQuery in non-page components
- File system routes: src/pages/ for automatic route creation like Next.js pages/
- Template pages: createPages with template component and query context variables
- gatsby-plugin-image: StaticImage and GatsbyImage for optimized responsive images
Best Practices
- useStaticQuery for shared data like site metadata, nav, and footer
- Prefer gatsby-plugin-image over raw img tags for automatic format/size optimization
- Keep gatsby-node.js lean, delegate logic to separate helper modules
- For new projects, choose Next.js or Astro instead of Gatsby
Common Code Patterns
- createPages loops over GraphQL results, calls createPage per node with slug context
- StaticQuery hook in layout component for site title and SEO defaults
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gatsby?
Gatsby legacy framework skill covering GraphQL data layer, source plugins, image optimization, and migration paths. Use when maintaining or migrating Gatsby sites.
Как установить скилл gatsby?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gatsby запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…