diff --git a/skills/basecamp/SKILL.md b/skills/basecamp/SKILL.md index acec7234a..8329ec525 100644 --- a/skills/basecamp/SKILL.md +++ b/skills/basecamp/SKILL.md @@ -3,7 +3,7 @@ name: basecamp description: | Interact with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards, messages, files, schedule, check-ins, timeline, recordings, templates, webhooks, - subscriptions, lineup, chat, gauges, assignments, notifications, and accounts. + subscriptions, lineup, chat, pings, gauges, assignments, notifications, and accounts. Use for ANY Basecamp question or action. triggers: # Direct invocations @@ -75,7 +75,7 @@ argument-hint: "[action] [args...]" # /basecamp - Basecamp Workflow Command -Full CLI coverage: 155 endpoints across todos, cards, messages, files, schedule, check-ins, timeline, recordings, templates, webhooks, subscriptions, lineup, chat, gauges, assignments, notifications, and accounts. +Full CLI coverage: 155 endpoints across todos, cards, messages, files, schedule, check-ins, timeline, recordings, templates, webhooks, subscriptions, lineup, chat, pings, gauges, assignments, notifications, and accounts. ## Agent Invariants @@ -171,6 +171,9 @@ basecamp --page 1 # First page only, no auto-pagination | Post with @mention | `basecamp messages create "Title" "Hey @First.Last, ..." --in --json` | | Post silently | `basecamp messages create "Title" "Body" --no-subscribe --in --json` | | Post to chat | `basecamp chat post "Message" --in --json` | +| List pings | `basecamp notifications --json --jq '.data.reads[]? | select(.section == "pings")'` | +| Read ping thread | `basecamp api get "/buckets//chats//lines.json" --agent` | +| Post to ping thread | `basecamp api post "/buckets//chats//lines.json" --data '{"content":"

message

"}' --json` | | Add comment | `basecamp comments create "Text" --in --json` | | List attachments | `basecamp attachments list --json` | | Download attachments | `basecamp attachments download --out /tmp/` | @@ -826,6 +829,38 @@ basecamp chat line --in # Show line basecamp chat delete --in --force # Delete line (permanent, not trashable) ``` +### Pings (Direct Messages) + +Pings are Basecamp's 1-on-1 and small-group direct messages. They are stored as chat transcripts in `Circle` buckets and use the same line API shape as Campfires. + +Use `notifications` to discover active ping threads, then use the generic `api` command to read or post lines. + +```bash +# Find ping threads visible in notifications. +# circle_id is the Circle bucket ID from the UI URL; chat_id identifies the Chat::Transcript. +basecamp notifications --json \ + --jq '.data.reads[]? | select(.section == "pings") | {bucket_name, app_url, circle_id: (.subscription_url | capture("/buckets/(?[0-9]+)/").id), chat_id: (.subscription_url | capture("/recordings/(?[0-9]+)/").id)}' + +# Read a ping thread. Lines are returned newest first. +basecamp api get "/buckets//chats//lines.json" --agent + +# Post a ping line. +basecamp api post "/buckets//chats//lines.json" \ + --data '{"content":"

Hey, quick question.

"}' --json +``` + +Ping line records include `creator.name`, `created_at`, `content` HTML, `type`, `bucket.type: "Circle"`, and attachment fields when files or voice notes are present. + +Ping URLs use `/circles/` and may include a line anchor after `@`: + +```bash +echo "https://app.basecamp.com//circles/44024535@9927050443" \ + | sed -E 's|.*/circles/([0-9]+)(@([0-9]+))?.*|circle:\1 line:\3|' +# circle:44024535 line:9927050443 +``` + +Pings are not returned by `basecamp recordings `. Use `notifications` for discovery and the chat lines API for the conversation. + ### People ```bash