## Install and test ### User skills | Action | API | Permission | |---|---|---| | Create from JSON | `POST /api/skills?workspaceId=` with the JSON body, returns 201 | `skills.manage_own` | | Upload SKILL.md or ZIP | `POST /api/skills?workspaceId=` as multipart: one file, optional field `scope=workspace`, at most 20 MB | `skills.manage_own` | | List | `GET /api/skills?workspaceId=` returns items with `enabled`, `mandated`, `locked`. Admins add `&all=1` to see pack skills that are off | `chat.use` | | Edit, delete | `PUT /api/skills/{id}`, `DELETE /api/skills/{id}` | `skills.manage_own` | | Export | `GET /api/skills/{id}/export.zip?workspaceId=` | `chat.use` | | Switch on or off for me | `PUT /api/me/skills/{id} {enabled, workspaceId}` | `chat.use` | UI: **Library > Skills**. ```bash curl -X POST "https://aancer.example.com/api/skills?workspaceId=ws-procurement" \ -H "Authorization: Bearer $TOKEN" \ -F "file=@SKILL.md" -F "scope=workspace" ``` ### Pack skills 1. Sign, import and activate the pack. See [Packs](/developers/packs). 2. Enable the skill per workspace: `PUT /api/skills/{id}/workspaces {"workspaces": ["ws-procurement"]}`. The installed skill id is `pack::`. 3. Or mandate it: `PUT /api/skills/{id}/mandate {"workspaces": ["ws-procurement"], "alsoInAgents": true}`. A mandated skill applies to every chat in that workspace, and to agents when `alsoInAgents` is true. Both need `skills.mandate` and admin rights in every changed workspace. Users cannot edit pack skills. A new pack version updates the content and keeps the enable and mandate choices. Retiring the pack removes the skill. ### Test it Open a chat in the workspace and ask something that matches the description or a trigger phrase. If the answer does not follow the skill, make the description say more clearly when the skill applies, or mandate the skill in a test workspace to check the instructions on their own. ## Common errors | Code | Message | Fix | |---|---|---| | `SKILL_INVALID` | the skill needs a name / the name is longer than 120 characters | | | `SKILL_INVALID` | the skill needs a description / the description is longer than 1000 characters | For pack skills, count the `Use when:` text too | | `SKILL_INVALID` | the skill has no instructions / the instructions are longer than 20000 characters | | | `SKILL_INVALID` | invalid connector name: "..." / at most 20 connectors | Lower-case connector names, for example `google-drive` | | `SKILL_INVALID` | SKILL.md must start with a front matter block between --- lines | | | `SKILL_INVALID` | multi-line name is not supported; keep it on one line | | | `SKILL_INVALID` | the ZIP has no SKILL.md at its root / file type not allowed / the ZIP is larger than 20 MB / the ZIP holds more than 200 files | | | `SKILL_INVALID` | the skill was refused by content screening | Remove text that tries to override system rules or hide instructions | | `SKILL_INVALID` | a workspace skill needs a workspace | Pass `workspaceId` | | `SKILL_INVALID` | only skills installed from a pack are enabled per workspace | Use mandate, or ship the skill in a pack | | `SKILL_NAME_TAKEN` | a skill named "..." already exists in this workspace | Names are unique per scope, ignoring case | | `SKILL_MANDATE_LIMIT` | workspace ... already has 8 mandated skills | Remove a mandate first | | `FORBIDDEN` | this skill is mandated in this workspace and cannot be switched off | | | Pack import | `/items//spec: must NOT have additional properties` | Only the six fields in the table. There is no `files` field | ## Limits and editions - Name 120 characters, description 1000, instructions 20,000. Up to 20 connectors and 10 triggers. - ZIP upload: at most 20 MB and 200 files. - The chat index shows up to 30 enabled skills. Up to 8 skills can be mandated per workspace. - Skills are controlled by permissions: `skills.manage_own`, `skills.mandate`, `chat.use`. - Check your edition on [aancer.ai/pricing](https://aancer.ai/pricing). --- Source: https://aancer.ai/developers-themes --- title: Themes and branding | AANCER Developers description: Brand AANCER with a theme pack: colour tokens, fonts, logos, login page and e-mail colours, plus locale overlays that rename UI words. --- ## Themes > **Rules at a glance.** A theme block sets only these 35 tokens: --bg --s0 --s1 --s2 --s3 --s4 --t0 --t1 --t2 --ac --aci --acs --acb --pr --prs --prb --te --tei --tes --teb --am --ams --amb --re --res --reb --b --bm --bs --scrollbar --anchor --anchor-raised --ink-on-anchor --ink-on-anchor-dim --shadow-card (the --fs-\*, --lh-\* and --sp-\* tokens are not settable). Every font family in `typography` is declared in `fonts` or is a generic family. No `http:`, `https:`, `//`, `data:` or `url(` anywhere. Colours only `#rgb`, `#rrggbb`, `rgb()`, `rgba()`. All rules for AI assistants on one short page: [quickref](https://aancer.ai/dev/assistants/quickref.md.txt). The look of AANCER is a set of design tokens such as `--bg`, `--ac` and `--t0`, defined for seven theme blocks: `light` (default), `dark`, `midnight`, `high-contrast`, `trust-authority`, `legal` and `terminal`. A **theme pack** is a signed pack with one `theme` item. It overrides those tokens and sets the platform name, tagline, fonts, logos, login page and e-mail colours. It is corporate identity as data: no code, no redeploy, nothing loaded from the internet. Fonts and logos ship inside the pack. A theme can apply to the whole installation (including the login page and invitation e-mails) or to one workspace (the app shell only). A `locale` item in the same pack can rename UI words to match your organisation's vocabulary. Without a pack, an administrator can set simple branding by hand under **Platform Settings > Branding**. ## Quick start A theme with tokens only, no files. Use schema version 2. ```json { "v": 2, "kind": "bundle", "id": "acme.ci", "version": "1.0.0", "title": "Acme corporate identity", "publisher": { "name": "Acme Example Ltd", "keyId": "pub-0123456789ab" }, "requires": { "platform": ">=1.0.0" }, "items": [ { "kind": "theme", "schemaVersion": 2, "id": "acme-ci", "scope": "install", "spec": { "id": "acme-ci", "platformName": "Acme Cloud", "tagline": "Sovereign AI for Acme", "defaultTheme": "light", "typography": { "ui": "system-ui, sans-serif" }, "themes": { "light": { "--bg": "#FAFAF7", "--s1": "#FAFAF7", "--s2": "#FFFFFF", "--t0": "#1B2430", "--ac": "#0F6E74", "--aci": "#FFFFFF", "--pr": "#0B1F3A" }, "dark": { "--bg": "#0E1420", "--s1": "#0E1420", "--s2": "#151C2A", "--t0": "#E9EDF3", "--ac": "#5CC6C9", "--aci": "#0B1F22" } }, "login": { "backgroundColor": "#0B1F3A", "tagline": "Welcome to Acme Cloud", "legalFooter": "Acme Example Ltd" }, "email": { "headerBackground": "#0B1F3A", "buttonColor": "#0F6E74" } } } ] } ``` Keep the item `id` and `spec.id` equal. ## File layout ```text acme-ci/ manifest.json # one theme item, "spec": {"$ref": "content/theme.json"} content/ theme.json # the theme document fonts/.woff2 # woff2 only, at most 2 MiB each logos/.png # png, svg, jpg or ico, at most 2 MiB each ``` File names under `fonts/` and `logos/` use lower-case `[a-z0-9._-]` only. `aancer-pack sign` lists every file in `assets` with its hash. Next part: https://aancer.ai/dev/parts/pages/09-field-reference.md