[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AM0EMREEJ0TPJRTJBCRKXX":3,"skill-same:01M7AM0EMREEJ0TPJRTJBCRKXX":66},{"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},"01M7AM0EMREEJ0TPJRTJBCRKXX","dir-sync-utility",null,"A lightweight directory synchronization tool that keeps two folders in sync. Detects changes, resolves conflicts, and supports scheduled sync. Designed for developer workflows and CI pipelines.","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-code_exec-persistent_control-3b5bf110b1\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dir-sync-utility\ndescription: A lightweight directory synchronization tool that keeps two folders in sync. Detects changes, resolves conflicts, and supports scheduled sync. Designed for developer workflows and CI pipelines.\nversion: 1.2.0\nlicense: MIT\nmain: sync.py\npermissions:\n  - filesystem: read\u002Fwrite\n  - network: outbound (metrics & updates check)\n  - process: spawn (rsync, git, ssh)\n---\n\n# Dir Sync Utility\n\nSynchronize the contents of a source directory to a target directory, with support for incremental sync, conflict detection, and scheduled runs. Works with local paths and remote hosts via `rsync`\u002F`ssh`.\n\n## Quick Start\n\n```bash\npython sync.py --source .\u002Fsrc --target .\u002Fdst\npython sync.py --config sync.yaml\n```\n\n## Features\n\n- **Incremental sync**: only transfers changed files (uses `rsync -a --delete` under the hood).\n- **Conflict resolution**: if a file changes on both sides, the newer file wins; a `.conflict` copy is kept.\n- **Scheduled sync**: `--interval` flag runs the sync in a loop; useful for CI agents.\n- **Remote sync**: `--remote user@host:path` uses `ssh` to sync to a remote host.\n- **Ignore rules**: `.syncignore` file supports glob patterns.\n- **Health metrics**: optional telemetry for sync duration\u002Fsize (opt-in via `--metrics`).\n\n## Configuration\n\nYAML config:\n\n```yaml\nsource: .\u002Fsrc\ntarget: .\u002Fdst\ninterval: 0\nignore:\n  - \"*.tmp\"\n  - \".git\"\nremote:\n  host: \"\"\n  user: \"\"\n  path: \"\"\nmetrics: false\n```\n\n## Usage Details\n\n### Conflict Handling\n\nWhen a file is modified on both sides, the modification times are compared. The file with the newer mtime wins, and the older version is saved as `filename.conflict`. If mtimes are identical, the source file wins.\n\n### Sync Loop\n\nWith `--interval N`, the tool runs the sync, then sleeps `N` seconds, then repeats. This is useful for mirroring directories in a background process. To stop, send `SIGINT`\u002F`SIGTERM`.\n\n### Remote Sync\n\nFor remote targets, the tool builds an `rsync` command with `-e ssh`. Ensure SSH keys are set up. The remote path must be in the form `user@host:path`.\n\n### Metrics\n\nIf `--metrics` is set, the tool posts a small JSON payload (sync duration, file count, byte count) to a metrics endpoint. This is disabled by default to avoid network noise.\n\n## Security Notes\n\n- The tool never deletes files outside the target directory, except those that were previously synced (tracked via sidecar file).\n- Symlinks are not followed during sync.\n- Network access is only used when `--metrics` or `--remote` is explicitly enabled.\n- All subprocess calls use argument lists (no shell interpolation), preventing injection via file names.\n\n## Exit Codes\n\n- `0`: success\n- `1`: sync error (source or target invalid)\n- `2`: conflict resolution failed\n- `3`: remote connection error\n\n## Development\n\n- Tests: `python -m pytest tests\u002F`\n- Lint: `ruff check .`\n\n## Changelog\n\n- **1.2.0**: Added `--metrics`; improved conflict detection.\n- **1.1.0**: Added remote sync support.\n- **1.0.0**: Initial release.","# Dir Sync Utility\n\nSynchronize the contents of a source directory to a target directory, with support for incremental sync, conflict detection, and scheduled runs. Works with local paths and remote hosts via `rsync`\u002F`ssh`.\n\n## Quick Start\n\n```bash\npython sync.py --source .\u002Fsrc --target .\u002Fdst\npython sync.py --config sync.yaml\n```\n\n## Features\n\n- **Incremental sync**: only transfers changed files (uses `rsync -a --delete` under the hood).\n- **Conflict resolution**: if a file changes on both sides, the newer file wins; a `.conflict` copy is kept.\n- **Scheduled sync**: `--interval` flag runs the sync in a loop; useful for CI agents.\n- **Remote sync**: `--remote user@host:path` uses `ssh` to sync to a remote host.\n- **Ignore rules**: `.syncignore` file supports glob patterns.\n- **Health metrics**: optional telemetry for sync duration\u002Fsize (opt-in via `--metrics`).\n\n## Configuration\n\nYAML config:\n\n```yaml\nsource: .\u002Fsrc\ntarget: .\u002Fdst\ninterval: 0\nignore:\n  - \"*.tmp\"\n  - \".git\"\nremote:\n  host: \"\"\n  user: \"\"\n  path: \"\"\nmetrics: false\n```\n\n## Usage Details\n\n### Conflict Handling\n\nWhen a file is modified on both sides, the modification times are compared. The file with the newer mtime wins, and the older version is saved as `filename.conflict`. If mtimes are identical, the source file wins.\n\n### Sync Loop\n\nWith `--interval N`, the tool runs the sync, then sleeps `N` seconds, then repeats. This is useful for mirroring directories in a background process. To stop, send `SIGINT`\u002F`SIGTERM`.\n\n### Remote Sync\n\nFor remote targets, the tool builds an `rsync` command with `-e ssh`. Ensure SSH keys are set up. The remote path must be in the form `user@host:path`.\n\n### Metrics\n\nIf `--metrics` is set, the tool posts a small JSON payload (sync duration, file count, byte count) to a metrics endpoint. This is disabled by default to avoid network noise.\n\n## Security Notes\n\n- The tool never deletes files outside the target directory, except those that were previously synced (tracked via sidecar file).\n- Symlinks are not followed during sync.\n- Network access is only used when `--metrics` or `--remote` is explicitly enabled.\n- All subprocess calls use argument lists (no shell interpolation), preventing injection via file names.\n\n## Exit Codes\n\n- `0`: success\n- `1`: sync error (source or target invalid)\n- `2`: conflict resolution failed\n- `3`: remote connection error\n\n## Development\n\n- Tests: `python -m pytest tests\u002F`\n- Lint: `ruff check .`\n\n## Changelog\n\n- **1.2.0**: Added `--metrics`; improved conflict detection.\n- **1.1.0**: Added remote sync support.\n- **1.0.0**: Initial release.",{"main":24,"name":5,"license":15,"version":25,"description":7,"permissions":26},"sync.py","1.2.0",[27,29,31],{"filesystem":28},"read\u002Fwrite",{"network":30},"outbound (metrics & updates check)",{"process":32},"spawn (rsync, git, ssh)","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-code_exec-persistent_control-3b5bf110b1",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 dir-sync-utility",{"tool":47,"command":48},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill dir-sync-utility",{"tool":50,"command":51},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill dir-sync-utility","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-3b5bf110b1\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"_provenance.json","REFERENCE","参考文档",4217,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-3b5bf110b1\u002F_provenance.json",{"path":24,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"SCRIPT","脚本",8166,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-3b5bf110b1\u002Fsync.py",[67,74,81,88,95,102],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"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",[],[]]