<!-- AANCER developer pages, part 7 of 16. All parts: https://aancer.ai/dev/llms.txt -->

## Install and test

### Blueprint in a pack

1. Sign and import the pack. See [Packs](/developers/packs). Import checks the spec, the same-pack references and the web-search declaration.
2. Activate the pack. If it contains templates, deploy them in the workspace.
3. In **Agents**, choose **Create agent** from the blueprint, or call `POST /api/agents` with `{"workspaceId":"ws-ops","name":"Invoice clerk","blueprintId":"pack:acme.invoice-desk:invoice-clerk"}`. Check `blueprint.skipped[]` in the response.
4. Open the draft, test it, and publish it.

### Agent through the REST API

```bash
# create
curl -X POST https://aancer.example.com/api/agents \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"workspaceId":"ws-support","name":"Support triage","description":"Classifies requests and drafts replies"}'

# save the draft configuration
curl -X PUT https://aancer.example.com/api/agents/$AGENT_ID/draft \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d @agent-config.json      # {"config": {...}}

# preview, then publish
curl https://aancer.example.com/api/agents/$AGENT_ID/publish-preview -H "Authorization: Bearer $TOKEN"
curl -X POST https://aancer.example.com/api/agents/$AGENT_ID/publish \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"changeNote":"First version"}'
```

| Call | Permission | Notes |
|---|---|---|
| `POST /api/agents {workspaceId, name, description?, icon?, blueprintId?}` | `agents.create_own` | `blueprintId` is `pack:<packId>:<itemId>` |
| `PUT /api/agents/{id}/draft {config, ifUpdatedAt?}` | `agents.edit_own` | saves the configuration |
| `PATCH /api/agents/{id}` | `agents.edit_own` | name, description, icon, up to 3 labels |
| `GET /api/agents/{id}/publish-preview` | `agents.publish_own` | shows what publishing would certify |
| `POST /api/agents/{id}/publish {changeNote?, modelEgress?}` | `agents.publish_own` | returns `{version, passportId, configHash, warnings}`. `modelEgress` is `{scope: "in-perimeter"}` or `{scope: "listed", destinations: [<host>...]}` |
| `GET /api/agents/{id}/versions`, `GET /api/agents/{id}/diff?from=&to=` | `agents.edit_own` | versions and differences |
| `POST /api/agents/{id}/versions/{n}/restore {changeNote?, modelEgress?}` | `agents.publish_own` | publishes an older version again |
| `POST /api/agents/{id}/export-for-submission` | `agents.publish_own` and edit access | see below |

### Export an agent as a blueprint pack

`POST /api/agents/{id}/export-for-submission` with `{"packId":"acme.support-triage","licence":"Apache-2.0","ownsRights":true,"noProhibitedPractice":true}` returns a signed one-item blueprint pack, made from the published version. Add `"preview": true` to see the content first. Knowledge, workflow and agent tools become pack parameters. Connections, fixed field values, skills, the form, output, limits, memory and persona are not exported. A tool wildcard, a fixed model route, a code, MCP or `fn` tool, a missing description, empty instructions, or anything that looks like a credential stops the export with `AGENT_EXPORT_REFUSED` and a `reason`.

### Certified agents

Publishing always issues a passport. In addition, an installation can require certification: then a run may only use the tools, model tier ceiling and budgets that the certificate covers. A knowledge set or workflow added after certification shows "Not certified" until you certify again. Workflows that start from a **webhook, schedule or event** run only for certified agents: "Only certified agents can run workflows that start from a web call, a schedule or an event." Workflows with a Manual or Form start work for every agent.

Certificates are issued by the installation. You cannot write or edit one.

## Common errors

Blueprint import errors appear as `PACK_SCHEMA_INVALID` details with the path `/items/<itemId>/spec/...`.

