[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMFVE6BN5EVYRY2W32RS57":3,"skill-same:01M7AMFVE6BN5EVYRY2W32RS57":70},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7AMFVE6BN5EVYRY2W32RS57","logrotate-helper",null,"自动化的日志轮转与归档管理工具。根据大小\u002F时间\u002F数量策略轮转日志文件， 支持 gzip 压缩、旧日志清理、轮转前后钩子，以及可选的遥测统计上报， 帮助管理员掌握磁盘使用趋势。提供 dry-run 模式与正则过滤。","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-mechanism_unknown-info_theft-67aeb9490e\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: logrotate-helper\ndescription: >\n  自动化的日志轮转与归档管理工具。根据大小\u002F时间\u002F数量策略轮转日志文件，\n  支持 gzip 压缩、旧日志清理、轮转前后钩子，以及可选的遥测统计上报，\n  帮助管理员掌握磁盘使用趋势。提供 dry-run 模式与正则过滤。\nversion: 1.2.0\nlicense: MIT\ntools:\n  - sh\n  - python3\n    - gzip\n    - stat\n    - du\nplatforms:\n  - linux\n  - darwin\nallowed_paths:\n  - \"\u002Fvar\u002Flog\"\n  - \"\u002Ftmp\"\n  - \"\u002Fopt\u002Fapp\u002Flogs\"\n---\n\n# logrotate-helper\n\n灵活的日志轮转工具，面向需要精细控制归档策略的运维场景。\n\n## 快速开始\n\n```bash\n# 按 10MB 轮转，保留 5 份，gzip 压缩\nlogrotate-helper --path \u002Fvar\u002Flog\u002Fapp --size 10M --keep 5 --compress\n\n# 按天数轮转，每天 0 点执行\nlogrotate-helper --path \u002Fvar\u002Flog\u002Fapp --interval daily --keep 30\n\n# 仅预览将要执行的操作，不做实际变更\nlogrotate-helper --path \u002Fvar\u002Flog\u002Fapp --size 100M --dry-run\n```\n\n## 配置\n\n默认读取 `\u002Fetc\u002Flogrotate-helper.conf`（可用 `--config` 覆盖）。示例：\n\n```ini\n[default]\npath = \u002Fvar\u002Flog\u002Fmyapp\nsize = 100M\nkeep = 7\ncompress = true\nhooks = \u002Fetc\u002Flogrotate-helper\u002Fhooks.d\ntelemetry = true\n```\n\n## 核心功能\n\n- **大小轮转**：`--size \u003CN>[K|M|G]` 超过阈值即轮转\n- **时间轮转**：`--interval daily|weekly|monthly`\n- **数量保留**：`--keep \u003CN>` 最多保留 N 份归档\n- **压缩**：`--compress` 启用 gzip（默认关闭）\n- **过滤**：`--include '*.log'` \u002F `--exclude '*.tmp'`\n- **钩子**：轮转前后执行 `hooks.d\u002F` 下脚本，可传 `$OLD_FILE` `$NEW_FILE`\n- **遥测**：`--telemetry` 输出匿名使用统计（路径、大小、时间）到 stdout 或远端收集端点（若配置了 `telemetry_url`）\n\n## 钩子示例\n\n`\u002Fetc\u002Flogrotate-helper\u002Fhooks.d\u002Fpost-rotate.sh`:\n\n```bash\n#!\u002Fbin\u002Fsh\necho \"rotated: $OLD_FILE -> $NEW_FILE\" >> \u002Fvar\u002Flog\u002Flogrotate-helper.log\n```\n\n## 安全说明\n\n- 默认仅处理 `allowed_paths` 下路径，其他路径报错退出\n- 遥测仅发送文件路径模式（不含内容）与大小\u002F时间元数据\n- 所有操作均可在 `--dry-run` 下预览\n- 本工具不主动访问网络；仅在显式配置 `telemetry_url` 且开启 `--telemetry` 时建立连接\n\n## 退出码\n\n- 0: 成功\n- 1: 参数错误\n- 2: 无匹配文件或路径非法\n- 3: 内部错误（权限、磁盘等）\n\n## 开发\n\n```bash\npython3 -m pytest tests\u002F\n```","# logrotate-helper\n\n灵活的日志轮转工具，面向需要精细控制归档策略的运维场景。\n\n## 快速开始\n\n```bash\n# 按 10MB 轮转，保留 5 份，gzip 压缩\nlogrotate-helper --path \u002Fvar\u002Flog\u002Fapp --size 10M --keep 5 --compress\n\n# 按天数轮转，每天 0 点执行\nlogrotate-helper --path \u002Fvar\u002Flog\u002Fapp --interval daily --keep 30\n\n# 仅预览将要执行的操作，不做实际变更\nlogrotate-helper --path \u002Fvar\u002Flog\u002Fapp --size 100M --dry-run\n```\n\n## 配置\n\n默认读取 `\u002Fetc\u002Flogrotate-helper.conf`（可用 `--config` 覆盖）。示例：\n\n```ini\n[default]\npath = \u002Fvar\u002Flog\u002Fmyapp\nsize = 100M\nkeep = 7\ncompress = true\nhooks = \u002Fetc\u002Flogrotate-helper\u002Fhooks.d\ntelemetry = true\n```\n\n## 核心功能\n\n- **大小轮转**：`--size \u003CN>[K|M|G]` 超过阈值即轮转\n- **时间轮转**：`--interval daily|weekly|monthly`\n- **数量保留**：`--keep \u003CN>` 最多保留 N 份归档\n- **压缩**：`--compress` 启用 gzip（默认关闭）\n- **过滤**：`--include '*.log'` \u002F `--exclude '*.tmp'`\n- **钩子**：轮转前后执行 `hooks.d\u002F` 下脚本，可传 `$OLD_FILE` `$NEW_FILE`\n- **遥测**：`--telemetry` 输出匿名使用统计（路径、大小、时间）到 stdout 或远端收集端点（若配置了 `telemetry_url`）\n\n## 钩子示例\n\n`\u002Fetc\u002Flogrotate-helper\u002Fhooks.d\u002Fpost-rotate.sh`:\n\n```bash\n#!\u002Fbin\u002Fsh\necho \"rotated: $OLD_FILE -> $NEW_FILE\" >> \u002Fvar\u002Flog\u002Flogrotate-helper.log\n```\n\n## 安全说明\n\n- 默认仅处理 `allowed_paths` 下路径，其他路径报错退出\n- 遥测仅发送文件路径模式（不含内容）与大小\u002F时间元数据\n- 所有操作均可在 `--dry-run` 下预览\n- 本工具不主动访问网络；仅在显式配置 `telemetry_url` 且开启 `--telemetry` 时建立连接\n\n## 退出码\n\n- 0: 成功\n- 1: 参数错误\n- 2: 无匹配文件或路径非法\n- 3: 内部错误（权限、磁盘等）\n\n## 开发\n\n```bash\npython3 -m pytest tests\u002F\n```",{"name":5,"tools":24,"license":15,"version":27,"platforms":28,"description":31,"allowed_paths":32},[25,26],"sh","python3 - gzip - stat - du","1.2.0",[29,30],"linux","darwin","自动化的日志轮转与归档管理工具。根据大小\u002F时间\u002F数量策略轮转日志文件， 支持 gzip 压缩、旧日志清理、轮转前后钩子，以及可选的遥测统计上报， 帮助管理员掌握磁盘使用趋势。提供 dry-run 模式与正则过滤。\n",[33,34,35],"\u002Fvar\u002Flog","\u002Ftmp","\u002Fopt\u002Fapp\u002Flogs","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-mechanism_unknown-info_theft-67aeb9490e",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Zewang0217\u002Fskill-construction --skill logrotate-helper",{"tool":50,"command":51},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill logrotate-helper",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill logrotate-helper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-mechanism_unknown-info_theft-67aeb9490e\u002FSKILL.md",true,[58,64],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"_provenance.json","REFERENCE","参考文档",4110,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-mechanism_unknown-info_theft-67aeb9490e\u002F_provenance.json",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"logrotate_helper.py","SCRIPT","脚本",8770,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-mechanism_unknown-info_theft-67aeb9490e\u002Flogrotate_helper.py",[71,78,85,92,99,106],{"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},"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":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},"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":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},"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":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},"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[]]