51 lines
2.6 KiB
Markdown
51 lines
2.6 KiB
Markdown
# 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:
|
||
1. Syncs the repo via `git pull && git push`
|
||
2. Processes InBox markdown notes through the `gant-cli` skill
|
||
|
||
## 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 `.md` files
|
||
- Git has uncommitted changes: `.obsidian/workspace.json` (modified) + one untracked InBox file
|
||
- `gant-cli` skill: manages Gantt desktop tasks via `gant.exe`/`gantt-app.exe` CLI (list, add, update, delete, lock)
|
||
- Platform: Windows, shell: bash
|
||
- No existing `.omx/context/` snapshots
|
||
- Claude Code `CronCreate` tool 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
|
||
1. **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?
|
||
2. **What should happen to InBox files after processing?** Delete them? Move them to an archive? Mark as processed?
|
||
3. **Should the scheduled task also commit local changes before push?** Currently there are uncommitted modifications.
|
||
4. **What's the relationship between Obsidian notes and Gantt tasks?** Is there a specific format or template?
|
||
5. **Error handling expectations?** What if git pull has conflicts? What if gantt-app isn't running?
|
||
6. **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: `CronCreate` tool or `.claude/scheduled_tasks.json`
|
||
- Git operations: bash commands
|
||
- Gantt integration: `gant-cli` skill invocation
|
||
- InBox: `C:\app\unity_project\obsidian-notes\InBox\` directory
|