@wix/agent-skills 1.1.0 → 1.3.0

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/README.md CHANGED
@@ -55,16 +55,6 @@ npx skills add wix/skills
55
55
  npx skills add wix/skills -g
56
56
  ```
57
57
 
58
- ### npm Package (versioned distribution)
59
-
60
- For Wix-internal infrastructure that needs a pinned, versioned skills snapshot (e.g., App Builder, Studio 2, `@wix/cli`), `@wix/agent-skills` is also published to npm:
61
-
62
- ```bash
63
- npm install @wix/agent-skills
64
- ```
65
-
66
- The npm package contains the same skill bodies as the GitHub repo but pinned to a specific version. Consumers typically install it as a transitive dependency of `@wix/cli` rather than directly. See [CODEAI-505](https://wix.atlassian.net/browse/CODEAI-505) for context.
67
-
68
58
  ## Available Skills
69
59
 
70
60
  | Skill | Purpose | When to Use |
@@ -100,7 +90,7 @@ When a major bump is required (a breaking change in the underlying `wix-cli`), t
100
90
 
101
91
  ## Releasing
102
92
 
103
- Releases run via the [`release` GitHub Actions workflow](.github/workflows/release.yml) using npm Trusted Publishing (no stored tokens). Triggered manually from the **Actions** tab: pick `version_strategy` and optionally `dry_run`. Modeled on [`wix/interact`](https://github.com/wix/interact/blob/master/.github/workflows/release-interact.yml)'s setup.
93
+ Run the [`release-bump`](.github/workflows/release-bump.yml) workflow from the **Actions** tab and pick a `version_strategy`. The rest is automatic — the bump PR auto-merges once checks pass and [`release.yml`](.github/workflows/release.yml) publishes to npm via Trusted Publishing.
104
94
 
105
95
  ## Contributing
106
96
 
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@wix/agent-skills",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Wix Skills for AI coding agents — versioned npm distribution of the wix/skills content.",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/wix/skills.git"
9
+ },
6
10
  "homepage": "https://github.com/wix/skills",
7
11
  "bugs": {
8
12
  "url": "https://github.com/wix/skills/issues"
@@ -12,18 +16,8 @@
12
16
  "README.md",
13
17
  "LICENSE"
14
18
  ],
15
- "scripts": {
16
- "test": "echo \"no tests\" && exit 0"
17
- },
18
19
  "publishConfig": {
19
- "registry": "https://registry.npmjs.org/",
20
- "access": "public"
21
- },
22
- "wix": {
23
- "artifact": {
24
- "groupId": "com.wixpress.npm",
25
- "artifactId": "agent-skills"
26
- }
27
- },
28
- "falconPackageHash": "33bdd30a5288c55232a069b39e440161731b5a6ee3d8d8ba288f1806"
29
- }
20
+ "access": "public",
21
+ "registry": "https://registry.npmjs.org/"
22
+ }
23
+ }
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: wix-app
3
3
  description: "Build and review Wix CLI app extensions — dashboard pages, modals, plugins, menu plugins, custom element widgets, Editor React components, site plugins, embedded scripts, backend APIs, backend events, service plugins, data collections, and App Market readiness. Use when building ANY feature or extension for a Wix CLI app or preparing a Wix app for App Market review. Triggers on: add, build, create, implement, help me, dashboard, widget, plugin, backend, API, event, collection, embedded script, service plugin, Editor React component, checkout, shipping, tax, discount, SPI, CMS, schema, tracking, popup, admin panel, menu item, modal, validate, test, verify, register extension, App Market, app review, submission readiness."
4
- compatibility: Requires Wix CLI development environment
4
+ compatibility: Requires Wix CLI development environment.
5
5
  ---
6
6
 
7
7
  # Wix App Builder
@@ -23,8 +23,10 @@ This recipe covers basic Create, Read, Update, Delete (CRUD) operations for Wix
23
23
  Before inserting or updating items, you need to know the collection's field names and types. If you don't already know the schema:
24
24
 
25
25
  1. **Query existing items** - Fetch a few items to infer field names from the data
26
- 2. **Get collection schema** - Use `GET /collections/{collectionId}` for full field definitions
27
- 3. **List collections** - Use `GET /collections?fields=id` to see what collections exist (see [Schema Management](cms-schema-management.md))
26
+ 2. **Get collection schema** - Use `GET /collections/{dataCollectionId}` for full field definitions
27
+ 3. **List collections** - Use `GET /collections?fields=displayName` to see what collections exist (see [Schema Management](cms-schema-management.md))
28
+
29
+ It may be, that user refers to schema by its `displayName` rather than `id`, if collection is not found list all collections to find the right `id` (`dataCollectionId`) to use.
28
30
 
29
31
  ---
30
32
 
@@ -351,6 +353,28 @@ curl -X DELETE \
351
353
  }
352
354
  ```
353
355
 
356
+ ## Field Types Reference
357
+
358
+ | Type | Description | Example Value |
359
+ |------|-------------|---------------|
360
+ | `TEXT` | String | `"Hello World"` |
361
+ | `NUMBER` | Numeric | `99.99` |
362
+ | `BOOLEAN` | True/false | `true` |
363
+ | `DATE` | Date only | `"2024-01-15"` |
364
+ | `DATETIME` | Date and time | `{ "$date": "2024-01-15T10:00:00.000Z" }` |
365
+ | `IMAGE` | Image reference (HTTP url or wix:image://v1/{mediaId}/{friendlyName}) | `"wix:image://v1/3f72369f2219e2ee853e9e3df0217ce1.jpg/Colorful%20Business%20Cards.jpg"` |
366
+ | `VIDEO` | Video reference (HTTP url or wix:video://v1/{mediaId}/{friendlyName}) | `"wix:video://v1/11062b_484182533ede4b9a81329daf20238867/Sketching%20Design%20Concepts#posterUri=11062b_484182533ede4b9a81329daf20238867f000.jpg&posterWidth=1920&posterHeight=1080"` |
367
+ | `DOCUMENT` | Document reference (HTTP url or wix:document://v1/{mediaId}) | `"wix:document://v1/..."` |
368
+ | `URL` | Web URL | `"https://example.com"` |
369
+ | `RICH_TEXT` | HTML content | `"<p>Rich text</p>"` |
370
+ | `EMAIL` | Email | `"example@wix.com"` |
371
+ | `RICH_CONTENT` | Structured content | Complex object |
372
+ | `ADDRESS` | Address object | Address fields |
373
+ | `ARRAY_STRING` | Array of strings | `["tag1", "tag2"]` |
374
+ | `OBJECT` | JSON object | `{"key": "value"}` |
375
+ | `REFERENCE` | Single reference | Item ID string |
376
+ | `MULTI_REFERENCE` | Multiple references, use separate *reference* endpoints to manipulate, `include` to include in queries | Array of IDs |
377
+
354
378
  ---
355
379
 
356
380
  ## Query Operators
@@ -20,7 +20,7 @@ This recipe covers managing the structure (schema) of Wix CMS collections using
20
20
  **Lightweight listing (recommended for existence checks)**:
21
21
  ```bash
22
22
  curl -X GET \
23
- 'https://www.wixapis.com/wix-data/v2/collections?fields=id' \
23
+ 'https://www.wixapis.com/wix-data/v2/collections?fields=displayName' \
24
24
  -H 'Authorization: <AUTH>'
25
25
  ```
26
26