[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F0HW8X70NPJ7ZXBEBYSC0S":3,"skill-same:01M6F0HW8X70NPJ7ZXBEBYSC0S":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6F0HW8X70NPJ7ZXBEBYSC0S","sleek-design-mobile-apps",null,"Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests (\"design an app that does X\") and specific ones (\"list my projects\", \"create a new project\", \"screenshot that screen\").","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsleekdotdesign\u002Fsleek-design-mobile-apps\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"apps","sleek design mobile apps","mobile","design","environment","screen","app","project","mobile app","only","use","list","projects","new project","access","api","network","ui","screenshot","create","2026-11-10 10:12:30",false,"---\nname: sleek-design-mobile-apps\ndescription: Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests (\"design an app that does X\") and specific ones (\"list my projects\", \"create a new project\", \"screenshot that screen\").\ncompatibility: Requires SLEEK_API_KEY environment variable. Network access limited to https:\u002F\u002Fsleek.design only.\nmetadata:\n  requires-env: SLEEK_API_KEY\n  allowed-hosts: https:\u002F\u002Fsleek.design\n---\n\n# Designing with Sleek\n\n## Overview\n\nSleek is an AI-powered mobile app design tool. You interact with it via a REST API at `\u002Fapi\u002Fv1\u002F*` to create projects, describe what you want built in plain language, and get back rendered screens. All communication is standard HTTP with bearer token auth.\n\n**Base URL**: `https:\u002F\u002Fsleek.design`\n**Auth**: `Authorization: Bearer $SLEEK_API_KEY` on every `\u002Fapi\u002Fv1\u002F*` request\n**Content-Type**: `application\u002Fjson` (requests and responses)\n**CORS**: Enabled on all `\u002Fapi\u002Fv1\u002F*` endpoints\n\n---\n\n## Prerequisites: API Key\n\nCreate API keys at **https:\u002F\u002Fsleek.design\u002Fdashboard\u002Fapi-keys**. The full key value is shown only once at creation — store it in the `SLEEK_API_KEY` environment variable.\n\n**Required plan**: Pro+ (API access is gated)\n\n### Key scopes\n\n| Scope             | What it unlocks              |\n| ----------------- | ---------------------------- |\n| `projects:read`   | List \u002F get projects          |\n| `projects:write`  | Create \u002F delete projects     |\n| `components:read` | List components in a project |\n| `chats:read`      | Get chat run status          |\n| `chats:write`     | Send chat messages           |\n| `screenshots`     | Render component screenshots |\n\nCreate a key with only the scopes needed for the task.\n\n---\n\n## Security & Privacy\n\n- **Single host**: All requests go exclusively to `https:\u002F\u002Fsleek.design`. No data is sent to third parties.\n- **HTTPS only**: All communication uses HTTPS. The API key is transmitted only in the `Authorization` header to Sleek endpoints.\n- **Minimal scopes**: Create API keys with only the scopes required for the task. Prefer short-lived or revocable keys.\n- **Image URLs**: When using `imageUrls` in chat messages, those URLs are fetched by Sleek's servers. Avoid passing URLs that contain sensitive content.\n\n---\n\n## Handling high-level requests\n\nWhen the user says something like \"design a fitness tracking app\" or \"build me a settings screen\":\n\n1. **Create a project** if one doesn't exist yet (ask the user for a name, or derive one from the request)\n2. **Send a chat message** describing what to build — you can use the user's words directly as `message.text`; Sleek's AI interprets natural language\n3. **Follow the screenshot delivery rule** below to show the result\n\nYou do not need to decompose the request into screens first. Send the full intent as a single message and let Sleek decide what screens to create.\n\n---\n\n## Screenshot delivery rule\n\n**After every chat run that produces `screen_created` or `screen_updated` operations, always take screenshots and show them to the user.** Never silently complete a chat run without delivering the visuals.\n\n**When screens are created for the first time on a project** (i.e. the run includes `screen_created` operations), deliver:\n1. One screenshot per newly created screen (individual `componentIds: [screenId]`)\n2. One combined screenshot of all screens in the project (`componentIds: [all screen ids]`)\n\n**When only existing screens are updated**, deliver one screenshot per affected screen.\n\nUse `background: \"transparent\"` for all screenshots unless the user explicitly requests otherwise.\n\n---\n\n## Quick Reference — All Endpoints\n\n| Method   | Path                                    | Scope             | Description       |\n| -------- | --------------------------------------- | ----------------- | ----------------- |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects`                      | `projects:read`   | List projects     |\n| `POST`   | `\u002Fapi\u002Fv1\u002Fprojects`                      | `projects:write`  | Create project    |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id`                  | `projects:read`   | Get project       |\n| `DELETE` | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id`                  | `projects:write`  | Delete project    |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fcomponents`       | `components:read` | List components   |\n| `POST`   | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages`    | `chats:write`     | Send chat message |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fruns\u002F:runId` | `chats:read`      | Poll run status   |\n| `POST`   | `\u002Fapi\u002Fscreenshots`                      | `screenshots`     | Render screenshot |\n\nAll IDs are stable string identifiers.\n\n---\n\n## Endpoints\n\n### Projects\n\n#### List projects\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects?limit=50&offset=0\nAuthorization: Bearer $SLEEK_API_KEY\n```\n\nResponse `200`:\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"proj_abc\",\n      \"name\": \"My App\",\n      \"slug\": \"my-app\",\n      \"createdAt\": \"2026-01-01T00:00:00Z\",\n      \"updatedAt\": \"...\"\n    }\n  ],\n  \"pagination\": { \"total\": 12, \"limit\": 50, \"offset\": 0 }\n}\n```\n\n#### Create project\n\n```http\nPOST \u002Fapi\u002Fv1\u002Fprojects\nAuthorization: Bearer $SLEEK_API_KEY\nContent-Type: application\u002Fjson\n\n{ \"name\": \"My New App\" }\n```\n\nResponse `201` — same shape as a single project.\n\n#### Get \u002F Delete project\n\n```http\nGET    \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\nDELETE \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId   → 204 No Content\n```\n\n---\n\n### Components\n\n#### List components\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\u002Fcomponents?limit=50&offset=0\nAuthorization: Bearer $SLEEK_API_KEY\n```\n\nResponse `200`:\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"cmp_xyz\",\n      \"name\": \"Hero Section\",\n      \"activeVersion\": 3,\n      \"versions\": [{ \"id\": \"ver_001\", \"version\": 1, \"createdAt\": \"...\" }],\n      \"createdAt\": \"...\",\n      \"updatedAt\": \"...\"\n    }\n  ],\n  \"pagination\": { \"total\": 5, \"limit\": 50, \"offset\": 0 }\n}\n```\n\n---\n\n### Chat — Send Message\n\nThis is the core action: describe what you want in `message.text` and the AI creates or modifies screens.\n\n```http\nPOST \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\u002Fchat\u002Fmessages?wait=false\nAuthorization: Bearer $SLEEK_API_KEY\nContent-Type: application\u002Fjson\nidempotency-key: \u003Coptional, max 255 chars>\n\n{\n  \"message\": { \"text\": \"Add a pricing section with three tiers\" },\n  \"imageUrls\": [\"https:\u002F\u002Fexample.com\u002Fref.png\"],\n  \"target\": { \"screenId\": \"scr_abc\" }\n}\n```\n\n| Field                    | Required | Notes                                         |\n| ------------------------ | -------- | --------------------------------------------- |\n| `message.text`           | Yes      | 1+ chars, trimmed                             |\n| `imageUrls`              | No       | HTTPS URLs only; included as visual context   |\n| `target.screenId`        | No       | Edit a specific screen; omit to let AI decide |\n| `?wait=true\u002Ffalse`       | No       | Sync wait mode (default: false)               |\n| `idempotency-key` header | No       | Replay-safe re-sends                          |\n\n#### Response — async (default, `wait=false`)\n\nStatus `202 Accepted`. `result` and `error` are absent until the run reaches a terminal state.\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"queued\",\n    \"statusUrl\": \"\u002Fapi\u002Fv1\u002Fprojects\u002Fproj_abc\u002Fchat\u002Fruns\u002Frun_111\"\n  }\n}\n```\n\n#### Response — sync (`wait=true`)\n\nBlocks up to **300 seconds**. Returns `200` when completed, `202` if timed out.\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"completed\",\n    \"statusUrl\": \"...\",\n    \"result\": {\n      \"assistantText\": \"I added a pricing section with...\",\n      \"operations\": [\n        { \"type\": \"screen_created\", \"screenId\": \"scr_xyz\", \"screenName\": \"Pricing\" },\n        { \"type\": \"screen_updated\", \"screenId\": \"scr_abc\" },\n        { \"type\": \"theme_updated\" }\n      ]\n    }\n  }\n}\n```\n\n---\n\n### Chat — Poll Run Status\n\nUse this after async send to check progress.\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\u002Fchat\u002Fruns\u002F:runId\nAuthorization: Bearer $SLEEK_API_KEY\n```\n\nResponse — same shape as send message `data` object:\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"queued\",\n    \"statusUrl\": \"...\"\n  }\n}\n```\n\nWhen completed successfully, `result` is present:\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"completed\",\n    \"statusUrl\": \"...\",\n    \"result\": {\n      \"assistantText\": \"...\",\n      \"operations\": [...]\n    }\n  }\n}\n```\n\nWhen failed, `error` is present:\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"failed\",\n    \"statusUrl\": \"...\",\n    \"error\": { \"code\": \"execution_failed\", \"message\": \"...\" }\n  }\n}\n```\n\n**Run status lifecycle**: `queued` → `running` → `completed | failed`\n\n---\n\n### Screenshots\n\nTakes a snapshot of one or more rendered components.\n\n```http\nPOST \u002Fapi\u002Fscreenshots\nAuthorization: Bearer $SLEEK_API_KEY\nContent-Type: application\u002Fjson\n\n{\n  \"componentIds\": [\"cmp_xyz\", \"cmp_abc\"],\n  \"projectId\": \"proj_abc\",\n  \"format\": \"png\",\n  \"scale\": 2,\n  \"gap\": 40,\n  \"padding\": 40,\n  \"background\": \"transparent\"\n}\n```\n\n| Field        | Default       | Notes                                                                 |\n| ------------ | ------------- | --------------------------------------------------------------------- |\n| `format`     | `png`         | `png` or `webp`                                                      |\n| `scale`      | `2`           | 1–3 (device pixel ratio)                                             |\n| `gap`        | `40`          | Pixels between components                                            |\n| `padding`    | `40`          | Uniform padding on all sides                                         |\n| `paddingX`   | _(optional)_  | Horizontal padding; overrides `padding` for left\u002Fright when provided |\n| `paddingY`   | _(optional)_  | Vertical padding; overrides `padding` for top\u002Fbottom when provided   |\n| `background` | `transparent` | Any CSS color (hex, named, `transparent`)                            |\n| `showDots`   | `false`       | Overlay a subtle dot grid on the background                          |\n\n`paddingX` and `paddingY` take precedence over `padding` for their axis. If neither is set, `padding` applies to all sides. For example, `{ \"padding\": 20, \"paddingX\": 10 }` gives 10px horizontal and 20px vertical padding.\n\nWhen `showDots` is `true`, a dot pattern is drawn over the background color. The dots automatically adapt to the background: dark backgrounds get light dots, light backgrounds get dark dots. This has no effect when `background` is `\"transparent\"`.\n\nAlways use `\"background\": \"transparent\"` unless the user explicitly requests a specific background color.\n\nResponse: raw binary `image\u002Fpng` or `image\u002Fwebp` with `Content-Disposition: attachment`.\n\n---\n\n## Error Shapes\n\n```json\n{ \"code\": \"UNAUTHORIZED\", \"message\": \"...\" }\n```\n\n| HTTP | Code                    | When                                   |\n| ---- | ----------------------- | -------------------------------------- |\n| 401  | `UNAUTHORIZED`          | Missing\u002Finvalid\u002Fexpired API key        |\n| 403  | `FORBIDDEN`             | Valid key, wrong scope or plan         |\n| 404  | `NOT_FOUND`             | Resource doesn't exist                 |\n| 400  | `BAD_REQUEST`           | Validation failure                     |\n| 409  | `CONFLICT`              | Another run is active for this project |\n| 500  | `INTERNAL_SERVER_ERROR` | Server error                           |\n\nChat run-level errors (inside `data.error`):\n\n| Code               | Meaning                          |\n| ------------------ | -------------------------------- |\n| `out_of_credits`   | Organization has no credits left |\n| `execution_failed` | AI execution error               |\n\n---\n\n## Flows\n\n### Flow 1: Create project and generate a UI (async + polling)\n\n```\n1. POST \u002Fapi\u002Fv1\u002Fprojects                              → get projectId\n2. POST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages            → get runId (202)\n3. Poll GET \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fruns\u002F:runId\n   until status == \"completed\" or \"failed\"\n4. Collect screenIds from result.operations\n   (screen_created and screen_updated entries)\n5. Screenshot each affected screen individually\n6. If any screen_created: also screenshot all project screens combined\n7. Show all screenshots to the user\n```\n\n**Polling recommendation**: start at 2s interval, back off to 5s after 10s, give up after 5 minutes.\n\n### Flow 2: Sync mode (simple, blocking)\n\nBest for short tasks or when latency is acceptable.\n\n```\n1. POST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages?wait=true\n   → blocks up to 300s\n   → 200 if completed, 202 if timed out\n2. If 202, fall back to Flow 1 polling with the returned runId\n3. On completion, screenshot and show affected screens (see screenshot delivery rule)\n```\n\n### Flow 3: Edit a specific screen\n\n```\n1. GET \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fcomponents         → find screenId\n2. POST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages\n   body: { message: { text: \"...\" }, target: { screenId: \"scr_xyz\" } }\n3. Poll or wait as above\n4. Screenshot the updated screen and show it to the user\n```\n\n### Flow 4: Idempotent message (safe retries)\n\nAdd `idempotency-key` header on the send request. If the network drops and you retry with the same key, the server returns the existing run rather than creating a duplicate. The key must be ≤255 chars.\n\n```\nPOST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages\nidempotency-key: my-unique-request-id-abc123\n```\n\n### Flow 5: One run at a time (conflict handling)\n\nOnly one active run is allowed per project. If you send a message while one is running, you get `409 CONFLICT`. Wait for the active run to complete before sending the next message.\n\n```\n409 response → poll existing run → completed → send next message\n```\n\n---\n\n## Pagination\n\nAll list endpoints accept `limit` (1–100, default 50) and `offset` (≥0). The response always includes `pagination.total` so you can page through all results.\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects?limit=10&offset=20\n```\n\n---\n\n## Common Mistakes\n\n| Mistake                                             | Fix                                                                             |\n| --------------------------------------------------- | ------------------------------------------------------------------------------- |\n| Sending to `\u002Fapi\u002Fv1` without `Authorization` header | Add `Authorization: Bearer $SLEEK_API_KEY` to every request                              |\n| Using wrong scope                                   | Check key's scopes match the endpoint (e.g. `chats:write` for sending messages) |\n| Sending next message before run completes           | Poll until `completed`\u002F`failed` before next send                                |\n| Using `wait=true` on long generations               | It blocks 300s max; have a fallback to polling for `202` response               |\n| HTTP URLs in `imageUrls`                            | Only HTTPS URLs are accepted                                                    |\n| Assuming `result` is present on `202`               | `result` is absent until status is `completed`                                  |\n","# Designing with Sleek\n\n## Overview\n\nSleek is an AI-powered mobile app design tool. You interact with it via a REST API at `\u002Fapi\u002Fv1\u002F*` to create projects, describe what you want built in plain language, and get back rendered screens. All communication is standard HTTP with bearer token auth.\n\n**Base URL**: `https:\u002F\u002Fsleek.design`\n**Auth**: `Authorization: Bearer $SLEEK_API_KEY` on every `\u002Fapi\u002Fv1\u002F*` request\n**Content-Type**: `application\u002Fjson` (requests and responses)\n**CORS**: Enabled on all `\u002Fapi\u002Fv1\u002F*` endpoints\n\n---\n\n## Prerequisites: API Key\n\nCreate API keys at **https:\u002F\u002Fsleek.design\u002Fdashboard\u002Fapi-keys**. The full key value is shown only once at creation — store it in the `SLEEK_API_KEY` environment variable.\n\n**Required plan**: Pro+ (API access is gated)\n\n### Key scopes\n\n| Scope             | What it unlocks              |\n| ----------------- | ---------------------------- |\n| `projects:read`   | List \u002F get projects          |\n| `projects:write`  | Create \u002F delete projects     |\n| `components:read` | List components in a project |\n| `chats:read`      | Get chat run status          |\n| `chats:write`     | Send chat messages           |\n| `screenshots`     | Render component screenshots |\n\nCreate a key with only the scopes needed for the task.\n\n---\n\n## Security & Privacy\n\n- **Single host**: All requests go exclusively to `https:\u002F\u002Fsleek.design`. No data is sent to third parties.\n- **HTTPS only**: All communication uses HTTPS. The API key is transmitted only in the `Authorization` header to Sleek endpoints.\n- **Minimal scopes**: Create API keys with only the scopes required for the task. Prefer short-lived or revocable keys.\n- **Image URLs**: When using `imageUrls` in chat messages, those URLs are fetched by Sleek's servers. Avoid passing URLs that contain sensitive content.\n\n---\n\n## Handling high-level requests\n\nWhen the user says something like \"design a fitness tracking app\" or \"build me a settings screen\":\n\n1. **Create a project** if one doesn't exist yet (ask the user for a name, or derive one from the request)\n2. **Send a chat message** describing what to build — you can use the user's words directly as `message.text`; Sleek's AI interprets natural language\n3. **Follow the screenshot delivery rule** below to show the result\n\nYou do not need to decompose the request into screens first. Send the full intent as a single message and let Sleek decide what screens to create.\n\n---\n\n## Screenshot delivery rule\n\n**After every chat run that produces `screen_created` or `screen_updated` operations, always take screenshots and show them to the user.** Never silently complete a chat run without delivering the visuals.\n\n**When screens are created for the first time on a project** (i.e. the run includes `screen_created` operations), deliver:\n1. One screenshot per newly created screen (individual `componentIds: [screenId]`)\n2. One combined screenshot of all screens in the project (`componentIds: [all screen ids]`)\n\n**When only existing screens are updated**, deliver one screenshot per affected screen.\n\nUse `background: \"transparent\"` for all screenshots unless the user explicitly requests otherwise.\n\n---\n\n## Quick Reference — All Endpoints\n\n| Method   | Path                                    | Scope             | Description       |\n| -------- | --------------------------------------- | ----------------- | ----------------- |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects`                      | `projects:read`   | List projects     |\n| `POST`   | `\u002Fapi\u002Fv1\u002Fprojects`                      | `projects:write`  | Create project    |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id`                  | `projects:read`   | Get project       |\n| `DELETE` | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id`                  | `projects:write`  | Delete project    |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fcomponents`       | `components:read` | List components   |\n| `POST`   | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages`    | `chats:write`     | Send chat message |\n| `GET`    | `\u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fruns\u002F:runId` | `chats:read`      | Poll run status   |\n| `POST`   | `\u002Fapi\u002Fscreenshots`                      | `screenshots`     | Render screenshot |\n\nAll IDs are stable string identifiers.\n\n---\n\n## Endpoints\n\n### Projects\n\n#### List projects\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects?limit=50&offset=0\nAuthorization: Bearer $SLEEK_API_KEY\n```\n\nResponse `200`:\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"proj_abc\",\n      \"name\": \"My App\",\n      \"slug\": \"my-app\",\n      \"createdAt\": \"2026-01-01T00:00:00Z\",\n      \"updatedAt\": \"...\"\n    }\n  ],\n  \"pagination\": { \"total\": 12, \"limit\": 50, \"offset\": 0 }\n}\n```\n\n#### Create project\n\n```http\nPOST \u002Fapi\u002Fv1\u002Fprojects\nAuthorization: Bearer $SLEEK_API_KEY\nContent-Type: application\u002Fjson\n\n{ \"name\": \"My New App\" }\n```\n\nResponse `201` — same shape as a single project.\n\n#### Get \u002F Delete project\n\n```http\nGET    \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\nDELETE \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId   → 204 No Content\n```\n\n---\n\n### Components\n\n#### List components\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\u002Fcomponents?limit=50&offset=0\nAuthorization: Bearer $SLEEK_API_KEY\n```\n\nResponse `200`:\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"cmp_xyz\",\n      \"name\": \"Hero Section\",\n      \"activeVersion\": 3,\n      \"versions\": [{ \"id\": \"ver_001\", \"version\": 1, \"createdAt\": \"...\" }],\n      \"createdAt\": \"...\",\n      \"updatedAt\": \"...\"\n    }\n  ],\n  \"pagination\": { \"total\": 5, \"limit\": 50, \"offset\": 0 }\n}\n```\n\n---\n\n### Chat — Send Message\n\nThis is the core action: describe what you want in `message.text` and the AI creates or modifies screens.\n\n```http\nPOST \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\u002Fchat\u002Fmessages?wait=false\nAuthorization: Bearer $SLEEK_API_KEY\nContent-Type: application\u002Fjson\nidempotency-key: \u003Coptional, max 255 chars>\n\n{\n  \"message\": { \"text\": \"Add a pricing section with three tiers\" },\n  \"imageUrls\": [\"https:\u002F\u002Fexample.com\u002Fref.png\"],\n  \"target\": { \"screenId\": \"scr_abc\" }\n}\n```\n\n| Field                    | Required | Notes                                         |\n| ------------------------ | -------- | --------------------------------------------- |\n| `message.text`           | Yes      | 1+ chars, trimmed                             |\n| `imageUrls`              | No       | HTTPS URLs only; included as visual context   |\n| `target.screenId`        | No       | Edit a specific screen; omit to let AI decide |\n| `?wait=true\u002Ffalse`       | No       | Sync wait mode (default: false)               |\n| `idempotency-key` header | No       | Replay-safe re-sends                          |\n\n#### Response — async (default, `wait=false`)\n\nStatus `202 Accepted`. `result` and `error` are absent until the run reaches a terminal state.\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"queued\",\n    \"statusUrl\": \"\u002Fapi\u002Fv1\u002Fprojects\u002Fproj_abc\u002Fchat\u002Fruns\u002Frun_111\"\n  }\n}\n```\n\n#### Response — sync (`wait=true`)\n\nBlocks up to **300 seconds**. Returns `200` when completed, `202` if timed out.\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"completed\",\n    \"statusUrl\": \"...\",\n    \"result\": {\n      \"assistantText\": \"I added a pricing section with...\",\n      \"operations\": [\n        { \"type\": \"screen_created\", \"screenId\": \"scr_xyz\", \"screenName\": \"Pricing\" },\n        { \"type\": \"screen_updated\", \"screenId\": \"scr_abc\" },\n        { \"type\": \"theme_updated\" }\n      ]\n    }\n  }\n}\n```\n\n---\n\n### Chat — Poll Run Status\n\nUse this after async send to check progress.\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects\u002F:projectId\u002Fchat\u002Fruns\u002F:runId\nAuthorization: Bearer $SLEEK_API_KEY\n```\n\nResponse — same shape as send message `data` object:\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"queued\",\n    \"statusUrl\": \"...\"\n  }\n}\n```\n\nWhen completed successfully, `result` is present:\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"completed\",\n    \"statusUrl\": \"...\",\n    \"result\": {\n      \"assistantText\": \"...\",\n      \"operations\": [...]\n    }\n  }\n}\n```\n\nWhen failed, `error` is present:\n\n```json\n{\n  \"data\": {\n    \"runId\": \"run_111\",\n    \"status\": \"failed\",\n    \"statusUrl\": \"...\",\n    \"error\": { \"code\": \"execution_failed\", \"message\": \"...\" }\n  }\n}\n```\n\n**Run status lifecycle**: `queued` → `running` → `completed | failed`\n\n---\n\n### Screenshots\n\nTakes a snapshot of one or more rendered components.\n\n```http\nPOST \u002Fapi\u002Fscreenshots\nAuthorization: Bearer $SLEEK_API_KEY\nContent-Type: application\u002Fjson\n\n{\n  \"componentIds\": [\"cmp_xyz\", \"cmp_abc\"],\n  \"projectId\": \"proj_abc\",\n  \"format\": \"png\",\n  \"scale\": 2,\n  \"gap\": 40,\n  \"padding\": 40,\n  \"background\": \"transparent\"\n}\n```\n\n| Field        | Default       | Notes                                                                 |\n| ------------ | ------------- | --------------------------------------------------------------------- |\n| `format`     | `png`         | `png` or `webp`                                                      |\n| `scale`      | `2`           | 1–3 (device pixel ratio)                                             |\n| `gap`        | `40`          | Pixels between components                                            |\n| `padding`    | `40`          | Uniform padding on all sides                                         |\n| `paddingX`   | _(optional)_  | Horizontal padding; overrides `padding` for left\u002Fright when provided |\n| `paddingY`   | _(optional)_  | Vertical padding; overrides `padding` for top\u002Fbottom when provided   |\n| `background` | `transparent` | Any CSS color (hex, named, `transparent`)                            |\n| `showDots`   | `false`       | Overlay a subtle dot grid on the background                          |\n\n`paddingX` and `paddingY` take precedence over `padding` for their axis. If neither is set, `padding` applies to all sides. For example, `{ \"padding\": 20, \"paddingX\": 10 }` gives 10px horizontal and 20px vertical padding.\n\nWhen `showDots` is `true`, a dot pattern is drawn over the background color. The dots automatically adapt to the background: dark backgrounds get light dots, light backgrounds get dark dots. This has no effect when `background` is `\"transparent\"`.\n\nAlways use `\"background\": \"transparent\"` unless the user explicitly requests a specific background color.\n\nResponse: raw binary `image\u002Fpng` or `image\u002Fwebp` with `Content-Disposition: attachment`.\n\n---\n\n## Error Shapes\n\n```json\n{ \"code\": \"UNAUTHORIZED\", \"message\": \"...\" }\n```\n\n| HTTP | Code                    | When                                   |\n| ---- | ----------------------- | -------------------------------------- |\n| 401  | `UNAUTHORIZED`          | Missing\u002Finvalid\u002Fexpired API key        |\n| 403  | `FORBIDDEN`             | Valid key, wrong scope or plan         |\n| 404  | `NOT_FOUND`             | Resource doesn't exist                 |\n| 400  | `BAD_REQUEST`           | Validation failure                     |\n| 409  | `CONFLICT`              | Another run is active for this project |\n| 500  | `INTERNAL_SERVER_ERROR` | Server error                           |\n\nChat run-level errors (inside `data.error`):\n\n| Code               | Meaning                          |\n| ------------------ | -------------------------------- |\n| `out_of_credits`   | Organization has no credits left |\n| `execution_failed` | AI execution error               |\n\n---\n\n## Flows\n\n### Flow 1: Create project and generate a UI (async + polling)\n\n```\n1. POST \u002Fapi\u002Fv1\u002Fprojects                              → get projectId\n2. POST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages            → get runId (202)\n3. Poll GET \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fruns\u002F:runId\n   until status == \"completed\" or \"failed\"\n4. Collect screenIds from result.operations\n   (screen_created and screen_updated entries)\n5. Screenshot each affected screen individually\n6. If any screen_created: also screenshot all project screens combined\n7. Show all screenshots to the user\n```\n\n**Polling recommendation**: start at 2s interval, back off to 5s after 10s, give up after 5 minutes.\n\n### Flow 2: Sync mode (simple, blocking)\n\nBest for short tasks or when latency is acceptable.\n\n```\n1. POST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages?wait=true\n   → blocks up to 300s\n   → 200 if completed, 202 if timed out\n2. If 202, fall back to Flow 1 polling with the returned runId\n3. On completion, screenshot and show affected screens (see screenshot delivery rule)\n```\n\n### Flow 3: Edit a specific screen\n\n```\n1. GET \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fcomponents         → find screenId\n2. POST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages\n   body: { message: { text: \"...\" }, target: { screenId: \"scr_xyz\" } }\n3. Poll or wait as above\n4. Screenshot the updated screen and show it to the user\n```\n\n### Flow 4: Idempotent message (safe retries)\n\nAdd `idempotency-key` header on the send request. If the network drops and you retry with the same key, the server returns the existing run rather than creating a duplicate. The key must be ≤255 chars.\n\n```\nPOST \u002Fapi\u002Fv1\u002Fprojects\u002F:id\u002Fchat\u002Fmessages\nidempotency-key: my-unique-request-id-abc123\n```\n\n### Flow 5: One run at a time (conflict handling)\n\nOnly one active run is allowed per project. If you send a message while one is running, you get `409 CONFLICT`. Wait for the active run to complete before sending the next message.\n\n```\n409 response → poll existing run → completed → send next message\n```\n\n---\n\n## Pagination\n\nAll list endpoints accept `limit` (1–100, default 50) and `offset` (≥0). The response always includes `pagination.total` so you can page through all results.\n\n```http\nGET \u002Fapi\u002Fv1\u002Fprojects?limit=10&offset=20\n```\n\n---\n\n## Common Mistakes\n\n| Mistake                                             | Fix                                                                             |\n| --------------------------------------------------- | ------------------------------------------------------------------------------- |\n| Sending to `\u002Fapi\u002Fv1` without `Authorization` header | Add `Authorization: Bearer $SLEEK_API_KEY` to every request                              |\n| Using wrong scope                                   | Check key's scopes match the endpoint (e.g. `chats:write` for sending messages) |\n| Sending next message before run completes           | Poll until `completed`\u002F`failed` before next send                                |\n| Using `wait=true` on long generations               | It blocks 300s max; have a fallback to polling for `202` response               |\n| HTTP URLs in `imageUrls`                            | Only HTTPS URLs are accepted                                                    |\n| Assuming `result` is present on `202`               | `result` is absent until status is `completed`                                  |\n",{"name":5,"metadata":44,"description":7,"compatibility":47},{"requires-env":45,"allowed-hosts":46},"SLEEK_API_KEY","https:\u002F\u002Fsleek.design","Requires SLEEK_API_KEY environment variable. Network access limited to https:\u002F\u002Fsleek.design only.","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fsleekdotdesign\u002Fsleek-design-mobile-apps",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill sleek-design-mobile-apps",{"tool":63,"command":64},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill sleek-design-mobile-apps",{"tool":66,"command":67},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill sleek-design-mobile-apps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsleekdotdesign\u002Fsleek-design-mobile-apps\u002FSKILL.md",true,[71],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"skill-report.json","REFERENCE","参考文档",8859,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fsleekdotdesign\u002Fsleek-design-mobile-apps\u002Fskill-report.json",[78,87,96,104,110,116],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[84,85,86],"model","model hierarchy","model hierarchy skill",{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[93,94,95],"MCP","zoom","zoom mcp",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[102,103,19,94],"sdk","zoom apps sdk",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]