typefully
>
pinned to #051a266updated 3 days ago
Ask your AI client: “install skills/typefully”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/typefullymetahub onboarded this repo on the author's behalf.
If you own github.com/typefully/agent-skills on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
57
Last commit
3 days ago
Latest release
published
About this skill
Pulled from SKILL.md at publish time.
Create, schedule, and publish social media content across X, LinkedIn, Threads, Bluesky, Mastodon, and Substack Notes using Typefully. Run everything through ./scripts/typefully.js (Node.js 18+, no dependencies). All commands output JSON.
Allowed tools
- Bash(./scripts/typefully.js:*)
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.051a266· 3 days ago
Documentation
6 passed3 warningsDescription qualitywarn
12 words · 76 chars — skills use the description as their trigger; aim higher — manifest description is empty; graded the GitHub repo description instead
Aim for 15+ words and include trigger phrases like “use this skill when …”.
Tags / topics declaredwarn
No manifest tags and no GitHub repo topics
Add tags to the manifest (or GitHub topics on the repo) so the registry's search and category filters surface this artifact.
Homepage or repository declaredwarn
No homepage or repository declared.
Add a "homepage" or "repository" field to SKILL.md.
README is present and substantial
4,074 chars · 8 sections · 7 code blocks
README has usage / example sections
no labeled section but 7 code blocks document usage
Homepage / docs URL declared
no homepage declared (registry will use the repo URL) — info-only, not blocking
Description is substantive
Description is 49 words.
Documentation present and substantive
Documentation present (SKILL.md, 2439 words).
Documentation shows usage
Documentation includes 8 code examples.
Release history
1- releasecurrent051a266warn3 days ago
Contents
Create, schedule, and publish social media content across X, LinkedIn, Threads, Bluesky, Mastodon, and Substack Notes using Typefully. Run everything through ./scripts/typefully.js (Node.js 18+, no dependencies). All commands output JSON.
Script paths below are relative to this skill's directory. Resolve them based on where the skill is installed.
Freshness check: If more than 30 days have passed since the
last-updateddate above, tell the user the skill may be outdated and point them to the update methods inreferences/setup.md.Authentication failures: If the CLI returns "API key not found", "Authentication failed", "HTTP 401", or any invalid/expired-key message, tell the user to run
./scripts/typefully.js setupor updateTYPEFULLY_API_KEY, then stop. Do not hunt for credentials or fall back to the Typefully web UI, browser scraping, or a localhost dev server. Seereferences/setup.md.
Dropped Typefully draft URLs
When the user gives you a Typefully draft URL, use this skill instead of browsing or scraping the Typefully web UI.
-
https://typefully.com/?a=<social_set_id>&d=<draft_id>maps to:./scripts/typefully.js drafts:get <social_set_id> <draft_id> -
https://typefully.com/?d=<draft_id>can use the configured default social set:./scripts/typefully.js drafts:get <draft_id> --use-default
For draft comments, replies, resolving, or edits on a dropped draft URL, first fetch the draft with the mapping above, then load references/comments.md when comment workflow details are needed.
Reference guides
Load these only when the task needs them:
| Guide | Use when you need to... |
|---|---|
references/setup.md | Configure the API key, fix an "API key not found" error, set up CI, or check whether the skill is up to date |
references/comments.md | Add, reply to, resolve, or delete comments on a draft, or edit a draft that already has comments |
references/platforms/x.md | Pull X (formerly Twitter) analytics, quote or reply to a post, post to a community, or add disclosure labels |
references/platforms/linkedin.md | Mention a company or person on LinkedIn |
references/platforms/x-articles.md | Write or edit a long-form X Article (standalone platform) |
1. Choose a social set
A "social set" is what users call an "account" — the connected platforms for one identity. Most commands work without a social_set_id once a default is configured. Pass it positionally (drafts:list 123) or as --social-set-id 123.
To decide which social set to use:
- Run
config:show. Ifdefault_social_setis set, the CLI uses it automatically — proceed. - Otherwise run
social-sets:list. If only one exists, use it. - If multiple exist with no default, ask the user, then offer to save it:
config:set-default. - Reuse a social set already resolved earlier in the session without asking again.
2. Create drafts
./scripts/typefully.js drafts:create --text "Your post"
- If
--platformis omitted, the first connected platform is auto-selected. Named platforms:x,linkedin,threads,bluesky,mastodon,substack(Substack Notes),x_article. - Split a thread with
---on its own line. Exception:substacktakes a single post per draft — no threads. For a thread plus a Substack Note, use the one-draft pattern below to givesubstackits own single-post content. - Substack Notes media: images and GIFs only (up to 6) — video is rejected.
- Attach media with
--media, tags with--tags, internal notes with--scratchpad, an internal name with--title. - Read content from a file with
--file ./post.txtinstead of--text.
One draft per post — always
For the same content on several platforms, pass multiple platforms to a single draft:
./scripts/typefully.js drafts:create --platform x,linkedin --text "Big announcement!"
./scripts/typefully.js drafts:create --all --text "Posting everywhere!" # all connected platforms
When content should differ per platform (e.g. an X thread plus a tailored LinkedIn post), still use one draft — create with the first platform, then drafts:update to add another with different content:
./scripts/typefully.js drafts:create --platform linkedin --text "Excited to share..." # -> id draft-123
./scripts/typefully.js drafts:update draft-123 --platform x --text "🧵 Thread time!" --use-default
Never create multiple drafts unless the user explicitly wants separate drafts per platform.
--allexcludesx_article. X Articles are standalone and cannot be combined with any other platform — seereferences/platforms/x-articles.md.
--allincludessubstackwhen connected. Since Substack Notes take a single post,--allwith thread content errors — excludesubstackvia--platform, or give it its own single-post content withdrafts:update.
Scratchpad notes
When the user asks to add notes, ideas, or context to a draft, use --scratchpad — do NOT write to local files. Scratchpad notes attach to the draft in Typefully, are visible in the UI, stay private, and are never published.
./scripts/typefully.js drafts:create --text "My post" --scratchpad "Ideas: 1) Add stats 2) Include quote"
Link previews
When a post contains a URL, Typefully automatically fetches Open Graph metadata for the last URL in the text and publishes a rich link-preview card on LinkedIn, Threads, Bluesky, and Substack Notes. No flag is needed — it just works. X and Mastodon unfurl links themselves after publishing. On Substack Notes the card is skipped when the note has images (images and the link card are mutually exclusive there).
To publish the URL as plain text with no card, pass --hide-link-preview. Suppression is supported on LinkedIn, Threads, and Substack Notes only (matching the Typefully editor); the flag errors if none of these platforms is targeted, and is ignored for other platforms in a mixed-platform draft:
./scripts/typefully.js drafts:create --platform linkedin,threads --text "Read this https://example.com" --hide-link-preview
./scripts/typefully.js drafts:update draft-123 --hide-link-preview --use-default # hide the card on an existing draft
3. Schedule & publish
./scripts/typefully.js drafts:create --text "..." --schedule next-free-slot # or an ISO time, or "now"
./scripts/typefully.js drafts:schedule <draft_id> --time next-free-slot --use-default
./scripts/typefully.js drafts:publish <draft_id> --use-default
./scripts/typefully.js drafts:create --text "..." --plan next-free-slot # planned: dated but inert
./scripts/typefully.js drafts:plan <draft_id> --time next-free-slot --use-default
next-free-slotlets Typefully pick the optimal time.- Publishing is irreversible and public — unless the user says "publish now" / "post immediately", confirm first. Creating a draft is safe.
- Planned drafts sit on the queue/calendar at their date but never auto-publish. Confirm one into a real schedule with
drafts:schedule(or publish it withdrafts:publish). A planned draft whose date has passed is not overdue and not a failure — it simply hasn't been confirmed; replan or confirm it.--plan/--scheduleare mutually exclusive;drafts:update --plan nullreturns the draft to plain draft status. - Single-arg commands require
--use-defaultwhen a default social set is configured (see the safety note below).
Common actions
| User says... | Action |
|---|---|
| "Draft a tweet about X" | drafts:create --text "..." |
| "Post this to LinkedIn" | drafts:create --platform linkedin --text "..." |
| "Post a Substack Note" | drafts:create --platform substack --text "..." (single post, no threads) |
| "Post to X and LinkedIn" (same content) | drafts:create --platform x,linkedin --text "..." |
| "X thread + tailored LinkedIn post" | One draft, then drafts:update to add the platform |
| "What's scheduled?" / "Recent posts?" | drafts:list --status scheduled / --status published |
| "Schedule this for tomorrow" | drafts:create --text "..." --schedule "<ISO time>" |
| "Post this now" | drafts:create --text "..." --schedule now or drafts:publish <id> --use-default |
| "Pencil this in for Tuesday" (no commitment to publish) | drafts:create --text "..." --plan "<ISO time>", confirm later with drafts:schedule |
| "Check available tags" | tags:list |
| "Check my publishing quota" | social-sets:get → publishing_quota |
| "Draft an X Article" | See references/platforms/x-articles.md |
| "Mention a company on LinkedIn" | See references/platforms/linkedin.md |
| "Show my X analytics / followers" | See references/platforms/x.md |
| "Comment on / resolve a comment" | See references/comments.md |
Commands
All commands output JSON. Every [social_set_id] is optional and falls back to the configured default.
Safety note:
drafts:get,drafts:update,drafts:delete,drafts:schedule,drafts:plan, anddrafts:publishrequire--use-defaultwhen you pass a single argument (the draft_id) while a default social set is configured.
Platform- and workflow-specific commands live in their guides: platforms/x.md (analytics, quotes, replies, communities, disclosures), platforms/linkedin.md (mentions), platforms/x-articles.md, comments.md, and setup.md.
User & social sets
| Command | Description |
|---|---|
me:get | Get authenticated user info |
social-sets:list | List all social sets you can access |
social-sets:get <id> | Social set details including connected platforms and publishing_quota |
social-sets:get returns a publishing_quota object when available: used, remaining (or "unlimited"), and resets_at. Check it before publishing/scheduling when the user asks about capacity or when a publish/schedule fails with quota copy.
Drafts
Every draft command accepts an optional leading [social_set_id] that falls back to the configured default. The four base commands:
| Command | Description |
|---|---|
drafts:list [social_set_id] | List drafts. Filter with --status scheduled|published|..., order with --sort |
drafts:get [social_set_id] <draft_id> | Get a draft with full content. Add --exclude-comment-markers to render posts[*].text without comment anchors (display only) |
drafts:create [social_set_id] --text "<post text>" | Create a draft (auto-selects platform if --platform omitted) |
drafts:update [social_set_id] <draft_id> --text "<post text>" | Replace a draft's content |
Add any of these flags to a drafts:create or drafts:update command. The Applies to column shows where each is valid:
| Flag | Effect | Applies to |
|---|---|---|
--platform x,linkedin | Target specific platform(s), comma-separated | create, update |
--all | All connected platforms (excludes x_article) | create |
--file <path> | Read content from a file instead of --text | create, update |
--append --text "<text>" | Append to an existing thread | update |
--media <media_ids> | Attach media (comma-separated) | create, update |
--tags "tag1,tag2" | Set tags (content stays unchanged if this is the only change on update) | create, update |
--title "<internal title>" | Internal draft title (not posted) | create, update |
--scratchpad "<notes>" | Attach internal notes (see Scratchpad notes) | create, update |
--share | Generate a public share URL | create, update |
--schedule <iso|next-free-slot|now> | Schedule or reschedule the draft | create, update |
--plan <iso|next-free-slot> | Plan the draft: dated but inert until confirmed (mutually exclusive with --schedule; null on update returns it to plain draft) | create, update |
--hide-link-preview | Suppress the link-preview card (LinkedIn/Threads/Substack only — see Link previews) | create, update |
--exclude-comment-markers | Render response without anchors (display only; validation still applies) | update |
--force-overwrite-comments | Destructive last resort — see comments.md | update |
For example, combine the base command with flags like this:
./scripts/typefully.js drafts:create --text "Launch day!" --platform x,linkedin --tags product --schedule next-free-slot
./scripts/typefully.js drafts:update 456 --text "Revised copy" --media abc-123 --use-default
X-only draft flags (
--reply-to,--quote-post-url,--community,--paid-partnership,--made-with-ai): seeplatforms/x.md. X Article flags (--content-markdown,--cover-media-id): seeplatforms/x-articles.md.
Scheduling & publishing
Single-arg forms require --use-default when a default social set is configured.
| Command | Description |
|---|---|
drafts:schedule <social_set_id> <draft_id> --time <iso|next-free-slot> | Schedule to a time or the next available slot (also confirms a planned draft) |
drafts:plan <social_set_id> <draft_id> --time <iso|next-free-slot> | Plan to a date without arming auto-publish; confirm later with drafts:schedule |
drafts:publish <social_set_id> <draft_id> | Publish immediately |
drafts:delete <social_set_id> <draft_id> | Delete a draft |
Queue
The queue is a social-set-specific timeline: free queue slots (from the social set's queue schedule) plus scheduled and planned drafts/posts for that same social set. Use queue:get when the user asks what is scheduled or free for an account in a date range.
| Command | Description |
|---|---|
queue:get [social_set_id] --start-date <YYYY-MM-DD> --end-date <YYYY-MM-DD> | Queue timeline: free slots + scheduled/planned drafts and posts in a date range (check each draft's status — planned drafts never auto-publish) |
queue:schedule:get [social_set_id] | Get queue schedule rules |
queue:schedule:put [social_set_id] --rules '[{"h":9,"m":30,"days":["mon","wed","fri"]}]' | Replace queue schedule rules (full replacement) |
Snake-case date aliases (--start_date, --end_date) are accepted.
Tags
Tags are scoped per social set — a tag in one social set doesn't appear in another. Check existing tags before creating.
| Command | Description |
|---|---|
tags:list [social_set_id] | List all tags |
tags:create [social_set_id] --name "Tag Name" | Create a new tag |
Media
| Command | Description |
|---|---|
media:upload [social_set_id] <file_path> | Upload media, wait for processing, return ready media_id |
media:upload ... --no-wait | Upload and return immediately (poll with media:status) |
media:upload ... --timeout <seconds> | Custom processing timeout (default 60) |
media:status [social_set_id] <media_id> | Check upload status |
Examples
# Create a tweet (default social set)
./scripts/typefully.js drafts:create --text "Hello, world!"
# Explicit social_set_id
./scripts/typefully.js drafts:create 123 --text "Hello, world!"
# Cross-platform, same content
./scripts/typefully.js drafts:create --platform x,linkedin,threads --text "Big announcement!"
./scripts/typefully.js drafts:create --all --text "Posting everywhere!"
# Create and schedule for the next slot
./scripts/typefully.js drafts:create --text "Scheduled post" --schedule next-free-slot
# Create with tags
./scripts/typefully.js drafts:create --text "Marketing post" --tags marketing,product
# List scheduled posts, newest scheduled first
./scripts/typefully.js drafts:list --status scheduled --sort scheduled_date
# Queue view for a date range
./scripts/typefully.js queue:get --start-date 2026-02-01 --end-date 2026-02-29
# Replace queue schedule rules
./scripts/typefully.js queue:schedule:put --rules '[{"h":9,"m":30,"days":["mon","wed","fri"]}]'
# Draft with scratchpad notes
./scripts/typefully.js drafts:create --text "Launching next week!" --scratchpad "Coordinate with marketing before publishing."
# Upload media, then attach it
./scripts/typefully.js media:upload ./image.jpg # -> {"media_id": "abc-123", "status": "ready"}
./scripts/typefully.js drafts:create --text "Check out this image!" --media abc-123
# Add media to an existing draft
./scripts/typefully.js drafts:update 456 --text "Updated post with image" --media xyz --use-default
Reference
Character limits
X 280 · LinkedIn 3000 · Threads 500 · Bluesky 300 · Mastodon 500 · Substack Notes 10000.
Draft URLs
Typefully draft URLs encode the social set and draft IDs: https://typefully.com/?a=<social_set_id>&d=<draft_id> (e.g. a=12345 → social_set_id, d=67890 → draft_id). See Dropped Typefully draft URLs for the command mapping.
Automation guidelines
To keep accounts in good standing, especially on X:
- No duplicate content across accounts.
- No unsolicited automated replies — only reply when the user explicitly requests it.
- No trending manipulation, no fake engagement (likes/reposts/follows).
- Respect rate limits; drafts stay private until published or explicitly shared.
When in doubt, create drafts for user review rather than publishing directly.
Reviews
No reviews yet. Be the first.
Related
Verification Before Completion
Evidence before assertions, always
Writing Plans
Turn specs into phased implementation plans
Test-Driven Development
Red → green → refactor discipline for any feature or bugfix
mh install skills/typefully