/stackone:stackone-connectionfrom stackone
Use when the user wants to connect or link an account, reconnect a broken or expired connector, choose between a connector's profiles before linking, or verify that a newly linked account works. Covers linking, reconnection, profile choice, and link diagnosis. Not for running a provider action on an already-working account.
Ships in stackone. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Linking an account, repairing a broken one, picking the right connector profile, and confirming a new link all change account state. Each writes with the signed-in user's own permissions, so read the current state first, make the one change that is needed, and make no write when the state you want already holds.
If this session has no connector-profile or account-linking tools (such as stackone_get_connector_profiles or stackone_link_account), linking is not available here: tell the user to link the account in the StackOne dashboard at app.stackone.com, and do not attempt the steps below.
Find the thing before you touch it, and stop if it is already right.
stackone_get_connector_profiles {connector_key: ["<provider>"]}, or stackone_get_connector_profiles {id} for one profile. connector_key is a list.stackone_get_accounts {connector_key: ["<provider>"], expand: "connector,connector_profile"}, or
stackone_get_accounts {id, expand: "connector,connector_profile"} for one account.If the account is already linked and authenticated, or the profile already enables the action, say so and change nothing.
A connector can have several profiles (for example a production and a sandbox one), and each links through different credentials and enables different actions.
stackone_get_connector_profiles {connector_key: ["<provider>"]}. If more than one is active,
tell the user how they differ (name, environment, enabled action count) or ask what they need
before linking.id, passed as connector_profile_id. A bare
provider binds to the connector's default profile and makes the choice silently, so pass
connector_profile_id whenever more than one profile fits.stackone_link_account { connector_profile_id: "<the profile's id>", label: "Prod CRM" }
stackone_link_account returns the auth link synchronously, but the account exists only after the
user finishes in the browser. There is no status-poll tool.
stackone_get_accounts {connector_key: ["<provider>"]} and note
the account ids it returns.stackone_link_account { connector_profile_id | provider } returns
{ auth_link_url, expires_at, provider, connector_profile_id, next_steps }. Give the user the
auth_link_url to open and relay next_steps.How you reconnect an expired or deauthorized account depends on the tools this session has. A repair tool brings the same account back; a fresh link adds a new account beside the broken one.
stackone_get_accounts {id, expand: "connector,connector_profile"}.
Its connector_profile_id is the profile it links through. When that is null, choose the profile
as in "Pick the profile deliberately" above.stackone_relink_account), use it on the broken account's id.stackone_link_account has no account_id input, so it creates a new account through that
profile and leaves the broken one as it is:stackone_link_account { connector_profile_id: "<the broken account's profile id>" }
Do not delete the old account first, and do not start a bare provider link when more than one
profile exists for the connector. Confirm the repair by re-reading the account (after a fresh link,
the new one) and checking its status.
When a link looks wrong, run the actual reads and report which work and which fail, rather than guessing.
stackone_search_actions, then
stackone_execute_action { action_id, stackone_account_id }. Use a read action to test a read;
never run a write or delete to probe.Stay inside what the user asked. Do not delete accounts, change a profile's actions, suspend or re-enable accounts, message anyone other than the user, or run any write or delete action to test a read. When a step would change state the user did not ask about, stop and ask first.
Tell the user the state that now holds and how you confirmed it: the account that is linked and its status from the read-back, and the profile it linked through. If an action remains with the user (opening the auth URL, granting a provider-side permission), say what it is. Report what you did not do when you chose not to.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/stackone-actionsUse StackOne to discover connected apps, look up records, or make a user-approved change in a connected account./stackone-policiesUse when the user wants to restrict, block, guard or limit what their AI agents can do in a connected app, control who can run which actions, mask or hide fields such as emails or salaries, or enforce, disable, change or remove an existing runtime policy (rule). Covers reading, writing, testing and retiring Cedar policies and who they apply to. Not for linking or reconnecting accounts (stackone-connection), not for running a provider action, and not for reading logs to diagnose a failed call.npx claudepluginhub stackonehq/stackone-plugin --plugin stackone