Home / Skills / n8n-io/nod

connected-apps

skillLicense: Apache-2.0 Source: n8n-io/nod

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit n8n-io/nod/src/runtime/skills/connected-apps .claude/skills/connected-apps

Or install it for every project:

npx degit n8n-io/nod/src/runtime/skills/connected-apps ~/.claude/skills/connected-apps

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

# Connected apps

1. Reuse known action names, schemas, connectionId and pathId. For missing schemas or account IDs, call apps SEARCH_TOOLS {query} with a narrow task query. It returns the bound accounts, so do not list them first. A large catalog includes an index: for hasFullSchema:false, query that exact tool name to get its full schema. For incoming events, use their owned account and item identity. Ask if the intended account is unclear.
2. A connected MCP server's tools are also your own tools named mcp__<server>__<tool>: load them with nod_tool_search and call them directly, or from codemode to chain calls, pass workspace file contents or filter large results. Use CONNECTED_HTTP {pathId, method, path, body?} or CONNECTED_CLI {pathId, argv} for other discovered paths, and CONNECTED_MCP_CALL {pathId, tool, input} only when a server's tool is not loaded.
3. Files that app actions return are saved privately in the workspace as {workspaceFile, name, mimeType, size}, and you see up to four returned images of at most 5 MB. When an item's substance is in its attachments, images or linked files, open them with the app's file action before you summarise or act on it; if you cannot, say what you did not open. Read saved files again with read, or bash for other formats. Download a public file link into the workspace before reading it. Keep preparation files private; share completed files with share_file. For a Composio file input that accepts workspaceFile, use {workspaceFile: path, mimeType, name?}; use an array for multiple files when the schema permits it, up to 90 MB total. The server uploads the bytes and supplies the storage reference. Never use a workspace path or URL as s3key. For other connections, use their documented upload endpoint, MCP tool or CLI file arguments.
4. Use codemode to call apps in read loops and return only relevant fields. Every call still gets the normal trust check. To find a specific Gmail message, use GMAIL_FETCH_EMAILS with a narrow query based on the known sender, topic or date and a small `max_results`. Use `ids_only:true` only when the discovered schema supports it; otherwise inspect only the small returned page's metadata and snippets, skipping sign-in, verification, password-reset and credential mail bodies. Fetch full messages or threads only for plausible candidates before drafting. IDs alone do not establish message contents or thread state. For the latest match, compare candidate `internalDate` values and inspect at most two small pages, narrowing by date when the request supplies a useful range. If more pages remain and the tool does not guarantee newest-first order, report only the newest checked candidate and say the latest match is unverified; ask for a narrower search. Read a large result's saved workspace file instead of repeating the call. Previews and partial pages are incomplete, not evidence of no result; paginate or narrow the query.
5. Check metadata and skip identifiable sign-in, verification, password-reset and credential mail without fetching bodies. Leave clearly informational items unread when no work is needed. Read full unclear ordinary items and their context, research supported answers and ask only for essential missing information. Distinguish observations, suggestions and decisions.
6. For an app that is not connected, use manage_apps discover {query} to search the available catalog by app name or task. It includes managed integrations and MCP toolkits; use the returned slug with manage_apps connect {service}. The user completes sign-in through a private link, without setting up an OAuth app. Add newAccount:true only when the user explicitly wants an additional account; existing accounts stay connected. If discovery is unavailable, report that limitation rather than claiming an integration is unsupported. For tools outside the catalog, research an official MCP, HTTP API or CLI and use manage_apps propose with the chosen path. When the service gives each region or workspace its own address, propose the documented address for the owner's account: infer it from an address they gave, or ask for their workspace address or region. An account signs in only through its own address. A CLI path names its install source: an npm or PyPI package, or an HTTPS release download for this workspace architecture, with its published sha256 when the release has one. Nod runs its own install of that source, never a CLI installed in the workspace. Check its actual authentication requirements; a registry listing alone does not establish that a tool is safe or usable. Setup uses a private link, never tokens in chat. Public access needs no connection when it meets the request and user choices.

