Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions skills/glmocr-formula/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: glmocr-formula
description:
Recognize and extract mathematical formulas from images and PDFs into LaTeX format
Official skill for recognizing and extracting mathematical formulas from images and PDFs into LaTeX format
using ZhiPu GLM-OCR API. Supports complex equations, inline formulas, and formula blocks.
Use this skill when the user wants to extract formulas, convert formula images to LaTeX,
or OCR mathematical expressions.
Expand All @@ -14,7 +14,7 @@ metadata:
bins:
- python
primaryEnv: ZHIPU_API_KEY
emoji: "📄"
emoji: "📐"
homepage: https://github.com/zai-org/GLM-OCR/tree/main/skills/glmocr-formula
---

Expand Down Expand Up @@ -43,7 +43,7 @@ Recognize mathematical formulas from images and PDFs and convert them to LaTeX f
| Resource | Link |
| --------------- | ------------------------------------------------------------------------------ |
| **Get API Key** | [智谱开放平台 API Keys](https://bigmodel.cn/usercenter/proj-mgmt/apikeys) |
| **API Docs** | [Layout Parsing / 版面解析](https://open.bigmodel.cn/dev/api/ocr/layout-parse) |
| **API Docs** | [Layout Parsing / 版面解析](https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%A1%A3%E8%A7%A3%E6%9E%90) |

## Prerequisites / 前置条件

Expand All @@ -56,18 +56,40 @@ This script reads the key from the `ZHIPU_API_KEY` environment variable. Reusing

**Setup options / 配置方式(任选一种):**

1. **OpenClaw config (recommended) / OpenClaw 配置(推荐):** Set in `openclaw.json` under `skills.entries.glmocr-formula.env`:
1. **Global config (recommended) / 全局配置(推荐):** Set once in `openclaw.json` under `env.vars`, all Zhipu skills will share it:

```json
"glmocr-formula": { "enabled": true, "env": { "ZHIPU_API_KEY": "你的密钥" } }
{
"env": {
"vars": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
```

2. **Shell environment variable / Shell 环境变量:** Add to `~/.zshrc`:
2. **Skill-level config / Skill 级别配置:** Set for this skill only in `openclaw.json`:

```json
{
"skills": {
"entries": {
"glmocr-formula": {
"env": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
}
}
```

3. **Shell environment variable / Shell 环境变量:** Add to `~/.zshrc`:
```bash
export ZHIPU_API_KEY="你的密钥"
```

> 💡 如果你已为其他智谱 skill(如 `glmocr`、`glmv-caption`)配置过 key,它们共享同一个 `ZHIPU_API_KEY`,无需重复配置。
> 💡 如果你已为其他智谱 skill(如 `glmocr`、`glmv-caption`、`glm-image-generation`)配置过 key,它们共享同一个 `ZHIPU_API_KEY`,无需重复配置。

## Security & Transparency / 安全与透明度

Expand Down
36 changes: 29 additions & 7 deletions skills/glmocr-handwriting/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: glmocr-handwriting
description:
Recognize handwritten text from images using ZhiPu GLM-OCR API. Supports various
Official skill for recognizing handwritten text from images using ZhiPu GLM-OCR API. Supports various
handwriting styles, languages, and mixed handwritten/printed content. Use this skill
when the user wants to read handwritten notes, convert handwriting to text, or OCR
handwritten documents.
Expand All @@ -14,7 +14,7 @@ metadata:
bins:
- python
primaryEnv: ZHIPU_API_KEY
emoji: "📄"
emoji: "✍️"
homepage: https://github.com/zai-org/GLM-OCR/tree/main/skills/glmocr-handwriting
---

Expand Down Expand Up @@ -42,7 +42,7 @@ Recognize handwritten text from images and PDFs using the ZhiPu GLM-OCR layout p
| Resource | Link |
| --------------- | ------------------------------------------------------------------------------ |
| **Get API Key** | [智谱开放平台 API Keys](https://bigmodel.cn/usercenter/proj-mgmt/apikeys) |
| **API Docs** | [Layout Parsing / 版面解析](https://open.bigmodel.cn/dev/api/ocr/layout-parse) |
| **API Docs** | [Layout Parsing / 版面解析](https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%A1%A3%E8%A7%A3%E6%9E%90) |

## Prerequisites / 前置条件

Expand All @@ -55,18 +55,40 @@ This script reads the key from the `ZHIPU_API_KEY` environment variable. Reusing

**Setup options / 配置方式(任选一种):**

1. **OpenClaw config (recommended) / OpenClaw 配置(推荐):** Set in `openclaw.json` under `skills.entries.glmocr-handwriting.env`:
1. **Global config (recommended) / 全局配置(推荐):** Set once in `openclaw.json` under `env.vars`, all Zhipu skills will share it:

```json
"glmocr-handwriting": { "enabled": true, "env": { "ZHIPU_API_KEY": "你的密钥" } }
{
"env": {
"vars": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
```

2. **Shell environment variable / Shell 环境变量:** Add to `~/.zshrc`:
2. **Skill-level config / Skill 级别配置:** Set for this skill only in `openclaw.json`:

```json
{
"skills": {
"entries": {
"glmocr-handwriting": {
"env": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
}
}
```

3. **Shell environment variable / Shell 环境变量:** Add to `~/.zshrc`:
```bash
export ZHIPU_API_KEY="你的密钥"
```

> 💡 如果你已为其他智谱 skill(如 `glmocr``glmv-caption`)配置过 key,它们共享同一个 `ZHIPU_API_KEY`,无需重复配置。
> 💡 如果你已为其他智谱 skill(如 `glmocr``glmv-caption``glm-image-generation`)配置过 key,它们共享同一个 `ZHIPU_API_KEY`,无需重复配置。
## Security & Transparency / 安全与透明度

Expand Down
36 changes: 29 additions & 7 deletions skills/glmocr-table/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: glmocr-table
description:
Recognize and extract tables from images and PDFs into Markdown format using
Official skill for recognizing and extracting tables from images and PDFs into Markdown format using
ZhiPu GLM-OCR API. Supports complex tables, merged cells, and multi-page documents.
Use this skill when the user wants to extract tables, recognize spreadsheets,
or convert table images to editable format.
Expand All @@ -14,7 +14,7 @@ metadata:
bins:
- python
primaryEnv: ZHIPU_API_KEY
emoji: "📄"
emoji: "📊"
homepage: https://github.com/zai-org/GLM-OCR/tree/main/skills/glmocr-table
---

Expand Down Expand Up @@ -42,7 +42,7 @@ Extract tables from images and PDFs and convert them to Markdown format using th
| Resource | Link |
| --------------- | ------------------------------------------------------------------------------ |
| **Get API Key** | [智谱开放平台 API Keys](https://bigmodel.cn/usercenter/proj-mgmt/apikeys) |
| **API Docs** | [Layout Parsing / 版面解析](https://open.bigmodel.cn/dev/api/ocr/layout-parse) |
| **API Docs** | [Layout Parsing / 版面解析](https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%A1%A3%E8%A7%A3%E6%9E%90) |

## Prerequisites / 前置条件

Expand All @@ -55,18 +55,40 @@ This script reads the key from the `ZHIPU_API_KEY` environment variable. Reusing

**Setup options / 配置方式(任选一种):**

1. **OpenClaw config (recommended) / OpenClaw 配置(推荐):** Set in `openclaw.json` under `skills.entries.glmocr-table.env`:
1. **Global config (recommended) / 全局配置(推荐):** Set once in `openclaw.json` under `env.vars`, all Zhipu skills will share it:

```json
"glmocr-table": { "enabled": true, "env": { "ZHIPU_API_KEY": "你的密钥" } }
{
"env": {
"vars": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
```

2. **Shell environment variable / Shell 环境变量:** Add to `~/.zshrc`:
2. **Skill-level config / Skill 级别配置:** Set for this skill only in `openclaw.json`:

```json
{
"skills": {
"entries": {
"glmocr-table": {
"env": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
}
}
```

3. **Shell environment variable / Shell 环境变量:** Add to `~/.zshrc`:
```bash
export ZHIPU_API_KEY="你的密钥"
```

> 💡 如果你已为其他智谱 skill(如 `glmocr`、`glmv-caption`)配置过 key,它们共享同一个 `ZHIPU_API_KEY`,无需重复配置。
> 💡 如果你已为其他智谱 skill(如 `glmocr`、`glmv-caption`、`glm-image-generation`)配置过 key,它们共享同一个 `ZHIPU_API_KEY`,无需重复配置。

## Security & Transparency / 安全与透明度

Expand Down
Loading