dx list
Instructions
This skill helps users discover and execute various dx list commands. When users type 'dx list' or ask to list resources, present them with available list command options organized by category.
Available List Commands
Infrastructure Commands (dx infrastructure list-*)
list-artifact-versions
- Description: List recent artifact versions of the component/frontend
- Required parameters:
--system or -s: System name (e.g., tbb)
--component or -c: Component name (e.g., core-api)
- Optional parameters:
--max or -m: Max number of items in result (default: 30)
- Command:
npx @siteminder/dx infrastructure list-artifact-versions -s <system> -c <component>
list-builds
- Description: List builds on infrastructure-deploy pipeline
- Required parameters:
- Either
--component or -c OR --config-file or -C
--env or -e: Environment (when using --component)
--realm or -r: Deployment realm (dev, pciprod, preprod, bi, bidev, oldprod, test, stratops)
- Optional parameters:
--type or -t: Deployment type (terraform, helm, frontend)
--region or -R: Region construct
--config-branch or -b: Branch to checkout in config repo
--infrastructure-branch or -i: Branch to checkout in app infrastructure repo
--max-pages: Max number of BuildKite build result pages (default: 10)
--per-page: Results per page (default: 100)
--created-from: Filter by builds created on or after (ISO 8601 format)
--created-to: Filter by builds created before (ISO 8601 format)
- Command:
npx @siteminder/dx infrastructure list-builds -c <component> -e <env> -r <realm>
list-tagged-resources
- Description: List resources deployed to AWS and K8s
- Optional parameters:
--environment or -e: Environment to list resources
--system or -s: System name(s) (comma separated)
--component or -c: Component name(s) (comma separated)
--provider or -pr: Provider (aws, k8s, all - default: all)
--providerService or -ps: Provider service(s) (default: compute)
--sort: Sort by comma separated parameters (default: environment,system,component,provider)
- Command:
npx @siteminder/dx infrastructure list-tagged-resources -e <env> -s <system>
list-standard-terraform-modules
- Description: List all standard default terraform modules that should be used in infrastructure
- No parameters required
- Command:
npx @siteminder/dx infrastructure list-standard-terraform-modules
Overlord Commands (dx overlord list-*)
- list-non-standard-docker-images
- Description: List non standard docker images used in the system directory
- Required parameters:
--system: Path to the system folder
- Command:
npx @siteminder/dx overlord list-non-standard-docker-images --system <path>
Code Commands (dx code list-*)
list-docker-image-versions
- Description: List all docker image versions used in the current dir and child dir
- No parameters required (runs in current directory)
- Command:
npx @siteminder/dx code list-docker-image-versions
list-standard-docker-images
- Description: List all standard default docker images that should be used in systems
- No parameters required
- Command:
npx @siteminder/dx code list-standard-docker-images
list-npm-pkg-differences
- Description: Compare all package.json files to list different versions being used between components
- Optional parameters:
--dir: Path to the base directory (default: current directory)
- Command:
npx @siteminder/dx code list-npm-pkg-differences
Execution Flow
When user requests 'dx list' or similar:
- Present a categorized list of all available list commands with brief descriptions
- Ask which command they want to execute
Once user selects a command:
- Check if the command requires parameters
- If parameters are required, ask the user to provide them
- If optional parameters exist, ask if they want to specify any
- Present default values where applicable
Before executing:
- Show the complete command that will be executed
- Ask for confirmation
Execute the command:
- Check if dx is available globally, otherwise use
npx @siteminder/dx
- Run the command
- Present all stdout and stderr output to the user
Handle errors:
- If command fails, show the error message
- Suggest common fixes or parameter adjustments
Examples
Example 1: User wants to see list options
User: "dx list"
Assistant: Presents categorized list of all 8 list commands
User: Selects "list-artifact-versions"
Assistant: Asks for required parameters (system, component)
User: Provides "tbb" and "core-api"
Assistant: Confirms and executes: `dx infrastructure list-artifact-versions -s tbb -c core-api`
Example 2: User wants to list tagged resources
User: "show me list commands"
Assistant: Presents all list commands
User: "list tagged resources"
Assistant: Asks for optional parameters (environment, system, component, provider)
User: Provides "nxs-dev" for environment and "nxs" for system
Assistant: Executes: `dx infrastructure list-tagged-resources -e nxs-dev -s nxs`
Example 3: User without global dx installation
User: "dx list"
Assistant: Checks dx availability, finds it's not globally installed
Assistant: Uses `npx @siteminder/dx` prefix for all commands
User: Selects "list-standard-docker-images"
Assistant: Executes: `npx @siteminder/dx code list-standard-docker-images`
Example 4: Quick execution without menu
User: "list builds for my component in dev"
Assistant: Recognizes "list builds" command
Assistant: Asks for component path, environment, and realm
User: Provides details
Assistant: Executes: `dx infrastructure list-builds -c <component> -e dev -r <realm>`
Notes
- Always verify dx is installed globally, otherwise fall back to
npx @siteminder/dx
- For commands that require BUILDKITE_API_TOKEN or GITHUB_TOKEN, remind users to set them if errors occur
- Some commands (like list-builds) can take a component path relative to the repo root
- Commands that search the current directory will use the user's current working directory
1---2name: dx-list3description: Show list of available dx list commands and help users execute them with required parameters.4---5
6# dx list
7
8## Instructions
9This skill helps users discover and execute various dx list commands. When users type 'dx list' or ask to list resources, present them with available list command options organized by category.
10
11## Available List Commands
12
13### Infrastructure Commands (dx infrastructure list-*)
14
151. **list-artifact-versions**
16 - Description: List recent artifact versions of the component/frontend
17 - Required parameters:
18 - `--system` or `-s`: System name (e.g., tbb)
19 - `--component` or `-c`: Component name (e.g., core-api)
20 - Optional parameters:
21 - `--max` or `-m`: Max number of items in result (default: 30)
22 - Command: `npx @siteminder/dx infrastructure list-artifact-versions -s <system> -c <component>`
23
242. **list-builds**
25 - Description: List builds on infrastructure-deploy pipeline
26 - Required parameters:
27 - Either `--component` or `-c` OR `--config-file` or `-C`
28 - `--env` or `-e`: Environment (when using --component)
29 - `--realm` or `-r`: Deployment realm (dev, pciprod, preprod, bi, bidev, oldprod, test, stratops)
30 - Optional parameters:
31 - `--type` or `-t`: Deployment type (terraform, helm, frontend)
32 - `--region` or `-R`: Region construct
33 - `--config-branch` or `-b`: Branch to checkout in config repo
34 - `--infrastructure-branch` or `-i`: Branch to checkout in app infrastructure repo
35 - `--max-pages`: Max number of BuildKite build result pages (default: 10)
36 - `--per-page`: Results per page (default: 100)
37 - `--created-from`: Filter by builds created on or after (ISO 8601 format)
38 - `--created-to`: Filter by builds created before (ISO 8601 format)
39 - Command: `npx @siteminder/dx infrastructure list-builds -c <component> -e <env> -r <realm>`
40
413. **list-tagged-resources**
42 - Description: List resources deployed to AWS and K8s
43 - Optional parameters:
44 - `--environment` or `-e`: Environment to list resources
45 - `--system` or `-s`: System name(s) (comma separated)
46 - `--component` or `-c`: Component name(s) (comma separated)
47 - `--provider` or `-pr`: Provider (aws, k8s, all - default: all)
48 - `--providerService` or `-ps`: Provider service(s) (default: compute)
49 - `--sort`: Sort by comma separated parameters (default: environment,system,component,provider)
50 - Command: `npx @siteminder/dx infrastructure list-tagged-resources -e <env> -s <system>`
51
524. **list-standard-terraform-modules**
53 - Description: List all standard default terraform modules that should be used in infrastructure
54 - No parameters required
55 - Command: `npx @siteminder/dx infrastructure list-standard-terraform-modules`
56
57### Overlord Commands (dx overlord list-*)
58
595. **list-non-standard-docker-images**
60 - Description: List non standard docker images used in the system directory
61 - Required parameters:
62 - `--system`: Path to the system folder
63 - Command: `npx @siteminder/dx overlord list-non-standard-docker-images --system <path>`
64
65### Code Commands (dx code list-*)
66
676. **list-docker-image-versions**
68 - Description: List all docker image versions used in the current dir and child dir
69 - No parameters required (runs in current directory)
70 - Command: `npx @siteminder/dx code list-docker-image-versions`
71
727. **list-standard-docker-images**
73 - Description: List all standard default docker images that should be used in systems
74 - No parameters required
75 - Command: `npx @siteminder/dx code list-standard-docker-images`
76
778. **list-npm-pkg-differences**
78 - Description: Compare all package.json files to list different versions being used between components
79 - Optional parameters:
80 - `--dir`: Path to the base directory (default: current directory)
81 - Command: `npx @siteminder/dx code list-npm-pkg-differences`
82
83## Execution Flow
84
851. When user requests 'dx list' or similar:
86 - Present a categorized list of all available list commands with brief descriptions
87 - Ask which command they want to execute
88
892. Once user selects a command:
90 - Check if the command requires parameters
91 - If parameters are required, ask the user to provide them
92 - If optional parameters exist, ask if they want to specify any
93 - Present default values where applicable
94
953. Before executing:
96 - Show the complete command that will be executed
97 - Ask for confirmation
98
994. Execute the command:
100 - Check if dx is available globally, otherwise use `npx @siteminder/dx`
101 - Run the command
102 - Present all stdout and stderr output to the user
103
1045. Handle errors:
105 - If command fails, show the error message
106 - Suggest common fixes or parameter adjustments
107
108## Examples
109
110### Example 1: User wants to see list options
111```
112User: "dx list"
113Assistant: Presents categorized list of all 8 list commands
114User: Selects "list-artifact-versions"
115Assistant: Asks for required parameters (system, component)
116User: Provides "tbb" and "core-api"
117Assistant: Confirms and executes: `dx infrastructure list-artifact-versions -s tbb -c core-api`
118```
119
120### Example 2: User wants to list tagged resources
121```
122User: "show me list commands"
123Assistant: Presents all list commands
124User: "list tagged resources"
125Assistant: Asks for optional parameters (environment, system, component, provider)
126User: Provides "nxs-dev" for environment and "nxs" for system
127Assistant: Executes: `dx infrastructure list-tagged-resources -e nxs-dev -s nxs`
128```
129
130### Example 3: User without global dx installation
131```
132User: "dx list"
133Assistant: Checks dx availability, finds it's not globally installed
134Assistant: Uses `npx @siteminder/dx` prefix for all commands
135User: Selects "list-standard-docker-images"
136Assistant: Executes: `npx @siteminder/dx code list-standard-docker-images`
137```
138
139### Example 4: Quick execution without menu
140```
141User: "list builds for my component in dev"
142Assistant: Recognizes "list builds" command
143Assistant: Asks for component path, environment, and realm
144User: Provides details
145Assistant: Executes: `dx infrastructure list-builds -c <component> -e dev -r <realm>`
146```
147
148## Notes
149- Always verify dx is installed globally, otherwise fall back to `npx @siteminder/dx`
150- For commands that require BUILDKITE_API_TOKEN or GITHUB_TOKEN, remind users to set them if errors occur
151- Some commands (like list-builds) can take a component path relative to the repo root
152- Commands that search the current directory will use the user's current working directory