agentleFS
flung-officialflung-official/flung-claude-plugin/skills/connect/SKILL.md

connect

Skill0 starsChanged 13 days agoMITView on GitHub

Connect or reconnect social media accounts in Flung, and set up brands to keep each customer's or product's accounts apart (one account per platform per brand). Gives the person the platform's own consent link, waits for them to approve, and confirms the account is active. Use when the person asks to connect, add, link, set up, reconnect or fix a social account (X, LinkedIn, a LinkedIn company page, a Facebook page, Instagram, Bluesky, Mastodon and the rest), to add a brand, or runs /flung:connect with a platform or brand.

64 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use connect-apps, skill-share and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArogyaReddySkill

    connect-apps

    Connect Claude to external apps like Gmail, Slack, GitHub. Use this skill when the user wants to send emails, create issues, post messages, or take actions in external services.

    Also in 19 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 17 projects that use this

  • ComposioHQSkill

    agent-deep-links

    Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

    Also in 3 projects that use this

  • ComposioHQSkill

    helium-mcp

    Search real-time news with bias scoring, get live stock/ETF/crypto data with AI analysis, ML options pricing, balanced news synthesis, and meme search via the Helium MCP server.

    Also in 3 projects that use this

  • trendinuxSkill

    twitter-algorithm-optimizer

    Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

    Also in 12 projects that use this

  • LangChainSkill

    langsmith-fetch

    Fetches LangSmith traces for debugging agent behavior. Use when troubleshooting agent issues, reviewing conversation history, or investigating tool calls.

    Also in 18 projects that use this

  • +1 more from ComposioHQ
  • +5 more from ArogyaReddy

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    A link lasts ten minutes: Do not start a second session for the same account while one is pending.

    line 16
  2. Very specific:

    See what is there: Call list_accounts with the profileId.

    line 22
  3. Very specific:

    Wait for the result: Call get_connect_session with each sessionId every few seconds until it is not pending, for up to the ten minutes.

    line 34

“Common” is measured: kept by at least 6 in 10 of the 56 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Connect and reconnect accounts

Connecting always needs the person: Flung returns the platform's consent page, and only they can approve it. You start the connect, hand over the link, wait, and confirm. You never sign in for them and never ask for a password.

The request is $ARGUMENTS. If that is empty, ask which platforms, or call find_accounts_needing_attention and offer to fix what it finds.

Rules

  • One account per platform per brand. A brand (a profile in the API) holds at most one X, one LinkedIn, one Bluesky, and so on. A second account of the same platform needs its own brand. Facebook pages and LinkedIn company pages are one account per page.
  • Reconnect, do not connect again. An account already in list_accounts that stopped working gets reconnect_account, which keeps its id and its scheduled posts. The person must sign in as the same platform user, or it fails with wrong_account.
  • A link lasts ten minutes. Do not start a second session for the same account while one is pending; if it expires, start a new one.
  • Disconnect only when asked. disconnect_account needs confirm: true and the person's explicit request for that account. To fix a broken account, reconnect it instead.

Steps

  1. Pick the brand. Call list_profiles. If the person named a brand or customer, find it by name or externalId; if there are several and none was named, ask. To add one, check list_profiles with the externalId first, then create_profile with a name (and the person's own externalId for it, if they have one). Without any brand, accounts join the workspace itself, which is its first brand.
  2. See what is there. Call list_accounts with the profileId. For each platform asked for:

    list_accounts showsDo
    No account of that platform in the brandConnect it (step 3)
    needs_reconnect or disconnected, or a reconnectBy date soonReconnect it (step 4)
    activeAlready connected: say so with its username
    active, but the person wants a different account of the same platformIt needs another brand, or the old one disconnected first: ask which
  3. Connect. Call list_platforms once and check connectable for each. For several platforms, call connect_platforms with platforms and profileId; for one, connect_account with platform and profileId. For LinkedIn company pages, pass variant: "pages" (if list_platforms lists it). Mastodon needs the person's own server, which these tools cannot pass: if the connect is refused for it, send the person to the Flung portal at https://app.flung.dev to connect Mastodon there.
  4. Reconnect. For one account, reconnect_account with its accountId. For everything that needs it, reconnect_accounts_needing_attention (it returns one link per account).
  5. Hand over every link. Give each authorizationUrl on its own line, named by platform and account, and say: open it, approve, then come back. Remind them it expires in ten minutes and, for a reconnect, to sign in as the same user.
  6. Wait for the result. Call get_connect_session with each sessionId every few seconds until it is not pending, for up to the ten minutes. If the person says they are done, check at once.

    StatusSay
    connectedConnected, with the new accountIds. Call get_account on each and report its username and status.
    failedThe platform's reason, in plain words, and offer to try again.
    expiredThe link ran out; offer a new one.
  7. Close. List what is now active per brand, and anything still waiting.

Example

The person says: "Connect our LinkedIn company page and Bluesky for the Acme brand."

  1. list_profiles finds prof_acme... named Acme.
  2. list_accounts with that profileId has no LinkedIn and no Bluesky account.
  3. list_platforms shows both connectable, and variants: ["pages"] on LinkedIn. Two calls:

    { "name": "connect_account", "arguments": { "platform": "linkedin", "variant": "pages", "profileId": "prof_acmeacmeacmeacme" } }
    { "name": "connect_account", "arguments": { "platform": "bluesky", "profileId": "prof_acmeacmeacmeacme" } }
  4. Give both links. Poll get_connect_session for cs_... of each. LinkedIn answers connected with two accountIds (two pages); Bluesky answers connected with one.
  5. Say: "Acme now has LinkedIn (Acme Inc, Acme Labs) and Bluesky (@acme.bsky.social), all active."

When a call is refused

RefusalWhat to do
platform_limit_reachedThe brand already has an account on that platform. Offer another brand, or reconnecting the one it has.
plan_limit_reachedThe plan's account or brand limit is reached: give the person the upgradeUrl. get_billing shows the limits.
wrong_accountThe person signed in as a different platform user than the account. Ask them to sign in as that user, or connect the other one in a separate brand.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.