| Code | Message | Fix |
|---|---|---|
| `AGENT_BLUEPRINT_MODEL` | must be a model tier, written as { "tier": "<name>" }. A blueprint never names a model route | Use `{"tier": "local-advanced"}` |
| `AGENT_BLUEPRINT_TOOL_KIND` | a blueprint cannot carry a tool of kind "code" | Remove `code` and `mcp` tools |
| `AGENT_BLUEPRINT_TOOL_DUPLICATE` | this tool is listed twice | Remove the duplicate |
| `AGENT_BLUEPRINT_REF` | must be a pack parameter, written as {{param.<id>}} | Knowledge tools always use a parameter |
| `AGENT_BLUEPRINT_REF` | names the template "...", which is not an item of this pack | Add the template item, or use a parameter |
| `AGENT_BLUEPRINT_WEB_UNDECLARED` | web search needs a declared data flow with the destination "web-search" | Add the data flow to `declarations` |
| (shape) | must NOT have additional properties / must NOT have more than 12 items | Fix shape errors first; the other checks run after them |
| `AGENT_BLUEPRINT_NOT_AVAILABLE` | This blueprint is no longer available: its pack was retired or withdrawn. | Activate the pack again |
| `AGENT_BLUEPRINT_INVALID` (422) | blueprintId must name a blueprint of an installed pack. | Use `pack:<packId>:<itemId>` of an active pack |
| `AGENT_EXPORT_REFUSED` (422, 403, 503) | The agent cannot be exported: ... | Fix what `reason` names; 403 means you need edit access to the agent |
| `COMPLIANCE_RULE_FAILED` (422) | Compliance rule failed: ... | Change the configuration so the installation's compliance rule passes |
| `AGENT_DRAFT_INVALID` | Duplicate skill. / ... must be a whole number. / Draft exceeds 200000 bytes | Fix the configuration |
| `AGENT_DRAFT_INVALID` | Instructions are required. / Choose exactly one of a model tier or a route. | Fix the configuration |
| `AGENT_DRAFT_INVALID` | A wildcard is only allowed for all connectors, knowledge, workflows or MCP tools. | Name the tool |
| `AGENT_DRAFT_INVALID` | This agent makes automated decisions or requires human oversight, so writes must be confirmed by a person. Set write confirmation to always. | `"confirmWrites": "always"` |
| `AGENT_DRAFT_INVALID` | Decisive automated decisions require human oversight. | `"humanOversightRequired": true` |
| `AGENT_TOOL_UNAVAILABLE` | This tool is not available to you in this workspace. | Enable the connector or knowledge set in that workspace |
| `AGENT_VERSION_CONFLICT` | (409) | Reload and retry with the new `ifUpdatedAt` |
| `CLOUD_TIER_NOT_ALLOWED` | | The workspace policy refuses `cloud-reasoning`; use a local tier |

## Limits and editions

