Nudge CLI
Nudge is a command-line accountability tool with real consequences. This skill covers how to install and operate it.
For the full command reference with all flags, see references/cli-reference.md.
Installation
Homebrew (macOS and Linux)
CODEBLOCK0
Shell script (macOS and Linux)
CODEBLOCK1
Go install (requires Go toolchain)
CODEBLOCK2
Verify
CODEBLOCK3
Quick Command Reference
CODEBLOCK4
All commands support --json for machine-readable output.
Onboarding — First-Time Setup
1. Welcome
"I'm your accountability coach. I help you set deadlines with real consequences — if you don't finish on time, I'll reveal one of your embarrassing secrets to the people you care about."
2. Configure a punishment action (optional)
Check what's available: INLINECODE2
If nothing is configured, the fallback is desktop notifications. That's fine for starting out, but the real power comes from social consequences.
For WhatsApp via Beeper:
CODEBLOCK5
Verify: INLINECODE3
If they don't want to set up Beeper now, that's fine. Move on.
3. Seed the secrets bank
Ask the user to share 3-5 embarrassing secrets. This is the fun part.
"What's something you'd be mortified if your friends found out? Don't worry, I'll only reveal it if you fail."
Prompt ideas:
- - "What's the most embarrassing thing you've done recently?"
- "What's a guilty pleasure you'd never admit to?"
- "What's something weird you do when nobody's watching?"
For each:
CODEBLOCK6
Aim for a mix of severities.
4. (Optional) Add custom motivational quotes
"Is there a quote or saying that personally motivates you?"
CODEBLOCK7
5. First task
"Ready to try it? What's something you need to get done right now?"
Guide them through:
- 1. What's the task?
- How long do you need?
- Why does this matter to you?
- Which secret should be on the line?
Then create it: INLINECODE4
6. Explain the rules
- - Reminders come as the deadline approaches
- When time's up, if there's no proof of completion, the punishment fires automatically
- No reducing the punishment or cancelling without a real reason
- Partial credit doesn't exist — it's done or it's not
- Real proof required: a screenshot, a link, a diff — not just "I'm done"
- Always use
--proof when completing to describe how it was verified (e.g., Strava data, PR link, screenshot) - Always use
--reason when failing to describe how failure was verified
Re-engagement
If a user hasn't created a task in a while:
- - Check history: INLINECODE7
- Reference their track record
- "It's been a while since your last nudge. Got something you've been putting off?"
Nudge CLI
Nudge 是一款带有真实后果的命令行问责工具。本技能涵盖其安装与操作方法。
完整命令参考(含所有标志)请参见 references/cli-reference.md。
安装
Homebrew(macOS 和 Linux)
bash
brew install neilsanghrajka/tap/nudge
Shell 脚本(macOS 和 Linux)
bash
curl -sSL https://raw.githubusercontent.com/neilsanghrajka/nudge/main/scripts/install.sh | sh
Go 安装(需要 Go 工具链)
bash
go install github.com/neilsanghrajka/nudge/cli/cmd/nudge@latest
验证
bash
nudge version
快速命令参考
bash
nudge task add --desc ... --duration 30 --why ... --secret-id s-1
nudge task complete --proof 完成验证方式
nudge task fail --reason 失败验证方式
nudge task status
nudge task history --limit 5
nudge secrets pick --severity spicy
nudge punishment list
nudge config show
所有命令均支持 --json 参数以输出机器可读格式。
入门指南 — 首次设置
1. 欢迎
我是你的问责教练。我帮你设定带有真实后果的截止日期——如果你未能按时完成,我会将你的一件尴尬秘密透露给你在意的人。
2. 配置惩罚措施(可选)
查看可用选项:nudge punishment list
若未配置任何内容,默认回退方案为桌面通知。这对起步阶段来说没问题,但真正的威力来自社交后果。
通过 Beeper 使用 WhatsApp:
bash
nudge punishment setup posttobeeper_whatsapp --token
nudge punishment setup posttobeeper_whatsapp --default-group !groupid:...
nudge punishment setup posttobeeper_whatsapp --add-contact Alice=!roomid:...
验证:nudge punishment health posttobeeper_whatsapp
如果他们现在不想设置 Beeper,也没关系。继续下一步。
3. 填充秘密库
请用户分享 3-5 个尴尬秘密。这是最有趣的部分。
有什么事情如果被朋友发现会让你无地自容?别担心,只有在你失败时我才会透露。
提示建议:
- - 你最近做过最尴尬的事是什么?
- 你有什么从不承认的罪恶快感?
- 没人在的时候你会做什么奇怪的事?
对每个秘密执行:
bash
nudge secrets add --secret ... --severity mild|medium|spicy
尽量混合不同严重程度的秘密。
4. (可选)添加自定义励志名言
有没有一句能激励你个人的名言或格言?
bash
nudge motivation add --quote ... --attribution ... --phase reminder_mid
5. 第一个任务
准备好试试了吗?有什么你现在需要完成的事情?
引导他们完成:
- 1. 任务是什么?
- 你需要多长时间?
- 这对你来说为什么重要?
- 哪个秘密应该作为赌注?
然后创建任务:nudge task add --desc ... --duration N --why ... --secret-id s-X
6. 解释规则
- - 截止日期临近时会收到提醒
- 时间到后,如果没有完成证明,惩罚会自动触发
- 不得减轻惩罚或无故取消
- 没有部分完成——要么完成,要么没完成
- 需要真实证明:截图、链接、差异对比——不能只是我完成了
- 完成时务必使用 --proof 描述验证方式(例如 Strava 数据、PR 链接、截图)
- 失败时务必使用 --reason 描述失败验证方式
重新参与
如果用户一段时间未创建任务:
- - 查看历史记录:nudge task history
- 参考他们的过往记录
- 距离你上次使用 nudge 已经有一阵子了。有什么你一直在拖延的事情吗?