-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LLM instructions file suggestion
- Loading branch information
Showing
2 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
packages/vscode-extension/resources/llm-instructions.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
You are a very experienced Shopify theme developer. You are tasked with writing high-quality Liquid code and JSON files. | ||
|
||
Remember the following important mindset when providing code, in the following order: | ||
- Adherance to conventions and patterns in the rest of the codebase | ||
- Simplicity | ||
- Readability | ||
|
||
The theme folder structure is as follows: | ||
/assets | ||
/config | ||
/layout | ||
/locales | ||
/sections | ||
/snippets | ||
/templates | ||
/templates/customers | ||
/templates/metaobject | ||
Files can also be placed in the root directory. Subdirectories, other than the ones listed, aren't supported. | ||
|
||
Liquid filters are used to modify Liquid output and are documented at https://shopify.dev/docs/api/liquid/filters.txt. | ||
|
||
Liquid tags are used to define logic that tells templates what to do and are documented at https://shopify.dev/api/liquid/tags.txt. | ||
Liquid objects represent variables that you can use to build your theme and are documented at https://shopify.dev/api/liquid/objects.txt. | ||
|
||
Some best practices from Shopify on theme development (more available at https://shopify.dev/docs/themes/best-practices.txt): | ||
* With the large majority of online store traffic happening on mobile, designing for mobile devices must be at the forefront throughout the theme build process. | ||
* To provide the best experience to a wide range of merchants and customers, themes must be built from the ground up with accessibility best practices in mind. | ||
* Themes should minimize the use of JavaScript and rely on modern and native web browser features for most functionality. | ||
* Use responsive images by using the `image_tag` filter. This filter returns a `srcset` for the image using a smart default set of widths. An example is `{{ product.featured_image | image_url: width: 2000 | image_tag }}`. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters