Skip to content

feat(cli): slack, email, notion + daily briefing commands - #1

Open
Pietrovendra wants to merge 1 commit into
filopedraz:mainfrom
Pietrovendra:feat/messaging-and-briefing-clis
Open

feat(cli): slack, email, notion + daily briefing commands#1
Pietrovendra wants to merge 1 commit into
filopedraz:mainfrom
Pietrovendra:feat/messaging-and-briefing-clis

Conversation

@Pietrovendra

Copy link
Copy Markdown

Adds four self-extending pocket subcommands plus shared libs, following the append-only command contract in AGENTS.md.

New commands

  • slack — post to Slack via chat.postMessage (user token xoxp posts as you, or bot token xoxb); --thread <ts> for in-thread replies.
  • email — send mail via Gmail SMTP using an App Password.
  • notion — list open M&S Tickets from Notion (--all for everyone, --json for raw).
  • briefing — compose a short Italian morning briefing from todos.md + open Notion tickets and post it to Slack. Wired locally to a 09:15 launchd job.

Shared libs

  • lib/slack.tspostSlack() (used by slack + briefing)
  • lib/notion.tsfetchOpenTickets() (used by notion + briefing)

Security

All credentials and personal IDs live in the gitignored .env; only variable names are mirrored (commented) in .env.example. No secrets or personal identifiers in tracked source. contacts.json and todos.md are also gitignored.

🤖 Generated with Claude Code

Add four self-extending pocket subcommands plus shared libs:

- slack: post to Slack via chat.postMessage (user or bot token),
  with --thread for in-thread replies
- email: send mail via Gmail SMTP (App Password)
- notion: list open M&S tickets from Notion (--all, --json)
- briefing: compose an Italian morning briefing from todos.md +
  open Notion tickets and post it to Slack (wired to a 09:15
  launchd job locally)

Shared logic extracted into lib/slack.ts (postSlack) and
lib/notion.ts (fetchOpenTickets). All credentials and personal
IDs stay in the gitignored .env — only variable names are mirrored
in .env.example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants