Skip to content

feat: buffer-squad — single-agent Buffer scheduling via @bufferapp/cli - #32

Open
0xthc wants to merge 1 commit into
mainfrom
social-media-squad
Open

feat: buffer-squad — single-agent Buffer scheduling via @bufferapp/cli#32
0xthc wants to merge 1 commit into
mainfrom
social-media-squad

Conversation

@0xthc

@0xthc 0xthc commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New squad buffer-squad@0.3.0 — single-agent social media scheduling that drives a Buffer account through the official @bufferapp/cli, authenticated by BUFFER_API_KEY from the vault.
  • Eleven skills covering the full loop: CLI surface reference (commands + enums + IDs + safe-publish), per-channel Tone Profile extraction (gate before any drafting), channel discovery, strategy & goals (≤3 outcomes, 3–5 pillars as Buffer tags), per-service playbooks, cadence + posting-limit discipline, post drafter (--dry-run mandatory), evening queue audit, weekly output report, ideas capture, and an engagement-advisory honesty layer for what Buffer's API does not expose.
  • Crons: evening queue audit (17:00 PT daily) + weekly output report (Mon 09:00 PT).
  • Honest scope: Buffer's API has no analytics / engagement / impressions / follower / comment / DM surface. Buffer-agent reports volume, consistency, pillar mix, errors, and tone drift — and redirects to native analytics for the rest. It does not invent metrics.

What you'll need

  • Buffer account with channels connected
  • API token from publish.buffer.com/settings/api → vault team.buffer_api_key
  • Node.js 18+ in the pod (CLI installs via npm install -g @bufferapp/cli)

Test plan

  • node scripts/validate.mjs squads/buffer-squad exits 0 (verified locally)
  • Install the squad on a test pod and run onboarding through Step 4 (channel discovery)
  • Verify Tone Profile generation produces one file per connected channel under wiki/Knowledge/Buffer/ToneProfiles/
  • Dispatch a baseline audit and confirm the spawned session's agent_id is buffer-agent
  • Trigger the evening queue audit cron manually and confirm --dry-run precedes any buffer posts create
  • Confirm the weekly output report does not surface engagement / impression numbers
  • Smoke-test an on-demand drafting brief ("draft 2 LinkedIn posts about X") end to end

🤖 Generated with Claude Code

…icial Buffer CLI

Deploys Buffer-agent: a focused operator that drives a Buffer account through
@bufferapp/cli authenticated by BUFFER_API_KEY. Eleven skills cover the full
loop — CLI surface (commands + enums + IDs + safe-publish), per-channel Tone
Profile extraction (the gate before any drafting), channel discovery, strategy
& goals (≤3 outcomes, 3–5 pillars as Buffer tags), per-service playbooks,
cadence + posting-limit discipline, post drafter, evening queue audit, weekly
output report, ideas capture, and an engagement-advisory honesty layer for the
parts of social ops Buffer's API does not expose (no analytics, no comments,
no DMs).

Crons: evening queue audit (17:00 PT daily) + weekly output report (Mon 09:00
PT). Vault: team.buffer_api_key. Tools: vault, cron, image-generation,
web_search, web_fetch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 4, 2026 00:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new deployable squad bundle, buffer-squad@0.3.0, that adds a single dedicated agent (buffer-agent) for social media scheduling through the official @bufferapp/cli, including onboarding guidance, two scheduled crons, and a set of operational skills (tone profiling, drafting, queue audits, weekly reporting, ideas capture) with an explicit “no analytics via Buffer” boundary.

Changes:

  • Adds the buffer-squad bundle scaffolding (manifest, docs, memory index) and the buffer-agent definition (identity/soul/memory).
  • Adds two cron jobs (evening queue audit + weekly output report) targeting buffer-agent.
  • Adds 11 Buffer-focused skills covering CLI usage, discovery, tone profiling, drafting/scheduling with --dry-run, audits/reports, and engagement/analytics scope boundaries.

Reviewed changes

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

Show a summary per file
File Description
squads/buffer-squad/SQUAD.md User-facing squad description and scope boundaries.
squads/buffer-squad/ONBOARD.md Step-by-step onboarding runbook for the co-founder.
squads/buffer-squad/MEMORY.md Squad-level memory/index pointers and filing conventions.
squads/buffer-squad/manifest.json Bundle metadata + required vault secret + tool permissions.
squads/buffer-squad/crons/jobs.json Two scheduled jobs targeting buffer-agent with detailed payload instructions.
squads/buffer-squad/agents/buffer-agent/agent.json Declares the buffer-agent and its loaded skills.
squads/buffer-squad/agents/buffer-agent/IDENTITY.md Agent role, scope, and operating constraints.
squads/buffer-squad/agents/buffer-agent/SOUL.md Agent behavioral rules, boundaries, escalation policy, and output discipline.
squads/buffer-squad/agents/buffer-agent/MEMORY.md Agent-specific memory template for channels/pillars/cadence/tone-profile pointers.
squads/buffer-squad/agents/buffer-agent/skills/buffer-cli-toolkit.md Reference for installing/authing/operating the Buffer CLI safely.
squads/buffer-squad/agents/buffer-agent/skills/buffer-channel-discovery.md Procedure for org/channel/tag discovery and MEMORY stamping.
squads/buffer-squad/agents/buffer-agent/skills/buffer-channel-tone-extraction.md Procedure to build per-channel Tone Profiles from recent sent posts.
squads/buffer-squad/agents/buffer-agent/skills/buffer-strategy-and-goals.md Procedure to define goals/pillars/cadence and map pillars to Buffer tags.
squads/buffer-squad/agents/buffer-agent/skills/buffer-platform-playbooks.md Service-specific PostType/metadata/publishing-mode guidance.
squads/buffer-squad/agents/buffer-agent/skills/buffer-cadence-and-timing.md Scheduling mode/timing guidance plus limit-check discipline.
squads/buffer-squad/agents/buffer-agent/skills/buffer-post-drafter.md End-to-end drafting/scheduling workflow with Tone Profile + --dry-run gating.
squads/buffer-squad/agents/buffer-agent/skills/buffer-queue-health.md Evening queue-depth audit procedure and gap-filling workflow.
squads/buffer-squad/agents/buffer-agent/skills/buffer-weekly-audit.md Weekly output report procedure (volume/pillars/errors/tone drift/queue health).
squads/buffer-squad/agents/buffer-agent/skills/buffer-ideas-capture.md Procedure to capture angles into Buffer Ideas + local wiki audit trail.
squads/buffer-squad/agents/buffer-agent/skills/buffer-engagement-advisory.md Honest redirect for engagement/analytics asks + what the agent can do instead.

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


Required only for `--mode customScheduled`. ISO 8601, timezone-aware (e.g. `2026-06-10T09:00:00-07:00`). Rules:

- Minimum: `now() + 60 seconds`. Buffer rejects schedules in the past.
Comment on lines +90 to +98
| Service | Reference best time | Best post type | Reference engagement rate |
|---|---|---|---|
| Facebook | ~5 a.m. Mondays | Picture | ~3.6% |
| Instagram | ~3 p.m. Fridays | Reels (reach) | ~4.3% |
| TikTok | ~8 p.m. Sundays | Video | ~4.86% |
| X / Twitter | ~9 a.m. Wednesdays | Text | ~2.15% |
| LinkedIn | ~11 a.m. Thursdays | Carousel / PDF | ~6.5% |

These rates are **measured outside Buffer**. Buffer-agent cannot verify or report them. The user (or the monthly review) folds in native-analytics numbers; we only choose the schedule.
@getpancake getpancake Bot added the P3 Low: nice-to-have, can be deferred label Jun 8, 2026
@getpancake

getpancake Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Triage Assessment — P3 (Low Priority)

Classification: New squad feature, deferred

This PR introduces buffer-squad@0.3.0, a single-agent social media scheduling squad using the @bufferapp/cli. The implementation looks complete with 11 skills, two crons, and an honest scope boundary (no analytics surface). No production system is affected by merging or deferring this.

Rationale for P3: This is a net-new capability addition with no blocking urgency. The test plan is reasonable but requires a live Buffer account for validation. No existing squad bundles are modified. Merge when the test plan is cleared on a real pod.

Action items:

  • Validate with node scripts/validate.mjs squads/buffer-squad in CI
  • Full onboarding smoke-test on a test pod before merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low: nice-to-have, can be deferred

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants