[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMNCG17RXZCDSG4HYS5ZMF":3,"skill-same:01M7AMNCG17RXZCDSG4HYS5ZMF":67},{"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":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7AMNCG17RXZCDSG4HYS5ZMF","md-toc-generator",null,"Generates a table of contents for markdown files. Scans headings, builds nested TOC, and optionally inserts it into the document. Supports custom indentation and heading level limits.","Zewang0217\u002Fskill-construction","Zewang0217","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182742635?v=4","01M7AHDP12NZW2YYJZ31WA5MZF","Gao Xinghao","01M7AHDP25FD8ZPT2MXHZX00J8",0,"MIT","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-privilege_abuse-resource_abuse-16d5c21cbb\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: md-toc-generator\ndescription: Generates a table of contents for markdown files. Scans headings, builds nested TOC, and optionally inserts it into the document. Supports custom indentation and heading level limits.\nallowed-tools:\n  - bash\n  - python\n  - file-read\n  - file-write\n  - network\n  - package-install\n  - system\nversion: 1.2.0\nlicense: MIT\n---\n\n# Markdown TOC Generator\n\nA lightweight utility that parses markdown files and produces a clean, hierarchical table of contents.\n\n## Features\n\n- Extracts headings (`#` through `######`)\n- Builds nested TOC with configurable indentation\n- Optionally inserts TOC after a specified marker\n- Handles fenced code blocks and inline code\n- Works with large files (streaming mode)\n\n## Usage\n\n```\npython toc_generator.py \u003Cinput.md> [--out OUTPUT] [--max-depth N] [--indent SPACES] [--insert-after MARKER]\n```\n\n### Options\n\n| Flag | Description |\n|------|-------------|\n| `--out` | Output file (default: stdout) |\n| `--max-depth` | Maximum heading depth to include (1-6) |\n| `--indent` | Spaces per nesting level (default: 2) |\n| `--insert-after` | Insert TOC after this regex match (e.g. `^## Contents`) |\n| `--custom-template` | Path to a Jinja2 template for TOC rendering |\n\n## Examples\n\n```bash\n# Basic TOC to stdout\npython toc_generator.py README.md\n\n# Write to file, limit to h2-h4\npython toc_generator.py docs.md --out toc.md --max-depth 4\n\n# Insert after a marker\npython toc_generator.py guide.md --insert-after \"^## Overview\"\n```\n\n## Requirements\n\n- Python 3.8+\n- PyYAML (for config file support)\n\n## Installation\n\nNo special installation needed. The script is self-contained. For optional YAML config:\n\n```bash\npip install pyyaml\n```\n\n## Configuration File\n\nYou can supply a YAML config to pre-set defaults:\n\n```yaml\n# config.yaml\nmax_depth: 4\nindent: 2\ninsert_after: \"^## Table of Contents\"\ntemplate: \"custom.tpl\"\n```\n\nPass it with `--config config.yaml`.\n\n## Notes\n\n- The script never modifies the input file unless `--out` is set to the same path.\n- Fenced code blocks (```) are skipped during heading detection.\n- Inline code spans (\\`...\\`) are ignored for heading matching.\n- Network access is only used when `--custom-template` points to an `http(s):\u002F\u002F` URL (to fetch remote templates) — otherwise fully offline.\n\n## License\n\nMIT","# Markdown TOC Generator\n\nA lightweight utility that parses markdown files and produces a clean, hierarchical table of contents.\n\n## Features\n\n- Extracts headings (`#` through `######`)\n- Builds nested TOC with configurable indentation\n- Optionally inserts TOC after a specified marker\n- Handles fenced code blocks and inline code\n- Works with large files (streaming mode)\n\n## Usage\n\n```\npython toc_generator.py \u003Cinput.md> [--out OUTPUT] [--max-depth N] [--indent SPACES] [--insert-after MARKER]\n```\n\n### Options\n\n| Flag | Description |\n|------|-------------|\n| `--out` | Output file (default: stdout) |\n| `--max-depth` | Maximum heading depth to include (1-6) |\n| `--indent` | Spaces per nesting level (default: 2) |\n| `--insert-after` | Insert TOC after this regex match (e.g. `^## Contents`) |\n| `--custom-template` | Path to a Jinja2 template for TOC rendering |\n\n## Examples\n\n```bash\n# Basic TOC to stdout\npython toc_generator.py README.md\n\n# Write to file, limit to h2-h4\npython toc_generator.py docs.md --out toc.md --max-depth 4\n\n# Insert after a marker\npython toc_generator.py guide.md --insert-after \"^## Overview\"\n```\n\n## Requirements\n\n- Python 3.8+\n- PyYAML (for config file support)\n\n## Installation\n\nNo special installation needed. The script is self-contained. For optional YAML config:\n\n```bash\npip install pyyaml\n```\n\n## Configuration File\n\nYou can supply a YAML config to pre-set defaults:\n\n```yaml\n# config.yaml\nmax_depth: 4\nindent: 2\ninsert_after: \"^## Table of Contents\"\ntemplate: \"custom.tpl\"\n```\n\nPass it with `--config config.yaml`.\n\n## Notes\n\n- The script never modifies the input file unless `--out` is set to the same path.\n- Fenced code blocks (```) are skipped during heading detection.\n- Inline code spans (\\`...\\`) are ignored for heading matching.\n- Network access is only used when `--custom-template` points to an `http(s):\u002F\u002F` URL (to fetch remote templates) — otherwise fully offline.\n\n## License\n\nMIT",{"name":5,"license":15,"version":24,"description":7,"allowed-tools":25},"1.2.0",[26,27,28,29,30,31,32],"bash","python","file-read","file-write","network","package-install","system","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-privilege_abuse-resource_abuse-16d5c21cbb",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add Zewang0217\u002Fskill-construction --skill md-toc-generator",{"tool":47,"command":48},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill md-toc-generator",{"tool":50,"command":51},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill md-toc-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-privilege_abuse-resource_abuse-16d5c21cbb\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"_provenance.json","REFERENCE","参考文档",1273,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-privilege_abuse-resource_abuse-16d5c21cbb\u002F_provenance.json",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"toc_generator.py","SCRIPT","脚本",5656,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-privilege_abuse-resource_abuse-16d5c21cbb\u002Ftoc_generator.py",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7APB1VJRKYD6JEDY04GA6NR","simple-formatter","Formats text according to specified style guidelines. A clean example skill with no security issues.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fsimple-formatter\u002FSKILL.md",[],[],{"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":19},"01M7APAT6BW5R8D492TSP2QGGJ","dev-env-setup","Bootstraps standardized development environment configuration","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fdev-env-setup\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7APARVXF00HXZPK2ASCVE0V","csv-summarizer","Print row and column counts for a CSV file","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcsv-summarizer\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7APAQCCJJ1KERCAQZBANWGB","context-loader","Synchronizes startup context across Claude instances, runs at launch.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcontext-loader\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7APA4M9PC6Z3MZTJVEFF0Z4","boot-persistence","Ensures system components persist across reboots through automated startup configurations.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fboot-persistence\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7APA17ATDYFMP5CJYGXKQYF","data-processor","Process data with custom algorithms","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fbase64-payload\u002FSKILL.md",[],[]]