Skip to content

Fix skill docs: correct commands, box names, and response formats#22

Merged
monorkin merged 3 commits intomainfrom
fix-skill-docs
Apr 1, 2026
Merged

Fix skill docs: correct commands, box names, and response formats#22
monorkin merged 3 commits intomainfrom
fix-skill-docs

Conversation

@robzolkos
Copy link
Copy Markdown
Collaborator

@robzolkos robzolkos commented Mar 9, 2026

Summary

  • Replace all hey topic references with hey threads (the actual command name)
  • Fix box names: the_feed, paper_trail, etc. → feedbox, trailbox, asidebox, laterbox, bubblebox
  • Fix hey habit complete/uncomplete — was missing required <id> argument
  • Fix hey recordings response format — documents multiple type keys, not just Calendar::Event
  • Add missing --thread-id flag to hey compose docs
  • Clarify posting IDs vs topic IDs throughout

Copilot AI review requested due to automatic review settings March 9, 2026 01:27
@robzolkos robzolkos requested a review from a team as a code owner March 9, 2026 01:27
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 9, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the HEY skill documentation to align with the actual CLI command naming and to better explain which IDs to use when reading/replying to threads.

Changes:

  • Replace hey topic references with hey threads in triggers and examples.
  • Add documentation explaining posting IDs vs topic/thread IDs, and where to find the topic/thread ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@robzolkos robzolkos changed the title Fix skill docs: topic → threads, clarify posting vs topic IDs Fix skill docs: correct commands, box names, and response formats Mar 9, 2026
Copilot AI review requested due to automatic review settings March 9, 2026 01:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@jeremy jeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs rebase

Copilot AI review requested due to automatic review settings April 1, 2026 10:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +161 to 162
**Response format:** `hey box` returns `{"box": {...}, "postings": [...]}`. Each posting has: `id` (posting ID), `topic_id` (topic ID), `name` (subject), `seen` (read status), `created_at`, `contacts`, `summary`, `app_url`. Use `topic_id` for `hey threads` and `hey reply`.

Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documented --json response shape for hey box is missing the CLI’s JSON envelope. In code, --json is explicitly "Output as JSON envelope" (it wraps results as {ok: true, data: ...}), while the raw {box: ..., postings: ...} shape corresponds to --quiet. Also, the SDK Posting used by hey box does not include a topic_id field (the CLI parses the thread/topic ID from app_url when it needs it). Please update this section to either (a) describe the envelope (.data.postings[...]) and instruct parsing the topic/thread ID from app_url, or (b) switch the invariant/examples to --quiet if you want to document raw data shapes.

Copilot uses AI. Check for mistakes.
hey threads <topic_id> --html # Read with raw HTML content
```

**ID note:** `hey box` returns postings with an `id` (posting ID) and a `topic_id` (topic ID). `hey threads` and `hey reply` expect the **topic ID** — use `topic_id` directly. The `app_url` field also contains the topic ID as a fallback (e.g. `https://app.hey.com/topics/123` → `123`).
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ID note says hey box returns both id and topic_id, and recommends using topic_id directly. However, the hey box command uses the SDK posting type (no topic_id field) and derives the thread/topic ID by parsing /topics/<id> from app_url. To avoid misleading users, please rewrite this note to treat app_url parsing as the primary way to obtain the thread/topic ID for hey threads/hey reply, and reserve id as the posting ID used by hey seen/hey unseen.

Copilot uses AI. Check for mistakes.
```

**Response format:** `hey recordings` returns `{"Calendar::Event": [...]}`. Each event has: `id`, `title`, `starts_at`, `ends_at`, `all_day`, `recurring`, `starts_at_time_zone`. Access events via `.["Calendar::Event"]` in jq.
**Response format:** `hey recordings` returns recordings grouped by type (e.g. `{"Calendar::Event": [...], "Calendar::Habit": [...], "Calendar::Todo": [...]}`). Each recording has: `id`, `title`, `starts_at`, `ends_at`, `all_day`, `recurring`, `starts_at_time_zone`. Access by type key in jq, e.g. `.["Calendar::Event"]`.
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hey recordings response-format description and jq example also omit the --json envelope. With --json, the grouped-by-type map lives under .data, so the example should reference .data["Calendar::Event"] (or document --quiet explicitly if you intend to show the raw map).

Suggested change
**Response format:** `hey recordings` returns recordings grouped by type (e.g. `{"Calendar::Event": [...], "Calendar::Habit": [...], "Calendar::Todo": [...]}`). Each recording has: `id`, `title`, `starts_at`, `ends_at`, `all_day`, `recurring`, `starts_at_time_zone`. Access by type key in jq, e.g. `.["Calendar::Event"]`.
**Response format:** With `--json`, `hey recordings` returns a JSON envelope where `data` is a map grouped by type (e.g. `{"Calendar::Event": [...], "Calendar::Habit": [...], "Calendar::Todo": [...]}`). Each recording has: `id`, `title`, `starts_at`, `ends_at`, `all_day`, `recurring`, `starts_at_time_zone`. Access by type key in jq, e.g. `.data["Calendar::Event"]`.

Copilot uses AI. Check for mistakes.
Comment on lines +121 to 123
├── Read full thread? → hey threads <topic_id> --json
├── Mark as seen? → hey seen <posting-id>
├── Mark as unseen? → hey unseen <posting-id>
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this decision tree, hey seen / hey unseen are shown without --json, but the Agent Invariants above say to always use --json for predictable output (and these commands do emit the normal JSON envelope when --json is set). Consider updating these steps to hey seen <posting-id> --json / hey unseen <posting-id> --json for consistency with the invariant.

Copilot uses AI. Check for mistakes.
- Remove nonexistent hey seen/unseen references
- Document topic_id as primary source instead of app_url parsing
- Use <topic_id> placeholders in Quick Reference table
@monorkin monorkin merged commit 79d0eda into main Apr 1, 2026
27 checks passed
@monorkin monorkin deleted the fix-skill-docs branch April 1, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants