š¦ ClawHub
lin
by @lin-shiwu
Generate annual insurance welfare Word reports from `gh_hg_bscyearall_dues` in OpenClaw format. The packaged Python entry extracts the target year, inspects...
TERMINAL
clawhub install annual-insurance-word-reportš About This Skill
name: annual-insurance-word-report-openclaw description: Generate annual insurance welfare Word reports from
gh_hg_bscyearall_dues in OpenClaw format. The packaged Python entry extracts the target year, inspects MySQL column comments, maps business fields into the bundled Word template, and writes the final .docx report.
Annual Insurance Word Report
What this package does
year or from request_textgh_hg_bscyearall_duesINFORMATION_SCHEMA.COLUMNS comments before rendering.docx file to outputs/ by defaultInputs
request_text: optional natural-language request, for example åø®ęēę2023幓äøå”ę„åyear: optional explicit year, for example 2023template_path: optional custom .docx template pathoutput_path: optional custom output .docx pathdb_host: optional, default 127.0.0.1db_port: optional, default 3306db_user: optional, default rootdb_password: optional, default rootdatabase: optional, default test_dbtable_name: optional, default gh_hg_bscyearall_duescharset: optional, default utf8mb4mysql_cli: optional fallback path to mysql CLI if PyMySQL is unavailableRun
Install dependencies:
pip install -r requirements.txt
Run with an explicit year:
python src/main.py --year 2023
Run with request text extraction:
python src/main.py --request-text "åø®ęēę2023幓äøå”ę„å"
Custom database example:
python src/main.py --year 2023 --database test_db --db-user root --db-password root
Notes
outputs/annual-insurance-report-.docx .assets/beijing_office_annual_template.docx.base64.txt and is restored to a temporary .docx at runtime.å¢ęćå儳ć儳巄ćéē¾ćč½»ēćä½é¢ćę“„č““ć蔄å
ćäø¤ēć综åAć综åBćåč®”.PyMySQL is not installed, the entry falls back to the mysql CLI when mysql_cli is provided or mysql is on PATH.š Tips & Best Practices
outputs/annual-insurance-report-.docx .assets/beijing_office_annual_template.docx.base64.txt and is restored to a temporary .docx at runtime.å¢ęćå儳ć儳巄ćéē¾ćč½»ēćä½é¢ćę“„č““ć蔄å
ćäø¤ēć综åAć综åBćåč®”.PyMySQL is not installed, the entry falls back to the mysql CLI when mysql_cli is provided or mysql is on PATH.