[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77ADZEK5BHTBQT83WMV4NYP":3,"skill-same:01M77ADZEK5BHTBQT83WMV4NYP":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M77ADZEK5BHTBQT83WMV4NYP","data-report-generator",null,"Automatically analyze CSV or Excel files and generate professional data analysis reports with charts, \nsummaries, and insights — output as Word (.docx) or PDF. Use this skill whenever the user uploads or \nmentions a data file (CSV, Excel, .xlsx, .xls) and wants a report, analysis, summary, dashboard, or \nvisualization of that data. Also trigger when users say things like \"analyze my data\", \"make a report \nfrom this spreadsheet\", \"visualize this CSV\", \"generate charts from my sales data\", \"weekly\u002Fmonthly \nreport\", \"data summary\", \"turn this into a report\", or ask for any kind of automated reporting from \ntabular data. Ideal for operations, sales, marketing, and finance teams.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdata-report-generator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: data-report-generator\ndescription: |\n  Automatically analyze CSV or Excel files and generate professional data analysis reports with charts, \n  summaries, and insights — output as Word (.docx) or PDF. Use this skill whenever the user uploads or \n  mentions a data file (CSV, Excel, .xlsx, .xls) and wants a report, analysis, summary, dashboard, or \n  visualization of that data. Also trigger when users say things like \"analyze my data\", \"make a report \n  from this spreadsheet\", \"visualize this CSV\", \"generate charts from my sales data\", \"weekly\u002Fmonthly \n  report\", \"data summary\", \"turn this into a report\", or ask for any kind of automated reporting from \n  tabular data. Ideal for operations, sales, marketing, and finance teams.\nversion: 1.0.0\nmetadata:\n  openclaw:\n    emoji: \"📊\"\n    requires:\n      bins:\n        - python3\n        - pip\n---\n\n# Data Report Generator\n\nTransform raw CSV or Excel files into professional, insight-rich reports with charts — output as Word (.docx) or PDF.\n\n## When This Skill Activates\n\nTrigger when user provides:\n- A CSV, Excel (.xlsx\u002F.xls), or TSV file + asks for a report\u002Fanalysis\n- A request to \"visualize\", \"summarize\", or \"analyze\" tabular data\n- Any mention of automated weekly\u002Fmonthly reporting\n\nIf no file is uploaded yet, ask the user to upload their data file first.\n\n---\n\n## Step 1: Gather Inputs\n\nAsk for (or infer from context):\n1. **Data file** — CSV, Excel, TSV (required)\n2. **Report format** — Word (.docx) or PDF? (default: Word)\n3. **Report purpose** — sales analysis? operations? marketing? financial? (affects framing)\n4. **Key questions** — what does the user most want to understand from this data?\n5. **Audience** — internal team? executive summary? client-facing?\n6. **Language** — Chinese or English? (default: match user's language)\n\nIf purpose\u002Fquestions aren't specified, proceed with a comprehensive general analysis.\n\n---\n\n## Step 2: Read and Profile the Data\n\n```python\nimport pandas as pd\nimport numpy as np\n\n# Support both CSV and Excel\ndef load_data(filepath):\n    ext = filepath.rsplit('.', 1)[-1].lower()\n    if ext in ['xlsx', 'xls']:\n        df = pd.read_excel(filepath)\n    elif ext == 'csv':\n        # Try common encodings\n        for enc in ['utf-8', 'gbk', 'gb2312', 'utf-8-sig']:\n            try:\n                df = pd.read_csv(filepath, encoding=enc)\n                break\n            except:\n                continue\n    elif ext == 'tsv':\n        df = pd.read_csv(filepath, sep='\\t')\n    return df\n\ndf = load_data('\u002Fpath\u002Fto\u002Ffile')\n```\n\n### Data Profile to Extract\n\n- Shape: row count, column count\n- Column types: numeric, categorical, date\u002Ftime, text\n- Missing values: count and % per column\n- Basic stats: mean, median, min, max, std for numeric columns\n- Unique value counts for categorical columns\n- Date range if time columns exist\n- Obvious data quality issues\n\n---\n\n## Step 3: Auto-Detect Report Type\n\nBased on column names and data types, auto-select the analysis approach:\n\n| Data Pattern | Report Type | Reference File |\n|---|---|---|\n| Date column + numeric values | **Time Series \u002F Trend** | `references\u002Ftime-series.md` |\n| Category + numeric (sales\u002Frevenue) | **Sales \u002F Performance** | `references\u002Fsales-analysis.md` |\n| Multiple numeric columns | **Correlation \u002F Distribution** | `references\u002Fstatistical.md` |\n| Category breakdowns only | **Segmentation** | `references\u002Fsegmentation.md` |\n| Mixed \u002F unknown | **General Analysis** | `references\u002Fgeneral.md` |\n\nRead the relevant reference file for chart selection and narrative guidance.\n\nIf the user specifies a report type, use that. Otherwise, auto-detect.\n\n---\n\n## Step 4: Generate Charts\n\nInstall dependencies first:\n\n```bash\npip install matplotlib seaborn pandas openpyxl --break-system-packages --quiet\n```\n\n### Chart Generation Rules\n\n```python\nimport matplotlib\nmatplotlib.use('Agg')  # Non-interactive backend — ALWAYS set this\nimport matplotlib.pyplot as plt\nimport matplotlib.ticker as mticker\nimport seaborn as sns\n\n# Style setup — professional look\nplt.style.use('seaborn-v0_8-whitegrid')\nCOLORS = ['#2E86AB', '#A23B72', '#F18F01', '#C73E1D', '#3B1F2B', '#44BBA4']\n\ndef save_chart(fig, filename):\n    fig.savefig(filename, dpi=150, bbox_inches='tight', facecolor='white')\n    plt.close(fig)\n```\n\n### Chart Selection Guide\n\n**Time series data** → Line chart (trend) + bar chart (period comparison)\n```python\nfig, ax = plt.subplots(figsize=(10, 5))\nax.plot(df['date'], df['value'], color=COLORS[0], linewidth=2, marker='o', markersize=4)\nax.set_title('Trend Over Time', fontsize=14, fontweight='bold')\nax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m'))\nplt.xticks(rotation=45)\nsave_chart(fig, 'chart_trend.png')\n```\n\n**Category comparison** → Horizontal bar chart (easier to read labels)\n```python\nfig, ax = plt.subplots(figsize=(10, 6))\ndf_sorted = df.sort_values('value', ascending=True)\nbars = ax.barh(df_sorted['category'], df_sorted['value'], color=COLORS[0])\nax.bar_label(bars, fmt='%.1f', padding=3)\nax.set_title('Performance by Category', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_category.png')\n```\n\n**Distribution** → Histogram + optional KDE\n```python\nfig, ax = plt.subplots(figsize=(8, 5))\nax.hist(df['value'].dropna(), bins=30, color=COLORS[0], edgecolor='white', alpha=0.8)\nax.set_title('Value Distribution', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_dist.png')\n```\n\n**Composition\u002Fshare** → Pie or stacked bar (prefer stacked bar for >5 categories)\n```python\nfig, ax = plt.subplots(figsize=(8, 6))\nsizes = df['value']\nlabels = df['category']\nwedges, texts, autotexts = ax.pie(sizes, labels=labels, autopct='%1.1f%%',\n                                   colors=COLORS, startangle=90)\nax.set_title('Composition', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_pie.png')\n```\n\n**Correlation** → Heatmap\n```python\nfig, ax = plt.subplots(figsize=(10, 8))\ncorr = df[numeric_cols].corr()\nsns.heatmap(corr, annot=True, fmt='.2f', cmap='RdBu_r', center=0,\n            ax=ax, square=True, cbar_kws={'shrink': 0.8})\nax.set_title('Correlation Matrix', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_corr.png')\n```\n\n**Generate 3–6 charts total** — enough to be comprehensive, not overwhelming.\n\n---\n\n## Step 5: Write the Report (Word .docx)\n\nUse the `docx` Python library. Install: `pip install python-docx --break-system-packages --quiet`\n\n### Report Structure\n\n```\n1. Cover Page\n   - Report title, data source name, date generated\n2. Executive Summary (1 page)\n   - 3-5 key findings in plain language\n   - Most important metric highlighted\n3. Data Overview\n   - Dataset dimensions, time range, data quality notes\n4. [Core Analysis Sections — vary by report type]\n   - Each section: narrative paragraph + chart + key takeaways\n5. Key Insights & Recommendations\n   - Actionable bullet points\n6. Appendix: Data Statistics Table\n```\n\n### Docx Code Pattern\n\n```python\nfrom docx import Document\nfrom docx.shared import Inches, Pt, RGBColor\nfrom docx.enum.text import WD_ALIGN_PARAGRAPH\nfrom docx.enum.table import WD_TABLE_ALIGNMENT\nimport datetime\n\ndoc = Document()\n\n# Page setup\nsection = doc.sections[0]\nsection.page_width = Inches(8.5)\nsection.page_height = Inches(11)\nsection.left_margin = Inches(1)\nsection.right_margin = Inches(1)\nsection.top_margin = Inches(1)\nsection.bottom_margin = Inches(1)\n\n# Title style\ndef add_title(doc, text, level=1):\n    heading = doc.add_heading(text, level=level)\n    heading.alignment = WD_ALIGN_PARAGRAPH.LEFT\n    run = heading.runs[0]\n    run.font.color.rgb = RGBColor(0x2E, 0x86, 0xAB)  # Brand blue\n    return heading\n\n# Body text\ndef add_paragraph(doc, text):\n    p = doc.add_paragraph(text)\n    p.paragraph_format.space_after = Pt(6)\n    run = p.runs[0] if p.runs else p.add_run()\n    run.font.size = Pt(11)\n    return p\n\n# Insert chart image\ndef add_chart(doc, image_path, caption, width=6.0):\n    doc.add_picture(image_path, width=Inches(width))\n    last_paragraph = doc.paragraphs[-1]\n    last_paragraph.alignment = WD_ALIGN_PARAGRAPH.CENTER\n    cap = doc.add_paragraph(caption)\n    cap.alignment = WD_ALIGN_PARAGRAPH.CENTER\n    cap.runs[0].font.size = Pt(9)\n    cap.runs[0].font.color.rgb = RGBColor(0x66, 0x66, 0x66)\n\n# Stats table\ndef add_stats_table(doc, df):\n    stats = df.describe().round(2)\n    table = doc.add_table(rows=len(stats)+1, cols=len(stats.columns)+1)\n    table.style = 'Table Grid'\n    # Header row\n    table.cell(0, 0).text = 'Metric'\n    for j, col in enumerate(stats.columns):\n        table.cell(0, j+1).text = str(col)\n    # Data rows\n    for i, idx in enumerate(stats.index):\n        table.cell(i+1, 0).text = str(idx)\n        for j, col in enumerate(stats.columns):\n            table.cell(i+1, j+1).text = str(stats.loc[idx, col])\n\n# Save\ndoc.save('\u002Fhome\u002Fclaude\u002Freport_output.docx')\n```\n\n---\n\n## Step 6: Convert to PDF (if requested)\n\n```bash\n# Use LibreOffice for conversion\npython \u002Fpath\u002Fto\u002Fskills\u002Fdocx\u002Fscripts\u002Foffice\u002Fsoffice.py \\\n  --headless --convert-to pdf \u002Fhome\u002Fclaude\u002Freport_output.docx \\\n  --outdir \u002Fhome\u002Fclaude\u002F\n```\n\nIf LibreOffice is unavailable, fall back to `reportlab`:\n```bash\npip install reportlab --break-system-packages --quiet\n```\nSee `references\u002Fpdf-fallback.md` for reportlab-based PDF generation.\n\n---\n\n## Step 7: Output to User\n\n1. Copy final file to `\u002Fmnt\u002Fuser-data\u002Foutputs\u002F`\n2. Use `present_files` tool to share it\n3. Include a brief summary in chat:\n   - What data was analyzed\n   - How many charts were generated\n   - Top 3 insights found\n   - Any data quality issues to be aware of\n\n---\n\n## Output Quality Checklist\n\nBefore delivering, verify:\n- [ ] Charts have titles, axis labels, and readable fonts\n- [ ] No blank\u002Fempty chart images\n- [ ] Report has executive summary with plain-language findings\n- [ ] Data quality issues are noted (missing values, anomalies)\n- [ ] File opens cleanly (test docx structure validity)\n- [ ] Chinese text renders correctly if using Chinese (use `SimHei` or `Microsoft YaHei` font in matplotlib)\n- [ ] All chart image files exist before embedding in docx\n\n---\n\n## Handling Chinese \u002F CJK Text in Charts\n\n```python\nimport matplotlib\n# Set Chinese-compatible font\nmatplotlib.rcParams['font.sans-serif'] = ['SimHei', 'Microsoft YaHei', \n                                           'PingFang SC', 'DejaVu Sans']\nmatplotlib.rcParams['axes.unicode_minus'] = False  # Fix minus sign rendering\n```\n\nIf font not available on system:\n```bash\npip install matplotlib --break-system-packages\n# Download and install a CJK font\napt-get install -y fonts-wqy-zenhei 2>\u002Fdev\u002Fnull || true\n```\n\n---\n\n## Edge Cases\n\n**Large datasets (>100k rows)**: Sample or aggregate before visualization. Note sampling in report.\n\n**Messy\u002Fdirty data**: Document cleaning steps in the report's \"Data Overview\" section. Show before\u002Fafter counts.\n\n**Single column data**: Generate distribution analysis only. Note limitation.\n\n**All categorical data**: Focus on frequency analysis and cross-tabulations. No numeric charts.\n\n**Date parsing issues**: Try multiple date formats (`dayfirst=True`, `yearfirst=True`, `infer_datetime_format=True`).\n\n**Multiple sheets in Excel**: Ask user which sheet(s) to analyze, or analyze all and create multi-section report.\n\n---\n\n## Reference Files\n\n- `references\u002Ftime-series.md` — Trend analysis, seasonality detection, period-over-period comparisons\n- `references\u002Fsales-analysis.md` — Sales\u002Frevenue specific charts, KPI calculations, funnel analysis\n- `references\u002Fstatistical.md` — Correlation, distribution, outlier detection, regression\n- `references\u002Fsegmentation.md` — Category breakdowns, cohort analysis, ranking\n- `references\u002Fgeneral.md` — General-purpose analysis for unknown data types\n- `references\u002Fpdf-fallback.md` — PDF generation with reportlab when LibreOffice unavailable\n- `references\u002Fchart-styling.md` — Advanced chart styling, brand colors, annotation patterns\n","# Data Report Generator\n\nTransform raw CSV or Excel files into professional, insight-rich reports with charts — output as Word (.docx) or PDF.\n\n## When This Skill Activates\n\nTrigger when user provides:\n- A CSV, Excel (.xlsx\u002F.xls), or TSV file + asks for a report\u002Fanalysis\n- A request to \"visualize\", \"summarize\", or \"analyze\" tabular data\n- Any mention of automated weekly\u002Fmonthly reporting\n\nIf no file is uploaded yet, ask the user to upload their data file first.\n\n---\n\n## Step 1: Gather Inputs\n\nAsk for (or infer from context):\n1. **Data file** — CSV, Excel, TSV (required)\n2. **Report format** — Word (.docx) or PDF? (default: Word)\n3. **Report purpose** — sales analysis? operations? marketing? financial? (affects framing)\n4. **Key questions** — what does the user most want to understand from this data?\n5. **Audience** — internal team? executive summary? client-facing?\n6. **Language** — Chinese or English? (default: match user's language)\n\nIf purpose\u002Fquestions aren't specified, proceed with a comprehensive general analysis.\n\n---\n\n## Step 2: Read and Profile the Data\n\n```python\nimport pandas as pd\nimport numpy as np\n\n# Support both CSV and Excel\ndef load_data(filepath):\n    ext = filepath.rsplit('.', 1)[-1].lower()\n    if ext in ['xlsx', 'xls']:\n        df = pd.read_excel(filepath)\n    elif ext == 'csv':\n        # Try common encodings\n        for enc in ['utf-8', 'gbk', 'gb2312', 'utf-8-sig']:\n            try:\n                df = pd.read_csv(filepath, encoding=enc)\n                break\n            except:\n                continue\n    elif ext == 'tsv':\n        df = pd.read_csv(filepath, sep='\\t')\n    return df\n\ndf = load_data('\u002Fpath\u002Fto\u002Ffile')\n```\n\n### Data Profile to Extract\n\n- Shape: row count, column count\n- Column types: numeric, categorical, date\u002Ftime, text\n- Missing values: count and % per column\n- Basic stats: mean, median, min, max, std for numeric columns\n- Unique value counts for categorical columns\n- Date range if time columns exist\n- Obvious data quality issues\n\n---\n\n## Step 3: Auto-Detect Report Type\n\nBased on column names and data types, auto-select the analysis approach:\n\n| Data Pattern | Report Type | Reference File |\n|---|---|---|\n| Date column + numeric values | **Time Series \u002F Trend** | `references\u002Ftime-series.md` |\n| Category + numeric (sales\u002Frevenue) | **Sales \u002F Performance** | `references\u002Fsales-analysis.md` |\n| Multiple numeric columns | **Correlation \u002F Distribution** | `references\u002Fstatistical.md` |\n| Category breakdowns only | **Segmentation** | `references\u002Fsegmentation.md` |\n| Mixed \u002F unknown | **General Analysis** | `references\u002Fgeneral.md` |\n\nRead the relevant reference file for chart selection and narrative guidance.\n\nIf the user specifies a report type, use that. Otherwise, auto-detect.\n\n---\n\n## Step 4: Generate Charts\n\nInstall dependencies first:\n\n```bash\npip install matplotlib seaborn pandas openpyxl --break-system-packages --quiet\n```\n\n### Chart Generation Rules\n\n```python\nimport matplotlib\nmatplotlib.use('Agg')  # Non-interactive backend — ALWAYS set this\nimport matplotlib.pyplot as plt\nimport matplotlib.ticker as mticker\nimport seaborn as sns\n\n# Style setup — professional look\nplt.style.use('seaborn-v0_8-whitegrid')\nCOLORS = ['#2E86AB', '#A23B72', '#F18F01', '#C73E1D', '#3B1F2B', '#44BBA4']\n\ndef save_chart(fig, filename):\n    fig.savefig(filename, dpi=150, bbox_inches='tight', facecolor='white')\n    plt.close(fig)\n```\n\n### Chart Selection Guide\n\n**Time series data** → Line chart (trend) + bar chart (period comparison)\n```python\nfig, ax = plt.subplots(figsize=(10, 5))\nax.plot(df['date'], df['value'], color=COLORS[0], linewidth=2, marker='o', markersize=4)\nax.set_title('Trend Over Time', fontsize=14, fontweight='bold')\nax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m'))\nplt.xticks(rotation=45)\nsave_chart(fig, 'chart_trend.png')\n```\n\n**Category comparison** → Horizontal bar chart (easier to read labels)\n```python\nfig, ax = plt.subplots(figsize=(10, 6))\ndf_sorted = df.sort_values('value', ascending=True)\nbars = ax.barh(df_sorted['category'], df_sorted['value'], color=COLORS[0])\nax.bar_label(bars, fmt='%.1f', padding=3)\nax.set_title('Performance by Category', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_category.png')\n```\n\n**Distribution** → Histogram + optional KDE\n```python\nfig, ax = plt.subplots(figsize=(8, 5))\nax.hist(df['value'].dropna(), bins=30, color=COLORS[0], edgecolor='white', alpha=0.8)\nax.set_title('Value Distribution', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_dist.png')\n```\n\n**Composition\u002Fshare** → Pie or stacked bar (prefer stacked bar for >5 categories)\n```python\nfig, ax = plt.subplots(figsize=(8, 6))\nsizes = df['value']\nlabels = df['category']\nwedges, texts, autotexts = ax.pie(sizes, labels=labels, autopct='%1.1f%%',\n                                   colors=COLORS, startangle=90)\nax.set_title('Composition', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_pie.png')\n```\n\n**Correlation** → Heatmap\n```python\nfig, ax = plt.subplots(figsize=(10, 8))\ncorr = df[numeric_cols].corr()\nsns.heatmap(corr, annot=True, fmt='.2f', cmap='RdBu_r', center=0,\n            ax=ax, square=True, cbar_kws={'shrink': 0.8})\nax.set_title('Correlation Matrix', fontsize=14, fontweight='bold')\nsave_chart(fig, 'chart_corr.png')\n```\n\n**Generate 3–6 charts total** — enough to be comprehensive, not overwhelming.\n\n---\n\n## Step 5: Write the Report (Word .docx)\n\nUse the `docx` Python library. Install: `pip install python-docx --break-system-packages --quiet`\n\n### Report Structure\n\n```\n1. Cover Page\n   - Report title, data source name, date generated\n2. Executive Summary (1 page)\n   - 3-5 key findings in plain language\n   - Most important metric highlighted\n3. Data Overview\n   - Dataset dimensions, time range, data quality notes\n4. [Core Analysis Sections — vary by report type]\n   - Each section: narrative paragraph + chart + key takeaways\n5. Key Insights & Recommendations\n   - Actionable bullet points\n6. Appendix: Data Statistics Table\n```\n\n### Docx Code Pattern\n\n```python\nfrom docx import Document\nfrom docx.shared import Inches, Pt, RGBColor\nfrom docx.enum.text import WD_ALIGN_PARAGRAPH\nfrom docx.enum.table import WD_TABLE_ALIGNMENT\nimport datetime\n\ndoc = Document()\n\n# Page setup\nsection = doc.sections[0]\nsection.page_width = Inches(8.5)\nsection.page_height = Inches(11)\nsection.left_margin = Inches(1)\nsection.right_margin = Inches(1)\nsection.top_margin = Inches(1)\nsection.bottom_margin = Inches(1)\n\n# Title style\ndef add_title(doc, text, level=1):\n    heading = doc.add_heading(text, level=level)\n    heading.alignment = WD_ALIGN_PARAGRAPH.LEFT\n    run = heading.runs[0]\n    run.font.color.rgb = RGBColor(0x2E, 0x86, 0xAB)  # Brand blue\n    return heading\n\n# Body text\ndef add_paragraph(doc, text):\n    p = doc.add_paragraph(text)\n    p.paragraph_format.space_after = Pt(6)\n    run = p.runs[0] if p.runs else p.add_run()\n    run.font.size = Pt(11)\n    return p\n\n# Insert chart image\ndef add_chart(doc, image_path, caption, width=6.0):\n    doc.add_picture(image_path, width=Inches(width))\n    last_paragraph = doc.paragraphs[-1]\n    last_paragraph.alignment = WD_ALIGN_PARAGRAPH.CENTER\n    cap = doc.add_paragraph(caption)\n    cap.alignment = WD_ALIGN_PARAGRAPH.CENTER\n    cap.runs[0].font.size = Pt(9)\n    cap.runs[0].font.color.rgb = RGBColor(0x66, 0x66, 0x66)\n\n# Stats table\ndef add_stats_table(doc, df):\n    stats = df.describe().round(2)\n    table = doc.add_table(rows=len(stats)+1, cols=len(stats.columns)+1)\n    table.style = 'Table Grid'\n    # Header row\n    table.cell(0, 0).text = 'Metric'\n    for j, col in enumerate(stats.columns):\n        table.cell(0, j+1).text = str(col)\n    # Data rows\n    for i, idx in enumerate(stats.index):\n        table.cell(i+1, 0).text = str(idx)\n        for j, col in enumerate(stats.columns):\n            table.cell(i+1, j+1).text = str(stats.loc[idx, col])\n\n# Save\ndoc.save('\u002Fhome\u002Fclaude\u002Freport_output.docx')\n```\n\n---\n\n## Step 6: Convert to PDF (if requested)\n\n```bash\n# Use LibreOffice for conversion\npython \u002Fpath\u002Fto\u002Fskills\u002Fdocx\u002Fscripts\u002Foffice\u002Fsoffice.py \\\n  --headless --convert-to pdf \u002Fhome\u002Fclaude\u002Freport_output.docx \\\n  --outdir \u002Fhome\u002Fclaude\u002F\n```\n\nIf LibreOffice is unavailable, fall back to `reportlab`:\n```bash\npip install reportlab --break-system-packages --quiet\n```\nSee `references\u002Fpdf-fallback.md` for reportlab-based PDF generation.\n\n---\n\n## Step 7: Output to User\n\n1. Copy final file to `\u002Fmnt\u002Fuser-data\u002Foutputs\u002F`\n2. Use `present_files` tool to share it\n3. Include a brief summary in chat:\n   - What data was analyzed\n   - How many charts were generated\n   - Top 3 insights found\n   - Any data quality issues to be aware of\n\n---\n\n## Output Quality Checklist\n\nBefore delivering, verify:\n- [ ] Charts have titles, axis labels, and readable fonts\n- [ ] No blank\u002Fempty chart images\n- [ ] Report has executive summary with plain-language findings\n- [ ] Data quality issues are noted (missing values, anomalies)\n- [ ] File opens cleanly (test docx structure validity)\n- [ ] Chinese text renders correctly if using Chinese (use `SimHei` or `Microsoft YaHei` font in matplotlib)\n- [ ] All chart image files exist before embedding in docx\n\n---\n\n## Handling Chinese \u002F CJK Text in Charts\n\n```python\nimport matplotlib\n# Set Chinese-compatible font\nmatplotlib.rcParams['font.sans-serif'] = ['SimHei', 'Microsoft YaHei', \n                                           'PingFang SC', 'DejaVu Sans']\nmatplotlib.rcParams['axes.unicode_minus'] = False  # Fix minus sign rendering\n```\n\nIf font not available on system:\n```bash\npip install matplotlib --break-system-packages\n# Download and install a CJK font\napt-get install -y fonts-wqy-zenhei 2>\u002Fdev\u002Fnull || true\n```\n\n---\n\n## Edge Cases\n\n**Large datasets (>100k rows)**: Sample or aggregate before visualization. Note sampling in report.\n\n**Messy\u002Fdirty data**: Document cleaning steps in the report's \"Data Overview\" section. Show before\u002Fafter counts.\n\n**Single column data**: Generate distribution analysis only. Note limitation.\n\n**All categorical data**: Focus on frequency analysis and cross-tabulations. No numeric charts.\n\n**Date parsing issues**: Try multiple date formats (`dayfirst=True`, `yearfirst=True`, `infer_datetime_format=True`).\n\n**Multiple sheets in Excel**: Ask user which sheet(s) to analyze, or analyze all and create multi-section report.\n\n---\n\n## Reference Files\n\n- `references\u002Ftime-series.md` — Trend analysis, seasonality detection, period-over-period comparisons\n- `references\u002Fsales-analysis.md` — Sales\u002Frevenue specific charts, KPI calculations, funnel analysis\n- `references\u002Fstatistical.md` — Correlation, distribution, outlier detection, regression\n- `references\u002Fsegmentation.md` — Category breakdowns, cohort analysis, ranking\n- `references\u002Fgeneral.md` — General-purpose analysis for unknown data types\n- `references\u002Fpdf-fallback.md` — PDF generation with reportlab when LibreOffice unavailable\n- `references\u002Fchart-styling.md` — Advanced chart styling, brand colors, annotation patterns\n",{"name":5,"version":24,"metadata":25,"description":32},"1.0.0",{"openclaw":26},{"emoji":27,"requires":28},"📊",{"bins":29},[30,31],"python3","pip","Automatically analyze CSV or Excel files and generate professional data analysis reports with charts, \nsummaries, and insights — output as Word (.docx) or PDF. Use this skill whenever the user uploads or \nmentions a data file (CSV, Excel, .xlsx, .xls) and wants a report, analysis, summary, dashboard, or \nvisualization of that data. Also trigger when users say things like \"analyze my data\", \"make a report \nfrom this spreadsheet\", \"visualize this CSV\", \"generate charts from my sales data\", \"weekly\u002Fmonthly \nreport\", \"data summary\", \"turn this into a report\", or ask for any kind of automated reporting from \ntabular data. Ideal for operations, sales, marketing, and finance teams.\n","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fd\u002Fdata-report-generator",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill data-report-generator",{"tool":48,"command":49},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill data-report-generator",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill data-report-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdata-report-generator\u002FSKILL.md",true,[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]