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

# 发布前检查

> 发布前自动检查插件质量

使用 `42plugin check` 命令在发布前检查插件质量和规范性。

## 基础用法

```bash theme={null}
42plugin check
```

在插件目录下运行，自动检查当前插件。

## 指定路径

```bash theme={null}
42plugin check ./my-plugin
```

## 检查项目

命令会检查以下内容：

| 检查项         | 说明                                |
| ----------- | --------------------------------- |
| 文件结构        | SKILL.md 等必要文件是否存在                |
| Frontmatter | 元数据是否完整（name、description、version） |
| 内容质量        | 描述长度、结构化程度、示例数量                   |
| 规范合规        | 是否符合 AgentSkill 等规范要求             |
| 安全检查        | 是否包含敏感信息或危险操作                     |

## 示例

```bash theme={null}
$ 42plugin check

检查 ./my-plugin...

  ✓ 文件结构完整
  ✓ Frontmatter 格式正确
  ⚠ 建议添加更多使用示例
  ✓ 无安全风险

活水指数预估: 4.2 / 5.0
建议：添加 2-3 个代码示例可提升评分
```

<Tip>
  建议在每次发布前运行 `42plugin check`，确保插件质量。也可以使用 `42plugin pub --dry-run` 模拟完整发布流程。
</Tip>

## 下一步

<Card title="发布你的插件" icon="rocket" href="/create/publish-share">
  检查通过后，发布你的插件
</Card>
