[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71GDWW2K625D211AVS2ZM3J":3,"skill-same:01M71GDWW2K625D211AVS2ZM3J":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M71GDWW2K625D211AVS2ZM3J","reportlab",null,"PDF generation toolkit. Create invoices, reports, certificates, forms, charts, tables, barcodes, QR codes, Canvas\u002FPlatypus APIs, for professional document automation.","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",[5,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"generation","for","invoices","tables","qr","pdf generation","document automation","codes","professional","PDF","forms","document","reports","certificates","Charts","create","toolkit","automation","canvas","2026-11-10 10:12:30",false,"---\nname: reportlab\ndescription: \"PDF generation toolkit. Create invoices, reports, certificates, forms, charts, tables, barcodes, QR codes, Canvas\u002FPlatypus APIs, for professional document automation.\"\n---\n\n# ReportLab PDF Generation\n\n## Overview\n\nReportLab is a powerful Python library for programmatic PDF generation. Create anything from simple documents to complex reports with tables, charts, images, and interactive forms.\n\n**Two main approaches:**\n- **Canvas API** (low-level): Direct drawing with coordinate-based positioning - use for precise layouts\n- **Platypus** (high-level): Flowing document layout with automatic page breaks - use for multi-page documents\n\n**Core capabilities:**\n- Text with rich formatting and custom fonts\n- Tables with complex styling and cell spanning\n- Charts (bar, line, pie, area, scatter)\n- Barcodes and QR codes (Code128, EAN, QR, etc.)\n- Images with transparency\n- PDF features (links, bookmarks, forms, encryption)\n\n## Choosing the Right Approach\n\n### Use Canvas API when:\n- Creating labels, business cards, certificates\n- Precise positioning is critical (x, y coordinates)\n- Single-page documents or simple layouts\n- Drawing graphics, shapes, and custom designs\n- Adding barcodes or QR codes at specific locations\n\n### Use Platypus when:\n- Creating multi-page documents (reports, articles, books)\n- Content should flow automatically across pages\n- Need headers\u002Ffooters that repeat on each page\n- Working with paragraphs that can split across pages\n- Building complex documents with table of contents\n\n### Use Both when:\n- Complex reports need both flowing content AND precise positioning\n- Adding headers\u002Ffooters to Platypus documents (use `onPage` callback with Canvas)\n- Embedding custom graphics (Canvas) within flowing documents (Platypus)\n\n## Quick Start Examples\n\n### Simple Canvas Document\n\n```python\nfrom reportlab.pdfgen import canvas\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.lib.units import inch\n\nc = canvas.Canvas(\"output.pdf\", pagesize=letter)\nwidth, height = letter\n\n# Draw text\nc.setFont(\"Helvetica-Bold\", 24)\nc.drawString(inch, height - inch, \"Hello ReportLab!\")\n\n# Draw a rectangle\nc.setFillColorRGB(0.2, 0.4, 0.8)\nc.rect(inch, 5*inch, 4*inch, 2*inch, fill=1)\n\n# Save\nc.showPage()\nc.save()\n```\n\n### Simple Platypus Document\n\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer\nfrom reportlab.lib.styles import getSampleStyleSheet\nfrom reportlab.lib.units import inch\n\ndoc = SimpleDocTemplate(\"output.pdf\", pagesize=letter)\nstory = []\nstyles = getSampleStyleSheet()\n\n# Add content\nstory.append(Paragraph(\"Document Title\", styles['Title']))\nstory.append(Spacer(1, 0.2*inch))\nstory.append(Paragraph(\"This is body text with \u003Cb>bold\u003C\u002Fb> and \u003Ci>italic\u003C\u002Fi>.\", styles['BodyText']))\n\n# Build PDF\ndoc.build(story)\n```\n\n## Common Tasks\n\n### Creating Tables\n\nTables work with both Canvas (via Drawing) and Platypus (as Flowables):\n\n```python\nfrom reportlab.platypus import Table, TableStyle\nfrom reportlab.lib import colors\nfrom reportlab.lib.units import inch\n\n# Define data\ndata = [\n    ['Product', 'Q1', 'Q2', 'Q3', 'Q4'],\n    ['Widget A', '100', '150', '130', '180'],\n    ['Widget B', '80', '120', '110', '160'],\n]\n\n# Create table\ntable = Table(data, colWidths=[2*inch, 1*inch, 1*inch, 1*inch, 1*inch])\n\n# Apply styling\nstyle = TableStyle([\n    # Header row\n    ('BACKGROUND', (0, 0), (-1, 0), colors.darkblue),\n    ('TEXTCOLOR', (0, 0), (-1, 0), colors.whitesmoke),\n    ('FONTNAME', (0, 0), (-1, 0), 'Helvetica-Bold'),\n    ('ALIGN', (0, 0), (-1, -1), 'CENTER'),\n\n    # Data rows\n    ('ROWBACKGROUNDS', (0, 1), (-1, -1), [colors.white, colors.lightgrey]),\n    ('GRID', (0, 0), (-1, -1), 1, colors.black),\n])\n\ntable.setStyle(style)\n\n# Add to Platypus story\nstory.append(table)\n\n# Or draw on Canvas\ntable.wrapOn(c, width, height)\ntable.drawOn(c, x, y)\n```\n\n**Detailed table reference:** See `references\u002Ftables_reference.md` for cell spanning, borders, alignment, and advanced styling.\n\n### Creating Charts\n\nCharts use the graphics framework and can be added to both Canvas and Platypus:\n\n```python\nfrom reportlab.graphics.shapes import Drawing\nfrom reportlab.graphics.charts.barcharts import VerticalBarChart\nfrom reportlab.lib import colors\n\n# Create drawing\ndrawing = Drawing(400, 200)\n\n# Create chart\nchart = VerticalBarChart()\nchart.x = 50\nchart.y = 50\nchart.width = 300\nchart.height = 125\n\n# Set data\nchart.data = [[100, 150, 130, 180, 140]]\nchart.categoryAxis.categoryNames = ['Q1', 'Q2', 'Q3', 'Q4', 'Q5']\n\n# Style\nchart.bars[0].fillColor = colors.blue\nchart.valueAxis.valueMin = 0\nchart.valueAxis.valueMax = 200\n\n# Add to drawing\ndrawing.add(chart)\n\n# Use in Platypus\nstory.append(drawing)\n\n# Or render directly to PDF\nfrom reportlab.graphics import renderPDF\nrenderPDF.drawToFile(drawing, 'chart.pdf', 'Chart Title')\n```\n\n**Available chart types:** Bar (vertical\u002Fhorizontal), Line, Pie, Area, Scatter\n**Detailed charts reference:** See `references\u002Fcharts_reference.md` for all chart types, styling, legends, and customization.\n\n### Adding Barcodes and QR Codes\n\n```python\nfrom reportlab.graphics.barcode import code128\nfrom reportlab.graphics.barcode.qr import QrCodeWidget\nfrom reportlab.graphics.shapes import Drawing\nfrom reportlab.graphics import renderPDF\n\n# Code128 barcode (general purpose)\nbarcode = code128.Code128(\"ABC123456789\", barHeight=0.5*inch)\n\n# On Canvas\nbarcode.drawOn(c, x, y)\n\n# QR Code\nqr = QrCodeWidget(\"https:\u002F\u002Fexample.com\")\nqr.barWidth = 2*inch\nqr.barHeight = 2*inch\n\n# Wrap in Drawing for Platypus\nd = Drawing()\nd.add(qr)\nstory.append(d)\n```\n\n**Supported formats:** Code128, Code39, EAN-13, EAN-8, UPC-A, ISBN, QR, Data Matrix, and 20+ more\n**Detailed barcode reference:** See `references\u002Fbarcodes_reference.md` for all formats and usage examples.\n\n### Working with Text and Fonts\n\n```python\nfrom reportlab.platypus import Paragraph\nfrom reportlab.lib.styles import ParagraphStyle\nfrom reportlab.lib.enums import TA_JUSTIFY\n\n# Create custom style\ncustom_style = ParagraphStyle(\n    'CustomStyle',\n    fontSize=12,\n    leading=14,           # Line spacing\n    alignment=TA_JUSTIFY,\n    spaceAfter=10,\n    textColor=colors.black,\n)\n\n# Paragraph with inline formatting\ntext = \"\"\"\nThis paragraph has \u003Cb>bold\u003C\u002Fb>, \u003Ci>italic\u003C\u002Fi>, and \u003Cu>underlined\u003C\u002Fu> text.\nYou can also use \u003Cfont color=\"blue\">colors\u003C\u002Ffont> and \u003Cfont size=\"14\">different sizes\u003C\u002Ffont>.\nChemical formula: H\u003Csub>2\u003C\u002Fsub>O, Einstein: E=mc\u003Csup>2\u003C\u002Fsup>\n\"\"\"\n\npara = Paragraph(text, custom_style)\nstory.append(para)\n```\n\n**Using custom fonts:**\n\n```python\nfrom reportlab.pdfbase import pdfmetrics\nfrom reportlab.pdfbase.ttfonts import TTFont\n\n# Register TrueType font\npdfmetrics.registerFont(TTFont('CustomFont', 'CustomFont.ttf'))\n\n# Use in Canvas\nc.setFont('CustomFont', 12)\n\n# Use in Paragraph style\nstyle = ParagraphStyle('Custom', fontName='CustomFont', fontSize=12)\n```\n\n**Detailed text reference:** See `references\u002Ftext_and_fonts.md` for paragraph styles, font families, Asian languages, Greek letters, and formatting.\n\n### Adding Images\n\n```python\nfrom reportlab.platypus import Image\nfrom reportlab.lib.units import inch\n\n# In Platypus\nimg = Image('photo.jpg', width=4*inch, height=3*inch)\nstory.append(img)\n\n# Maintain aspect ratio\nimg = Image('photo.jpg', width=4*inch, height=3*inch, kind='proportional')\n\n# In Canvas\nc.drawImage('photo.jpg', x, y, width=4*inch, height=3*inch)\n\n# With transparency (mask white background)\nc.drawImage('logo.png', x, y, mask=[255,255,255,255,255,255])\n```\n\n### Creating Forms\n\n```python\nfrom reportlab.pdfgen import canvas\nfrom reportlab.lib.colors import black, white, lightgrey\n\nc = canvas.Canvas(\"form.pdf\")\n\n# Text field\nc.acroForm.textfield(\n    name=\"name\",\n    tooltip=\"Enter your name\",\n    x=100, y=700,\n    width=200, height=20,\n    borderColor=black,\n    fillColor=lightgrey,\n    forceBorder=True\n)\n\n# Checkbox\nc.acroForm.checkbox(\n    name=\"agree\",\n    x=100, y=650,\n    size=20,\n    buttonStyle='check',\n    checked=False\n)\n\n# Dropdown\nc.acroForm.choice(\n    name=\"country\",\n    x=100, y=600,\n    width=150, height=20,\n    options=[(\"United States\", \"US\"), (\"Canada\", \"CA\")],\n    forceBorder=True\n)\n\nc.save()\n```\n\n**Detailed PDF features reference:** See `references\u002Fpdf_features.md` for forms, links, bookmarks, encryption, and metadata.\n\n### Headers and Footers\n\nFor Platypus documents, use page callbacks:\n\n```python\nfrom reportlab.platypus import BaseDocTemplate, PageTemplate, Frame\n\ndef add_header_footer(canvas, doc):\n    \"\"\"Called on each page\"\"\"\n    canvas.saveState()\n\n    # Header\n    canvas.setFont('Helvetica', 9)\n    canvas.drawString(inch, height - 0.5*inch, \"Document Title\")\n\n    # Footer\n    canvas.drawRightString(width - inch, 0.5*inch, f\"Page {doc.page}\")\n\n    canvas.restoreState()\n\n# Set up document\ndoc = BaseDocTemplate(\"output.pdf\")\nframe = Frame(doc.leftMargin, doc.bottomMargin, doc.width, doc.height, id='normal')\ntemplate = PageTemplate(id='normal', frames=[frame], onPage=add_header_footer)\ndoc.addPageTemplates([template])\n\n# Build with story\ndoc.build(story)\n```\n\n## Helper Scripts\n\nThis skill includes helper scripts for common tasks:\n\n### Quick Document Generator\n\nUse `scripts\u002Fquick_document.py` for rapid document creation:\n\n```python\nfrom scripts.quick_document import create_simple_document, create_styled_table\n\n# Simple document from content blocks\ncontent = [\n    {'type': 'heading', 'content': 'Introduction'},\n    {'type': 'paragraph', 'content': 'Your text here...'},\n    {'type': 'bullet', 'content': 'Bullet point'},\n]\n\ncreate_simple_document(\"output.pdf\", \"My Document\", content_blocks=content)\n\n# Styled tables with presets\ndata = [['Header1', 'Header2'], ['Data1', 'Data2']]\ntable = create_styled_table(data, style_name='striped')  # 'default', 'striped', 'minimal', 'report'\n```\n\n## Template Examples\n\nComplete working examples in `assets\u002F`:\n\n### Invoice Template\n\n`assets\u002Finvoice_template.py` - Professional invoice with:\n- Company and client information\n- Itemized table with calculations\n- Tax and totals\n- Terms and notes\n- Logo placement\n\n```python\nfrom assets.invoice_template import create_invoice\n\ncreate_invoice(\n    filename=\"invoice.pdf\",\n    invoice_number=\"INV-2024-001\",\n    invoice_date=\"January 15, 2024\",\n    due_date=\"February 15, 2024\",\n    company_info={'name': 'Acme Corp', 'address': '...', 'phone': '...', 'email': '...'},\n    client_info={'name': 'Client Name', ...},\n    items=[\n        {'description': 'Service', 'quantity': 1, 'unit_price': 500.00},\n        ...\n    ],\n    tax_rate=0.08,\n    notes=\"Thank you for your business!\",\n)\n```\n\n### Report Template\n\n`assets\u002Freport_template.py` - Multi-page business report with:\n- Cover page\n- Table of contents\n- Multiple sections with subsections\n- Charts and tables\n- Headers and footers\n\n```python\nfrom assets.report_template import create_report\n\nreport_data = {\n    'title': 'Quarterly Report',\n    'subtitle': 'Q4 2023',\n    'author': 'Analytics Team',\n    'sections': [\n        {\n            'title': 'Executive Summary',\n            'content': 'Report content...',\n            'table_data': {...},\n            'chart_data': {...}\n        },\n        ...\n    ]\n}\n\ncreate_report(\"report.pdf\", report_data)\n```\n\n## Reference Documentation\n\nComprehensive API references organized by feature:\n\n- **`references\u002Fcanvas_api.md`** - Low-level Canvas: drawing primitives, coordinates, transformations, state management, images, paths\n- **`references\u002Fplatypus_guide.md`** - High-level Platypus: document templates, frames, flowables, page layouts, TOC\n- **`references\u002Ftext_and_fonts.md`** - Text formatting: paragraph styles, inline markup, custom fonts, Asian languages, bullets, sequences\n- **`references\u002Ftables_reference.md`** - Tables: creation, styling, cell spanning, borders, alignment, colors, gradients\n- **`references\u002Fcharts_reference.md`** - Charts: all chart types, data handling, axes, legends, colors, rendering\n- **`references\u002Fbarcodes_reference.md`** - Barcodes: Code128, QR codes, EAN, UPC, postal codes, and 20+ formats\n- **`references\u002Fpdf_features.md`** - PDF features: links, bookmarks, forms, encryption, metadata, page transitions\n\n## Best Practices\n\n### Coordinate System (Canvas)\n- Origin (0, 0) is **lower-left corner** (not top-left)\n- Y-axis points **upward**\n- Units are in **points** (72 points = 1 inch)\n- Always specify page size explicitly\n\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.lib.units import inch\n\nwidth, height = letter\nmargin = inch\n\n# Top of page\ny_top = height - margin\n\n# Bottom of page\ny_bottom = margin\n```\n\n### Choosing Page Size\n\n```python\nfrom reportlab.lib.pagesizes import letter, A4, landscape\n\n# US Letter (8.5\" x 11\")\npagesize=letter\n\n# ISO A4 (210mm x 297mm)\npagesize=A4\n\n# Landscape\npagesize=landscape(letter)\n\n# Custom\npagesize=(6*inch, 9*inch)\n```\n\n### Performance Tips\n\n1. **Use `drawImage()` over `drawInlineImage()`** - caches images for reuse\n2. **Enable compression for large files:** `canvas.Canvas(\"file.pdf\", pageCompression=1)`\n3. **Reuse styles** - create once, use throughout document\n4. **Use Forms\u002FXObjects** for repeated graphics\n\n### Common Patterns\n\n**Centering text on Canvas:**\n```python\ntext = \"Centered Text\"\ntext_width = c.stringWidth(text, \"Helvetica\", 12)\nx = (width - text_width) \u002F 2\nc.drawString(x, y, text)\n\n# Or use built-in\nc.drawCentredString(width\u002F2, y, text)\n```\n\n**Page breaks in Platypus:**\n```python\nfrom reportlab.platypus import PageBreak\n\nstory.append(PageBreak())\n```\n\n**Keep content together (no split):**\n```python\nfrom reportlab.platypus import KeepTogether\n\nstory.append(KeepTogether([\n    heading,\n    paragraph1,\n    paragraph2,\n]))\n```\n\n**Alternate row colors:**\n```python\nstyle = TableStyle([\n    ('ROWBACKGROUNDS', (0, 1), (-1, -1), [colors.white, colors.lightgrey]),\n])\n```\n\n## Troubleshooting\n\n**Text overlaps or disappears:**\n- Check Y-coordinates - remember origin is bottom-left\n- Ensure text fits within page bounds\n- Verify `leading` (line spacing) is greater than `fontSize`\n\n**Table doesn't fit on page:**\n- Reduce column widths\n- Decrease font size\n- Use landscape orientation\n- Enable table splitting with `repeatRows`\n\n**Barcode not scanning:**\n- Increase `barHeight` (try 0.5 inch minimum)\n- Set `quiet=1` for quiet zones\n- Test print quality (300+ DPI recommended)\n- Validate data format for barcode type\n\n**Font not found:**\n- Register TrueType fonts with `pdfmetrics.registerFont()`\n- Use font family name exactly as registered\n- Check font file path is correct\n\n**Images have white background:**\n- Use `mask` parameter to make white transparent\n- Provide RGB range to mask: `mask=[255,255,255,255,255,255]`\n- Or use PNG with alpha channel\n\n## Example Workflows\n\n### Creating an Invoice\n\n1. Start with invoice template from `assets\u002Finvoice_template.py`\n2. Customize company info, logo path\n3. Add items with descriptions, quantities, prices\n4. Set tax rate if applicable\n5. Add notes and payment terms\n6. Generate PDF\n\n### Creating a Report\n\n1. Start with report template from `assets\u002Freport_template.py`\n2. Define sections with titles and content\n3. Add tables for data using `create_styled_table()`\n4. Add charts using graphics framework\n5. Build with `doc.multiBuild(story)` for TOC\n\n### Creating a Certificate\n\n1. Use Canvas API for precise positioning\n2. Load custom fonts for elegant typography\n3. Add border graphics or image background\n4. Position text elements (name, date, achievement)\n5. Optional: Add QR code for verification\n\n### Creating Labels with Barcodes\n\n1. Use Canvas with custom page size (label dimensions)\n2. Calculate grid positions for multiple labels per page\n3. Draw label content (text, images)\n4. Add barcode at specific position\n5. Use `showPage()` between labels or grids\n\n## Installation\n\n```bash\nuv pip install reportlab\n\n# For image support\nuv pip install pillow\n\n# For charts\nuv pip install reportlab[renderPM]\n\n# For barcode support (included in reportlab)\n# QR codes require: uv pip install qrcode\n```\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Generating PDF documents programmatically\n- Creating invoices, receipts, or billing documents\n- Building reports with tables and charts\n- Generating certificates, badges, or credentials\n- Creating shipping labels or product labels with barcodes\n- Designing forms or fillable PDFs\n- Producing multi-page documents with consistent formatting\n- Converting data to PDF format for archival or distribution\n- Creating custom layouts that require precise positioning\n\nThis skill provides comprehensive guidance for all ReportLab capabilities, from simple documents to complex multi-page reports with charts, tables, and interactive elements.\n","# ReportLab PDF Generation\n\n## Overview\n\nReportLab is a powerful Python library for programmatic PDF generation. Create anything from simple documents to complex reports with tables, charts, images, and interactive forms.\n\n**Two main approaches:**\n- **Canvas API** (low-level): Direct drawing with coordinate-based positioning - use for precise layouts\n- **Platypus** (high-level): Flowing document layout with automatic page breaks - use for multi-page documents\n\n**Core capabilities:**\n- Text with rich formatting and custom fonts\n- Tables with complex styling and cell spanning\n- Charts (bar, line, pie, area, scatter)\n- Barcodes and QR codes (Code128, EAN, QR, etc.)\n- Images with transparency\n- PDF features (links, bookmarks, forms, encryption)\n\n## Choosing the Right Approach\n\n### Use Canvas API when:\n- Creating labels, business cards, certificates\n- Precise positioning is critical (x, y coordinates)\n- Single-page documents or simple layouts\n- Drawing graphics, shapes, and custom designs\n- Adding barcodes or QR codes at specific locations\n\n### Use Platypus when:\n- Creating multi-page documents (reports, articles, books)\n- Content should flow automatically across pages\n- Need headers\u002Ffooters that repeat on each page\n- Working with paragraphs that can split across pages\n- Building complex documents with table of contents\n\n### Use Both when:\n- Complex reports need both flowing content AND precise positioning\n- Adding headers\u002Ffooters to Platypus documents (use `onPage` callback with Canvas)\n- Embedding custom graphics (Canvas) within flowing documents (Platypus)\n\n## Quick Start Examples\n\n### Simple Canvas Document\n\n```python\nfrom reportlab.pdfgen import canvas\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.lib.units import inch\n\nc = canvas.Canvas(\"output.pdf\", pagesize=letter)\nwidth, height = letter\n\n# Draw text\nc.setFont(\"Helvetica-Bold\", 24)\nc.drawString(inch, height - inch, \"Hello ReportLab!\")\n\n# Draw a rectangle\nc.setFillColorRGB(0.2, 0.4, 0.8)\nc.rect(inch, 5*inch, 4*inch, 2*inch, fill=1)\n\n# Save\nc.showPage()\nc.save()\n```\n\n### Simple Platypus Document\n\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer\nfrom reportlab.lib.styles import getSampleStyleSheet\nfrom reportlab.lib.units import inch\n\ndoc = SimpleDocTemplate(\"output.pdf\", pagesize=letter)\nstory = []\nstyles = getSampleStyleSheet()\n\n# Add content\nstory.append(Paragraph(\"Document Title\", styles['Title']))\nstory.append(Spacer(1, 0.2*inch))\nstory.append(Paragraph(\"This is body text with \u003Cb>bold\u003C\u002Fb> and \u003Ci>italic\u003C\u002Fi>.\", styles['BodyText']))\n\n# Build PDF\ndoc.build(story)\n```\n\n## Common Tasks\n\n### Creating Tables\n\nTables work with both Canvas (via Drawing) and Platypus (as Flowables):\n\n```python\nfrom reportlab.platypus import Table, TableStyle\nfrom reportlab.lib import colors\nfrom reportlab.lib.units import inch\n\n# Define data\ndata = [\n    ['Product', 'Q1', 'Q2', 'Q3', 'Q4'],\n    ['Widget A', '100', '150', '130', '180'],\n    ['Widget B', '80', '120', '110', '160'],\n]\n\n# Create table\ntable = Table(data, colWidths=[2*inch, 1*inch, 1*inch, 1*inch, 1*inch])\n\n# Apply styling\nstyle = TableStyle([\n    # Header row\n    ('BACKGROUND', (0, 0), (-1, 0), colors.darkblue),\n    ('TEXTCOLOR', (0, 0), (-1, 0), colors.whitesmoke),\n    ('FONTNAME', (0, 0), (-1, 0), 'Helvetica-Bold'),\n    ('ALIGN', (0, 0), (-1, -1), 'CENTER'),\n\n    # Data rows\n    ('ROWBACKGROUNDS', (0, 1), (-1, -1), [colors.white, colors.lightgrey]),\n    ('GRID', (0, 0), (-1, -1), 1, colors.black),\n])\n\ntable.setStyle(style)\n\n# Add to Platypus story\nstory.append(table)\n\n# Or draw on Canvas\ntable.wrapOn(c, width, height)\ntable.drawOn(c, x, y)\n```\n\n**Detailed table reference:** See `references\u002Ftables_reference.md` for cell spanning, borders, alignment, and advanced styling.\n\n### Creating Charts\n\nCharts use the graphics framework and can be added to both Canvas and Platypus:\n\n```python\nfrom reportlab.graphics.shapes import Drawing\nfrom reportlab.graphics.charts.barcharts import VerticalBarChart\nfrom reportlab.lib import colors\n\n# Create drawing\ndrawing = Drawing(400, 200)\n\n# Create chart\nchart = VerticalBarChart()\nchart.x = 50\nchart.y = 50\nchart.width = 300\nchart.height = 125\n\n# Set data\nchart.data = [[100, 150, 130, 180, 140]]\nchart.categoryAxis.categoryNames = ['Q1', 'Q2', 'Q3', 'Q4', 'Q5']\n\n# Style\nchart.bars[0].fillColor = colors.blue\nchart.valueAxis.valueMin = 0\nchart.valueAxis.valueMax = 200\n\n# Add to drawing\ndrawing.add(chart)\n\n# Use in Platypus\nstory.append(drawing)\n\n# Or render directly to PDF\nfrom reportlab.graphics import renderPDF\nrenderPDF.drawToFile(drawing, 'chart.pdf', 'Chart Title')\n```\n\n**Available chart types:** Bar (vertical\u002Fhorizontal), Line, Pie, Area, Scatter\n**Detailed charts reference:** See `references\u002Fcharts_reference.md` for all chart types, styling, legends, and customization.\n\n### Adding Barcodes and QR Codes\n\n```python\nfrom reportlab.graphics.barcode import code128\nfrom reportlab.graphics.barcode.qr import QrCodeWidget\nfrom reportlab.graphics.shapes import Drawing\nfrom reportlab.graphics import renderPDF\n\n# Code128 barcode (general purpose)\nbarcode = code128.Code128(\"ABC123456789\", barHeight=0.5*inch)\n\n# On Canvas\nbarcode.drawOn(c, x, y)\n\n# QR Code\nqr = QrCodeWidget(\"https:\u002F\u002Fexample.com\")\nqr.barWidth = 2*inch\nqr.barHeight = 2*inch\n\n# Wrap in Drawing for Platypus\nd = Drawing()\nd.add(qr)\nstory.append(d)\n```\n\n**Supported formats:** Code128, Code39, EAN-13, EAN-8, UPC-A, ISBN, QR, Data Matrix, and 20+ more\n**Detailed barcode reference:** See `references\u002Fbarcodes_reference.md` for all formats and usage examples.\n\n### Working with Text and Fonts\n\n```python\nfrom reportlab.platypus import Paragraph\nfrom reportlab.lib.styles import ParagraphStyle\nfrom reportlab.lib.enums import TA_JUSTIFY\n\n# Create custom style\ncustom_style = ParagraphStyle(\n    'CustomStyle',\n    fontSize=12,\n    leading=14,           # Line spacing\n    alignment=TA_JUSTIFY,\n    spaceAfter=10,\n    textColor=colors.black,\n)\n\n# Paragraph with inline formatting\ntext = \"\"\"\nThis paragraph has \u003Cb>bold\u003C\u002Fb>, \u003Ci>italic\u003C\u002Fi>, and \u003Cu>underlined\u003C\u002Fu> text.\nYou can also use \u003Cfont color=\"blue\">colors\u003C\u002Ffont> and \u003Cfont size=\"14\">different sizes\u003C\u002Ffont>.\nChemical formula: H\u003Csub>2\u003C\u002Fsub>O, Einstein: E=mc\u003Csup>2\u003C\u002Fsup>\n\"\"\"\n\npara = Paragraph(text, custom_style)\nstory.append(para)\n```\n\n**Using custom fonts:**\n\n```python\nfrom reportlab.pdfbase import pdfmetrics\nfrom reportlab.pdfbase.ttfonts import TTFont\n\n# Register TrueType font\npdfmetrics.registerFont(TTFont('CustomFont', 'CustomFont.ttf'))\n\n# Use in Canvas\nc.setFont('CustomFont', 12)\n\n# Use in Paragraph style\nstyle = ParagraphStyle('Custom', fontName='CustomFont', fontSize=12)\n```\n\n**Detailed text reference:** See `references\u002Ftext_and_fonts.md` for paragraph styles, font families, Asian languages, Greek letters, and formatting.\n\n### Adding Images\n\n```python\nfrom reportlab.platypus import Image\nfrom reportlab.lib.units import inch\n\n# In Platypus\nimg = Image('photo.jpg', width=4*inch, height=3*inch)\nstory.append(img)\n\n# Maintain aspect ratio\nimg = Image('photo.jpg', width=4*inch, height=3*inch, kind='proportional')\n\n# In Canvas\nc.drawImage('photo.jpg', x, y, width=4*inch, height=3*inch)\n\n# With transparency (mask white background)\nc.drawImage('logo.png', x, y, mask=[255,255,255,255,255,255])\n```\n\n### Creating Forms\n\n```python\nfrom reportlab.pdfgen import canvas\nfrom reportlab.lib.colors import black, white, lightgrey\n\nc = canvas.Canvas(\"form.pdf\")\n\n# Text field\nc.acroForm.textfield(\n    name=\"name\",\n    tooltip=\"Enter your name\",\n    x=100, y=700,\n    width=200, height=20,\n    borderColor=black,\n    fillColor=lightgrey,\n    forceBorder=True\n)\n\n# Checkbox\nc.acroForm.checkbox(\n    name=\"agree\",\n    x=100, y=650,\n    size=20,\n    buttonStyle='check',\n    checked=False\n)\n\n# Dropdown\nc.acroForm.choice(\n    name=\"country\",\n    x=100, y=600,\n    width=150, height=20,\n    options=[(\"United States\", \"US\"), (\"Canada\", \"CA\")],\n    forceBorder=True\n)\n\nc.save()\n```\n\n**Detailed PDF features reference:** See `references\u002Fpdf_features.md` for forms, links, bookmarks, encryption, and metadata.\n\n### Headers and Footers\n\nFor Platypus documents, use page callbacks:\n\n```python\nfrom reportlab.platypus import BaseDocTemplate, PageTemplate, Frame\n\ndef add_header_footer(canvas, doc):\n    \"\"\"Called on each page\"\"\"\n    canvas.saveState()\n\n    # Header\n    canvas.setFont('Helvetica', 9)\n    canvas.drawString(inch, height - 0.5*inch, \"Document Title\")\n\n    # Footer\n    canvas.drawRightString(width - inch, 0.5*inch, f\"Page {doc.page}\")\n\n    canvas.restoreState()\n\n# Set up document\ndoc = BaseDocTemplate(\"output.pdf\")\nframe = Frame(doc.leftMargin, doc.bottomMargin, doc.width, doc.height, id='normal')\ntemplate = PageTemplate(id='normal', frames=[frame], onPage=add_header_footer)\ndoc.addPageTemplates([template])\n\n# Build with story\ndoc.build(story)\n```\n\n## Helper Scripts\n\nThis skill includes helper scripts for common tasks:\n\n### Quick Document Generator\n\nUse `scripts\u002Fquick_document.py` for rapid document creation:\n\n```python\nfrom scripts.quick_document import create_simple_document, create_styled_table\n\n# Simple document from content blocks\ncontent = [\n    {'type': 'heading', 'content': 'Introduction'},\n    {'type': 'paragraph', 'content': 'Your text here...'},\n    {'type': 'bullet', 'content': 'Bullet point'},\n]\n\ncreate_simple_document(\"output.pdf\", \"My Document\", content_blocks=content)\n\n# Styled tables with presets\ndata = [['Header1', 'Header2'], ['Data1', 'Data2']]\ntable = create_styled_table(data, style_name='striped')  # 'default', 'striped', 'minimal', 'report'\n```\n\n## Template Examples\n\nComplete working examples in `assets\u002F`:\n\n### Invoice Template\n\n`assets\u002Finvoice_template.py` - Professional invoice with:\n- Company and client information\n- Itemized table with calculations\n- Tax and totals\n- Terms and notes\n- Logo placement\n\n```python\nfrom assets.invoice_template import create_invoice\n\ncreate_invoice(\n    filename=\"invoice.pdf\",\n    invoice_number=\"INV-2024-001\",\n    invoice_date=\"January 15, 2024\",\n    due_date=\"February 15, 2024\",\n    company_info={'name': 'Acme Corp', 'address': '...', 'phone': '...', 'email': '...'},\n    client_info={'name': 'Client Name', ...},\n    items=[\n        {'description': 'Service', 'quantity': 1, 'unit_price': 500.00},\n        ...\n    ],\n    tax_rate=0.08,\n    notes=\"Thank you for your business!\",\n)\n```\n\n### Report Template\n\n`assets\u002Freport_template.py` - Multi-page business report with:\n- Cover page\n- Table of contents\n- Multiple sections with subsections\n- Charts and tables\n- Headers and footers\n\n```python\nfrom assets.report_template import create_report\n\nreport_data = {\n    'title': 'Quarterly Report',\n    'subtitle': 'Q4 2023',\n    'author': 'Analytics Team',\n    'sections': [\n        {\n            'title': 'Executive Summary',\n            'content': 'Report content...',\n            'table_data': {...},\n            'chart_data': {...}\n        },\n        ...\n    ]\n}\n\ncreate_report(\"report.pdf\", report_data)\n```\n\n## Reference Documentation\n\nComprehensive API references organized by feature:\n\n- **`references\u002Fcanvas_api.md`** - Low-level Canvas: drawing primitives, coordinates, transformations, state management, images, paths\n- **`references\u002Fplatypus_guide.md`** - High-level Platypus: document templates, frames, flowables, page layouts, TOC\n- **`references\u002Ftext_and_fonts.md`** - Text formatting: paragraph styles, inline markup, custom fonts, Asian languages, bullets, sequences\n- **`references\u002Ftables_reference.md`** - Tables: creation, styling, cell spanning, borders, alignment, colors, gradients\n- **`references\u002Fcharts_reference.md`** - Charts: all chart types, data handling, axes, legends, colors, rendering\n- **`references\u002Fbarcodes_reference.md`** - Barcodes: Code128, QR codes, EAN, UPC, postal codes, and 20+ formats\n- **`references\u002Fpdf_features.md`** - PDF features: links, bookmarks, forms, encryption, metadata, page transitions\n\n## Best Practices\n\n### Coordinate System (Canvas)\n- Origin (0, 0) is **lower-left corner** (not top-left)\n- Y-axis points **upward**\n- Units are in **points** (72 points = 1 inch)\n- Always specify page size explicitly\n\n```python\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.lib.units import inch\n\nwidth, height = letter\nmargin = inch\n\n# Top of page\ny_top = height - margin\n\n# Bottom of page\ny_bottom = margin\n```\n\n### Choosing Page Size\n\n```python\nfrom reportlab.lib.pagesizes import letter, A4, landscape\n\n# US Letter (8.5\" x 11\")\npagesize=letter\n\n# ISO A4 (210mm x 297mm)\npagesize=A4\n\n# Landscape\npagesize=landscape(letter)\n\n# Custom\npagesize=(6*inch, 9*inch)\n```\n\n### Performance Tips\n\n1. **Use `drawImage()` over `drawInlineImage()`** - caches images for reuse\n2. **Enable compression for large files:** `canvas.Canvas(\"file.pdf\", pageCompression=1)`\n3. **Reuse styles** - create once, use throughout document\n4. **Use Forms\u002FXObjects** for repeated graphics\n\n### Common Patterns\n\n**Centering text on Canvas:**\n```python\ntext = \"Centered Text\"\ntext_width = c.stringWidth(text, \"Helvetica\", 12)\nx = (width - text_width) \u002F 2\nc.drawString(x, y, text)\n\n# Or use built-in\nc.drawCentredString(width\u002F2, y, text)\n```\n\n**Page breaks in Platypus:**\n```python\nfrom reportlab.platypus import PageBreak\n\nstory.append(PageBreak())\n```\n\n**Keep content together (no split):**\n```python\nfrom reportlab.platypus import KeepTogether\n\nstory.append(KeepTogether([\n    heading,\n    paragraph1,\n    paragraph2,\n]))\n```\n\n**Alternate row colors:**\n```python\nstyle = TableStyle([\n    ('ROWBACKGROUNDS', (0, 1), (-1, -1), [colors.white, colors.lightgrey]),\n])\n```\n\n## Troubleshooting\n\n**Text overlaps or disappears:**\n- Check Y-coordinates - remember origin is bottom-left\n- Ensure text fits within page bounds\n- Verify `leading` (line spacing) is greater than `fontSize`\n\n**Table doesn't fit on page:**\n- Reduce column widths\n- Decrease font size\n- Use landscape orientation\n- Enable table splitting with `repeatRows`\n\n**Barcode not scanning:**\n- Increase `barHeight` (try 0.5 inch minimum)\n- Set `quiet=1` for quiet zones\n- Test print quality (300+ DPI recommended)\n- Validate data format for barcode type\n\n**Font not found:**\n- Register TrueType fonts with `pdfmetrics.registerFont()`\n- Use font family name exactly as registered\n- Check font file path is correct\n\n**Images have white background:**\n- Use `mask` parameter to make white transparent\n- Provide RGB range to mask: `mask=[255,255,255,255,255,255]`\n- Or use PNG with alpha channel\n\n## Example Workflows\n\n### Creating an Invoice\n\n1. Start with invoice template from `assets\u002Finvoice_template.py`\n2. Customize company info, logo path\n3. Add items with descriptions, quantities, prices\n4. Set tax rate if applicable\n5. Add notes and payment terms\n6. Generate PDF\n\n### Creating a Report\n\n1. Start with report template from `assets\u002Freport_template.py`\n2. Define sections with titles and content\n3. Add tables for data using `create_styled_table()`\n4. Add charts using graphics framework\n5. Build with `doc.multiBuild(story)` for TOC\n\n### Creating a Certificate\n\n1. Use Canvas API for precise positioning\n2. Load custom fonts for elegant typography\n3. Add border graphics or image background\n4. Position text elements (name, date, achievement)\n5. Optional: Add QR code for verification\n\n### Creating Labels with Barcodes\n\n1. Use Canvas with custom page size (label dimensions)\n2. Calculate grid positions for multiple labels per page\n3. Draw label content (text, images)\n4. Add barcode at specific position\n5. Use `showPage()` between labels or grids\n\n## Installation\n\n```bash\nuv pip install reportlab\n\n# For image support\nuv pip install pillow\n\n# For charts\nuv pip install reportlab[renderPM]\n\n# For barcode support (included in reportlab)\n# QR codes require: uv pip install qrcode\n```\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Generating PDF documents programmatically\n- Creating invoices, receipts, or billing documents\n- Building reports with tables and charts\n- Generating certificates, badges, or credentials\n- Creating shipping labels or product labels with barcodes\n- Designing forms or fillable PDFs\n- Producing multi-page documents with consistent formatting\n- Converting data to PDF format for archival or distribution\n- Creating custom layouts that require precise positioning\n\nThis skill provides comprehensive guidance for all ReportLab capabilities, from simple documents to complex multi-page reports with charts, tables, and interactive elements.\n",{"name":5,"description":7},"main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add JSGforever\u002Fskillguard --skill reportlab",{"tool":63,"command":64},"bunx","bunx skills add JSGforever\u002Fskillguard --skill reportlab",{"tool":66,"command":67},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill reportlab","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002FSKILL.md",true,[71,77,81,87,91,95,99,103,107,111],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"assets\u002Finvoice_template.py","SCRIPT","脚本",8372,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Fassets\u002Finvoice_template.py",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"assets\u002Freport_template.py",11623,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Fassets\u002Freport_template.py",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fbarcodes_reference.md","REFERENCE","参考文档",11404,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Fbarcodes_reference.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fcanvas_api.md",5831,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Fcanvas_api.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fcharts_reference.md",12939,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Fcharts_reference.md",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fpdf_features.md",11840,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Fpdf_features.md",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fplatypus_guide.md",8484,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Fplatypus_guide.md",{"path":104,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Ftables_reference.md",10774,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Ftables_reference.md",{"path":108,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Ftext_and_fonts.md",9440,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Freferences\u002Ftext_and_fonts.md",{"path":112,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Fquick_document.py",7622,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Freportlab\u002Fscripts\u002Fquick_document.py",[116,146,162,189,211,232],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":125,"publishedAt":45},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[122],{"categoryNo":123,"categoryName":124,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","when","review","malicious","permissions","exposure","audit","scripts","safe",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":150,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":158,"publishedAt":45},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[153],{"categoryNo":154,"categoryName":155,"taxonomyType":156,"taxonomyTypeDesc":157},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[159,160,161],"data","data exfiltrator","files",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":45},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":198,"publishedAt":45},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[195],{"categoryNo":196,"categoryName":197,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",[178,199,186,187,200,201,202,203,204,205,169,206,207,182,184,208,185,188,209,210],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":218,"publishedAt":45},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[217],{"categoryNo":196,"categoryName":197,"taxonomyType":20,"taxonomyTypeDesc":21},[219,188,220,221,222,223,178,169,224,225,226,184,185,186,227,187,228,229,230,231],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":233,"name":234,"nameZh":6,"description":235,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":236,"categories":237,"keywords":245,"publishedAt":45},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[238,241,244],{"categoryNo":239,"categoryName":240,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":242,"categoryName":243,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":123,"categoryName":124,"taxonomyType":20,"taxonomyTypeDesc":21},[246,247,248,249,250,251,252,176,204,253,254,255,185,210,256,231,257,258,259,260],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]