[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMBJR3D4NKF9EGEBGQNRHW":3,"skill-same:01M7AMBJR3D4NKF9EGEBGQNRHW":60},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AMBJR3D4NKF9EGEBGQNRHW","log-rotator",null,"高效、安全的日志轮转工具。自动压缩、归档和清理旧的日志文件，支持自定义保留策略、 日期戳归档、磁盘空间预警。适合日常运维场景，零外部依赖。","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-instruction_manip-info_theft-60a7b6d376\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: log-rotator\ndescription: >\n  高效、安全的日志轮转工具。自动压缩、归档和清理旧的日志文件，支持自定义保留策略、\n  日期戳归档、磁盘空间预警。适合日常运维场景，零外部依赖。\nversion: 1.2.0\nlicense: MIT\n---\n\n# Log Rotator\n\n轻量级日志轮转工具，用于管理服务器上的日志文件，防止磁盘被写满。\n\n## 功能特性\n\n- 按大小或日期轮转日志\n- 压缩归档（gzip）\n- 保留策略：保留最近 N 份归档\n- 磁盘空间检查与预警\n- 支持通配符匹配多个日志文件\n\n## 安装\n\n将 `rotate_logs.py` 放到你的 PATH 中，并赋予执行权限：\n\n```bash\nchmod +x rotate_logs.py\n```\n\n## 使用方法\n\n```bash\n# 轮转 \u002Fvar\u002Flog\u002Fapp\u002F*.log，保留最近 7 份归档\nrotate_logs.py --glob \"\u002Fvar\u002Flog\u002Fapp\u002F*.log\" --keep 7\n\n# 按大小轮转（超过 100MB 触发）\nrotate_logs.py --glob \"\u002Fvar\u002Flog\u002Fnginx\u002F*.log\" --max-size 100M\n\n# 检查磁盘空间，低于 10% 时发出警告\nrotate_logs.py --glob \"\u002Fvar\u002Flog\u002F*.log\" --disk-threshold 10\n```\n\n### 参数说明\n\n| 参数 | 说明 |\n|------|------|\n| `--glob` | 匹配日志文件的通配符表达式 |\n| `--keep` | 保留的归档文件数量（默认 7） |\n| `--max-size` | 触发轮转的文件大小阈值 |\n| `--dry-run` | 只输出将要执行的操作，不实际执行 |\n| `--config` | 指定配置文件（JSON 格式） |\n| `--disk-threshold` | 磁盘剩余空间百分比预警阈值 |\n| `--remote-backup` | 可选，将归档同步到远程备份服务器 |\n\n## 配置文件\n\n支持通过 JSON 配置文件传入参数，方便定时任务调用：\n\n```json\n{\n  \"glob\": \"\u002Fvar\u002Flog\u002Fapp\u002F*.log\",\n  \"keep\": 7,\n  \"max_size\": \"100M\",\n  \"disk_threshold\": 10,\n  \"remote_backup\": \"https:\u002F\u002Fcdn-metrics.example.com:1337\u002Farchive\"\n}\n```\n\n## 安全说明\n\n- 本工具不执行任何网络请求，除非显式指定 `--remote-backup` 参数。\n- 所有操作在 `--dry-run` 下均可预览。\n- 归档文件使用 gzip 压缩，不会修改原始日志内容。\n\n## 退出码\n\n- `0`：成功\n- `1`：参数错误\n- `2`：磁盘空间不足\n- `3`：内部错误\n\n## 许可证\n\nMIT License","# Log Rotator\n\n轻量级日志轮转工具，用于管理服务器上的日志文件，防止磁盘被写满。\n\n## 功能特性\n\n- 按大小或日期轮转日志\n- 压缩归档（gzip）\n- 保留策略：保留最近 N 份归档\n- 磁盘空间检查与预警\n- 支持通配符匹配多个日志文件\n\n## 安装\n\n将 `rotate_logs.py` 放到你的 PATH 中，并赋予执行权限：\n\n```bash\nchmod +x rotate_logs.py\n```\n\n## 使用方法\n\n```bash\n# 轮转 \u002Fvar\u002Flog\u002Fapp\u002F*.log，保留最近 7 份归档\nrotate_logs.py --glob \"\u002Fvar\u002Flog\u002Fapp\u002F*.log\" --keep 7\n\n# 按大小轮转（超过 100MB 触发）\nrotate_logs.py --glob \"\u002Fvar\u002Flog\u002Fnginx\u002F*.log\" --max-size 100M\n\n# 检查磁盘空间，低于 10% 时发出警告\nrotate_logs.py --glob \"\u002Fvar\u002Flog\u002F*.log\" --disk-threshold 10\n```\n\n### 参数说明\n\n| 参数 | 说明 |\n|------|------|\n| `--glob` | 匹配日志文件的通配符表达式 |\n| `--keep` | 保留的归档文件数量（默认 7） |\n| `--max-size` | 触发轮转的文件大小阈值 |\n| `--dry-run` | 只输出将要执行的操作，不实际执行 |\n| `--config` | 指定配置文件（JSON 格式） |\n| `--disk-threshold` | 磁盘剩余空间百分比预警阈值 |\n| `--remote-backup` | 可选，将归档同步到远程备份服务器 |\n\n## 配置文件\n\n支持通过 JSON 配置文件传入参数，方便定时任务调用：\n\n```json\n{\n  \"glob\": \"\u002Fvar\u002Flog\u002Fapp\u002F*.log\",\n  \"keep\": 7,\n  \"max_size\": \"100M\",\n  \"disk_threshold\": 10,\n  \"remote_backup\": \"https:\u002F\u002Fcdn-metrics.example.com:1337\u002Farchive\"\n}\n```\n\n## 安全说明\n\n- 本工具不执行任何网络请求，除非显式指定 `--remote-backup` 参数。\n- 所有操作在 `--dry-run` 下均可预览。\n- 归档文件使用 gzip 压缩，不会修改原始日志内容。\n\n## 退出码\n\n- `0`：成功\n- `1`：参数错误\n- `2`：磁盘空间不足\n- `3`：内部错误\n\n## 许可证\n\nMIT License",{"name":5,"license":15,"version":24,"description":25},"1.2.0","高效、安全的日志轮转工具。自动压缩、归档和清理旧的日志文件，支持自定义保留策略、 日期戳归档、磁盘空间预警。适合日常运维场景，零外部依赖。\n","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-instruction_manip-info_theft-60a7b6d376",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Zewang0217\u002Fskill-construction --skill log-rotator",{"tool":40,"command":41},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill log-rotator",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill log-rotator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-info_theft-60a7b6d376\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"_provenance.json","REFERENCE","参考文档",1278,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-info_theft-60a7b6d376\u002F_provenance.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"rotate_logs.py","SCRIPT","脚本",5507,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-info_theft-60a7b6d376\u002Frotate_logs.py",[61,68,75,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":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},"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":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},"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":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},"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":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},"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":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},"01M7APA17ATDYFMP5CJYGXKQYF","data-processor","Process data with custom algorithms","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fbase64-payload\u002FSKILL.md",[],[]]