Skip to content

Commit 57d6115

Browse files
add commerce api skill (#1339)
* add commerce api skill * add skills readme
1 parent 4e031cb commit 57d6115

4 files changed

Lines changed: 446 additions & 2 deletions

File tree

.changeset/petite-owls-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@godaddy/react": patch
3+
---
4+
5+
Add commerce api skill

packages/react/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,34 @@ All fields are optional strings. Pass any subset to override the defaults.
184184
| `secondaryBackground` | Secondary background |
185185
| `secondaryForeground` | Text on secondary backgrounds |
186186

187+
## AI Agent Skills
188+
189+
This package ships a [TanStack Intent](https://tanstack.com/intent/latest) skill that teaches AI coding agents how to connect to the GoDaddy Commerce GraphQL APIs (Orders, Catalog, Taxes, Price Adjustments).
190+
191+
### Loading the skill
192+
193+
Tell your agent:
194+
195+
```
196+
Read node_modules/@godaddy/react/skills/commerce-api/SKILL.md and use it to connect to the GoDaddy Commerce APIs.
197+
```
198+
199+
### Automatic discovery
200+
201+
From your project directory, run:
202+
203+
```
204+
npx @tanstack/intent@latest list
205+
```
206+
207+
This will show the `commerce-api` skill and its path. To set up persistent skill-to-task mappings in your `AGENTS.md`, run:
208+
209+
```
210+
npx @tanstack/intent@latest install
211+
```
212+
213+
Then ask your agent to follow the instructions it outputs.
214+
187215
## Codegen
188216

189217
For now the schema will be downloaded from the order schema.

packages/react/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"type": "module",
66
"types": "./dist/index.d.ts",
77
"files": [
8-
"dist"
8+
"dist",
9+
"skills"
910
],
1011
"exports": {
1112
"./package.json": "./package.json",
@@ -122,5 +123,8 @@
122123
"repository": {
123124
"type": "git",
124125
"url": "git+https://github.com/godaddy/javascript.git"
125-
}
126+
},
127+
"keywords": [
128+
"tanstack-intent"
129+
]
126130
}

0 commit comments

Comments
 (0)