[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HXW5AJ8F7QFJQ44VXAB4NT":3,"skill-same:01M6HXW5AJ8F7QFJQ44VXAB4NT":55},{"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":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M6HXW5AJ8F7QFJQ44VXAB4NT","reportlab-styles",null,"Use reportlab's pre-defined styles from getSampleStyleSheet() correctly","HKUDS\u002FAgentPilot","HKUDS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F118165258?v=4","01M6HW8VRNZP64G0P4MVJW2KKQ","✨Data Intelligence Lab@HKU✨","01M6HW8VWZVHBRHYH3T330PFWV",8029,"MIT","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles\u002FSKILL.md",[],[19,20,21],"styles","reportlab styles","use","2026-11-10 10:12:30",false,"---\nname: reportlab-styles\ndescription: Use reportlab's pre-defined styles from getSampleStyleSheet() correctly\n---\n\n# ReportLab Pre-Defined Styles Reference\n\n## Overview\n\nReportLab's `reportlab.lib.styles.getSampleStyleSheet()` provides a collection of pre-defined paragraph styles. Use these existing styles rather than redefining them to avoid `KeyError` exceptions.\n\n## Available Pre-Defined Styles\n\nThe standard stylesheet includes these commonly-used styles:\n\n| Style Name | Purpose |\n|------------|---------|\n| `Normal` | Default body text |\n| `Title` | Document title (large, bold) |\n| `Heading1` | Level 1 section heading |\n| `Heading2` | Level 2 section heading |\n| `Heading3` | Level 3 section heading |\n| `Heading4` | Level 4 section heading |\n| `Heading5` | Level 5 section heading |\n| `Heading6` | Level 6 section heading |\n| `Bullet` | Bulleted list items |\n| `Definition` | Definition list terms |\n| `Italic` | Italicized text |\n| `Code` | Monospace code text |\n\n## Correct Usage Pattern\n\n```python\nfrom reportlab.lib.styles import getSampleStyleSheet\nfrom reportlab.platypus import Paragraph\n\n# Get the stylesheet\nstyles = getSampleStyleSheet()\n\n# Use existing styles directly (CORRECT)\ntitle = Paragraph(\"My Document Title\", styles['Title'])\nheading = Paragraph(\"Section Header\", styles['Heading1'])\nbody = Paragraph(\"Regular text content\", styles['Normal'])\n```\n\n## Common Mistake to Avoid\n\n```python\n# WRONG - Don't redefine existing style names\nfrom reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle\n\nstyles = getSampleStyleSheet()\n\n# This will cause KeyError when you try to use 'Title' later\nstyles.add(ParagraphStyle(\n    name='Title',  # Overwrites the pre-defined 'Title' style\n    fontSize=24,\n    # ... incomplete definition\n))\n\n# Later code expecting the full 'Title' style will fail\nparagraph = Paragraph(\"Title Text\", styles['Title'])  # KeyError!\n```\n\n## Best Practices\n\n1. **Use existing styles as-is** when they meet your needs\n2. **Create new style names** for custom styles (e.g., `MyCustomTitle`, `CustomHeading`)\n3. **Base custom styles on existing ones** when you need modifications:\n\n```python\nfrom reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle\n\nstyles = getSampleStyleSheet()\n\n# Create a NEW style with a unique name\ncustom_title = ParagraphStyle(\n    name='CustomTitle',  # Unique name, doesn't conflict\n    parent=styles['Title'],  # Base it on existing Title\n    fontSize=28,\n    spaceAfter=30\n)\nstyles.add(custom_title)\n\n# Now both styles are available\nstyles['Title']       # Original pre-defined style\nstyles['CustomTitle'] # Your custom variant\n```\n\n## Quick Reference Checklist\n\n- [ ] Import `getSampleStyleSheet()` from `reportlab.lib.styles`\n- [ ] Call `styles = getSampleStyleSheet()` once at the start\n- [ ] Access styles via `styles['StyleName']` (case-sensitive)\n- [ ] Do NOT add styles with names that already exist in the stylesheet\n- [ ] Use unique names for any custom styles you create\n- [ ] Common available styles: `Normal`, `Title`, `Heading1-6`, `Bullet`, `Code`, `Italic`","# ReportLab Pre-Defined Styles Reference\n\n## Overview\n\nReportLab's `reportlab.lib.styles.getSampleStyleSheet()` provides a collection of pre-defined paragraph styles. Use these existing styles rather than redefining them to avoid `KeyError` exceptions.\n\n## Available Pre-Defined Styles\n\nThe standard stylesheet includes these commonly-used styles:\n\n| Style Name | Purpose |\n|------------|---------|\n| `Normal` | Default body text |\n| `Title` | Document title (large, bold) |\n| `Heading1` | Level 1 section heading |\n| `Heading2` | Level 2 section heading |\n| `Heading3` | Level 3 section heading |\n| `Heading4` | Level 4 section heading |\n| `Heading5` | Level 5 section heading |\n| `Heading6` | Level 6 section heading |\n| `Bullet` | Bulleted list items |\n| `Definition` | Definition list terms |\n| `Italic` | Italicized text |\n| `Code` | Monospace code text |\n\n## Correct Usage Pattern\n\n```python\nfrom reportlab.lib.styles import getSampleStyleSheet\nfrom reportlab.platypus import Paragraph\n\n# Get the stylesheet\nstyles = getSampleStyleSheet()\n\n# Use existing styles directly (CORRECT)\ntitle = Paragraph(\"My Document Title\", styles['Title'])\nheading = Paragraph(\"Section Header\", styles['Heading1'])\nbody = Paragraph(\"Regular text content\", styles['Normal'])\n```\n\n## Common Mistake to Avoid\n\n```python\n# WRONG - Don't redefine existing style names\nfrom reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle\n\nstyles = getSampleStyleSheet()\n\n# This will cause KeyError when you try to use 'Title' later\nstyles.add(ParagraphStyle(\n    name='Title',  # Overwrites the pre-defined 'Title' style\n    fontSize=24,\n    # ... incomplete definition\n))\n\n# Later code expecting the full 'Title' style will fail\nparagraph = Paragraph(\"Title Text\", styles['Title'])  # KeyError!\n```\n\n## Best Practices\n\n1. **Use existing styles as-is** when they meet your needs\n2. **Create new style names** for custom styles (e.g., `MyCustomTitle`, `CustomHeading`)\n3. **Base custom styles on existing ones** when you need modifications:\n\n```python\nfrom reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle\n\nstyles = getSampleStyleSheet()\n\n# Create a NEW style with a unique name\ncustom_title = ParagraphStyle(\n    name='CustomTitle',  # Unique name, doesn't conflict\n    parent=styles['Title'],  # Base it on existing Title\n    fontSize=28,\n    spaceAfter=30\n)\nstyles.add(custom_title)\n\n# Now both styles are available\nstyles['Title']       # Original pre-defined style\nstyles['CustomTitle'] # Your custom variant\n```\n\n## Quick Reference Checklist\n\n- [ ] Import `getSampleStyleSheet()` from `reportlab.lib.styles`\n- [ ] Call `styles = getSampleStyleSheet()` once at the start\n- [ ] Access styles via `styles['StyleName']` (case-sensitive)\n- [ ] Do NOT add styles with names that already exist in the stylesheet\n- [ ] Use unique names for any custom styles you create\n- [ ] Common available styles: `Normal`, `Title`, `Heading1-6`, `Bullet`, `Code`, `Italic`",{"name":5,"description":7},"main","6b84b0689ca0d9e7b1e4061188ff6b60758e0f8a","openspace\u002Flegacy\u002Fv1\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles",944,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot","https:\u002F\u002Fgithub.com\u002FHKUDS","https:\u002F\u002Fsites.google.com\u002Fview\u002Fchaoh","2026-11-12 22:26:39",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add HKUDS\u002FAgentPilot --skill reportlab-styles",{"tool":41,"command":42},"bunx","bunx skills add HKUDS\u002FAgentPilot --skill reportlab-styles",{"tool":44,"command":45},"pnpm","pnpm dlx skills add HKUDS\u002FAgentPilot --skill reportlab-styles","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},".skill_id","OTHER","其他",30,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles\u002F.skill_id",[56,75,94,119,143,166],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":22},"01M6HYB297NDABRERJRVG0K8R0","agentpilot","Set up AgentPilot and use its single entry to prepare missing inputs and run configured RSI experiments. Use when the user requests AgentPilot installation or work with AgentPilot.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fplugins\u002Fagentpilot\u002Fskills\u002Fagentpilot\u002FSKILL.md",[],[58,63,64,65,66,67,68,69,21,70,71,72,73,74],"prepare","requests","with","missing","installation","rsi","up","user","work","SET","run","experiments",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":22},"01M6HYAYWXTTE1J7DJM0MFNQ4H","remember","Review auto-memory entries and propose promotions to OPENSPACE.md, OPENSPACE.local.md, or retained auto-memory topics; detect duplicates, stale facts, conflicts, and ambiguous entries before making changes.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fskills\u002Fremember\u002FSKILL.md",[],[77,82,83,84,85,86,87,88,89,90,91,92,93],"memory","review","auto","openspace","changes","facts","detect","entries","local","conflicts","stale","duplicates",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":105,"publishedAt":22},"01M6HYAVMPM4SBDV60R2B5HPV8","skill-discovery","Search reusable OpenSpace skills locally, and browse cloud packages step by step when a cloud skill may help. Reusing proven skills saves tokens, improves reliability, and extends your capabilities beyond built-in tools.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fskill-discovery\u002FSKILL.md",[100],{"categoryNo":101,"categoryName":102,"taxonomyType":103,"taxonomyTypeDesc":104},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[106,107,108,85,109,110,111,112,113,114,115,116,117,118],"skill discovery","discovery","reusable","step by step","tokens","packages","help","cloud","reliability","capabilities","browse","search","Tools",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":126,"publishedAt":22},"01M6HYAR811B3RB0M50RBEDGN6","delegate-task","Delegate tasks to OpenSpace — a full-stack autonomous worker for coding, DevOps, web research, and desktop automation, backed by an extensive MCP tool and skill library. Skills auto-improve through use, reducing token consumption over time. A cloud community lets agents share and collectively evolve reusable skills.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fdelegate-task\u002FSKILL.md",[125],{"categoryNo":101,"categoryName":102,"taxonomyType":103,"taxonomyTypeDesc":104},[127,128,129,85,130,131,132,133,134,108,84,21,135,136,137,138,139,140,141,142],"delegate","task","delegate task","time","improve","desktop automation","worker","community","autonomous","tool","stack","for","share","tasks","automation","MCP",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":22},"01M6HYAM9FSGV6E52AYENDQXYH","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[150,151,152,153,154,155,156,157,158,159,160,161,162,163,138,164,165],"write special chars ts check","write","check","type","files","filters","only","template","file","python","typescript","output","Existing","type-checking","errors","script",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":22},"01M6HYAH05HGV7SVWSVR8PJRQD","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[173,174,151,65,138,165,175,176,177,178,179,157,158,180,181,159],"write special chars readback","readback","helper","post","via","scripts","read","verification","cleanup"]