Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Doc Format Converter

v1.0.1

Doc Format Converter — Convert between CSV, Excel, JSON, PDF, Markdown, DOCX, HTML, and images with one click. Batch processing supported. Triggers: format c...

0· 75· 2 versions· 0 current· 0 all-time· Updated 4d ago· MIT-0
byYK-Global@billjamno58

Doc Format Converter

Batch file format conversion: CSV ↔ Excel ↔ JSON ↔ PDF / Markdown / DOCX / HTML / PNG / TXT — one-click batch conversion.


Features Overview

FeatureDescription
Multi-formatCSV, Excel, JSON, PDF, Markdown, DOCX, HTML, PNG/JPG, TXT
Batch ProcessingConvert multiple files in one execution
AI Custom ConversionRename fields, extract tables, restructure data (PRO)
Feishu IntegrationConversion complete → Feishu card notification

Supported Conversions

SourceTargets
CSVExcel (.xlsx), JSON
Excel (.xlsx/.xls)JSON, CSV, PNG (table image)
JSONExcel (multi-sheet)
MarkdownDOCX, HTML
DOCXMarkdown
HTMLMarkdown
PDFPNG/JPG (image)
Image (PNG/JPG)PDF
TXTCSV

Tiered Features

FeatureFREEPRO
Total files10 (lifetime)Unlimited
Batch size5 filesUnlimited
FormatsBasicAll
AI custom conversionYes
PDF OCRYes
Feishu result pushYes

Technical Implementation

CategoryTechnology
Spreadsheetpandas (CSV/Excel/JSON)
PDFPyMuPDF + pdfplumber
Documentpandoc + python-docx
ImagePillow (PIL)
EncodingUTF-8/GBK/ISO auto-detect

Usage

Standard Conversion

Convert these files:
[upload file list]
Target format: XLSX

AI Custom Conversion (PRO)

Rename fields in this CSV to English, then convert to JSON
Extract tables from this DOCX into Excel, convert other content to Markdown

Core Script

See scripts/converter.py for full implementation:

from scripts.converter import batch_convert, check_quota_free

# Free tier: check before converting
can_proceed, msg = check_quota_free(remaining=7)
if not can_proceed:
    print(msg)
    sys.exit(1)

# Batch conversion
results = batch_convert(
    file_paths=["data.csv", "report.xlsx"],
    target_format="json",
    output_dir="/tmp/output",
    plan="FREE",
)
print(results)

Billing

  • Pay-per-call: $0.0100 USDT per execution via SkillPay.me
  • Balance insufficient: Payment URL returned — user tops up at https://skillpay.me/doc-format-converter
  • External data flow: FEISHU_USER_ID transmitted to skillpay.me/api/v1/billing for billing identification
  • Billing model: Each batch conversion run = 1 call = $0.0100 USDT

Required Environment Variables

VariableDescription
FEISHU_USER_IDUser open_id for billing (passed by Feishu runtime)
SKILL_BILLING_API_KEYSkillPay Builder API Key
SKILL_BILLING_SKILL_IDSkillPay Skill ID (defaults to doc-format-converter)

Error Handling

Error TypeHandling
Encoding errorAuto-try UTF-8 → GBK → ISO-8859-1
Unsupported formatFriendly error + suggested formats
Corrupted fileSkip and report, continue to next
Quota exceededCard prompts upgrade option

Version tags

latestvk97fe0m8qav3mdzvw73mqexdws85ebdg