> ## Documentation Index
> Fetch the complete documentation index at: https://docs.profy.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# Expert package

> Steps a local AI follows to edit an Expert folder, then upload it.

You are editing an Expert folder on the user's machine. Follow the order below. Do not stop at a directory listing.

## Do this first

1. Ask the user to export from **My works → Expert → Custom → Overview** and unzip the archive into the working directory. That folder is this Expert. Its skill and connector IDs are real.
2. Read `profy.json`, `mcp.json`, `plugins/plugins.json`, `tools.json`, `agents/`, and `rules/` before changing anything. Change only what the user named. Skill pins live in `profy.json` `environment.skills`.
3. Use the empty templates at the end only when there is no export and those files are absent. Leave an ID blank when you do not have one. Do not invent one.
4. When finished, tell the user to upload the folder from Overview. Upload merges: a path you wrote replaces that path, and a path you left out stays as it is. After save, the left pane is the diff against the previous revision. Publish shows that same diff. Do not tell the user to publish before they have read it.

Hand this page to Codex or Claude Code:

```bash theme={null}
curl -fsSL https://docs.profy.cn/en/creators/expert-package.md
```

## Do not

* Do not invent `skillId`, `versionId`, `pluginId`, or `pluginReleaseId`. Copy them from the export.
* Do not write `SKILL.md` under `skills/`, and do not write `skills/skills.json`. The body lives in the skills table. `skills/<name>/` in the overview is a view of that table. Upload ignores the directory. `enabled`, `skillId`, `versionId`, and `path` belong in `profy.json` `environment.skills`.
* Do not put `builtinConfig` in `profy.json`. Plugin switches belong in `plugins/plugins.json`. Extension and platform-skill switches belong in `tools.json`.
* Do not put rules back at the root. The avatar, banner, and bound file are `assets/avatar.*`, `assets/banner.*`, and `assets/file.*`. Do not recreate `assets/avatarFileKey/` or `workspace/`.
* Do not upload `.git`, `node_modules`, `.next`, or `dist`. A file over 2MB is skipped.
* Do not generate a stand-in avatar. If the user did not give you an image, do not write `assets/avatar.*`.

## Layout

```text theme={null}
mcp.json
profy.json
tools.json
agents/
  clause-check.md
assets/
  avatar.png
  banner.png
plugins/
  plugins.json
rules/
  AGENTS.md
  IDENTITY.md
  SOUL.md
  GUARD.md
  OPENING.md
market/
  overview.md
  intro.md
```

`rules/AGENTS.md`, `profy.json`, and `mcp.json` must exist on the Expert. A partial edit can omit them; upload keeps the current files. To clear an optional Markdown file, upload it empty. To clear a rule, write an empty string. Do not delete `rules/AGENTS.md`.

## What the rules say

| File | Write |
| - | - |
| `rules/IDENTITY.md` | Who this Expert is, its background, and its relationship to the user. This replaces the platform identity, so write it in full. |
| `rules/SOUL.md` | Temperament, tone, and values. |
| `rules/AGENTS.md` | The working method: what happens first, the output shape, and what is refused. This file is required. |
| `rules/GUARD.md` | A method that must not be extracted. Leave it empty when there is none. |
| `rules/OPENING.md` | The first message the user sees. Leave it empty when there is none. |

## profy.json

Short marketplace-card fields live here. Partners do not. `name` is required. `price: 0` is free. An integer above 0 is a one-time unlock. Do not write a separate billing type. A category code must already exist on the platform. If you do not know it, keep the value from the export.

```json theme={null}
{
  "schemaVersion": 1,
  "type": "expert",
  "config": {
    "name": "Contract reviewer",
    "description": "Points out clauses that cut against the client, in plain language.",
    "author": "Author",
    "category": "legal",
    "tags": ["contract", "review"],
    "price": 0,
    "allowTrial": 1,
    "freeTrialPerUser": 3
  }
}
```

`freeTrialPerUser` matters only for a paid Expert, from 1 to 10. Keep long text out of this JSON.

## File names

`agent` and `environment` are siblings in `profy.json`. Long text is a relative path. `agent.id` is the expert id, the same field as `agent.id` on `POST /v1/agents/run`. `agent.versionId` pins this package to one expert version. `agent.mcp` points at `mcp.json`, which stays the connector document.

```json theme={null}
{
  "agent": {
    "id": "contract-reviewer",
    "versionId": "expertver_123",
    "name": "Contract reviewer",
    "mcp": "mcp.json",
    "tools": [
      { "type": "web_search" },
      { "type": "imagegen" },
      { "type": "mcp", "server_label": "docs" }
    ],
    "rules": [
      { "type": "identity", "path": "rules/IDENTITY.md" },
      { "type": "agent", "path": "rules/AGENTS.md" }
    ]
  },
  "environment": {
    "type": "profy_hosted",
    "skills": [
      {
        "enabled": true,
        "skillId": "copy this from the export",
        "versionId": "copy this from the export",
        "path": "skills/contract-review"
      }
    ],
    "plugins": [{ "type": "built_in", "id": "sites", "enabled": true }]
  },
  "market": {
    "overview": "market/overview.html",
    "opening": "rules/OPENING.md"
  }
}
```