When an app action lacks a permission, keep completed work and prepared content. Reuse a matching learned procedure for a working path. Otherwise use the same service's website with the same account, target and requested result. Ask only if the user explicitly chose a method that cannot work, or a required change affects the account, target, terms or result. Do not ask whether to use the website or describe possible sign-in work before opening it. Use saved browser sessions or sign_in when needed; their tools obtain any required approval or private entry. Explain the permission error only when it blocks progress or the user asks, and name only permissions the provider reports. For OAuth connections using a Composio auth configuration, reconnecting with an unchanged configuration cannot add scopes it does not request. Check whether that configuration needs an administrator's change before recommending reconnection. If reconnection is required, use manage_apps connect {service, connectionId} with the saved account's canReconnect:true ID. Do not repeat the failed action until its blocker changes. After a different path succeeds, save the verified procedure with skills save or patch. A saved procedure does not grant permission.

When an account is unavailable, name the app and exact saved account, say which information and dependent work you cannot check, and deliver completed work before asking for sign-in. Do not infer the cause, missed runs or restored access. Read the current connection list. For a managed account needing sign-in, canReconnect:true supports reconnecting its saved ID. With canReconnect:false, guide the user to [Apps](/apps), the named app’s accounts and Add account for the saved account identity, including its email when available, explaining that this creates an additional connection while preserving the old one. If the identity is missing or ambiguous, ask which account to use. Start newAccount:true only on an explicit request for an additional account. Do not apply this fallback to not_configured or disconnectPending entries, or to browser/Vault access; use their reported setup state and existing access path.

Earlier source IDs and results are snapshots, not a complete inventory. For broad reviews, list the full requested scope and time range before adding keyword filters. Keywords alone cannot establish coverage. For requests covering current items, refresh the relevant source with a bounded search before claiming coverage. Inspect relevant attachments and revisions, use the latest complete applicable version, and explain any missing coverage.

Run account actions directly; don't ask the user to confirm first. The server checks each action against the user's words and asks them itself when their words don't cover it. Use the selected account and exact arguments. Drafting is not sending.

Before you report an unanswered request, suggest a reply or prepare a draft, read the current thread. Check the user's replies and reactions, and later messages that can resolve the request. Search each reference across messages, including bank alerts and other threads, before treating work, an invoice or a balance as open or preparing a reminder. A search match or mention identifies a message to check. It does not prove that a request is open. For Slack, discover a thread-read tool and use the original channel and parent message. If that read is unavailable, use other read tools to check current replies and reactions in the original thread. A search of only the user's messages is incomplete. A failed or partial read, or unverified reply or reaction state, means the state is unknown. The user's own later post in a channel or thread means they have seen what came before it there. Background runs must not ask for replies to unverified requests.

Use the reconciled records for every draft, sheet and total. Correct sheets and totals within the requested work when a status changes.

Prepare a reply when the user asks for one or asks you to handle the item, and in background runs; otherwise say what needs a reply and offer to draft it. Use their stated style, saved writing style or relevant own-authored examples already in context. Read more examples only when the user asks to match a style that this context does not establish. Otherwise use concise wording suitable for the recipient. Match language, tone, greeting and closing. Exclude other authors, quoted or forwarded text and unapproved assistant drafts from style evidence. Use only reported facts and opinions. Before saving, compare each factual sentence with its evidence. Put missing facts and unverified causes in questions, conditions or explicit placeholders inside the draft. Do not fill gaps and ask the owner to correct them later. Do not invent commitments, imitate typos, or put Nod's progress, source accounting or next-step offers in the draft. Include source links when requested.

For a meeting reply, read the calendar and propose a verified free slot. A failed read means availability is unknown.

For Gmail, reuse a draft only for the same connected account and returned thread ID. Research can cross threads; drafts cannot satisfy another thread. Unless the owner requests text only, showing a draft in chat does not replace saving it. When you prepare a reply and no draft matches, save it with GMAIL_CREATE_EMAIL_DRAFT and read back the account, thread and full text. Preserve existing drafts; revise one only on user request. Describe useful draft content only after verification.

Send or reply only on user request, using the original account, recipients, thread and full verified text, never a mutable draft ID alone. Use code for arithmetic and time conversions. Compare before and after values before a write. Before a calendar RSVP or change, check availability and the event; verify the account, event, attendees, response and times. Ask about unresolved ambiguity.

When the owner's current message is itself durable style feedback, save it with manage_personal_context memory_learn. Use memory_find or memory_read for existing preferences. Apply one-off corrections only to the draft; do not save inferred style. Preferences and previous approvals do not authorize outside actions. Keep internal background schedules out of alerts.