[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MWQKDVT0781XDTSGHYG1EH":3,"skill-same:01M6MWQKDVT0781XDTSGHYG1EH":83},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":57,"commitSha":58,"skillDirectory":5,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":76},"01M6MWQKDVT0781XDTSGHYG1EH","forbotsake-cron",null,"Autopilot mode for forbotsake. Installs a cron job that auto-posts reviewed content\non schedule using Claude Code + Chrome. Content-calendar.md drives the timing.\nSubcommands: install, status, uninstall, pause, resume, doctor, run-now.\nUse when: \"auto-post\", \"schedule posts\", \"autopilot\", \"cron\", \"forbotsake-cron\",\n\"schedule my content\", \"post without me\", \"autonomous posting\".\nProactively invoke when the user wants content posted on a schedule without\nbeing present for each post.","forbotsake\u002Fforbotsake","forbotsake","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273708741?v=4","01M6MW9A04DY7WQBA8YF96SVJE","01M6MW9A47HYRVBBQ642740E75",5,"MIT","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-cron\u002FSKILL.md",[],[18,9,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"forbotsake cron","cron","auto","navigate","mode","content-calendar","posts","now","get","me","MCP","autonomous","schedule","text","Bash","code","run","create","uninstall","2026-11-10 10:12:30",false,"---\nname: forbotsake-cron\ndescription: |\n  Autopilot mode for forbotsake. Installs a cron job that auto-posts reviewed content\n  on schedule using Claude Code + Chrome. Content-calendar.md drives the timing.\n  Subcommands: install, status, uninstall, pause, resume, doctor, run-now.\n  Use when: \"auto-post\", \"schedule posts\", \"autopilot\", \"cron\", \"forbotsake-cron\",\n  \"schedule my content\", \"post without me\", \"autonomous posting\".\n  Proactively invoke when the user wants content posted on a schedule without\n  being present for each post.\nallowed-tools:\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Grep\n  - Glob\n  - AskUserQuestion\n  - mcp__claude-in-chrome__tabs_context_mcp\n  - mcp__claude-in-chrome__tabs_create_mcp\n  - mcp__claude-in-chrome__navigate\n  - mcp__claude-in-chrome__read_page\n  - mcp__claude-in-chrome__get_page_text\n  - mcp__claude-in-chrome__find\n  - mcp__claude-in-chrome__computer\n---\n\n# \u002Fforbotsake-cron\n\nAutopilot mode. Your content posts itself.\n\n## Preamble\n\n```bash\nFORBOTSAKE_HOME=\"${FORBOTSAKE_HOME:-$HOME\u002F.forbotsake}\"\nmkdir -p \"$FORBOTSAKE_HOME\"\n\n# Check for updates\n_SKILL_DIR=$(dirname \"$(find ~\u002F.claude\u002Fskills -path \"*\u002Fforbotsake-marketing-start\u002FSKILL.md\" -type f 2>\u002Fdev\u002Fnull | head -1)\" 2>\u002Fdev\u002Fnull)\n_FBS_ROOT=$(cd \"${_SKILL_DIR}\u002F..\" 2>\u002Fdev\u002Fnull && pwd || true)\n_UPD=\"\"\n[ -n \"$_FBS_ROOT\" ] && [ -x \"$_FBS_ROOT\u002Fbin\u002Fforbotsake-update-check\" ] && _UPD=$(\"$_FBS_ROOT\u002Fbin\u002Fforbotsake-update-check\" 2>\u002Fdev\u002Fnull || true)\n[ -n \"$_UPD\" ] && echo \"$_UPD\" || true\n_BRANCH=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"BRANCH: $_BRANCH\"\n```\n\n```bash\n\n# Check prerequisites\necho \"--- PREREQUISITES ---\"\n\n# Chrome\nif pgrep -x \"Google Chrome\" > \u002Fdev\u002Fnull 2>&1 || pgrep -f \"Google Chrome Canary\" > \u002Fdev\u002Fnull 2>&1; then\n  echo \"CHROME: running\"\nelse\n  echo \"CHROME: not running\"\nfi\n\n# Content calendar\nif [ -f content-calendar.md ]; then\n  echo \"CALENDAR: yes\"\n  # Check for scheduled_datetime column\n  if grep -q \"scheduled_datetime\" content-calendar.md 2>\u002Fdev\u002Fnull; then\n    echo \"CALENDAR_SCHEMA: v2 (has scheduled_datetime)\"\n  else\n    echo \"CALENDAR_SCHEMA: v1 (missing scheduled_datetime)\"\n  fi\nelse\n  echo \"CALENDAR: no\"\nfi\n\n# Reviewed content\nif [ -d content ] && grep -rl 'status: reviewed\\|status: revised\\|status: reviewed-override' content\u002F*.md 2>\u002Fdev\u002Fnull | head -1 > \u002Fdev\u002Fnull; then\n  REVIEWED=$(grep -rl 'status: reviewed\\|status: revised\\|status: reviewed-override' content\u002F*.md 2>\u002Fdev\u002Fnull | wc -l | tr -d ' ')\n  echo \"REVIEWED_CONTENT: $REVIEWED files\"\nelse\n  echo \"REVIEWED_CONTENT: 0\"\nfi\n\n# Cron status\nif crontab -l 2>\u002Fdev\u002Fnull | grep -q \"forbotsake-cron\"; then\n  echo \"CRON: installed\"\nelse\n  echo \"CRON: not installed\"\nfi\n\n# Pause status\nif [ -f \"$FORBOTSAKE_HOME\u002Fcron-paused\" ]; then\n  echo \"PAUSED: yes\"\nelse\n  echo \"PAUSED: no\"\nfi\n\n# Cron script location\n_CRON_SCRIPT=\"$_FBS_ROOT\u002Fbin\u002Fforbotsake-cron\"\nif [ -x \"$_CRON_SCRIPT\" ]; then\n  echo \"CRON_SCRIPT: $_CRON_SCRIPT\"\nelse\n  echo \"CRON_SCRIPT: not found\"\nfi\n\necho \"--- END PREREQUISITES ---\"\n```\n\n## Subcommand Detection\n\nParse the user's input to determine which subcommand to run:\n\n- \"install\", \"set up\", \"enable autopilot\" -> **install**\n- \"status\", \"how's it going\", \"what's scheduled\" -> **status**\n- \"uninstall\", \"remove\", \"disable\" -> **uninstall**\n- \"pause\", \"stop for now\" -> **pause**\n- \"resume\", \"unpause\", \"start again\" -> **resume**\n- \"doctor\", \"check\", \"diagnose\", \"is it working\" -> **doctor**\n- \"run now\", \"post now\", \"trigger\", \"test\" -> **run-now**\n- No subcommand specified -> show status + suggest install if not installed\n\n## Install\n\n### Prerequisites Check\n\nIf `CHROME` is `not running`: \"Chrome must be running with the Claude for Chrome extension. Open Chrome and try again.\"\n\nIf `CALENDAR` is `no`: \"No content-calendar.md found. Run `\u002Fforbotsake-content-plan` first to create a calendar with scheduled dates.\"\n\nIf `CALENDAR_SCHEMA` is `v1`: \"Your content-calendar.md doesn't have `scheduled_datetime` columns yet. Run `\u002Fforbotsake-content-plan` to regenerate with scheduling support, or add the column manually. Format: `2026-04-07T10:00:00-07:00` (ISO 8601 with timezone offset).\"\n\nIf `REVIEWED_CONTENT` is `0`: \"No reviewed content found. Run `\u002Fforbotsake-create` then `\u002Fforbotsake-content-check` to create and review content first.\"\n\n### Chrome Verification\n\n1. Use `mcp__claude-in-chrome__tabs_context_mcp` to verify Chrome MCP connectivity\n2. Navigate to the primary posting platform (X or LinkedIn) to verify login status\n3. Report which account is logged in\n\n### Dry Run\n\nRun the cron script in dry-run mode to validate everything works:\n\n```bash\n\"$_CRON_SCRIPT\" --dry-run \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\n```\n\nShow the output to the user.\n\n### Authorization\n\nUse AskUserQuestion:\n\n> \"Autopilot will auto-post all reviewed content from your content-calendar.md on schedule.\n>\n> What I verified:\n> - Chrome: connected, logged in as {handle} on {platform}\n> - Calendar: {N} posts scheduled\n> - Content: {N} reviewed pieces ready\n>\n> This grants blanket posting authorization for reviewed content only.\n> Draft or unreviewed content is never posted. You can pause anytime\n> with `\u002Fforbotsake-cron pause`.\n>\n> Ready to enable autopilot?\"\n\nOptions: A) Enable autopilot, B) Not yet\n\nIf A:\n\n### Write Crontab\n\n```bash\nPROJECT_ROOT=\"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\nCRON_SCRIPT=\"$_FBS_ROOT\u002Fbin\u002Fforbotsake-cron\"\nCLAUDE_BIN=\"$(which claude 2>\u002Fdev\u002Fnull || echo claude)\"\nPYTHON3_BIN=\"$(which python3 2>\u002Fdev\u002Fnull || echo python3)\"\n\n# Write config (captures full paths from interactive shell for cron's minimal PATH)\ncat > \"$FORBOTSAKE_HOME\u002Fcron.config\" \u003C\u003C EOF\nproject_root=$PROJECT_ROOT\ncatch_up_policy=skip\ncron_interval_min=30\nclaude_bin=$CLAUDE_BIN\npython3_bin=$PYTHON3_BIN\nEOF\n\n# Add to crontab (preserving existing entries safely)\n# Distinguish \"no crontab\" from real errors\nCRONTAB_ERR=$(crontab -l 2>&1 >\u002Fdev\u002Fnull) || true\nif echo \"$CRONTAB_ERR\" | grep -qi \"no crontab\"; then\n  # No existing crontab, safe to write fresh\n  EXISTING=\"\"\nelif [ -n \"$CRONTAB_ERR\" ]; then\n  echo \"ERROR: Could not read crontab: $CRONTAB_ERR\"\n  echo \"  Fix: check crontab permissions and retry.\"\n  exit 1\nelse\n  # Existing crontab, remove only THIS project's forbotsake-cron entry (not other projects)\n  EXISTING=$(crontab -l 2>\u002Fdev\u002Fnull | grep -v \"$PROJECT_ROOT.*forbotsake-cron\\|forbotsake-cron.*$PROJECT_ROOT\")\nfi\n# Quote paths in crontab entry to handle spaces\necho \"${EXISTING:+$EXISTING\n}*\u002F30 * * * * \\\"$CRON_SCRIPT\\\" \\\"$PROJECT_ROOT\\\" >> \\\"$FORBOTSAKE_HOME\u002Fcron.log\\\" 2>&1\" | crontab -\n\necho \"CRON_INSTALLED\"\n```\n\nConfirm: \"Autopilot enabled. Cron runs every 30 minutes. Your next scheduled post will go out automatically. Run `\u002Fforbotsake-cron status` to check.\"\n\n## Status\n\nRun the status command:\n\n```bash\n\"$_CRON_SCRIPT\" --status \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\" 2>\u002Fdev\u002Fnull || echo \"Status check failed\"\n```\n\nShow the output to the user.\n\n## Uninstall\n\n```bash\n# Remove from crontab\nEXISTING=$(crontab -l 2>\u002Fdev\u002Fnull | grep -v \"forbotsake-cron\" || true)\necho \"$EXISTING\" | crontab -\n# Clean up lockfile (uses same hash as bin\u002Fforbotsake-cron)\n_PROJ_HASH=$(echo \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\" | md5 2>\u002Fdev\u002Fnull | cut -c1-8 || basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\")\nrm -f \"\u002Ftmp\u002Fforbotsake-cron-${_PROJ_HASH}.lock\"\n# Keep config and logs (user data)\necho \"CRON_REMOVED\"\n```\n\nConfirm: \"Autopilot disabled. Your config and logs are preserved at ~\u002F.forbotsake\u002F. Reviewed content won't be auto-posted. Run `\u002Fforbotsake-cron install` to re-enable.\"\n\n## Pause \u002F Resume\n\n```bash\n# Pause\ntouch \"$FORBOTSAKE_HOME\u002Fcron-paused\"\n```\n\n\"Autopilot paused. Content won't auto-post until you resume. Run `\u002Fforbotsake-cron resume` when ready.\"\n\n```bash\n# Resume\nrm -f \"$FORBOTSAKE_HOME\u002Fcron-paused\"\n```\n\n\"Autopilot resumed. Next scheduled post will go out on time.\"\n\n## Doctor\n\nRun a health check:\n\n1. **Cron installed?** Check `crontab -l`\n2. **Chrome running?** Check process\n3. **Chrome MCP connected?** Try `mcp__claude-in-chrome__tabs_context_mcp`\n4. **Calendar exists?** Check file\n5. **Calendar has scheduling?** Check for `scheduled_datetime` column\n6. **Reviewed content?** Check frontmatter status\n7. **Paused?** Check pause file\n8. **Recent errors?** Check error log\n9. **claude binary accessible?** Check path\n\nFor each check, show pass\u002Ffail with fix instructions if failed.\n\n## Run Now\n\nForce one tick immediately:\n\n```bash\n\"$_CRON_SCRIPT\" --run-now \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\n```\n\nIf the script says \"No posts due right now\", tell the user. Suggest running `bin\u002Fforbotsake-cron --dry-run` to see upcoming scheduled posts, or manually posting via `\u002Fforbotsake-publish`.\n\n## Tick Mode (called by cron, not interactive)\n\nWhen this skill is invoked by `claude -p` in tick mode (the tick flag file exists at `~\u002F.forbotsake\u002Ftick-{project}`):\n\n1. Read the tick flag file to get the content file path\n2. Read the content file, verify `status: reviewed` (or `revised`\u002F`reviewed-override`)\n3. Set the content file frontmatter to `status: posting` (atomic claim)\n4. Invoke `\u002Fforbotsake-publish` in orchestrated mode for that single file\n5. On success: set `status: published`, write receipt to `published-log.md`\n6. On failure: set `status: failed`, write failure receipt to `published-log.md`\n7. Exit cleanly\n\n### Receipt format for autonomous posts\n\n```markdown\n## {date} - {platform} (AUTO)\n\n- **Content:** {title or first line}\n- **Source file:** {path to content file}\n- **Format:** {thread\u002Ftweet\u002Flinkedin\u002Fother}\n- **Mode:** POST (autonomous\u002Fcron)\n- **Link:** {captured URL}\n- **Scheduled:** {ISO 8601 from calendar}\n- **Posted:** {ISO 8601 actual post time}\n- **Result:** success\n- **Notes:** Auto-posted by forbotsake-cron\n\n---\n```\n\n### Failed receipt\n\n```markdown\n## {date} - {platform} (AUTO\u002FFAILED)\n\n- **Content:** {title or first line}\n- **Source file:** {path to content file}\n- **Mode:** POST (autonomous\u002Fcron)\n- **Result:** failed\n- **Failure reason:** {specific error}\n- **Notes:** Content status set to `failed`. Set back to `reviewed` to retry.\n\n---\n```\n\n## Next Steps (interactive mode only)\n\nAfter any subcommand, suggest:\n\n- If just installed: \"Run `\u002Fforbotsake-cron doctor` to verify everything is working.\"\n- If status shows missed posts: \"Check your Chrome session and run `\u002Fforbotsake-cron doctor`.\"\n- If no calendar: \"Run `\u002Fforbotsake-content-plan` to create a calendar with scheduled dates.\"\n- If no reviewed content: \"Run `\u002Fforbotsake-go` to create and review content.\"\n","# \u002Fforbotsake-cron\n\nAutopilot mode. Your content posts itself.\n\n## Preamble\n\n```bash\nFORBOTSAKE_HOME=\"${FORBOTSAKE_HOME:-$HOME\u002F.forbotsake}\"\nmkdir -p \"$FORBOTSAKE_HOME\"\n\n# Check for updates\n_SKILL_DIR=$(dirname \"$(find ~\u002F.claude\u002Fskills -path \"*\u002Fforbotsake-marketing-start\u002FSKILL.md\" -type f 2>\u002Fdev\u002Fnull | head -1)\" 2>\u002Fdev\u002Fnull)\n_FBS_ROOT=$(cd \"${_SKILL_DIR}\u002F..\" 2>\u002Fdev\u002Fnull && pwd || true)\n_UPD=\"\"\n[ -n \"$_FBS_ROOT\" ] && [ -x \"$_FBS_ROOT\u002Fbin\u002Fforbotsake-update-check\" ] && _UPD=$(\"$_FBS_ROOT\u002Fbin\u002Fforbotsake-update-check\" 2>\u002Fdev\u002Fnull || true)\n[ -n \"$_UPD\" ] && echo \"$_UPD\" || true\n_BRANCH=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"BRANCH: $_BRANCH\"\n```\n\n```bash\n\n# Check prerequisites\necho \"--- PREREQUISITES ---\"\n\n# Chrome\nif pgrep -x \"Google Chrome\" > \u002Fdev\u002Fnull 2>&1 || pgrep -f \"Google Chrome Canary\" > \u002Fdev\u002Fnull 2>&1; then\n  echo \"CHROME: running\"\nelse\n  echo \"CHROME: not running\"\nfi\n\n# Content calendar\nif [ -f content-calendar.md ]; then\n  echo \"CALENDAR: yes\"\n  # Check for scheduled_datetime column\n  if grep -q \"scheduled_datetime\" content-calendar.md 2>\u002Fdev\u002Fnull; then\n    echo \"CALENDAR_SCHEMA: v2 (has scheduled_datetime)\"\n  else\n    echo \"CALENDAR_SCHEMA: v1 (missing scheduled_datetime)\"\n  fi\nelse\n  echo \"CALENDAR: no\"\nfi\n\n# Reviewed content\nif [ -d content ] && grep -rl 'status: reviewed\\|status: revised\\|status: reviewed-override' content\u002F*.md 2>\u002Fdev\u002Fnull | head -1 > \u002Fdev\u002Fnull; then\n  REVIEWED=$(grep -rl 'status: reviewed\\|status: revised\\|status: reviewed-override' content\u002F*.md 2>\u002Fdev\u002Fnull | wc -l | tr -d ' ')\n  echo \"REVIEWED_CONTENT: $REVIEWED files\"\nelse\n  echo \"REVIEWED_CONTENT: 0\"\nfi\n\n# Cron status\nif crontab -l 2>\u002Fdev\u002Fnull | grep -q \"forbotsake-cron\"; then\n  echo \"CRON: installed\"\nelse\n  echo \"CRON: not installed\"\nfi\n\n# Pause status\nif [ -f \"$FORBOTSAKE_HOME\u002Fcron-paused\" ]; then\n  echo \"PAUSED: yes\"\nelse\n  echo \"PAUSED: no\"\nfi\n\n# Cron script location\n_CRON_SCRIPT=\"$_FBS_ROOT\u002Fbin\u002Fforbotsake-cron\"\nif [ -x \"$_CRON_SCRIPT\" ]; then\n  echo \"CRON_SCRIPT: $_CRON_SCRIPT\"\nelse\n  echo \"CRON_SCRIPT: not found\"\nfi\n\necho \"--- END PREREQUISITES ---\"\n```\n\n## Subcommand Detection\n\nParse the user's input to determine which subcommand to run:\n\n- \"install\", \"set up\", \"enable autopilot\" -> **install**\n- \"status\", \"how's it going\", \"what's scheduled\" -> **status**\n- \"uninstall\", \"remove\", \"disable\" -> **uninstall**\n- \"pause\", \"stop for now\" -> **pause**\n- \"resume\", \"unpause\", \"start again\" -> **resume**\n- \"doctor\", \"check\", \"diagnose\", \"is it working\" -> **doctor**\n- \"run now\", \"post now\", \"trigger\", \"test\" -> **run-now**\n- No subcommand specified -> show status + suggest install if not installed\n\n## Install\n\n### Prerequisites Check\n\nIf `CHROME` is `not running`: \"Chrome must be running with the Claude for Chrome extension. Open Chrome and try again.\"\n\nIf `CALENDAR` is `no`: \"No content-calendar.md found. Run `\u002Fforbotsake-content-plan` first to create a calendar with scheduled dates.\"\n\nIf `CALENDAR_SCHEMA` is `v1`: \"Your content-calendar.md doesn't have `scheduled_datetime` columns yet. Run `\u002Fforbotsake-content-plan` to regenerate with scheduling support, or add the column manually. Format: `2026-04-07T10:00:00-07:00` (ISO 8601 with timezone offset).\"\n\nIf `REVIEWED_CONTENT` is `0`: \"No reviewed content found. Run `\u002Fforbotsake-create` then `\u002Fforbotsake-content-check` to create and review content first.\"\n\n### Chrome Verification\n\n1. Use `mcp__claude-in-chrome__tabs_context_mcp` to verify Chrome MCP connectivity\n2. Navigate to the primary posting platform (X or LinkedIn) to verify login status\n3. Report which account is logged in\n\n### Dry Run\n\nRun the cron script in dry-run mode to validate everything works:\n\n```bash\n\"$_CRON_SCRIPT\" --dry-run \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\n```\n\nShow the output to the user.\n\n### Authorization\n\nUse AskUserQuestion:\n\n> \"Autopilot will auto-post all reviewed content from your content-calendar.md on schedule.\n>\n> What I verified:\n> - Chrome: connected, logged in as {handle} on {platform}\n> - Calendar: {N} posts scheduled\n> - Content: {N} reviewed pieces ready\n>\n> This grants blanket posting authorization for reviewed content only.\n> Draft or unreviewed content is never posted. You can pause anytime\n> with `\u002Fforbotsake-cron pause`.\n>\n> Ready to enable autopilot?\"\n\nOptions: A) Enable autopilot, B) Not yet\n\nIf A:\n\n### Write Crontab\n\n```bash\nPROJECT_ROOT=\"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\nCRON_SCRIPT=\"$_FBS_ROOT\u002Fbin\u002Fforbotsake-cron\"\nCLAUDE_BIN=\"$(which claude 2>\u002Fdev\u002Fnull || echo claude)\"\nPYTHON3_BIN=\"$(which python3 2>\u002Fdev\u002Fnull || echo python3)\"\n\n# Write config (captures full paths from interactive shell for cron's minimal PATH)\ncat > \"$FORBOTSAKE_HOME\u002Fcron.config\" \u003C\u003C EOF\nproject_root=$PROJECT_ROOT\ncatch_up_policy=skip\ncron_interval_min=30\nclaude_bin=$CLAUDE_BIN\npython3_bin=$PYTHON3_BIN\nEOF\n\n# Add to crontab (preserving existing entries safely)\n# Distinguish \"no crontab\" from real errors\nCRONTAB_ERR=$(crontab -l 2>&1 >\u002Fdev\u002Fnull) || true\nif echo \"$CRONTAB_ERR\" | grep -qi \"no crontab\"; then\n  # No existing crontab, safe to write fresh\n  EXISTING=\"\"\nelif [ -n \"$CRONTAB_ERR\" ]; then\n  echo \"ERROR: Could not read crontab: $CRONTAB_ERR\"\n  echo \"  Fix: check crontab permissions and retry.\"\n  exit 1\nelse\n  # Existing crontab, remove only THIS project's forbotsake-cron entry (not other projects)\n  EXISTING=$(crontab -l 2>\u002Fdev\u002Fnull | grep -v \"$PROJECT_ROOT.*forbotsake-cron\\|forbotsake-cron.*$PROJECT_ROOT\")\nfi\n# Quote paths in crontab entry to handle spaces\necho \"${EXISTING:+$EXISTING\n}*\u002F30 * * * * \\\"$CRON_SCRIPT\\\" \\\"$PROJECT_ROOT\\\" >> \\\"$FORBOTSAKE_HOME\u002Fcron.log\\\" 2>&1\" | crontab -\n\necho \"CRON_INSTALLED\"\n```\n\nConfirm: \"Autopilot enabled. Cron runs every 30 minutes. Your next scheduled post will go out automatically. Run `\u002Fforbotsake-cron status` to check.\"\n\n## Status\n\nRun the status command:\n\n```bash\n\"$_CRON_SCRIPT\" --status \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\" 2>\u002Fdev\u002Fnull || echo \"Status check failed\"\n```\n\nShow the output to the user.\n\n## Uninstall\n\n```bash\n# Remove from crontab\nEXISTING=$(crontab -l 2>\u002Fdev\u002Fnull | grep -v \"forbotsake-cron\" || true)\necho \"$EXISTING\" | crontab -\n# Clean up lockfile (uses same hash as bin\u002Fforbotsake-cron)\n_PROJ_HASH=$(echo \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\" | md5 2>\u002Fdev\u002Fnull | cut -c1-8 || basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\")\nrm -f \"\u002Ftmp\u002Fforbotsake-cron-${_PROJ_HASH}.lock\"\n# Keep config and logs (user data)\necho \"CRON_REMOVED\"\n```\n\nConfirm: \"Autopilot disabled. Your config and logs are preserved at ~\u002F.forbotsake\u002F. Reviewed content won't be auto-posted. Run `\u002Fforbotsake-cron install` to re-enable.\"\n\n## Pause \u002F Resume\n\n```bash\n# Pause\ntouch \"$FORBOTSAKE_HOME\u002Fcron-paused\"\n```\n\n\"Autopilot paused. Content won't auto-post until you resume. Run `\u002Fforbotsake-cron resume` when ready.\"\n\n```bash\n# Resume\nrm -f \"$FORBOTSAKE_HOME\u002Fcron-paused\"\n```\n\n\"Autopilot resumed. Next scheduled post will go out on time.\"\n\n## Doctor\n\nRun a health check:\n\n1. **Cron installed?** Check `crontab -l`\n2. **Chrome running?** Check process\n3. **Chrome MCP connected?** Try `mcp__claude-in-chrome__tabs_context_mcp`\n4. **Calendar exists?** Check file\n5. **Calendar has scheduling?** Check for `scheduled_datetime` column\n6. **Reviewed content?** Check frontmatter status\n7. **Paused?** Check pause file\n8. **Recent errors?** Check error log\n9. **claude binary accessible?** Check path\n\nFor each check, show pass\u002Ffail with fix instructions if failed.\n\n## Run Now\n\nForce one tick immediately:\n\n```bash\n\"$_CRON_SCRIPT\" --run-now \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\n```\n\nIf the script says \"No posts due right now\", tell the user. Suggest running `bin\u002Fforbotsake-cron --dry-run` to see upcoming scheduled posts, or manually posting via `\u002Fforbotsake-publish`.\n\n## Tick Mode (called by cron, not interactive)\n\nWhen this skill is invoked by `claude -p` in tick mode (the tick flag file exists at `~\u002F.forbotsake\u002Ftick-{project}`):\n\n1. Read the tick flag file to get the content file path\n2. Read the content file, verify `status: reviewed` (or `revised`\u002F`reviewed-override`)\n3. Set the content file frontmatter to `status: posting` (atomic claim)\n4. Invoke `\u002Fforbotsake-publish` in orchestrated mode for that single file\n5. On success: set `status: published`, write receipt to `published-log.md`\n6. On failure: set `status: failed`, write failure receipt to `published-log.md`\n7. Exit cleanly\n\n### Receipt format for autonomous posts\n\n```markdown\n## {date} - {platform} (AUTO)\n\n- **Content:** {title or first line}\n- **Source file:** {path to content file}\n- **Format:** {thread\u002Ftweet\u002Flinkedin\u002Fother}\n- **Mode:** POST (autonomous\u002Fcron)\n- **Link:** {captured URL}\n- **Scheduled:** {ISO 8601 from calendar}\n- **Posted:** {ISO 8601 actual post time}\n- **Result:** success\n- **Notes:** Auto-posted by forbotsake-cron\n\n---\n```\n\n### Failed receipt\n\n```markdown\n## {date} - {platform} (AUTO\u002FFAILED)\n\n- **Content:** {title or first line}\n- **Source file:** {path to content file}\n- **Mode:** POST (autonomous\u002Fcron)\n- **Result:** failed\n- **Failure reason:** {specific error}\n- **Notes:** Content status set to `failed`. Set back to `reviewed` to retry.\n\n---\n```\n\n## Next Steps (interactive mode only)\n\nAfter any subcommand, suggest:\n\n- If just installed: \"Run `\u002Fforbotsake-cron doctor` to verify everything is working.\"\n- If status shows missed posts: \"Check your Chrome session and run `\u002Fforbotsake-cron doctor`.\"\n- If no calendar: \"Run `\u002Fforbotsake-content-plan` to create a calendar with scheduled dates.\"\n- If no reviewed content: \"Run `\u002Fforbotsake-go` to create and review content.\"\n",{"name":5,"description":42,"allowed-tools":43},"Autopilot mode for forbotsake. Installs a cron job that auto-posts reviewed content\non schedule using Claude Code + Chrome. Content-calendar.md drives the timing.\nSubcommands: install, status, uninstall, pause, resume, doctor, run-now.\nUse when: \"auto-post\", \"schedule posts\", \"autopilot\", \"cron\", \"forbotsake-cron\",\n\"schedule my content\", \"post without me\", \"autonomous posting\".\nProactively invoke when the user wants content posted on a schedule without\nbeing present for each post.\n",[32,44,45,46,47,48,49,50,51,52,53,54,55,56],"Read","Write","Edit","Grep","Glob","AskUserQuestion","mcp__claude-in-chrome__tabs_context_mcp","mcp__claude-in-chrome__tabs_create_mcp","mcp__claude-in-chrome__navigate","mcp__claude-in-chrome__read_page","mcp__claude-in-chrome__get_page_text","mcp__claude-in-chrome__find","mcp__claude-in-chrome__computer","main","d91f0c567548c80403f85619693a405ed65d2b60",1,"https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake","https:\u002F\u002Fgithub.com\u002Fforbotsake","2026-08-17 21:39:59",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add forbotsake\u002Fforbotsake --skill forbotsake-cron",{"tool":69,"command":70},"bunx","bunx skills add forbotsake\u002Fforbotsake --skill forbotsake-cron",{"tool":72,"command":73},"pnpm","pnpm dlx skills add forbotsake\u002Fforbotsake --skill forbotsake-cron","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-cron\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"SKILL.md.tmpl","OTHER","其他",9964,"https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-cron\u002FSKILL.md.tmpl",[84,104,126,146,166,182],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":37},"01M6MWS487CZVEME2DWGT48C58","forbotsake-upgrade","Upgrade forbotsake to the latest version. Detects install type (git clone\nvs vendored), runs the upgrade, and shows what's new.\nUse when: \"upgrade forbotsake\", \"update forbotsake\", \"get latest version\",\n\"forbotsake update\".","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-upgrade\u002FSKILL.md",[],[91,92,9,93,94,32,95,96,97,98,99,100,26,101,102,103],"upgrade","forbotsake upgrade","update","git","read","write","install","use","version","git clone","type","latest","clone",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":37},"01M6MWRZ7XD9Q73JTRBQ0N8682","forbotsake-spy","Stage 3: RESEARCH (competitors). Analyzes 3-5 competitors to find messaging whitespace\nand positioning gaps. Produces competitor-analysis.md with a messaging matrix showing\nwhat each competitor says, what's missing, and where you can win.\nUse when: \"competitor analysis\", \"competitive research\", \"what are others doing\",\n\"market landscape\", \"who am I competing with\", \"spy on competitors\",\n\"messaging whitespace\", \"differentiation research\".\nProactively invoke when the user mentions competitors or asks how to differentiate.","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-spy\u002FSKILL.md",[],[111,9,112,113,114,32,115,95,96,116,98,117,118,119,120,121,122,123,124,125],"forbotsake spy","messaging","analysis","how","competitors","edit","positioning","landscape","missing","how to","differentiation","competitive","you","websearch","matrix",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":37},"01M6MWRPHXWYB38V08BZM8SSRE","forbotsake-sharpen","Stage 4.5: SHARPEN. Takes a specific outreach target (person or organization) and\nproduces a deep execution plan with contextual research, relationship mapping,\nangle selection, and a multi-touch sequence. Reads your founder profile and strategy\nto leverage warm paths and unfair advantages.\nUse when: \"refine this plan\", \"go deeper on this\", \"sharpen execution\",\n\"how do I approach [person]\", \"outreach to [person]\", \"target [person\u002Forg]\",\n\"approach [person]\", \"engage [org]\".\nProactively invoke when the user mentions approaching a specific person or\norganization as part of their marketing strategy.\nRequires: strategy.md (from \u002Fforbotsake-marketing-start).","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-sharpen\u002FSKILL.md",[],[133,134,9,135,114,32,136,95,96,116,137,138,139,140,141,142,143,144,124,145],"sharpen","forbotsake sharpen","start","plan","selection","relationship","organization","refine","deeper","deep","leverage","paths","sequence",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":37},"01M6MWRHXHECX1N4WNHBJJQKER","forbotsake-retro","Stage 9: MEASURE. Reviews what you published, analyzes performance data,\nand produces a retro report with evidence-based recommendations.\nTells you what to double down on, what to drop, and what to try next.\nUse when: \"what worked\", \"marketing retro\", \"measure results\", \"review performance\",\n\"which content performed best\", \"should I keep doing this\".\nProactively invoke one week after \u002Fforbotsake-publish was last run.","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-retro\u002FSKILL.md",[],[153,154,9,155,156,34,157,158,32,159,95,96,116,160,161,162,123,163,164,165],"retro","forbotsake retro","review","performance","publish","data","marketing","next","drop","recommendations","reviews","which","what worked",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":37},"01M6MWRB8GN0AZTEVTQD1GBA8K","forbotsake-publish","Stage 8: SHIP. Two modes: POST (auto-post via Claude for Chrome) or COPY\n(format for copy-paste). Handles X\u002FTwitter threads, LinkedIn posts, blog posts,\nand more. Logs everything for retrospective analysis.\nFor auto-posting, the user needs the Claude for Chrome extension installed.\nWithout it, the skill falls back to COPY mode automatically.\nUse when: \"publish this\", \"format for twitter\", \"post to X\", \"ship this content\",\n\"format for blog\", \"send this email\", \"ready to publish\", \"auto-post\",\n\"post this to X\", \"publish to LinkedIn\".\nProactively invoke when the user has content in content\u002F and says they want to ship it.","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-publish\u002FSKILL.md",[],[157,173,9,28,174,35,175,176,31,95,96,116,177,20,178,179,24,180,22,181],"forbotsake publish","image","logs","ship","context","ready","chrome extension","paste","send",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":37},"01M6MWR5K98QN9BDH4179Y47F0","forbotsake-marketing-start","The starting point for marketing your product. Reads your codebase to understand\nwhat you built, asks 5 hard questions about positioning, audience, and channels,\nthen produces strategy.md with your marketing strategy and first concrete move.\nUse when: \"how should I market this\", \"go-to-market\", \"GTM\", \"positioning\",\n\"I don't know how to sell this\", \"help me market\", \"marketing strategy\".\nProactively invoke when the user asks about marketing, growth, or getting users\nand no strategy.md exists yet.","https:\u002F\u002Fgithub.com\u002Fforbotsake\u002Fforbotsake\u002Fblob\u002Fmain\u002Fforbotsake-marketing-start\u002FSKILL.md",[],[135,159,189,9,190,191,114,32,95,96,116,27,117,192,120,193,194,123,124,195],"forbotsake marketing start","go","product","gtm","go-to-market","move","for"]