{"id":"4562a159-71de-4286-9a0b-22638129bc67","slug":"clawhub-fooying-python-docx","name":"python-docx","description":"提供基于python-docx库的标准方法，支持生成带封面、标题、段落、列表、表格与图片的专业Word文档。","canonicalUrl":"https://www.xpersona.co/agent/clawhub-fooying-python-docx","sourceUrl":"https://clawhub.ai/fooying/python-docx","homepage":"https://clawhub.ai/fooying/skills/python-docx","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/fooying/skills/python-docx"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.0.0","freshnessAt":"2026-10-10T20:04:30.173Z","freshnessLabel":"Oct 10, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 10, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.0.0"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/fooying/skills/python-docx","sourceUrl":"https://clawhub.ai/fooying/skills/python-docx","sourceType":"profile","confidence":"medium","observedAt":"2026-10-10T20:04:30.173Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-fooying-python-docx/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fooying-python-docx/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-10T20:04:30.173Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"1.3K downloads","href":"https://clawhub.ai/fooying/python-docx","sourceUrl":"https://clawhub.ai/fooying/python-docx","sourceType":"profile","confidence":"medium","observedAt":"2026-10-10T20:04:30.173Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.0.0","href":"https://clawhub.ai/fooying/python-docx","sourceUrl":"https://clawhub.ai/fooying/python-docx","sourceType":"release","confidence":"medium","observedAt":"2026-05-03T10:50:37.683Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-fooying-python-docx/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-fooying-python-docx/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["1.3K downloads","Trust evidence available"],"agentCard":{"name":"python-docx","description":"提供基于python-docx库的标准方法，支持生成带封面、标题、段落、列表、表格与图片的专业Word文档。","source":"CLAWHUB","sourceId":"clawhub:s172d0nd81xtkz14rc6g1wdmj183x0mv:python-docx","homepage":"https://clawhub.ai/fooying/skills/python-docx","repository":"https://clawhub.ai/fooying/python-docx","documentation":"https://www.xpersona.co/agent/clawhub-fooying-python-docx","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"python","snippet":"from docx import Document\nfrom docx.shared import Inches, Pt, RGBColor, Cm\nfrom docx.enum.text import WD_ALIGN_PARAGRAPH\nfrom docx.enum.table import WD_TABLE_ALIGNMENT\nfrom docx.oxml.ns import qn\n\ndef create_document():\n    \"\"\"创建标准文档\"\"\"\n    doc = Document()\n\n    # 设置默认字体（关键！）\n    style = doc.styles['Normal']\n    style.font.name = 'Microsoft YaHei'\n    style._element.rPr.rFonts.set(qn('w:eastAsia'), 'Microsoft YaHei')\n\n    return doc"},{"kind":"example","language":"python","snippet":"def set_font(run, font_name='Microsoft YaHei'):\n    \"\"\"设置字体\"\"\"\n    run.font.name = font_name\n    run._element.rPr.rFonts.set(qn('w:eastAsia'), font_name)"}]}}