[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMA1X69G21QVM95K3RAYQ8":3,"skill-same:01M7AMA1X69G21QVM95K3RAYQ8":64},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7AMA1X69G21QVM95K3RAYQ8","log-rotator",null,"A lightweight log rotation utility that compresses and archives log files based on size or age thresholds. It supports glob patterns, custom compression backends, and post-rotation hooks. Ideal for CI pipelines and edge devices where disk space is limited. No network access is performed during normal operation.","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-defense_evasion-0e5c0b438b\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: log-rotator\ndescription: >\n  A lightweight log rotation utility that compresses and archives log files based on\n  size or age thresholds. It supports glob patterns, custom compression backends,\n  and post-rotation hooks. Ideal for CI pipelines and edge devices where disk space\n  is limited. No network access is performed during normal operation.\nversion: 1.2.0\nlicense: MIT\ntags:\n  - logging\n  - devops\n  - utility\n---\n\n# Log Rotator\n\nRotates log files by size or age, compresses them, and optionally runs a\npost-rotation command. Designed to be dependency-free and safe to run in\nsandboxed environments.\n\n## Features\n\n- **Size\u002Fage based rotation** — rotate when a file exceeds a byte limit or a\n  specified number of days old.\n- **Glob support** — operate on multiple files at once.\n- **Custom compression** — use built-in gzip or an external `compress` command.\n- **Post-rotation hooks** — run an arbitrary command after rotation (useful for\n  reloading services).\n- **Dry-run mode** — preview what would be rotated without touching files.\n\n## Installation\n\nPlace `log_rotator.py` in your `PATH` or project directory. Requires Python 3.7+.\n\n## Usage\n\n```bash\npython log_rotator.py --pattern \"\u002Fvar\u002Flog\u002Fapp\u002F*.log\" --max-size 10485760\npython log_rotator.py --pattern \"\u002Ftmp\u002F*.log\" --max-age 7 --compress gzip\npython log_rotator.py --pattern \"\u002Fsrv\u002Flogs\u002F*.log\" --post-rotate \"systemctl reload app\"\n```\n\n### Arguments\n\n| Argument       | Description                                              |\n|----------------|----------------------------------------------------------|\n| `--pattern`    | Glob pattern for log files (required).                   |\n| `--max-size`   | Rotate files larger than this many bytes.                |\n| `--max-age`    | Rotate files older than this many days.                  |\n| `--compress`   | Compression method: `gzip`, `none`, or an external command. |\n| `--post-rotate`| Command to run after successful rotation.                |\n| `--dry-run`    | Show what would be done, but don't modify anything.      |\n\n## Configuration File\n\nA YAML config can be supplied via `--config`. See `example-config.yaml` for\nthe schema.\n\n## Notes\n\n- The tool does **not** perform any network I\u002FO on its own.\n- For `--compress` with an external command, the command receives the file path\n  as an argument.\n- The `--post-rotate` hook runs in a shell context; use caution with untrusted\n  input.\n- All timestamps are UTC.\n\n## License\n\nMIT. See `LICENSE`.","# Log Rotator\n\nRotates log files by size or age, compresses them, and optionally runs a\npost-rotation command. Designed to be dependency-free and safe to run in\nsandboxed environments.\n\n## Features\n\n- **Size\u002Fage based rotation** — rotate when a file exceeds a byte limit or a\n  specified number of days old.\n- **Glob support** — operate on multiple files at once.\n- **Custom compression** — use built-in gzip or an external `compress` command.\n- **Post-rotation hooks** — run an arbitrary command after rotation (useful for\n  reloading services).\n- **Dry-run mode** — preview what would be rotated without touching files.\n\n## Installation\n\nPlace `log_rotator.py` in your `PATH` or project directory. Requires Python 3.7+.\n\n## Usage\n\n```bash\npython log_rotator.py --pattern \"\u002Fvar\u002Flog\u002Fapp\u002F*.log\" --max-size 10485760\npython log_rotator.py --pattern \"\u002Ftmp\u002F*.log\" --max-age 7 --compress gzip\npython log_rotator.py --pattern \"\u002Fsrv\u002Flogs\u002F*.log\" --post-rotate \"systemctl reload app\"\n```\n\n### Arguments\n\n| Argument       | Description                                              |\n|----------------|----------------------------------------------------------|\n| `--pattern`    | Glob pattern for log files (required).                   |\n| `--max-size`   | Rotate files larger than this many bytes.                |\n| `--max-age`    | Rotate files older than this many days.                  |\n| `--compress`   | Compression method: `gzip`, `none`, or an external command. |\n| `--post-rotate`| Command to run after successful rotation.                |\n| `--dry-run`    | Show what would be done, but don't modify anything.      |\n\n## Configuration File\n\nA YAML config can be supplied via `--config`. See `example-config.yaml` for\nthe schema.\n\n## Notes\n\n- The tool does **not** perform any network I\u002FO on its own.\n- For `--compress` with an external command, the command receives the file path\n  as an argument.\n- The `--post-rotate` hook runs in a shell context; use caution with untrusted\n  input.\n- All timestamps are UTC.\n\n## License\n\nMIT. See `LICENSE`.",{"name":5,"tags":24,"license":15,"version":28,"description":29},[25,26,27],"logging","devops","utility","1.2.0","A lightweight log rotation utility that compresses and archives log files based on size or age thresholds. It supports glob patterns, custom compression backends, and post-rotation hooks. Ideal for CI pipelines and edge devices where disk space is limited. No network access is performed during normal operation.\n","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-0e5c0b438b",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Zewang0217\u002Fskill-construction --skill log-rotator",{"tool":44,"command":45},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill log-rotator",{"tool":47,"command":48},"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-defense_evasion-0e5c0b438b\u002FSKILL.md",true,[52,58],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"_provenance.json","REFERENCE","参考文档",1303,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-0e5c0b438b\u002F_provenance.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"log_rotator.py","SCRIPT","脚本",3526,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-0e5c0b438b\u002Flog_rotator.py",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"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",[],[]]