mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 09:59:22 +08:00
## 实际功能与范围 在原 PR 上继续完善,不新开机制 PR。使用 main 的可信代码与策略重新发现上游、读取精确旧新 pin、重建真实差异并绑定最终 SHA;不执行 PR 或上游代码,不把 listing-only 自动提升为 installable。 已正常 merge 最新 main,包含 #356、#357 以及其他 worker 完成的 #359;没有 rebase、force-push,也没有修改 #358–360 工作分支。本 PR **不合并、不部署自身**。 ## 修改前后对照 | 修改点 | 修改前 | 修改后 / 实际效果 | |---|---|---| | Git 固定来源更新 | 主线发现更新后提出快照 PR,无法统一覆盖本轮发现的准入缺口 | 沿用精确 pin 的真实 delta 核验;新增门禁同样用于提案与可信自动合并重审。每轮最多审核 5 个新 Git 候选,另可只读复核 5 个已有 PR,不改其内容、不重复开 PR | | ZIP / Web 新版本发现 | 主线主要检查链接可访问性,不发现新版 | 只通过显式登记的 ClawHub / GitHub release asset / GitHub file 适配器发现与固定来源,不猜版本、不把新哈希当作审核通过。目前实际登记高德 ClawHub;其他来源须另配可信跟踪;嵌套 ZIP 安装目录尚未适配 | | 市场本地技能 | 不自动同步第三方上游 | AI News Radar 使用上游精确映射与文件清单,保留市场包装和本地补丁;上下游同时修改或映射范围不一致即暂停,不覆盖本地补丁。目前只登记此本地包 | | 主许可通知是否随安装交付 | 能核对根及嵌套许可变化,却不能证明根主通知随 source.path / 所选 child.path 交付 | 分别检查每个所选目录;vendor/LICENSE 或 SKILL 中单行 MIT 不能替代主项目完整版权、授权和免责通知。README/SKILL 内完整等效文本可通过,不强制 standalone LICENSE;未证明交付时阻断或转人工,不擅改安装方式 | | NOTICE 的实际交付 | 根 NOTICE 存在或哈希已审可能被误当作安装交付 | 声明的 NOTICE 未证明随目录交付会阻断;未声明根 NOTICE 的适用性保守转人工。非标准/嵌套等效通知需人工复核,不把扫描未命中说成没有合法许可 | | 精确 pin 人工例外 | README 文本没变时可能将旧许可例外扩展到新 pin | 单行 MIT 的旧 pin 例外不能自动继承;新 pin 必须另有真实人工授权。#359 的新 pin 例外是另一 worker 独立补审后合入 main 的决定,不是本机制自动扩大旧授权 | | 版本、双语与派生目录 | 结构化字段通过不代表说明文字、两种语言和派生目录一致 | 使用明确版本源提示旧版本文案;根插件版本不强加给所选子目录,不把任意数字当版本。检查 entry/catalog 子项语言镜像,描述变化转人工;历史英文回退单独标记,不伪称已翻译 | | 安装内容、权限、依赖和行为差异 | 依赖哈希接受或简短专项说明容易被误读为完整行为审核 | 直接比较完整 Git 对象和安装路径,报告新增/删除/权限差异,不依赖截断的 GitHub compare。授权、凭据、配置、网络相关命名实现的变化保守转人工;明确这只是复核提示,不是已证实漏洞。开发依赖不冒充所选技能运行依赖 | | 失败原因及真实回执 | 首个异常后缺少精确路径和未检查阶段;后续校验失败可能覆盖旧回执或仍显示已审 | 逐项输出技能/路径、精确旧新 pin、门槛、原因、修法与实际状态,区分历史遗留、本次引入、人工待审、实际失败和失败后未完成;保留真实旧回执,独立保存失败命令/输出,不生成假成功回执。物化 ZIP/local 的临时 Git ID 不当作真实来源 pin | | 当前候选 PR 与 main 重放分层 | 对 main 旧元数据重放的失败,可能被误说成当前已修订 PR 仍未修;旧回执错误与许可根因混在一起 | 只读当前 PR 精确 head 的 entry、sidecar、旧回执与实时 checks;不 checkout、不执行候选。每行标注 main 重放或当前候选 head。reviewedRef / receipt ref / receipt scope 三类未签新回执的派生错误与主通知交付根因分开;读取失败明确未检查,不停止其他独立候选,也不当作通过 | | unhealthy report / issue 展示 | 健康 issue 在审核前生成、单语、每日时间戳驱动更新,并用评论关闭 | 健康结果 + Git 审核 + ZIP/Web/local 结果在审核后汇总为中英双语;复用原 upstream-health issue,稳定托管区、无变化不编辑、不发评论,完整确认解决才关闭,新问题重开同一 issue。首次迁移保留 #213 现有手动双语内容为历史快照,托管区外人工内容保留;完整 JSON/日志保存在 audit-results 工件 | | 自动合并的信任与最终 SHA 门禁 | 不能靠“有标签/有回执”证明可合并;原先还错误要求所有语言任务必须存在 | 只接受可信 main 重审得到的完整预期差异,检查当前 main 与最终 SHA;validate、translate、Copilot wait 为具名基线,实际存在的最新 CodeQL/Analyze、statuses、workflow runs 也必须完成且成功,适用检查缺失/失败/进行中均不放行。PR 自带 JSON 或任意标签不能授权 | | 纯版本例外与真人审核 | 所有字节变化要求第二真人过宽,但也不能用版本号掩盖行为变化 | 保留可独立证明的 SKILL.md 顶层 semver-only 例外:其余字节、文件集和权限均相同才与完全相同 payload 一样无需额外行为批准;其他实质变化仍需最终 SHA 的有权限真人维护者审核,真人审核不能豁免独立机器门禁 | | hold、冲突、凭据及发布身份 | 不能把配置不足或冲突伪装成更新成功 | hold / 双边修改 / 范围变化 / 未确认许可均暂停。实际发布与合并身份验证为 mashagua;MARKET_MAINTAINER_TOKEN 未配置时只审核,不冒用机器人发 PR。保留分支保护与预期 SHA squash,无 admin 绕过;每轮最多合并一项,本轮不执行合并 | ## 本轮真实案例与限制 - **#358 / Addy**:固定 `8c99fa36d90068c82d547f7c12a9d67a3e95f4ee` → `e997ac5b9a74eab332d5e9793bb38a38c8cfdd74`。包括 `skills/api-and-interface-design` 在内,根主 MIT 通知未被证明随所选子目录交付;是旧版本已有的缺口。0.6.18 双语文案已由 #358 独立修复,不能把 main 的旧文案误称为该 PR 仍未修复。 - **#359 / Follow Builders**:旧 pin `22c2e72e1a4bb0fc0f3e19f992fc55615b48989e` 的例外不自动覆盖 `65452b9258f31ed2893734c86481216d2e4105ff`。新 pin 的人工例外、22 文件真实回执及四个 JSON 数据变更由另一 worker 补审,现已合并 main;本 PR 已正常同步,未碰其分支。 - **#360 / Last30Days**:`331025e662756ca51e86dfddcf59969f6dba25a0` → `7c2e1c2b099b13abd4397910168c4f53e638bb21`,范围 `skills/last30days`。主通知在目录外,bird-search vendor 许可不能替代;真实差异包含授权/配置/网络实现,依赖专项接受不代表完整行为复审。没有删除资源、缩范围或改变交付方式。 - **#361 / Matt Pocock**:上游仍为 `5863806dd4e15c63174bee4e7515a4256792ecfa` → `d65391149dbb5fe76478e76fa8d5122b2aa5a70e`;当前候选 head `4cd8c6a4a31ef4512a871d15a355dd8dcf670cb0` 已补39成员、78条双语并处理34条历史英文回退。本轮实际只读复审确认:当前候选成员缺项0、英文回退0,但39/39安装目录仍未证明携带完整主 MIT 通知。独立 PR 复核记录为39目录109文件均无完整必要通知,旧38也已有缺口;因此保持 Draft,不伪造新回执。 - 对 main 旧登记重放的原失败仍是登记38/解析39;物理 SKILL 39→39、无新增/删除/移动,software-factory 仅因 YAML 修好重新可发现,chief-of-staff 描述另变,yaml 是根开发依赖。**这是历史 main 基线,不是说当前候选没补成员/翻译。** - 当前候选 validate 真实失败;reviewedRef 不对应目标、旧 receipt.source.ref 不对应目标、旧 receipt.scope38 不覆盖39,是**未签新回执的三项派生错误**,不是三项新许可变更。translate、CodeQL、三个 Analyze 成功;Draft 的 Copilot wait 为 skipped,不称实质审核批准。先解决通知根因并真实复审,不能只改 ref/scope 凑绿灯。 - 证据:[当前PR实际复核说明](https://github.com/desirecore/market/blob/4cd8c6a4a31ef4512a871d15a355dd8dcf670cb0/docs/reviews/mattpocock-skills-pr361-d65391149dbb.md) · [JSON记录](https://github.com/desirecore/market/blob/4cd8c6a4a31ef4512a871d15a355dd8dcf670cb0/docs/reviews/mattpocock-skills-pr361-d65391149dbb.json)。 自动通知证明采用有界、保守的直接目录文本匹配;不声称覆盖一切合法非标准许可写法,也不代替真实安装回读或全部行为审查。客户端携带父级通知的实现需要另行授权,并让实际产物、摘要、锁记录、升级和回滚一致;本 PR 不跨仓修改客户端。 实现说明:[docs/upstream-audit-reporting.md](https://github.com/desirecore/market/blob/2bf76eade1644ff4b928c873cbb5d9139a322973/docs/upstream-audit-reporting.md)。现有报告:[issue #213](https://github.com/desirecore/market/issues/213);当前手动双语不等于持久模板已部署,主线旧任务仍可能覆盖,须本 PR 经审核合入 main 后才生效。 ## 最终 SHA 验证 最终 head:`2bf76eade1644ff4b928c873cbb5d9139a322973`。功能提交:`574f9c904da19eb4ce5c970c45b798bc6d3d3f72`、`e0d7ef0d936872f08d8fb6bd20166d98ddf46952` 与 `2bf76eade1644ff4b928c873cbb5d9139a322973`;正常 merge main 提交为 `950ae45cc985f8510a13eb9487896e1d516a8613`。新提交 author/committer 均为 `mashagua <993498039@qq.com>`。 - 完整 `pytest scripts`:**306 passed、397 subtests passed**;仅一条环境 pytest 插件弃用警告。 - `validate_catalog_metadata.py --require-complete`、`validate-i18n.py`、`translate.py --check`、`git diff --check`:全部 exit 0。目录原有治理/英文回退警告未冒称已修。 - 同一最终 SHA 的远程 **validate、translate、CodeQL、Analyze (actions/python/javascript-typescript) 均 success**。 - `wait-for-copilot-review` 最新读取仍 **in_progress**,尚无 review 或行内评论;不冒称已完成 Copilot 审核。 不合并 #354,不部署;不修改 AI News Radar 的五条既有告警,不修改任何技能资源、结构、子项选择或安装方式。
302 lines
32 KiB
Markdown
302 lines
32 KiB
Markdown
# DesireCore Market
|
||
|
||
**English** | [简体中文](README.zh-CN.md)
|
||
|
||
The official, version-controlled catalog of **Agents, Teams, and Skills for DesireCore**.
|
||
|
||
Discover reusable assistants, coordinated agent teams, and task-specific skills in one place. This repository maintains catalog metadata, locally bundled skills, and curated pointers to upstream content, together with schemas and validation tools for consistent publication.
|
||
|
||
[Overview](#overview) · [Getting started](#getting-started) · [Repository layout](#repository-layout) · [Listing contracts](#listing-contracts) · [Localization](#localization) · [Contributing](#contributing) · [Validation](#validation) · [Security and trust](#security-and-trust) · [Related projects](#related-projects) · [License](#license)
|
||
|
||
## Overview
|
||
|
||
| Resource | Purpose | Where to explore |
|
||
| --- | --- | --- |
|
||
| **Agents** | Individual assistants with a defined role, capabilities, and configuration; published as inline metadata or an upstream pointer. | [`agents/`](agents/) |
|
||
| **Teams** | Groups of agents coordinated by a supervisor; published as pointers to repositories that the client forks. | [`teams/`](teams/) |
|
||
| **Skills** | Reusable task instructions and supporting resources; bundled locally or discovered through upstream Git, Web, or ZIP sources. | [`skills/`](skills/) |
|
||
|
||
The market is a **content catalog, not a standalone application or execution runtime**. A listing describes what a resource is, where it comes from, and the conditions under which it can be used. Installation and execution belong to a compatible DesireCore client and the resource's dependencies.
|
||
|
||
### Catalog sources of truth
|
||
|
||
| File | What it defines |
|
||
| --- | --- |
|
||
| [`manifest.json`](manifest.json) | Market identity, schema version, supported locales, default locale, and aggregate statistics. |
|
||
| [`categories.json`](categories.json) | Valid category IDs and their localized labels and descriptions. |
|
||
| [`builtin-skills.json`](builtin-skills.json) | Local built-in skill IDs and the retirement list. |
|
||
| `catalog-metadata.v1.json` beside each listing | Versioned presentation, release, provenance, governance, and compatibility facts. |
|
||
|
||
Use the manifest and actual catalog directories for the current inventory rather than maintaining a second list of counts in this README. `totalSkills` counts top-level local `SKILL.md` listings plus external `entry.json` listings, not every child inside a skill collection. `totalTeams` may be omitted for a catalog with no teams; when present, it must match the catalog exactly.
|
||
|
||
Categories cover productivity, development, business, creative work, design, media, communication, research, data, and management. Use the IDs in `categories.json` when publishing; display labels are not category IDs.
|
||
|
||
## Getting started
|
||
|
||
### Use the market in DesireCore
|
||
|
||
1. Open the market in a compatible DesireCore client and synchronize the official catalog.
|
||
2. Inspect the resource's description, source, release information, client requirements, license, and external dependencies before installation. Read any available usage notes.
|
||
3. Follow the client's installation flow when the listing is installable, then complete any required local setup or authorization. Keep credentials and private configuration outside this public repository.
|
||
|
||
**Listed does not necessarily mean installable.** Catalog metadata can describe listing-only resources; compatibility, governance, source reproducibility, or licensing requirements may prevent installation. Catalog synchronization also does not upgrade the desktop client or provision third-party services.
|
||
|
||
### Explore or contribute locally
|
||
|
||
For repository maintenance, use Git, Python **3.10 or newer**, and `uv`. The Python scripts declare their dependencies inline; `uv run` manages their execution environments.
|
||
|
||
```bash
|
||
git clone https://github.com/desirecore/market.git
|
||
cd market
|
||
|
||
# Validate market structure and skill localization.
|
||
uv run scripts/i18n/validate-i18n.py
|
||
```
|
||
|
||
Initial environment setup may download Python packages. The validation command above does not require model API credentials or fetch upstream content unless `--online` is supplied. See [Validation](#validation) for coverage checks, translation freshness, and focused commands.
|
||
|
||
Cloning this repository only downloads the catalog and bundled files; it does not install the DesireCore client, agents, teams, or external products.
|
||
|
||
## Repository layout
|
||
|
||
```text
|
||
.
|
||
├── README.md # English overview and contributor guide
|
||
├── README.zh-CN.md # Simplified Chinese counterpart
|
||
├── manifest.json # Market metadata, locales, and statistics
|
||
├── categories.json # Category registry
|
||
├── builtin-skills.json # Built-in skills and retirement policy
|
||
├── agents/<id>/
|
||
│ ├── agent.json OR entry.json # Exactly one primary listing file
|
||
│ ├── catalog-metadata.v1.json # Versioned catalog metadata
|
||
│ └── USAGE[.<locale>].md # Optional inline-agent usage notes
|
||
├── teams/<id>/
|
||
│ ├── entry.json # Upstream Git fork pointer only
|
||
│ └── catalog-metadata.v1.json
|
||
├── skills/<id>/
|
||
│ ├── SKILL.md OR entry.json # Local skill or external source pointer
|
||
│ ├── catalog-metadata.v1.json
|
||
│ ├── SKILL.<locale>.md # Localized body for a local skill
|
||
│ ├── references/ # Optional supporting documentation
|
||
│ └── scripts/ # Optional skill-specific helpers
|
||
├── schemas/ # Catalog and exported client contracts
|
||
├── scripts/
|
||
│ ├── catalog/ # Catalog validation and focused tests
|
||
│ ├── i18n/ # Localization schema, validation, translation
|
||
│ └── gen-collection-children.py # Upstream collection inventory generation
|
||
├── docs/ # Authoring and application guides
|
||
├── .github/workflows/ # Validation, translation, and review automation
|
||
├── AGENTS.md / CLAUDE.md # Equivalent repository contribution policies
|
||
├── LICENSE # License for repository-original content
|
||
└── THIRD_PARTY_NOTICES.md # Third-party licensing qualifications
|
||
```
|
||
|
||
The tree illustrates supported shapes, not files required in every directory. Localized bodies, helper scripts, and references belong to local skills; external pointers keep their implementation upstream. A team directory contains `entry.json` and its sidecar, not an inline `team.json`.
|
||
|
||
## Listing contracts
|
||
|
||
Use the schemas and existing listings as implementation references. A shortened JSON example is not a substitute for the complete client contract.
|
||
|
||
### Static catalog facts
|
||
|
||
Catalog counts are file-derived, not usage statistics. Do not author views, downloads, ratings, Stars, install counts, or runtime health. Missing publisher evidence remains unknown. A listed release is not a live latest-version query. Preserve the upstream release identifier; do not invent a three-part version to fill a missing fact. New team localization fields and two-part pointer versions must wait until the matching client contract is released before being published to the shared catalog. Until then, an upstream identifier the released contract does not admit, such as a bare revision number `50`, stays out of `latestVersion` and `release`: keep the release unknown rather than reshaping the identifier. Regenerate bootstrap archives through the client repository's synchronization tools, never by editing ZIP contents manually.
|
||
|
||
### Local skills
|
||
|
||
A local skill lives at `skills/<id>/SKILL.md` and combines YAML frontmatter with a Markdown instruction body. Its top-level `name` must match the directory's lowercase ASCII slug; localized display names belong in `metadata.i18n`.
|
||
|
||
Only `SKILL.md` carries frontmatter. Localized `SKILL.<locale>.md` files contain the body, start with the corresponding locale comment, and are referenced by the i18n metadata. For example, `SKILL.zh-CN.md` starts with `<!-- locale: zh-CN -->`. Market skills must set `disable-model-invocation: true` or omit the field; `false` is rejected.
|
||
|
||
Register only the local skills selected for automatic global installation in `builtin-skills.json.skills`, sorted by ID. Other local skills remain available for optional marketplace installation; they do not need an entry in this list. Every local skill still needs its sidecar and a valid market category. See the [frontmatter schema](scripts/i18n/schema/skill-frontmatter.schema.json), [Web Access example](skills/web-access/SKILL.md), and [i18n authoring guide](docs/I18N.md) (Chinese).
|
||
|
||
Removing an ID from `skills` stops automatic installation and updates without removing existing installations or its marketplace listing. Do not add it to `retired` merely to make it optional: retirement may also remove an unchanged official copy that a user installed from the marketplace.
|
||
|
||
The `retired` list explicitly requests cleanup of former built-in installations at startup. Clients require managed bundled or official-market ownership, an unchanged installed-tree digest, and no local runtime state before removing a copy. Unmanaged, third-party, locally modified, or runtime-bearing copies are preserved. An ID must never appear in both `skills` and `retired`.
|
||
|
||
### External skills and collections
|
||
|
||
An external skill uses `skills/<id>/entry.json` to describe its upstream source, presentation, maintainer, category, license, and redistribution terms. Skill listings require an inline SVG `icon`. Supported source kinds are `git`, `web`, and `zip`; external listings count toward `manifest.stats.totalSkills` but do not belong in the built-in skill index.
|
||
|
||
The raw pointer must pass the [exported skill client schema](schemas/market-skill-entry.client.schema.json) before sidecar validation. A client skips any entry that fails it, so the listing disappears for its users while the manifest still counts it. `latestVersion` accepts numeric `x.y` or `x.y.z` and maps to `release.version`; the sidecar's `versionScheme` must be the one the client derives from that value, which is `opaque` for `x.y`. The sidecar must also agree with the pointer on `category`, `tags`, `riskLevel`, and `requiredClientVersion`, and cannot add `skillType` or `compatibleAgents`, which a pointer does not declare. On any difference the client rejects the whole sidecar and the listing becomes listing-only.
|
||
|
||
A collection groups multiple upstream skills under one listing, with a declared `children` inventory for discovery. Keep the children's metadata in the parent's sidecar. Each child has its own `skill + parentId + id` identity and release fact; never infer a child's version from its parent, whose version may be unknown.
|
||
|
||
See the [Lark Suite CLI entry](skills/larksuite-cli/entry.json) and [sidecar](skills/larksuite-cli/catalog-metadata.v1.json). The [collection generator](scripts/gen-collection-children.py) derives children from upstream `SKILL.md` files; its `--check` mode verifies reproducible, pinned collections without rewriting entries.
|
||
|
||
Discovery uses exact Git filenames, excludes fixtures, symlinks and skills marked `metadata.internal: true`, and requires a frontmatter name. Reviewed translations may be stored in a fixed `collection-child-overrides.json` beside the entry: map child IDs to `i18n` summaries for `en-US` and `zh-CN`. Overrides cannot change an upstream ID, path or version, or retain a child removed upstream. Both generation and `--check` apply these translations.
|
||
|
||
### Agents
|
||
|
||
An agent directory must contain exactly one primary file: `agent.json` for inline metadata **or** `entry.json` for an external pointer, plus `catalog-metadata.v1.json`. Neither a missing primary file nor both files together is valid.
|
||
|
||
For pointers, the directory slug, `entry.id`, and sidecar `identity.id` must agree, and `identity.kind` is `agent`. The upstream AgentFS `agent.json.id` is a separate UUID and must not be rewritten to match the catalog slug.
|
||
|
||
The raw pointer must pass the [exported agent client schema](schemas/market-agent-entry.client.schema.json) before sidecar validation. Preserve version types and supported formats. `installPolicy` and `updatePolicy` must either both be absent, with effective values `market/market`, or form a complete supported pair. The sidecar must preserve that effective pair rather than reclassifying the resource as a system item.
|
||
|
||
`latestVersion` maps to `release.version`; client requirements, policies, and source fields must agree across the pointer and sidecar. `maintainer` maps to `upstreamMaintainer`. An installable pointer must itself pin a full Git commit in `source.ref`, or a Web/ZIP digest in `source.sha256`; a pin declared only in the sidecar is insufficient. Agent pointers do not receive the built-in skill exceptions to source, license, or review requirements.
|
||
|
||
An inline agent may include concise, text-only `USAGE.md` notes for prerequisites, authorization, and safety boundaries. Localized variants use `USAGE.<locale>.md`, resolved by requested locale → source locale → default locale → unsuffixed file. Usage is displayed separately from `fullDesc`, which also enters the agent's runtime context. Clients may truncate long notes; put extensive supporting material in skill `references/` instead. Relative images do not render in the usage section.
|
||
|
||
System-managed listings such as [General Assistant](agents/general-assistant/agent.json) explicitly declare the `system/repository` policy pair in the primary file and use `listing-only` availability in the sidecar. The client ships the runtime content offline and merges updates from the Agent’s own repository; the market does not install or uninstall another copy.
|
||
|
||
Examples: [inline DesireCore agent](agents/desirecore/agent.json) and [DingTalk Workspace pointer](agents/dingtalk-workspace/entry.json).
|
||
|
||
[Video Director](agents/video-director/entry.json) is a pinned Git pointer for autonomous scene creation and versioned visual review. It requires the separately installed Video Creation app and current DesireCore compute; model/media licenses and usage fees are separate. Installing the Agent does not install, start or authorize that app.
|
||
|
||
[Video Editor](agents/video-editor/entry.json) is a separate pinned Agent for timeline editing, sound, grading and editable original motion with the separately installed Video Editing app. A released client with the required catalog support, runtime dependencies, compute and independent MCP authorization are required. Bounded app 0.1.3 functionality is qualified on macOS source GUI, unsigned Windows GUI and Ubuntu/WSLg source GUI. Fresh installation and use from the default official markets passed on a compatible 197 source-GUI candidate; published signed clients remain a separate check. See the [listing review](agents/video-editor/review.md).
|
||
|
||
### Teams
|
||
|
||
A team is a supervisor-led group of agents, published **only as a Git fork pointer** at `teams/<id>/entry.json`, alongside its sidecar. The implementation (`team.json`, `members.json`, and `shared/`) stays upstream. Installation forks that repository and installs its declared members; subsequent updates use `git pull` on the fork.
|
||
|
||
Consequently, `source.kind` must be `git`, `source.repoUrl` is required, and an installable pointer must pin a full commit SHA in `source.ref`. Branches and tags are mutable and do not satisfy that pin. Teams have no `installPolicy` / `updatePolicy` pair, and `redistribution` remains `source-pointer-only` even when the upstream license is permissive.
|
||
|
||
The raw pointer must pass the [exported team client schema](schemas/market-team-entry.client.schema.json). The directory slug, `entry.id`, and sidecar `identity.id` must agree; `identity.kind` is `team`, and `latestVersion` maps to `release.version`. Source fields must describe the same artifact as `provenance.content`.
|
||
|
||
`supervisorName`, `supervisorAgentId`, `memberCount`, `memberNames`, `requiredSkills`, and `requiredClientVersion` must agree symmetrically with the sidecar: it may neither drop declared facts nor invent absent ones. Member and supervisor display metadata is not installation or permission authority; resolve those facts from the forked `team.json` and `members.json`.
|
||
|
||
Agent and team cards use `avatar`, not the skill-only `icon` presentation. An `icon` accepted by a shared entry contract still does not reach these cards, and the validator warns about it. See the [Contract Review Team entry](teams/contract-review-team/entry.json).
|
||
|
||
### Versioned catalog metadata
|
||
|
||
Every top-level listing must have `catalog-metadata.v1.json` at the fixed location beside its primary file. This **sidecar** supplements the legacy compatibility file; it does not replace `agent.json`, `entry.json`, or `SKILL.md`. New clients merge it through a deterministic adapter, and validators reject inconsistent duplicated fields.
|
||
|
||
The [catalog metadata schema](schemas/catalog-metadata.v1.schema.json) covers presentation, releases, explicit timestamp facts, content provenance, governance, compatibility, and type-specific metadata. Keep these boundaries intact:
|
||
|
||
- **Source facts versus runtime facts.** A sidecar cannot declare trusted catalog identity (`catalogSourceId`), catalog commit/path/trust, effective official status, installed state, device state, health, runtime-discovered URLs, or `syncedAt`. DesireCore supplies trusted catalog provenance and runtime observations.
|
||
- **Evidence paths follow the content.** `license.evidencePath`, `compliance.licenseEvidencePath`, and `compliance.noticePath` are relative to the item directory for vendored content, and the files must exist. For pointers they refer to the upstream snapshot; offline validation cannot fetch that evidence and warns about claims against unpinned sources.
|
||
- **Unknown is a valid fact.** Use explicit `known` / `unknown` states. A known day uses `YYYY-MM-DD` with `precision: "day"`; a known second uses an RFC 3339 UTC timestamp ending in `Z` with `precision: "second"`. Never fill an unknown release or catalog timestamp with the current date, clone time, or synchronization time.
|
||
|
||
The agent, skill, and team client schemas are generated compatibility snapshots. Their `$comment` records the upstream source commit and blob. Refresh them from the corresponding TypeScript exports when compatibility changes; do not weaken them or substitute sidecar-only validation.
|
||
|
||
## Localization
|
||
|
||
The market declares its languages in `manifest.json.supportedLocales`, currently `en-US` and `zh-CN`, with English as the default. Local skill display text lives in `metadata.i18n`; listing JSON and sidecars retain their own schema-defined i18n shapes rather than sharing interchangeable field names.
|
||
|
||
For skill bodies, resolve the requested locale, then the source locale, then the default locale. Keep the default body in `SKILL.md`, reference localized bodies explicitly, and keep heading structure aligned across languages. The [glossary](scripts/i18n/glossary.json) records shared terminology.
|
||
|
||
The [translation workflow](.github/workflows/i18n-translate.yml) translates eligible missing or stale skill locales using configured model credentials. Review its output for terminology, structure, and factual accuracy; automation is not a substitute for review. `translated_by: human` locks a translation against automatic replacement. After a source change, manually synchronize that translation and refresh `source_hash` only after review; never use a fabricated hash to silence a freshness failure.
|
||
|
||
Run `translate.py --check` to inspect freshness without calling a model API or rewriting translations. Backend configuration and the authoring workflow are documented in the [i18n guide](docs/I18N.md) (Chinese); the workflow and script are authoritative for current behavior. These two README files are maintained together manually and are not inputs to the skill translation pipeline.
|
||
|
||
## Contributing
|
||
|
||
Contributions can add reusable resources, improve existing listings, correct metadata, strengthen validation, or improve translations and documentation.
|
||
|
||
1. **Choose the right destination.** Agents, teams, and skills belong here; application entries belong in [DesireCore Registry](https://github.com/desirecore/registry). Read [AGENTS.md](AGENTS.md) or [CLAUDE.md](CLAUDE.md) before editing.
|
||
2. **Work from the current `main` branch.** Use a focused branch or isolated worktree. Select the correct listing shape, a stable public slug, and a valid category. Reuse existing examples without copying their identities, review status, or licensing claims.
|
||
3. **Publish a complete, consistent listing.** Keep the primary file and sidecar aligned; supply localization, provenance, license evidence, compatibility, and dependency disclosures. Update `builtin-skills.json` for local skills and `manifest.json` statistics when the inventory changes. Do not invent unknown dates or versions.
|
||
4. **Verify before publication.** Run the applicable checks below, review translations, and check the working tree and proposed Git or GitHub text against the public information boundary in the repository policy.
|
||
5. **Open a pull request against `main`.** Explain the reusable use case, source and licensing decisions, compatibility impact, and validation performed. Use generic examples, keep both README languages synchronized when changing this guide, and wait for required checks and review before merging.
|
||
|
||
For catalog errors, broken pointers, or documentation issues, open an [issue](https://github.com/desirecore/market/issues) with the listing ID, relevant client version, expected behavior, and sanitized reproduction details. Report upstream implementation bugs to the upstream project when appropriate. Never include credentials, private customer data, or confidential incident evidence in a public issue.
|
||
|
||
## Validation
|
||
|
||
Run commands from the repository root. The scripts use their inline dependency declarations, so a separate application build or Node.js dependency installation is not required for catalog validation.
|
||
|
||
### Catalog and translation checks
|
||
|
||
```bash
|
||
# Market statistics, categories, built-in index, entries, sidecars, and skill i18n.
|
||
uv run scripts/i18n/validate-i18n.py
|
||
|
||
# Strict sidecar contracts and complete top-level listing coverage, as required by CI.
|
||
uv run scripts/catalog/validate_catalog_metadata.py --require-complete
|
||
|
||
# Missing or stale translations; no model API calls and no file changes.
|
||
uv run scripts/i18n/translate.py --check
|
||
```
|
||
|
||
The checks above do not fetch upstream source repositories. Package installation during environment setup may still require network access. A successful schema check is not proof of upstream license validity, external service availability, or successful installation in every client.
|
||
|
||
### Focused authoring and validator tests
|
||
|
||
```bash
|
||
# Limit skill-body validation and translation inspection to one existing skill.
|
||
uv run scripts/i18n/validate-i18n.py skills/web-access
|
||
uv run scripts/i18n/translate.py --check skills/web-access
|
||
|
||
# Run the relevant single-file suite when changing its validator or generator.
|
||
uv run scripts/i18n/test_validate_i18n.py
|
||
uv run scripts/catalog/test_validate_catalog_metadata.py
|
||
uv run scripts/catalog/test_collection_generator.py
|
||
uv run scripts/catalog/test_check_upstream_health.py
|
||
|
||
# Compile bundled Office schemas offline and validate Chinese XML with a GBK default.
|
||
uv run scripts/office/test_offline_resources.py
|
||
```
|
||
|
||
Passing a skill path narrows skill-body validation, but market-level and sidecar checks still run. Choose the relevant test file for your change rather than treating every documentation edit as a reason to run all test suites.
|
||
|
||
### Network-dependent checks
|
||
|
||
```bash
|
||
# Compare declared children with pinned upstream collections without rewriting entries.
|
||
uv run scripts/gen-collection-children.py --check
|
||
|
||
# Optional source-URL availability checks in addition to normal validation.
|
||
uv run scripts/i18n/validate-i18n.py --online
|
||
|
||
# Report deleted upstreams, missing branches or pinned refs, moved skill paths,
|
||
# undeclared collection children, and available updates for every external entry.
|
||
uv run scripts/catalog/check_upstream_health.py
|
||
```
|
||
|
||
Collection checking requires Git and network access. Mutable collections are reported and skipped because their generated inventory is not reproducible. Omitting `--check` runs the generator in write mode; review both the regenerated children and the corresponding sidecar facts before committing.
|
||
|
||
The upstream health check is read-only and exits non-zero when an entry is `gone` or has a `bad-branch`, `bad-ref`, or `bad-path`. `unreachable` is a network error, not a confirmed failure. The [upstream health workflow](.github/workflows/upstream-health.yml) runs it weekly and keeps one `upstream-health` issue current, where `outdated` rows for GitHub-hosted upstreams link to the `<ref>...<head>` compare view; fixes and `source.ref` bumps still go through reviewed PRs.
|
||
|
||
Paths are checked at the installed snapshot. A path removed only at branch head is reported as `upstream-path-change` while a valid pin remains usable. `outdated` means the installed content differs, not that a new release version exists; commits with identical trees do not trigger it. Comparison covers what an installation copies: `source.path` for a single-skill subtree pointer or the declared child paths for a collection, plus root `LICENSE*`, `NOTICE*` and `COPYING*` files. Unrelated feeds, websites, CLI sources, tests or changesets therefore do not trigger repins; undeclared upstream skills are still reported separately as `new-skill`. Root-level single skills, agents and teams compare the whole snapshot. `--summary-file <path>` writes the workflow's `broken`, `actionable` and `unknown` decisions and the `held` finding count as JSON. Unpinned entries remain actionable, and network uncertainty keeps the tracking issue open.
|
||
|
||
When keeping the current pin, or leaving new upstream children of a collection undeclared, is a reviewed decision, add `<kind>/<id>/upstream-health-hold.json` beside `entry.json`:
|
||
|
||
```json
|
||
{
|
||
"statuses": ["upstream-path-change", "outdated"],
|
||
"ref": "<40-hex pinned source.ref>",
|
||
"head": "<40-hex upstream commit that was reviewed>",
|
||
"reviewedAt": "YYYY-MM-DD",
|
||
"reason": "Why the current pin stays."
|
||
}
|
||
```
|
||
|
||
Only `upstream-path-change`, `new-skill` and `outdated` can be held; broken statuses, `unreachable` and `unpinned` never can. A hold applies only while `ref` equals the entry's `source.ref` and the installed-scope content at upstream head is identical to that at `head`. A hold that lists `new-skill` also requires upstream head to have the same undeclared child paths as `head`, with identical content in those directories. Held findings are reported as `held` in a "Reviewed holds" section and are not actionable, so the tracking issue can close; the closing comment states how many held findings remain. When a hold no longer applies because the pin changed, upstream changed within the installed scope, held undeclared children were added, removed or changed, the reviewed head no longer exists, the file is invalid, or no held finding remains, any original findings return together with an actionable `stale-hold` that asks for re-review or removal. A network error while checking the reviewed head is reported as `unreachable`, not as a stale hold. CI tests require every hold file to be well-formed and its `ref` to match the entry's `source.ref`, so bumping a pin means updating or deleting its hold. A hold records a reviewed decision; it is not a way to silence a broken entry.
|
||
|
||
The [validation workflow](.github/workflows/i18n-validate.yml) is the source of truth for CI. It detects relevant paths and can skip catalog validation for documentation-only changes. A green skipped job is not evidence that Markdown links or bilingual documentation were checked; review those separately.
|
||
|
||
## Security and trust
|
||
|
||
**Official catalog hosting does not make every upstream resource DesireCore-authored, unrestricted, or ready to execute.** Review each resource's provenance, governance, availability, license, and compatibility rather than inferring trust from its directory or display name.
|
||
|
||
All contributions must be reusable, customer-neutral, and safe for public indexing. Keep tenant identities, private organization structures, customer-specific prompts, account mappings, credentials, and deployment details in private AgentFS homes, private repositories, or private runtime configuration. The same boundary applies to Git and GitHub metadata.
|
||
|
||
A connector or adapter does not bundle, license, install, pay for, or operate the third-party product it accesses. Disclose separately licensed, purchased, hosted, or deployed dependencies in discovery descriptions, compatibility information, localized text, and execution instructions. State operator prerequisites, applicable terms, relevant costs, readiness checks, and safe degraded behavior. When a required dependency is unavailable, stop before the external call and never fabricate success.
|
||
|
||
If confidential data is exposed, follow the incident-response policy in [AGENTS.md](AGENTS.md). Removing a current file or rewriting a branch does not by itself remove pull-request references, notifications, caches, or other copies.
|
||
|
||
## Related projects
|
||
|
||
| Project or guide | Responsibility |
|
||
| --- | --- |
|
||
| [DesireCore Registry](https://github.com/desirecore/registry) | Application catalog entries and authorized lifecycle metadata, separate from this Agent/Team/Skill catalog. |
|
||
| [DesireCore Control listing](https://github.com/desirecore/registry/tree/main/entries/desirecore-control) | Authoritative release source, checksum, compatibility requirements, and installation/uninstallation guide for Control. |
|
||
| [Control installation guide](docs/desirecore-control.md) | Using the native application from a compatible DesireCore client. |
|
||
| [Control implementation](https://github.com/desirecore-agent/desirecore-cdp-mcp) | Application source and releases. |
|
||
|
||
DesireCore Control is a native application for external agents. Its application listing belongs in Registry, not in a duplicate Skill or internal MCP service entry here. Installing Control does not register internal MCP tools, and publishing a catalog entry does not deploy a compatible desktop client or installation skill. Consult the authoritative listing and guide for current requirements rather than copying a release number into this overview.
|
||
|
||
## License
|
||
|
||
DesireCore-authored repository content is licensed under the [MIT License](LICENSE). **That license does not override the terms of bundled third-party content or external resources.**
|
||
|
||
Read [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md), the resource's own license files, and its `license` / `redistribution` metadata. In particular, the notices identify the bundled `docx`, `pdf`, `pptx`, and `xlsx` skills as source-available reference implementations, not MIT-licensed open-source content; other bundled material may use Apache-2.0 or separate terms. External pointers remain governed by their upstream licenses.
|
||
|
||
A redistribution mode describes how content is delivered, not a replacement license. Verify the applicable upstream terms before redistribution or production use.
|
||
|
||
The daily upstream-health workflow checks every external pointer and emits a Skill coverage report. Existing installable Git pointers can undergo bounded automated source/license/structured-metadata verification without executing upstream code. Passing snapshots receive an explicit machine reviewer, date, bound ref and `upstream-audit.v1.json`; actual upstream versions and matching sidecar releases are updated without inventing a release date. Catalog and localization checks must pass before creating a normal PR. Licensing, declared prerequisites, presentation or collection-membership changes retain the old review and a blocked draft with an explanation. This is not a software security certification or runtime acceptance, and PRs never auto-merge. Builtin content follows market publication; listing-only ZIP/Web entries are reported as governance blockers rather than silently called current or installable. Existing PRs and holds are preserved. Actions PR creation must be enabled; default-token PR creation does not generally trigger downstream workflows, so checks are run before publishing the update PR. The Copilot metadata-only workflow uses the trusted base context, never checks out PR code, and verifies actual reviews before treating a 422 as already reviewed.
|
||
|
||
## 可核验的上游自动更新
|
||
|
||
Git、显式登记的 ZIP/Web 及本地衍生包的发现、审核与受保护合并,参见 [更新自动化说明](docs/verified-update-automation.md)。凭据未配置时只审核;内容变化或本地补丁冲突保留人工复核,不能用标签或 PR 自带回执授权合并。
|