docs: make Chinese README the default
This commit is contained in:
@@ -1,35 +1,41 @@
|
||||
# Claude Code Plugins Directory
|
||||
<!-- WEHUB_ZH_README -->
|
||||
> [!NOTE]
|
||||
> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
|
||||
> [English](./README.en.md) · [原始项目](https://github.com/anthropics/claude-plugins-official) · [上游 README](https://github.com/anthropics/claude-plugins-official/blob/HEAD/README.md)
|
||||
> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
|
||||
|
||||
A curated directory of high-quality plugins for Claude Code.
|
||||
# Claude Code 插件目录
|
||||
|
||||
> **⚠️ Important:** Make sure you trust a plugin before installing, updating, or using it. Anthropic does not control what MCP servers, files, or other software are included in plugins and cannot verify that they will work as intended or that they won't change. See each plugin's homepage for more information.
|
||||
精心整理的 Claude Code 高质量插件目录。
|
||||
|
||||
## Structure
|
||||
> **⚠️ 重要提示:** 在安装、更新或使用插件之前,请务必确认你信任该插件。Anthropic 不控制插件中包含哪些 MCP 服务器、文件或其他软件,也无法验证它们能否按预期工作,或不会发生变化。请参阅各插件的主页了解更多信息。
|
||||
|
||||
- **`/plugins`** - Internal plugins developed and maintained by Anthropic
|
||||
- **`/external_plugins`** - Third-party plugins from partners and the community
|
||||
## 结构
|
||||
|
||||
## Installation
|
||||
- **`/plugins`** - 由 Anthropic 开发和维护的内部插件
|
||||
- **`/external_plugins`** - 来自合作伙伴与社区的第三方插件
|
||||
|
||||
Plugins can be installed directly from this marketplace via Claude Code's plugin system.
|
||||
## 安装
|
||||
|
||||
To install, run `/plugin install {plugin-name}@claude-plugins-official`
|
||||
可通过 Claude Code 的插件系统直接从此市场安装插件。
|
||||
|
||||
or browse for the plugin in `/plugin > Discover`
|
||||
要安装,请运行 `/plugin install {plugin-name}@claude-plugins-official`
|
||||
|
||||
## Contributing
|
||||
或在 `/plugin > Discover` 中浏览查找插件
|
||||
|
||||
### Internal Plugins
|
||||
## 贡献
|
||||
|
||||
Internal plugins are developed by Anthropic team members. See `/plugins/example-plugin` for a reference implementation.
|
||||
### 内部插件
|
||||
|
||||
### External Plugins
|
||||
内部插件由 Anthropic 团队成员开发。参考实现请参阅 `/plugins/example-plugin`。
|
||||
|
||||
Third-party partners can submit plugins for inclusion in the marketplace. External plugins must meet quality and security standards for approval. To submit a new plugin, use the [plugin directory submission form](https://clau.de/plugin-directory-submission).
|
||||
### 外部插件
|
||||
|
||||
## Plugin Structure
|
||||
第三方合作伙伴可提交插件以供纳入市场。外部插件须满足质量和安全标准方可获批。要提交新插件,请使用[插件目录提交表单](https://clau.de/plugin-directory-submission).
|
||||
|
||||
Each plugin follows a standard structure:
|
||||
## 插件结构
|
||||
|
||||
每个插件均遵循标准结构:
|
||||
|
||||
```
|
||||
plugin-name/
|
||||
@@ -42,12 +48,12 @@ plugin-name/
|
||||
└── README.md # Documentation
|
||||
```
|
||||
|
||||
## Plugin names are immutable
|
||||
## 插件名称不可变
|
||||
|
||||
The `name` field in a marketplace entry is an **immutable slug**. Once a plugin has been published, its `name` must not change — users have it installed under that slug, and renaming it breaks their install with a `plugin-not-found` error.
|
||||
市场条目中的 `name` 字段是一个**不可变的 slug**。插件一旦发布,其 `name` 不得更改——用户是按该 slug 安装的,重命名会导致安装失败并出现 `plugin-not-found` 错误。
|
||||
|
||||
- To change how a plugin is labeled in the UI, set or update `displayName` instead.
|
||||
- If a rename is genuinely unavoidable, add an entry to the top-level `renames` map in `.claude-plugin/marketplace.json` so existing installs auto-migrate:
|
||||
- 若要更改插件在 UI 中的显示名称,请改为设置或更新 `displayName`。
|
||||
- 若确实无法避免重命名,请在 `.claude-plugin/marketplace.json` 的顶层 `renames` 映射中添加一项,以便现有安装自动迁移:
|
||||
|
||||
```json
|
||||
"renames": {
|
||||
@@ -55,11 +61,11 @@ The `name` field in a marketplace entry is an **immutable slug**. Once a plugin
|
||||
}
|
||||
```
|
||||
|
||||
The Claude Code plugin loader reads this map and transparently rewrites the old slug to the new one on the user's next sync.
|
||||
Claude Code 插件加载器会读取此映射,并在用户下次同步时透明地将旧 slug 重写为新 slug。
|
||||
|
||||
## Skill-bundle plugins
|
||||
## Skill-bundle 插件
|
||||
|
||||
When a plugin's source repository ships skills (`SKILL.md` files) without a `.claude-plugin/plugin.json` manifest, the marketplace entry can declare the skills directly using `strict: false` and an explicit `skills` array.
|
||||
当插件的源仓库随附 skills(`SKILL.md` 文件)但没有 `.claude-plugin/plugin.json` 清单时,市场条目可使用 `strict: false` 和显式的 `skills` 数组直接声明这些 skills。
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -84,14 +90,14 @@ When a plugin's source repository ships skills (`SKILL.md` files) without a `.cl
|
||||
}
|
||||
```
|
||||
|
||||
Each path in `skills` is relative to `source.path` and points at a directory containing a `SKILL.md`. Paths can reach deeper than a single level — for example, `["./libA/skill-1", "./libB/skill-2"]` exposes a curated subset across multiple library subdirectories. Each skill is registered as `<plugin-name>:<skill-name>` in Claude Code.
|
||||
`skills` 中的每个路径均相对于 `source.path`,并指向包含 `SKILL.md` 的目录。路径可深入多个层级——例如,`["./libA/skill-1", "./libB/skill-2"]` 会在多个库子目录中暴露精心筛选的子集。每个 skill 在 Claude Code 中注册为 `<plugin-name>:<skill-name>`。
|
||||
|
||||
For the underlying schema, see [Strict mode](https://code.claude.com/docs/en/plugin-marketplaces) in the marketplace documentation.
|
||||
有关底层 schema,请参阅市场文档中的 [Strict mode](https://code.claude.com/docs/en/plugin-marketplaces) in the marketplace documentation.
|
||||
|
||||
## License
|
||||
## 许可证
|
||||
|
||||
Please see each linked plugin for the relevant LICENSE file.
|
||||
请参阅各链接插件中的相应 LICENSE 文件。
|
||||
|
||||
## Documentation
|
||||
## 文档
|
||||
|
||||
For more information on developing Claude Code plugins, see the [official documentation](https://code.claude.com/docs/en/plugins).
|
||||
有关开发 Claude Code 插件的更多信息,请参阅[官方文档](https://code.claude.com/docs/en/plugins).
|
||||
|
||||
Reference in New Issue
Block a user