You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/paddleocr-doc-parsing/SKILL.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,11 +198,13 @@ Then return:
198
198
199
199
### First-Time Configuration
200
200
201
+
You can generally assume that the required environment variables have already been configured. Only when a parsing task fails should you analyze the error message to determine whether it is caused by a configuration issue. If it is indeed a configuration problem, you should notify the user to fix it.
202
+
201
203
**When API is not configured**:
202
204
203
205
The error will show:
204
206
```
205
-
PADDLEOCR_DOC_PARSING_API_URL not configured. Get your API at: https://paddleocr.com
207
+
CONFIG_ERROR: PADDLEOCR_DOC_PARSING_API_URL not configured. Get your API at: https://paddleocr.com
206
208
```
207
209
208
210
**Configuration workflow**:
@@ -217,29 +219,25 @@ PADDLEOCR_DOC_PARSING_API_URL not configured. Get your API at: https://paddleocr
217
219
- PADDLEOCR_ACCESS_TOKEN
218
220
- Optional: PADDLEOCR_DOC_PARSING_TIMEOUT
219
221
```
222
+
- For security reasons, do not run `configure.py` or create a local `.env` file by default if the skill is installed under a host application directory (for example, `~/.claude/skills`). You should also advise the user not to do this.
220
223
221
-
3. **If the user provides credentials in chat anyway** (accept any reasonable format):
224
+
3. **If the user provides credentials in chat anyway** (accept any reasonable format), for example:
- **Security note**: Warn the user that credentials shared in chat may be stored in conversation history. Recommend setting them through the host application's configuration instead when possible.
227
230
228
-
4. **Parse and validate the values**:
231
+
Then parse and validate the values:
229
232
- Extract `PADDLEOCR_DOC_PARSING_API_URL` (look for URLs with `paddleocr.com` or similar)
230
233
- Confirm `PADDLEOCR_DOC_PARSING_API_URL` is a full endpoint ending with `/layout-parsing`
231
234
- Extract `PADDLEOCR_ACCESS_TOKEN` (long alphanumeric string, usually 40+ chars)
232
-
- Tell the user exactly which environment variables to set
233
235
234
-
5. **Ask the user to confirm the environment is configured**:
235
-
- Wait for the user to confirm these values have been set in their host application, runtime environment, or appropriate config file
236
-
- For security reasons, do not run `configure.py` or create a local `.env` file by default if the skill is installed under a host application directory (for example, `~/.claude/skills`)
236
+
4. **Ask the user to confirm the environment is configured**.
237
237
238
-
6. **Retry only after confirmation**:
238
+
5. **Retry only after confirmation**:
239
239
- Once the user confirms the environment variables are available, retry the original parsing task
240
240
241
-
**IMPORTANT**: The error message format is STRICT and must be shown exactly as provided by the script. Do not modify or paraphrase it.
242
-
243
241
### Handling Large Files
244
242
245
243
There is no file size limit for the API. For PDFs, the maximum is 100 pages per request.
Copy file name to clipboardExpand all lines: skills/paddleocr-text-recognition/SKILL.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,8 @@ The output JSON structure is as follows:
156
156
157
157
### First-Time Configuration
158
158
159
+
You can generally assume that the required environment variables have already been configured. Only when an OCR task fails should you analyze the error message to determine whether it is caused by a configuration issue. If it is indeed a configuration problem, you should notify the user to fix it.
160
+
159
161
**When API is not configured**:
160
162
161
163
The error will show:
@@ -175,25 +177,23 @@ CONFIG_ERROR: PADDLEOCR_OCR_API_URL not configured. Get your API at: https://pad
175
177
- PADDLEOCR_ACCESS_TOKEN
176
178
- Optional: PADDLEOCR_OCR_TIMEOUT
177
179
```
180
+
- For security reasons, do not run `configure.py` or create a local `.env` file by default if the skill is installed under a host application directory (for example, `~/.claude/skills`). You should also advise the user not to do this.
178
181
179
-
3. **If the user provides credentials in chat anyway** (accept any reasonable format):
182
+
3. **If the user provides credentials in chat anyway** (accept any reasonable format), for example:
- **Security note**: Warn the user that credentials shared in chat may be stored in conversation history. Recommend setting them through the host application's configuration instead when possible.
185
188
186
-
4. **Parse and validate the values**:
189
+
Then parse and validate the values:
187
190
- Extract `PADDLEOCR_OCR_API_URL` (look for URLs with `paddleocr.com` or similar)
188
191
- Confirm `PADDLEOCR_OCR_API_URL` is a full endpoint ending with `/ocr`
189
192
- Extract `PADDLEOCR_ACCESS_TOKEN` (long alphanumeric string, usually 40+ chars)
190
-
- Tell the user exactly which environment variables to set
191
193
192
-
5. **Ask the user to confirm the environment is configured**:
193
-
- Wait for the user to confirm these values have been set in their host application, runtime environment, or appropriate config file
194
-
- For security reasons, do not run `configure.py` or create a local `.env` file by default if the skill is installed under a host application directory (for example, `~/.claude/skills`)
194
+
4. **Ask the user to confirm the environment is configured**.
195
195
196
-
6. **Retry only after confirmation**:
196
+
5. **Retry only after confirmation**:
197
197
- Once the user confirms the environment variables are available, retry the original OCR task
0 commit comments