fynd-theme-best-practices
9
总安装量
6
周安装量
#32863
全站排名
安装命令
npx skills add https://github.com/darshak3112/fynd-theme-best-practices --skill fynd-theme-best-practices
Agent 安装分布
opencode
6
github-copilot
6
codex
6
gemini-cli
6
amp
6
Skill 文档
Fynd Theme Best Practices
Quick Start
- Identify whether the request is: (1) codebase navigation, (2) theme best-practice guidance, (3) theme sections, or (4) Storefront GraphQL.
- For codebase questions, scan
src/withrgand open the specific files before answering. - For docs-backed answers, load the relevant reference files listed below.
- Prerequisite: install the
vercel-react-best-practicesskill if itâs not already available; otherwise, tell the user to install it.
Workflow
1. Classify the Request
- Codebase location/ownership: Use repo search and point to exact files.
- Optimization/refactor: Apply best practices and preserve existing architecture.
- Theme sections: Use sections definitions and settings schema knowledge.
- GraphQL (e.g.,
productPrice): Use the query signature and return fields.
2. Codebase Navigation (FDK React Template)
Use these as anchors when locating features:
src/components/shared UI componentssrc/pages/route-level pagessrc/page-layouts/feature modules and page layoutssrc/helper/shared helpers and hookssrc/constants/static mappingssrc/styles/global styles Readreferences/codebase_fdk_react_templates.mdfor observed patterns and hook usage.
Useful rg entry points:
rg -n "filter|facet|sort" src/for PLP filtersrg -n "productPrice|graphql|fpi" src/for data queriesrg -n "SectionRenderer|settings" src/for sections
3. Theme Sections
- Read:
references/themes_sections.md - Ensure guidance references
Component+settingsexports and input schema usage.
4. Best Practices
- Read:
references/themes_best_practices.md - Apply SSR safety, GraphQL efficiency, and FDK-first patterns.
5. Storefront GraphQL
- Read:
references/graphql_product_price.mdforproductPrice. - Read:
references/graphql_application_client_libraries.mdfor GraphQL doc structure.
Outputs
- Answer with file paths and why that location is correct.
- When optimizing, specify small, safe changes that align with existing patterns.
- If information is missing (route name, feature flag, specific file), ask for it.
References
references/themes_best_practices.mdreferences/themes_best_practices_full.mdreferences/themes_sections.mdreferences/themes_development.mdreferences/themes_get_started.mdreferences/themes_multilingual.mdreferences/sections_code_splitting.mdreferences/theme_sync.mdreferences/tailwind_integration.mdreferences/custom_templates.mdreferences/local_testing_checklist.mdreferences/boilerplate_overview.mdreferences/server_fetch.mdreferences/auth_guard.mdreferences/color_palette_mapping.mdreferences/data_management_fdk_store.mdreferences/fpi_mutations.mdreferences/global_provider_resolvers.mdreferences/global_components_and_hooks.mdreferences/key_concepts_pages_sections_blocks.mdreferences/anatomy_of_theme.mdreferences/intro_themes.mdreferences/fdk_overview_cli.mdreferences/fdk_cli_getting_started_versioning.mdreferences/development_best_practices_checklist.mdreferences/testing_best_practices_checklist.mdreferences/performance_optimization_core_web_vitals.mdreferences/graphql_application_client_libraries.mdreferences/graphql_product_price.mdreferences/codebase_fdk_react_templates.md