make-integration
When to use
Use this skill when the user needs Make Platform integration capabilities, especially OCR recognition for invoices and bills.
Current capability:
- Bill and invoice OCR through
makecli integration ocr
- Optional invoice authenticity verification
- Structured extraction for PDF/OFD/PNG/JPG/JPEG files
- Returned invoice fields, stamps, QR codes, coordinates, and optional crop images
Dependency
make-integration depends on the makecli skill and the installed makecli binary.
Instructions
Pre-flight check
Before running OCR:
Check makecli is installed.
- Missing: run
brew tap qfeius/makecli && brew install makecli
Check the OCR command exists.
- Run
makecli integration ocr --help
- If the command is missing, run
makecli update or upgrade makecli.
Check the selected profile.
- Run
makecli configure verify --profile <profile> --output=json
- If not configured, tell the user to run the interactive setup:
! makecli configure token --profile <profile>
- If the token is invalid or missing, stop and ask the user to configure makecli credentials. Do not recognize, extract, infer, correct, or complete invoice content outside makecli.
Check the request base URL from makecli.
- Run
makecli configure get server-url --profile <profile>
- Prefer using the profile-configured server URL instead of hard-coding an environment URL.
- If the profile has no server URL, makecli uses its own default base URL.
Check the input file.
- Supported extensions:
.pdf, .ofd, .png, .jpg, .jpeg
- Only upload files provided or approved by the user.
Recognition workflow
Use table output when the user only needs a readable answer:
makecli integration ocr -f <file> --profile <profile>
Use JSON output when you need to parse fields or feed the result into another Make operation:
makecli integration ocr -f <file> --output=json --profile <profile>
Common options:
# Recognize selected pages
makecli integration ocr -f invoice.pdf --pages "1,3,2"
makecli integration ocr -f invoice.pdf --pages "2-4"
# Bind a business document id
makecli integration ocr -f invoice.pdf --business-id <business-id>
# Explicitly disable invoice authenticity verification
makecli integration ocr -f invoice.pdf --verify-vat=false
# Optional response controls
makecli integration ocr -f invoice.pdf --coord-restore-original
makecli integration ocr -f invoice.pdf --crop-complete
makecli integration ocr -f invoice.pdf --crop-value
makecli integration ocr -f invoice.pdf --merge-elec
makecli integration ocr -f invoice.pdf --return-ppi
Output handling
For --output=json, summarize from:
data.file_name
data.bill_count
data.processing_duration_ms
data.result.pages[].bills[].items[]
data.result.pages[].bills[].stamps[]
data.result.pages[].bills[].qr_codes[]
When reporting results to the user:
- Include file name, bill count, page count, and processing duration when available.
- Extract non-empty
items[].value fields.
- Include stamps and QR codes when they are present and useful.
- Keep base64 crop payloads out of normal summaries.
- Report recognized OCR values only from successful
makecli integration ocr output.
- Treat only
makecli integration ocr output as the recognition result. Do not use visual inspection, model knowledge, file parsing, alternate OCR tools, direct HTTP calls, or user-visible image content to recognize or fill invoice data.
- Mask or replace special and personal information only in skill documentation examples, committed samples, logs, or debug snippets.
- If the OCR result will be written to Make records, invoke the
makecli skill for record operations after recognition.
Failure handling
API 错误 [990300403]: token验证失败
- The token is invalid for the selected environment. Ask the user to configure a token valid for that environment, then retry OCR through makecli.
API 错误 [990300404]: 服务不存在
- The selected makecli server URL likely has not deployed the OCR route. Check the profile server URL or confirm deployment.
unsupported file extension
- Ask for a supported PDF/OFD/PNG/JPG/JPEG file.
打开文件失败
- Check the local path and permissions.
- Any makecli OCR failure
- Report the makecli failure and the next makecli configuration or environment step. Do not continue by recognizing the invoice content yourself.
Hard rules
- Do not write user-provided tokens into repository files.
- Prefer temporary config directories when the user provides a one-off token.
- Clean up temporary credentials and OCR result files after the run unless the user asks to keep them.
- Never print, commit, or duplicate tokens.
- Do not upload local files unless the user provided or approved them.
- Do not commit real invoice numbers, taxpayer IDs, order numbers, phone numbers, addresses, tokens, QR payloads, or other sensitive values in skill examples.
- Do not use any non-makecli path as a fallback for this skill. If makecli cannot run or OCR fails, fix makecli configuration/environment first and retry through makecli.
1---2name: make-integration3description: Use when the user asks to recognize invoices, bills, receipts, tickets, or other voucher files with Make Integration services. Also triggered by requests like "发票内容", "识别发票", "票据 OCR", "ocr 这张图片", or "验真发票". Does not manage Make resources (use makecli), design DSL schemas (makedsl), build UI (makeui), implement auth (make-app-auth), Service/API code (make-app-service), runtime packaging (make-app-runtime), or perform non-Make OCR outside makecli integration commands.4---56# make-integration78## When to use910Use this skill when the user needs Make Platform integration capabilities, especially OCR recognition for invoices and bills.1112Current capability:1314- Bill and invoice OCR through `makecli integration ocr`15- Optional invoice authenticity verification16- Structured extraction for PDF/OFD/PNG/JPG/JPEG files17- Returned invoice fields, stamps, QR codes, coordinates, and optional crop images1819## Dependency2021make-integration depends on the `makecli` skill and the installed `makecli` binary.2223## Instructions2425### Pre-flight check2627Before running OCR:28290. Check `makecli` is installed.30 - Missing: run `brew tap qfeius/makecli && brew install makecli`31321. Check the OCR command exists.33 - Run `makecli integration ocr --help`34 - If the command is missing, run `makecli update` or upgrade makecli.35362. Check the selected profile.37 - Run `makecli configure verify --profile <profile> --output=json`38 - If not configured, tell the user to run the interactive setup:39 `! makecli configure token --profile <profile>`40 - If the token is invalid or missing, stop and ask the user to configure makecli credentials. Do not recognize, extract, infer, correct, or complete invoice content outside makecli.41423. Check the request base URL from makecli.43 - Run `makecli configure get server-url --profile <profile>`44 - Prefer using the profile-configured server URL instead of hard-coding an environment URL.45 - If the profile has no server URL, makecli uses its own default base URL.46474. Check the input file.48 - Supported extensions: `.pdf`, `.ofd`, `.png`, `.jpg`, `.jpeg`49 - Only upload files provided or approved by the user.5051### Recognition workflow5253Use table output when the user only needs a readable answer:5455```bash56makecli integration ocr -f <file> --profile <profile>57```5859Use JSON output when you need to parse fields or feed the result into another Make operation:6061```bash62makecli integration ocr -f <file> --output=json --profile <profile>63```6465Common options:6667```bash68# Recognize selected pages69makecli integration ocr -f invoice.pdf --pages "1,3,2"70makecli integration ocr -f invoice.pdf --pages "2-4"7172# Bind a business document id73makecli integration ocr -f invoice.pdf --business-id <business-id>7475# Explicitly disable invoice authenticity verification76makecli integration ocr -f invoice.pdf --verify-vat=false7778# Optional response controls79makecli integration ocr -f invoice.pdf --coord-restore-original80makecli integration ocr -f invoice.pdf --crop-complete81makecli integration ocr -f invoice.pdf --crop-value82makecli integration ocr -f invoice.pdf --merge-elec83makecli integration ocr -f invoice.pdf --return-ppi84```8586### Output handling8788For `--output=json`, summarize from:8990```text91data.file_name92data.bill_count93data.processing_duration_ms94data.result.pages[].bills[].items[]95data.result.pages[].bills[].stamps[]96data.result.pages[].bills[].qr_codes[]97```9899When reporting results to the user:100101- Include file name, bill count, page count, and processing duration when available.102- Extract non-empty `items[].value` fields.103- Include stamps and QR codes when they are present and useful.104- Keep base64 crop payloads out of normal summaries.105- Report recognized OCR values only from successful `makecli integration ocr` output.106- Treat only `makecli integration ocr` output as the recognition result. Do not use visual inspection, model knowledge, file parsing, alternate OCR tools, direct HTTP calls, or user-visible image content to recognize or fill invoice data.107- Mask or replace special and personal information only in skill documentation examples, committed samples, logs, or debug snippets.108- If the OCR result will be written to Make records, invoke the `makecli` skill for record operations after recognition.109110### Failure handling111112- `API 错误 [990300403]: token验证失败`113 - The token is invalid for the selected environment. Ask the user to configure a token valid for that environment, then retry OCR through makecli.114- `API 错误 [990300404]: 服务不存在`115 - The selected makecli server URL likely has not deployed the OCR route. Check the profile server URL or confirm deployment.116- `unsupported file extension`117 - Ask for a supported PDF/OFD/PNG/JPG/JPEG file.118- `打开文件失败`119 - Check the local path and permissions.120- Any makecli OCR failure121 - Report the makecli failure and the next makecli configuration or environment step. Do not continue by recognizing the invoice content yourself.122123### Hard rules124125- Do not write user-provided tokens into repository files.126- Prefer temporary config directories when the user provides a one-off token.127- Clean up temporary credentials and OCR result files after the run unless the user asks to keep them.128- Never print, commit, or duplicate tokens.129- Do not upload local files unless the user provided or approved them.130- Do not commit real invoice numbers, taxpayer IDs, order numbers, phone numbers, addresses, tokens, QR payloads, or other sensitive values in skill examples.131- Do not use any non-makecli path as a fallback for this skill. If makecli cannot run or OCR fails, fix makecli configuration/environment first and retry through makecli.