[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJWGGSAAPTV6HD5AQ1AKN6":3,"skill-same:01M6KJWGGSAAPTV6HD5AQ1AKN6":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6KJWGGSAAPTV6HD5AQ1AKN6","reportlab-styles",null,"Use reportlab's pre-defined styles from getSampleStyleSheet() correctly","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles\u002FSKILL.md",[],[18,19,20],"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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Freportlab-styles","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add AG064\u002FOpenSpace --skill reportlab-styles",{"tool":39,"command":40},"bunx","bunx skills add AG064\u002FOpenSpace --skill reportlab-styles",{"tool":42,"command":43},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill reportlab-styles","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},".skill_id","OTHER","其他",30,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Freportlab-styles\u002F.skill_id",[54,78,95,104,129,145],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":21},"01M6KKMPWA0B5SCCH766F8M5EA","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77],"write special chars ts check","check","write","filters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python","typescript",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":21},"01M6KKMJXVBNVEY3TRK055F4A7","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[85,86,63,74,87,88,75,76,89,90,91,92,93,67,69,94],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":21},"01M6KKMEGX9M9NC105J0W3Q5B9","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[63,102,76,67,91,74,103,75,69],"write special chars heredoc","shell",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":21},"01M6KKM8EJ2AATVHZBNB916WT0","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[111,112,113,114,77,115,116,117,118,119,67,120,121,122,123,124,125,126,127,128],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":21},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[136,137,138,139,67,140,94,141,142,143,144],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":21},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[152,153,154,155,156,157,75,158,159,160],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]