In this exercise, you’ll use OpenCode to brainstorm and draft social media posts, then send them to Typefully where you can review and publish them. Typefully supports five platforms: X (Twitter), LinkedIn, Threads, Bluesky, and Mastodon — you can post to any combination from a single draft.
The workflow is conversational: you talk through ideas with your agent, refine the wording together, and the agent creates the draft in Typefully. Nothing gets published without your review.
Prerequisites
This exercise requires the Typefully skill for OpenCode. If you completed the Skills lesson, you know how to install skills. Run:
npx skills add typefully/agent-skills
You’ll also need a Typefully account and API key:
- Sign up at typefully.com — it’s free, and you can use your existing Google, X, or LinkedIn account
- Connect at least one social platform (X, LinkedIn, Threads, Bluesky, or Mastodon)
- Generate an API key at Settings > API
- Add the key to your shell profile (
~/.zshrcor~/.bashrc):
export TYPEFULLY_API_KEY=your_key_here
Restart OpenCode after adding the key so it picks up the new environment variable.
What you’ll do
Brainstorm — Tell your agent what you want to post about. It could be something you learned, a project you’re working on, a hot take, a question — anything. The agent will help you shape the idea and write the text.
Draft — The agent creates your post as a Typefully draft. You’ll see it in the Typefully web app, where you can edit the text, choose which platforms to post to, and schedule it for a specific time or publish immediately.
Thread (optional) — If you have a bigger idea, try creating a thread — a series of connected posts that tell a story or walk through an explanation. Threads work well on X and LinkedIn.
Posts always go to drafts first, never straight to publishing. Typefully is the review step where you decide what goes live and where.
Writing tips
Good social posts tend to share a few traits:
- Lead with a hook — the first line decides whether anyone reads the rest
- Write like you talk. Stiff, formal language gets scrolled past.
- Keep it focused. One idea per post. If you have three ideas, that’s three posts.
- Ask a question or share an opinion — posts that invite a response get more engagement than announcements
Your agent can help you rewrite and tighten your drafts. Don’t settle on the first version.
Scheduling
Typefully has a scheduler — you can tell your agent to schedule a post for a specific date and time instead of just saving it as a draft. This is useful for posting at peak hours or batching a week’s worth of content in one sitting.
Going further
The Typefully API can do more than create text drafts. A few things to try:
- Attach images, videos, GIFs, or PDFs to your posts
- Organize drafts with tags (useful if you post about multiple topics)
- Cross-post the same content to different platforms with platform-specific text — say, a shorter version for X and a longer one for LinkedIn