td-ai-tools 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "td-ai-tools",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Install agent skills and packs into your project",
5
5
  "type": "module",
6
6
  "scripts": {
package/skills/README.md CHANGED
@@ -16,6 +16,7 @@
16
16
  - `pull-request-statamic`: Generates GitHub pull request descriptions for Statamic and Laravel development by analyzing git diffs and…
17
17
  - `record-changes`: Update `docs/changes.md` by summarizing the current branch against the primary development branch.
18
18
  - `scry`: Single-site visual regression workflow for comparing a live URL against a preview/staging URL in Playwright…
19
+ - `shopify-cli`: Shopify CLI workflows for theme development. Use when the user needs to run or explain Shopify theme commands,…
19
20
  - `stylesheet-migration`: Migrate Shopify Liquid `{% stylesheet %}` blocks into theme CSS assets using bundled Python scripts.
20
21
  - `td-js-vanilla-rules`: Theory Digital vanilla JavaScript standards for Shopify theme work.
21
22
  - `td-review`: Run parallel code review agents on a PR (including TD theme compliance) and produce a synthesized findings…
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: shopify-cli
3
+ version: 1.0.0
4
+ description: Shopify CLI workflows for theme development. Use when the user needs to run or explain Shopify theme commands, especially starting the theme development server, previewing local Liquid/theme changes, listing themes, pushing or pulling theme files, duplicating themes, renaming themes, or checking other Shopify CLI theme command syntax.
5
+ ---
6
+
7
+ # Shopify CLI
8
+
9
+ Official docs: https://shopify.dev/docs/api/shopify-cli/theme
10
+
11
+ ## First Step: Store Config
12
+
13
+ Read `config.toml` in this skill folder before running any Shopify theme command that talks to a store.
14
+
15
+ - Use the configured `store` value as the `--store` argument every time.
16
+ - If `store` is empty or missing, stop and ask the user for the correct Shopify store value before running commands.
17
+ - Accept either the store prefix or the full `.myshopify.com` host. Do not rely on Shopify CLI's cached last-used store, because it can point at a different repo's store.
18
+
19
+ ## Development Server
20
+
21
+ Primary workflow:
22
+
23
+ ```bash
24
+ shopify theme dev --store <configured-store>
25
+ ```
26
+
27
+ Use from the Shopify theme root, where the standard theme directories such as `layout/`, `templates/`, `sections/`, `snippets/`, `assets/`, `config/`, and `locales/` are available.
28
+
29
+ Common options:
30
+
31
+ ```bash
32
+ shopify theme dev --store <configured-store> --port 9292
33
+ shopify theme dev --store <configured-store> --host 0.0.0.0 --port 9292
34
+ shopify theme dev --store <configured-store> --theme-editor-sync
35
+ shopify theme dev --store <configured-store> --only "sections/*.liquid"
36
+ shopify theme dev --store <configured-store> --ignore "config/settings_data.json"
37
+ ```
38
+
39
+ Safety rules:
40
+
41
+ - Do not use `--allow-live` for development server work unless the user explicitly requests live-theme development after acknowledging the risk.
42
+ - Prefer a development theme or unpublished theme for previewing.
43
+ - If the command prompts for authentication, let the user complete the browser login or provide the approved Theme Access token flow.
44
+
45
+ ## Progressive Disclosure
46
+
47
+ Read only the reference file needed for the user's task:
48
+
49
+ - `references/theme-management.md`: list, push, pull, duplicate, and rename. Use this for the second-most common workflow group.
50
+ - `references/other-theme-commands.md`: check, console, delete, info, init, language-server, metafields pull, open, package, preview, profile, publish, and share.
51
+
52
+ ## Global Safety
53
+
54
+ - Never push to the live theme. Do not provide live-push command syntax.
55
+ - Never publish a theme or rename/delete a live theme unless the user explicitly asks for that exact production action.
56
+ - Prefer `--json` for commands whose output will be parsed by automation.
57
+ - Prefer explicit `--theme <id-or-name>` when the user has identified the target theme; otherwise expect Shopify CLI to prompt.
58
+ - Before destructive or overwriting commands, identify the store and target theme in the user-facing update.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Shopify CLI"
3
+ short_description: "Run Shopify theme CLI workflows"
4
+ default_prompt: "Use $shopify-cli to start the Shopify theme development server."
@@ -0,0 +1,4 @@
1
+ # Required before running Shopify CLI store-scoped theme commands.
2
+ # Set to the store prefix or full myshopify.com host, for example:
3
+ # store = "example.myshopify.com"
4
+ store = ""
@@ -0,0 +1,72 @@
1
+ # Other Shopify Theme Commands
2
+
3
+ Use this reference for Shopify CLI theme commands outside the primary dev-server and management workflows.
4
+
5
+ Official command index: https://shopify.dev/docs/api/shopify-cli/theme
6
+
7
+ Read `../config.toml` first for commands that talk to a store, and always pass `--store <configured-store>` when the command supports it.
8
+
9
+ ## Local Analysis And Tooling
10
+
11
+ ```bash
12
+ shopify theme check
13
+ shopify theme check --path <theme-path>
14
+ shopify theme console
15
+ shopify theme language-server
16
+ shopify theme package
17
+ ```
18
+
19
+ - `theme check`: run Theme Check for Liquid/theme best practices and errors.
20
+ - `theme console`: start the Liquid REPL.
21
+ - `theme language-server`: start the theme language server.
22
+ - `theme package`: create a ZIP package from local theme files.
23
+
24
+ ## Store And Theme Information
25
+
26
+ ```bash
27
+ shopify theme info --store <configured-store>
28
+ shopify theme open --store <configured-store>
29
+ shopify theme open --store <configured-store> --theme <theme-id-or-name>
30
+ shopify theme share --store <configured-store>
31
+ shopify theme profile --store <configured-store> --url <path-or-url>
32
+ ```
33
+
34
+ - `theme info`: show theme environment information, including current store.
35
+ - `theme open`: return preview/admin links for a theme.
36
+ - `theme share`: upload as a new unpublished theme and return a shareable preview.
37
+ - `theme profile`: profile Liquid rendering on a page.
38
+
39
+ ## Creating Or Bootstrapping
40
+
41
+ ```bash
42
+ shopify theme init <directory>
43
+ shopify theme init <directory> --clone-url <git-url>
44
+ ```
45
+
46
+ Use `theme init` to clone a starting theme into a local directory.
47
+
48
+ ## Metafields
49
+
50
+ ```bash
51
+ shopify theme metafields pull --store <configured-store>
52
+ ```
53
+
54
+ Use this to retrieve Shopify Admin metafields for theme development.
55
+
56
+ ## Preview Overrides
57
+
58
+ ```bash
59
+ shopify theme preview --store <configured-store> --theme <theme-id-or-name> --overrides <overrides-file>
60
+ ```
61
+
62
+ Use this to apply JSON overrides to a theme preview.
63
+
64
+ ## Destructive Or Production Commands
65
+
66
+ ```bash
67
+ shopify theme delete --store <configured-store> --theme <theme-id-or-name>
68
+ shopify theme publish --store <configured-store> --theme <theme-id-or-name>
69
+ ```
70
+
71
+ - `theme delete`: destructive. Require explicit user confirmation for the exact store and theme.
72
+ - `theme publish`: production-impacting. Do not run unless the user explicitly asks to publish the exact theme.
@@ -0,0 +1,95 @@
1
+ # Shopify Theme Management
2
+
3
+ Use this reference for listing, pushing, pulling, duplicating, and renaming themes.
4
+
5
+ Official docs:
6
+
7
+ - https://shopify.dev/docs/api/shopify-cli/theme/theme-list
8
+ - https://shopify.dev/docs/api/shopify-cli/theme/theme-push
9
+ - https://shopify.dev/docs/api/shopify-cli/theme/theme-pull
10
+ - https://shopify.dev/docs/api/shopify-cli/theme/theme-duplicate
11
+ - https://shopify.dev/docs/api/shopify-cli/theme/theme-rename
12
+
13
+ Always read `../config.toml` first and pass `--store <configured-store>`. If the store is not configured, ask the user before running anything. Never use Shopify CLI's cached last store.
14
+
15
+ ## List Themes
16
+
17
+ Purpose: list themes in the configured store with IDs and roles.
18
+
19
+ ```bash
20
+ shopify theme list --store <configured-store>
21
+ shopify theme list --store <configured-store> --json
22
+ shopify theme list --store <configured-store> --role unpublished
23
+ shopify theme list --store <configured-store> --name "<partial-name>"
24
+ shopify theme list --store <configured-store> --id <theme-id>
25
+ ```
26
+
27
+ Use `--json` when another command needs a theme ID.
28
+
29
+ ## Push Theme Files
30
+
31
+ Purpose: upload local theme files. This can overwrite remote theme files, so name the target store and theme before running.
32
+
33
+ Allowed patterns:
34
+
35
+ ```bash
36
+ shopify theme push --store <configured-store> --unpublished --json
37
+ shopify theme push --store <configured-store> --theme <theme-id-or-name> --strict
38
+ shopify theme push --store <configured-store> --theme <theme-id-or-name> --nodelete
39
+ shopify theme push --store <configured-store> --theme <theme-id-or-name> --only "sections/*.liquid"
40
+ shopify theme push --store <configured-store> --theme <theme-id-or-name> --ignore "config/settings_data.json"
41
+ shopify theme push --store <configured-store> --development
42
+ shopify theme push --store <configured-store> --development-context <context-name>
43
+ ```
44
+
45
+ Forbidden:
46
+
47
+ - Do not push to the live theme.
48
+ - Do not use `--live`, `--publish`, or `--allow-live`.
49
+ - Do not provide command syntax for live pushes.
50
+
51
+ Notes:
52
+
53
+ - If no theme is specified, Shopify CLI prompts the user to choose a target theme.
54
+ - `--unpublished` creates a new unpublished theme.
55
+ - `--strict` requires Theme Check to pass without errors before pushing.
56
+ - `--nodelete` avoids deleting remote files that are absent locally.
57
+
58
+ ## Pull Theme Files
59
+
60
+ Purpose: retrieve theme files from Shopify. Pulling can overwrite local files.
61
+
62
+ ```bash
63
+ shopify theme pull --store <configured-store>
64
+ shopify theme pull --store <configured-store> --theme <theme-id-or-name>
65
+ shopify theme pull --store <configured-store> --development
66
+ shopify theme pull --store <configured-store> --nodelete
67
+ shopify theme pull --store <configured-store> --only "templates/*.json"
68
+ shopify theme pull --store <configured-store> --ignore "config/settings_data.json"
69
+ ```
70
+
71
+ Avoid pulling the live theme unless the user explicitly asks for it and understands that local files may be overwritten.
72
+
73
+ ## Duplicate Themes
74
+
75
+ Purpose: duplicate an existing remote theme. Shopify CLI prompts if no target theme is supplied.
76
+
77
+ ```bash
78
+ shopify theme duplicate --store <configured-store>
79
+ shopify theme duplicate --store <configured-store> --theme <theme-id-or-name> --name "<new-theme-name>"
80
+ shopify theme duplicate --store <configured-store> --theme <theme-id-or-name> --name "<new-theme-name>" --json
81
+ ```
82
+
83
+ Use `--force` only when the user has already confirmed the exact source theme, because it suppresses prompts and confirmations.
84
+
85
+ ## Rename Themes
86
+
87
+ Purpose: rename a remote theme.
88
+
89
+ ```bash
90
+ shopify theme rename --store <configured-store>
91
+ shopify theme rename --store <configured-store> --theme <theme-id-or-name> --name "<new-theme-name>"
92
+ shopify theme rename --store <configured-store> --development --name "<new-theme-name>"
93
+ ```
94
+
95
+ Do not rename the live theme unless the user explicitly asks for that production change.