Loading...
Loading...
Compare original and translation side by side
./pomodoro status./pomodoro history./pomodoro stats --period week./pomodoro start./pomodoro status./pomodoro history./pomodoro stats --period week./pomodoro start~/.claude/skills/pomodoro/pomodoro~/.claude/skills/pomodoro/pomodoro.db~/.claude/skills/pomodoro/pomodoro~/.claude/skills/pomodoro/pomodoro.dbUser task → What kind of request?
├─ Start focused work → Check status first, then start session
├─ Check current timer → Use status command
├─ Review productivity → Use stats command (day/week/month/year)
├─ View past sessions → Use history command
└─ Stop early → Use stop command用户任务 → 请求类型?
├─ 开始专注工作 → 先检查状态,再启动会话
├─ 查看当前计时器 → 使用status命令
├─ 查看生产力情况 → 使用stats命令(日/周/月/年)
├─ 查看过往会话 → 使用history命令
└─ 提前结束 → 使用stop命令./pomodoro --help./pomodoro <command> --help./pomodoro --help./pomodoro <command> --helpundefinedundefined
**Options:**
- `--work <minutes>` - Work duration (default: 25)
- `--break <minutes>` - Break duration (default: 5)
- `--cycles <count>` - Number of work+break rounds (default: 1)
**Behavior:**
- Only one session can run at a time
- Timer runs in foreground showing progress every minute
- Breaks start automatically after work sessions
- Next work session starts automatically after break (if cycles remaining)
- Each work session saved separately to database
**JSON output example:**
```bash
./pomodoro start --task "Write docs" --json
**选项说明:**
- `--work <minutes>` - 工作时长(默认:25)
- `--break <minutes>` - 休息时长(默认:5)
- `--cycles <count>` - 工作+休息的循环次数(默认:1)
**行为说明:**
- 同一时间只能运行一个会话
- 计时器在前台运行,每分钟显示进度
- 工作会话结束后自动开始休息
- 休息结束后自动开始下一个工作会话(如果还有剩余循环次数)
- 每个工作会话都会单独保存到数据库
**JSON输出示例:**
```bash
./pomodoro start --task "撰写文档" --jsonundefinedundefined./pomodoro status
./pomodoro status --json # For programmatic useActive session: "Write documentation"
Started: 2:30 PM
Time remaining: 18 minutes./pomodoro status
./pomodoro status --json # 供程序调用使用活跃会话:"撰写文档"
开始时间:下午2:30
剩余时间:18分钟./pomodoro history --days 7 # Last 7 days
./pomodoro history --days 30 # Last 30 days
./pomodoro history --json # For programmatic use./pomodoro history --days 7 # 最近7天
./pomodoro history --days 30 # 最近30天
./pomodoro history --json # 供程序调用使用./pomodoro stats --period day # Today's stats
./pomodoro stats --period week # This week
./pomodoro stats --period month # This month
./pomodoro stats --period year # This year
./pomodoro stats --json # For programmatic use{
"period": "week",
"total_sessions": 23,
"completed": 19,
"completion_rate": 0.826,
"focus_hours": 7.9,
"productive_hours": [9, 10, 11],
"top_tasks": ["Refactoring", "Documentation", "Code review"]
}./pomodoro stats --period day # 今日统计
./pomodoro stats --period week # 本周统计
./pomodoro stats --period month # 本月统计
./pomodoro stats --period year # 本年统计
./pomodoro stats --json # 供程序调用使用{
"period": "week",
"total_sessions": 23,
"completed": 19,
"completion_rate": 0.826,
"focus_hours": 7.9,
"productive_hours": [9, 10, 11],
"top_tasks": ["重构", "文档撰写", "代码审查"]
}./pomodoro stop./pomodoro stop./pomodoro status./pomodoro start --task "Deep work on authentication"./pomodoro start --task "Sprint planning" --work 15 --break 5 --cycles 3./pomodoro start --task "Vocabulary review" --work 2 --break 1 --cycles 10./pomodoro status./pomodoro start --task "认证模块深度工作"./pomodoro start --task "冲刺规划" --work 15 --break 5 --cycles 3./pomodoro start --task "词汇复习" --work 2 --break 1 --cycles 10./pomodoro stats --period day --json./pomodoro stats --period day --json./pomodoro stats --period week --json./pomodoro stats --period week --json./pomodoro stats --period month --json # Get monthly data
./pomodoro history --days 90 --json # Review last 90 days./pomodoro stats --period month --json # 获取月度数据
./pomodoro history --days 90 --json # 查看过去90天记录./pomodoro stats --period year --json./pomodoro stats --period year --json./pomodoro statusundefined./pomodoro statusundefinedundefinedundefined./pomodoro stop./pomodoro stop./pomodoro stats --period month --json./pomodoro stats --period month --jsonundefinedundefined--work--workundefinedundefinedundefinedundefined--json./pomodoro status --json
./pomodoro history --json
./pomodoro stats --json--json./pomodoro status --json
./pomodoro history --json
./pomodoro stats --json~/.claude/skills/pomodoro/pomodoro.dbsessionsCREATE TABLE sessions (
id INTEGER PRIMARY KEY,
task TEXT NOT NULL,
duration INTEGER NOT NULL,
started_at TEXT NOT NULL,
completed_at TEXT
);~/.claude/skills/pomodoro/pomodoro.dbsessionsCREATE TABLE sessions (
id INTEGER PRIMARY KEY,
task TEXT NOT NULL,
duration INTEGER NOT NULL,
started_at TEXT NOT NULL,
completed_at TEXT
);Work 25min → Break 5min → Work 25min → Break 5min → Work 25min → Break 5min → Done工作25分钟 → 休息5分钟 → 工作25分钟 → 休息5分钟 → 工作25分钟 → 休息5分钟 → 结束~/.claude/skills/pomodoro/pomodoro./pomodoro~/.claude/skills/pomodoro/pomodorocd ~/.claude/skills/pomodoro
./pomodoro start --task "Task name"~/.claude/skills/pomodoro/pomodoro./pomodoro~/.claude/skills/pomodoro/pomodorocd ~/.claude/skills/pomodoro
./pomodoro start --task "任务名称"