A run reads `rules[].path` into `content`. `agent.tools` tells entries apart by `type`. A connector is `{ "type": "mcp", "server_label" }`. Its address and credentials stay in `mcp.json`. Overview and the opening line stay on `market`.

## Partners

One Markdown file per partner, under `agents/`. The filename is the partner name. The header holds the name, description, tools, and optional model. The body is the system prompt. Omit `tools` unless the user named one.

```markdown theme={null}
---
name: clause-check
description: Checks only the contract text the user supplied.
---
Answer from the supplied clauses. Do not invent citations.
```

## Long text

`market/overview.md` is the card overview. `market/intro.md` is the introduction. Write Markdown.

## Skills

Do not write `skills/skills.json`. Each skill is an `environment.skills` entry on `profy.json`: `enabled`, `skillId`, and `versionId`. `path` is the overview folder, such as `skills/contract-review`. Each `skillId` appears once. Array order is the execution order.

`skills/<name>/` in the overview is a view of the skills table. An upload and a row that was already in the table both mount there. Do not store a second copy of the body in the folder.

If the user wants a skill and you do not have its IDs, do not write a fake row. Tell them to install it on the platform, export again, and copy that row. `"skills": []` removes every current reference. Confirm that with the user first.

## Built-in tools

`plugins/plugins.json` lists the selectable plugins this Expert enables. A plugin missing from the file stays on. `enabled: false` turns one off.

```json theme={null}
{
  "schemaVersion": 1,
  "plugins": [
    { "pluginId": "sites", "enabled": true }
  ]
}
```

`pluginId` accepts only these selectable plugins:

`browser`, `canvas`, `chrome`, `computer`, `game-studio`, `movie`, `record-and-replay`, `sites`, `visualize`, `wiki`

`tools.json` lists the extensions and platform skills that are off. Anything missing is on. Both arrays may be empty.

```json theme={null}
{
  "schemaVersion": 1,
  "disabledExtensions": [],
  "disabledPlatformSkills": []
}
```

`disabledExtensions` accepts only:

`imagegen`, `video`, `music`, `audio`, `generate_3d`, `postprocess_3d`, `generate_world`, `schedule`, `knowledge`, `obsidian_knowledge`, `memory`, `delegation`, `distill`, `evolution`

`disabledPlatformSkills` accepts only:

`docx`, `pdf`, `pptx`, `html-deck`, `kami`, `xlsx`, `skill-creator`, `world-generation`

## Connectors

No connector means an empty object. Do not invent a URL.

```json theme={null}
{
  "schemaVersion": 1,
  "mcpServers": {}
}
```

When the user gives a real remote address, use this shape. The key is a name you choose. Write a header only when the user gave you that credential.

```json theme={null}
{
  "schemaVersion": 1,
  "mcpServers": {
    "docs": {
      "enabled": true,
      "config": {},
      "source": {
        "kind": "inline",
        "server": {
          "type": "streamable-http",
          "url": "https://example.com/mcp"
        }
      }
    }
  }
}
```

`type` is `sse`, `http`, or `streamable-http`. A connector installed from the marketplace is `kind: "plugin-release"` in the export. When you only change whether it is enabled, keep `pluginId`, `pluginReleaseId`, and `serverKey`.

## Images

`assets/avatar.png` is the avatar, `assets/banner.png` is the marketplace banner, and `assets/file.*` is the bound file. Do not write them unless the user supplied the image.

## Older paths

A root `AGENTS.md`, `IDENTITY.md`, `SOUL.md`, `GUARD.md`, `OPENING.md`, `INTRO.md`, `avatar.*`, `banner.*`, or `file.*`, and `assets/avatarFileKey/`, `assets/bannerFileKey/`, or `assets/fileKey/`, move to the current paths on upload. A root `skills.json` or `skills/skills.json` is folded into `profy.json` `environment.skills` and then removed. `subagents` inside `profy.json` become `agents/*.md`. `disabledPluginIds` inside `tools.json` become `plugins/plugins.json`. `workspace/` is dropped; the runtime never read it. When both the old and new path are in the folder, the old path wins. A new folder uses the new paths.

## Minimum files when nothing exists yet

Use these only when there is no export. The three required files must be present. Write the rules under `rules/` as described above.

`mcp.json` is the empty object above. `tools.json` keeps both arrays empty. Omit `plugins/plugins.json` when every selectable plugin stays on. `profy.json` needs `schemaVersion`, `type`, and `config.name`. With no skills, set `environment.skills` to `[]`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.