2.6 KiB
2.6 KiB
Context Snapshot: scheduled-task-git-sync-gant
Task Statement
为该路径添加一个定时任务,每天晚上十点半的时候 git pull & push,然后把 inbox 中的内容使用 skill:gant
Desired Outcome
A nightly scheduled task at 22:30 that:
- Syncs the repo via
git pull && git push - Processes InBox markdown notes through the
gant-cliskill
Stated Solution
Add a cron/scheduled task running at 22:30 daily
Probable Intent Hypothesis
User wants automated end-of-day sync of Obsidian notes to Gitee remote, plus automatic conversion of inbox notes into Gantt task manager entries. This suggests a daily capture → organize → sync workflow.
Known Facts
- Repo:
C:\app\unity_project\obsidian-notes - Remote:
https://gitee.com/zzzisfunnyboy/obsidian-notes.git(Gitee) - InBox currently contains 4
.mdfiles - Git has uncommitted changes:
.obsidian/workspace.json(modified) + one untracked InBox file gant-cliskill: manages Gantt desktop tasks viagant.exe/gantt-app.exeCLI (list, add, update, delete, lock)- Platform: Windows, shell: bash
- No existing
.omx/context/snapshots - Claude Code
CronCreatetool exists for scheduling recurring tasks
Constraints
- Must use Claude Code's
CronCreate(not Windows Task Scheduler or system cron) - Git operations need to handle potential merge conflicts gracefully
- InBox processing: what exactly should happen to inbox files after processing? (Move? Delete? Leave?)
Unknowns / Open Questions
- What does "process InBox content with skill:gant" mean concretely? Extract tasks from each markdown note into Gantt? Convert the whole note into a Gantt task? Something else?
- What should happen to InBox files after processing? Delete them? Move them to an archive? Mark as processed?
- Should the scheduled task also commit local changes before push? Currently there are uncommitted modifications.
- What's the relationship between Obsidian notes and Gantt tasks? Is there a specific format or template?
- Error handling expectations? What if git pull has conflicts? What if gantt-app isn't running?
- Is the gantt-app.exe path known and stable?
Decision-Boundary Unknowns
- Whether to auto-commit changes or only pull/push
- How to handle InBox files post-processing (archive vs delete)
- Error notification strategy (silent fail? log? notify?)
- Whether this should be durable (persist across Claude sessions)
Likely Codebase Touchpoints
- Cron job:
CronCreatetool or.claude/scheduled_tasks.json - Git operations: bash commands
- Gantt integration:
gant-cliskill invocation - InBox:
C:\app\unity_project\obsidian-notes\InBox\directory