[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MCXKZHCNXDK30HCH4T7DP":3,"skill-same:01M75MCXKZHCNXDK30HCH4T7DP":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":54},"01M75MCXKZHCNXDK30HCH4T7DP","cron-scheduler",null,"Schedule management with staggering, quiet hours, and wake-up override.\nValidates schedules, prevents collisions, and gates delivery during quiet hours.","Sigmacodeat\u002FSigmabrain","Sigmacodeat","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F220578687?v=4","01M75M8ZBH9439AFP2NTF8K98S","01M75M8ZC680S4377SFWSKP0D1",0,"MIT","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Fskills\u002Fcron-scheduler\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: cron-scheduler\nversion: 1.0.0\ndescription: |\n  Schedule management with staggering, quiet hours, and wake-up override.\n  Validates schedules, prevents collisions, and gates delivery during quiet hours.\ntriggers:\n  - \"schedule a job\"\n  - \"cron\"\n  - \"quiet hours\"\n  - \"what jobs are running\"\ntools:\n  - search\n  - get_page\n  - put_page\nmutating: true\n---\n\n# Cron Scheduler\n\n> **Convention:** See `skills\u002Fconventions\u002Ftest-before-bulk.md` — test every cron job on 3-5 items first.\n\n## Contract\n\nThis skill guarantees:\n- Schedule staggering: max 1 job per 5-minute slot, no collisions\n- Quiet hours gating: timezone-aware, with user-awake override\n- Thin job prompts: jobs say \"Read skills\u002FX\u002FSKILL.md and run it\" (no inline 3000-word prompts)\n- Idempotency: jobs can run twice without duplicate side effects\n- Results saved as reports: `reports\u002F{job-name}\u002F{YYYY-MM-DD-HHMM}.md`\n\n## Phases\n\n1. **Define job.** Name, schedule (cron expression), skill to run, timeout.\n2. **Validate schedule.** Check no collision with existing jobs (5-minute offset rule).\n   - Slots: :05, :10, :15, :20, :25, :30, :35, :40, :45, :50\n   - If collision detected, suggest the next available slot\n3. **Check quiet hours.** Default: 11 PM - 8 AM local time.\n   - Override: user-awake flag (if user is active, quiet hours suspended)\n   - During quiet hours: save output to held queue\n   - Morning contact releases the backlog\n4. **Register with host scheduler.** OpenClaw cron, Railway cron, crontab, or process manager. **Each registered entry should execute via Minions, not `agentTurn`.** See `skills\u002Fconventions\u002Fcron-via-minions.md` for the rewrite pattern (PGLite uses `--follow`, Postgres uses fire-and-forget + `--idempotency-key` on the cycle slot). GBrain's v0.11.0 migration auto-rewrites entries for built-in handlers; host-specific handlers need a code-level registration per `docs\u002Fguides\u002Fplugin-handlers.md`.\n5. **Write thin prompt.** Job prompt is one line: \"Read skills\u002F{name}\u002FSKILL.md and run it.\"\n\n## Idempotency Requirement\n\nEvery cron job MUST be idempotent:\n- Running the same job twice produces the same result (no duplicate pages, no duplicate timeline entries)\n- Use checkpoint state files to track progress and resume interrupted runs\n- Check for existing output before creating new output\n\n## Output Format\n\nJob configuration saved. Report: \"Job '{name}' scheduled at {cron expression}. Next run: {time}.\"\n\n## Multi-source brains: use `sync --all`, not per-source entries\n\nWhen the brain has 2+ active sources (anything `gbrain sources list` shows\nwith a non-null `local_path` that isn't archived), use one consolidated\ncron line instead of N per-source entries.\n\n**Preferred (multi-source)**:\n\n```cron\n*\u002F5 * * * * gbrain sync --all --parallel 4 --workers 4 --skip-failed\n```\n\nThis replaces N per-source lines AND auto-picks-up future sources without\na crontab edit. Concurrency budget: `parallel × workers × 2 ≈ 32`\nconnections during the wave (each per-file worker opens its own\n2-connection pool). Stay under your Postgres `max_connections` setting.\n\n**Avoid (legacy)**: separate `gbrain sync --source default` and\n`gbrain sync --source zion-brain` entries staggered by 5 minutes. They\nrequire manual deconfliction every time a new source is added, and a\nslow source can race a fast source on the legacy global `gbrain-sync`\nlock (v0.40.3.0+ uses per-source `gbrain-sync:\u003CsourceId>` locks but the\nper-source cron pattern doesn't benefit from the parallelism that\n`--all --parallel` actually delivers).\n\n`gbrain doctor` surfaces the recommended line as a `sync_consolidation`\ncheck whenever it detects 2+ active sources. Paste-ready from there.\n\n## Anti-Patterns\n\n- Scheduling jobs at the same minute (:00 for everything)\n- Inline 3000-word prompts in cron jobs (use skill file references)\n- Running cron jobs without testing on 3-5 items first\n- Jobs that produce different output on re-run (not idempotent)\n- Sending notifications during quiet hours (save to held queue instead)\n- Separate per-source `gbrain sync --source \u003Cid>` cron entries when\n  `gbrain sync --all --parallel N --workers N` would replace them with\n  one line that auto-picks-up future sources.\n","# Cron Scheduler\n\n> **Convention:** See `skills\u002Fconventions\u002Ftest-before-bulk.md` — test every cron job on 3-5 items first.\n\n## Contract\n\nThis skill guarantees:\n- Schedule staggering: max 1 job per 5-minute slot, no collisions\n- Quiet hours gating: timezone-aware, with user-awake override\n- Thin job prompts: jobs say \"Read skills\u002FX\u002FSKILL.md and run it\" (no inline 3000-word prompts)\n- Idempotency: jobs can run twice without duplicate side effects\n- Results saved as reports: `reports\u002F{job-name}\u002F{YYYY-MM-DD-HHMM}.md`\n\n## Phases\n\n1. **Define job.** Name, schedule (cron expression), skill to run, timeout.\n2. **Validate schedule.** Check no collision with existing jobs (5-minute offset rule).\n   - Slots: :05, :10, :15, :20, :25, :30, :35, :40, :45, :50\n   - If collision detected, suggest the next available slot\n3. **Check quiet hours.** Default: 11 PM - 8 AM local time.\n   - Override: user-awake flag (if user is active, quiet hours suspended)\n   - During quiet hours: save output to held queue\n   - Morning contact releases the backlog\n4. **Register with host scheduler.** OpenClaw cron, Railway cron, crontab, or process manager. **Each registered entry should execute via Minions, not `agentTurn`.** See `skills\u002Fconventions\u002Fcron-via-minions.md` for the rewrite pattern (PGLite uses `--follow`, Postgres uses fire-and-forget + `--idempotency-key` on the cycle slot). GBrain's v0.11.0 migration auto-rewrites entries for built-in handlers; host-specific handlers need a code-level registration per `docs\u002Fguides\u002Fplugin-handlers.md`.\n5. **Write thin prompt.** Job prompt is one line: \"Read skills\u002F{name}\u002FSKILL.md and run it.\"\n\n## Idempotency Requirement\n\nEvery cron job MUST be idempotent:\n- Running the same job twice produces the same result (no duplicate pages, no duplicate timeline entries)\n- Use checkpoint state files to track progress and resume interrupted runs\n- Check for existing output before creating new output\n\n## Output Format\n\nJob configuration saved. Report: \"Job '{name}' scheduled at {cron expression}. Next run: {time}.\"\n\n## Multi-source brains: use `sync --all`, not per-source entries\n\nWhen the brain has 2+ active sources (anything `gbrain sources list` shows\nwith a non-null `local_path` that isn't archived), use one consolidated\ncron line instead of N per-source entries.\n\n**Preferred (multi-source)**:\n\n```cron\n*\u002F5 * * * * gbrain sync --all --parallel 4 --workers 4 --skip-failed\n```\n\nThis replaces N per-source lines AND auto-picks-up future sources without\na crontab edit. Concurrency budget: `parallel × workers × 2 ≈ 32`\nconnections during the wave (each per-file worker opens its own\n2-connection pool). Stay under your Postgres `max_connections` setting.\n\n**Avoid (legacy)**: separate `gbrain sync --source default` and\n`gbrain sync --source zion-brain` entries staggered by 5 minutes. They\nrequire manual deconfliction every time a new source is added, and a\nslow source can race a fast source on the legacy global `gbrain-sync`\nlock (v0.40.3.0+ uses per-source `gbrain-sync:\u003CsourceId>` locks but the\nper-source cron pattern doesn't benefit from the parallelism that\n`--all --parallel` actually delivers).\n\n`gbrain doctor` surfaces the recommended line as a `sync_consolidation`\ncheck whenever it detects 2+ active sources. Paste-ready from there.\n\n## Anti-Patterns\n\n- Scheduling jobs at the same minute (:00 for everything)\n- Inline 3000-word prompts in cron jobs (use skill file references)\n- Running cron jobs without testing on 3-5 items first\n- Jobs that produce different output on re-run (not idempotent)\n- Sending notifications during quiet hours (save to held queue instead)\n- Separate per-source `gbrain sync --source \u003Cid>` cron entries when\n  `gbrain sync --all --parallel N --workers N` would replace them with\n  one line that auto-picks-up future sources.\n",{"name":5,"tools":23,"version":27,"mutating":28,"triggers":29,"description":34},[24,25,26],"search","get_page","put_page","1.0.0",true,[30,31,32,33],"schedule a job","cron","quiet hours","what jobs are running","Schedule management with staggering, quiet hours, and wake-up override.\nValidates schedules, prevents collisions, and gates delivery during quiet hours.\n","main","b8e699fc7cff8641b94a51ac9d4aa599fcc03ae5","server\u002Fskills\u002Fcron-scheduler","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain","https:\u002F\u002Fsigmabrain.vercel.app","https:\u002F\u002Fgithub.com\u002FSigmacodeat","2026-07-09 09:21:55",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":28},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Sigmacodeat\u002FSigmabrain --skill cron-scheduler",{"tool":48,"command":49},"bunx","bunx skills add Sigmacodeat\u002FSigmabrain --skill cron-scheduler",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Sigmacodeat\u002FSigmabrain --skill cron-scheduler","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Fskills\u002Fcron-scheduler\u002FSKILL.md",[],[56,62,68,75,82,89],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M75MW3405DES0348DPKVF20G","query-helper","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fquery-helper\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M75MW29T3N856QPT2SK467A3","broken","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbroken\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M75MVZV51CX9W3Y602M0GJR9","brain-ops","Read, enrich, and write brain pages with source attribution.","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M75MVXQAQBVNQBZPKPEBPRHV","signal-detector","Always-on ambient signal capture for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fsignal-detector\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M75MVWJN0EV5EFW6JMMC73XC","query","Look up brain pages in the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fquery\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M75MVVA7Q6PMDBTPQGT49M6M","context-now","ALWAYS-ON time-sensitivity discipline for the OpenClaw reference fixture.","https:\u002F\u002Fgithub.com\u002FSigmacodeat\u002FSigmabrain\u002Fblob\u002Fmain\u002Fserver\u002Ftest\u002Ffixtures\u002Fopenclaw-reference-minimal\u002Fskills\u002Fcontext-now\u002FSKILL.md",[],[]]