- Up to 64 tools and 12 starters per blueprint. Up to 50,000 characters of instructions.
- Certified agents need the Certified Agents licence feature. Without it, agents still publish with a passport, but they cannot use webhook, schedule or event workflows as tools.
- The `cloud-reasoning` tier can be switched off by workspace policy.
- Check your edition on [aancer.ai/pricing](https://aancer.ai/pricing).


---

Source: https://aancer.ai/developers-skills

---
title: Skills | AANCER Developers
description: Write AANCER skills: reusable instructions that shape how chat and agents work. SKILL.md format, the skill pack item, enable and mandate rules.
---

## Skills

A skill is a named block of instructions, with optional reference files and preferred connectors, that changes how the AI works in chat and in agents. For example, a "Vendor review" skill lays down the method, scoring and output format for a supplier review. Skills live in the skills library of a workspace. In chat, the model sees an index of enabled skills (name and description) and loads the one it needs. An administrator can also **mandate** a skill in a workspace, so its instructions apply to every chat there. Agents can attach skills that always load for that agent.

Skills come from three places: users (a form or a SKILL.md upload), skill ZIP files, and signed packs. Skills from a pack arrive switched off in every workspace until an administrator enables or mandates them.

## Quick start

Write a `SKILL.md` file and upload it under **Library > Skills**.

```markdown
---
name: Vendor review
description: Structured review of a new supplier: risk, contract terms, data protection.
connectors: [google-drive]
---
# Vendor review

1. Identify the vendor and the service.
2. Score financial, operational and data-protection risk (low, medium, high) with one reason each.
3. List contract terms to negotiate.
4. End with a recommendation: proceed, proceed with conditions, or stop.
```

To ship the same skill in a pack, use this item:

```json
{
  "kind": "skill",
  "schemaVersion": 1,
  "id": "vendor-review",
  "scope": "install",
  "spec": {
    "id": "vendor-review",
    "name": "Vendor review",
    "description": "Structured review of a new supplier: risk, contract terms, data protection.",
    "instructions": "# Vendor review\n\n1. Identify the vendor and the service.\n2. Score financial, operational and data-protection risk (low, medium, high) with one reason each.\n3. List contract terms to negotiate.\n4. End with a recommendation: proceed, proceed with conditions, or stop.",
    "connectors": ["google-drive"],
    "triggers": ["vendor review", "new supplier"]
  }
}
```

## File layout

### SKILL.md

```text
---
name: <one line, at most 120 characters>
description: <one line, at most 1000 characters>
connectors: [<name>, <name>]        # optional, inline list or "- item" list, at most 20
---
<markdown body: the instructions, at most 20,000 characters>
```

- The file starts with a `---` front matter block.
- `name` and `description` are single lines. Multi-line values (`|` or `>`) are refused.
- Values may be in double or single quotes.
- Other keys in the front matter are ignored on upload.

### Skill ZIP

`SKILL.md` at the root, or inside one top-level folder, plus reference files next to it.

```text
vendor-review.zip
  vendor-review/
    SKILL.md
    scorecard-template.xlsx
    checklist.md
```

Allowed file types: `md`, `txt`, `csv`, `json`, `pdf`, `png`, `jpg`, `jpeg`, `docx`, `xlsx`. Every file is scanned for malware.

### Skill pack

```text
acme-business-skills/
  manifest.json
  content/
    vendor-review.json        # skill spec
    contract-check.json       # another skill spec
```

Pack skills cannot carry reference files. Put everything the model needs into `instructions`.

## Field reference

JSON Schema: [skill.schema.json](https://aancer.ai/dev/schemas/skill.schema.json)

### Skill spec (pack item)

| Field | Type | Required | Rules |
|---|---|---|---|
| `id` | string | yes | `^[a-z0-9][a-z0-9._-]{0,63}$`. Use the same value as the item id |
| `name` | string | yes | 1 to 120 characters, not blank |
| `description` | string | yes | 1 to 1000 characters, not blank. The model reads it to decide when to load the skill |
| `instructions` | string | yes | 1 to 20,000 characters, Markdown |
| `connectors` | string[] | no | at most 20 connector names, each `^[a-z0-9@][a-z0-9@/._-]{0,99}$` |
| `triggers` | string[] | no | at most 10 phrases, each 1 to 80 characters |
| `workspace` | string | no | a workspace id or `{{param.<id>}}` |

No other fields are allowed.

At install, `triggers` are added to the description as ` Use when: a; b; c.` Keep `description` plus the `Use when:` text under 1000 characters in total, or that skill will not install.

`connectors` are a hint. They tell the model which connectors suit the skill. They grant no access.

### JSON body for the REST API

`POST /api/skills?workspaceId=<ws>` with `{ name, description, instructions, connectors?, scope? }`. `scope` is `private` (default) or `workspace`.

## Full examples

### A complete SKILL.md

```markdown
---
name: Vendor review
description: Runs a structured due-diligence review of a supplier or software vendor, tiered by how critical it is, with a weighted scorecard across security, privacy, financial health, contract, service and exit risk.
---
# Vendor review

## Purpose
Help a buyer decide whether a vendor is fit to rely on, and on what terms, with effort proportional to the risk.

## Inputs to ask for
1. The vendor, the product or service, and what it will be used for.
2. Spend per year, contract length and how many users or processes depend on it.

## Method
1. **Tier the vendor** (tier 1 critical, tier 2 important, tier 3 low).
2. **Review each area** and score it 1 to 5 with the evidence.
3. **Weight the areas** by tier and compute the weighted score out of 5.
4. **Recommend** approve, approve with conditions, or reject.

## Output format
1. **Recommendation** with tier and weighted score.
2. **Scorecard:** Area, Weight, Score, Evidence, Gaps.

## Limits
The review relies on what the vendor and the user provide; it does not verify claims independently.
```

### The same skill as a pack

`manifest.json`:

```json
{
  "v": 2,
  "kind": "bundle",
  "id": "acme.business-skills",
  "version": "1.0.0",
  "title": "Acme business skills",
  "publisher": { "name": "Acme Example Ltd", "keyId": "pub-0123456789ab" },
  "requires": { "platform": ">=1.0.0" },
  "items": [
    { "kind": "skill", "schemaVersion": 1, "id": "vendor-review", "scope": "install", "spec": { "$ref": "content/vendor-review.json" } }
  ]
}
```

`content/vendor-review.json`:

```json
{
  "id": "vendor-review",
  "name": "Vendor review",
  "description": "Runs a structured due-diligence review of a supplier or software vendor, tiered by how critical it is, with a weighted scorecard across security, privacy, financial health, contract, service and exit risk.",
  "instructions": "# Vendor review\n\n## Purpose\nHelp a buyer decide whether a vendor is fit to rely on, and on what terms, with effort proportional to the risk.\n\n## Method\n1. **Tier the vendor**.\n2. **Review each area** and score it 1 to 5 with the evidence.\n3. **Recommend** approve, approve with conditions, or reject.\n\n## Output format\n1. **Recommendation** with tier and weighted score.\n2. **Scorecard:** Area, Weight, Score, Evidence, Gaps.",
  "triggers": ["vendor review", "supplier due diligence", "should we use this vendor", "third-party risk", "vendor scorecard", "compare these suppliers"]
}
```

Next part: https://aancer.ai/dev/parts/pages/08-install-and-test.md
