Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计异常

building-nango-functions-remotely远程构建 nango 功能

Agent Skill

building-nango-functions-remotely 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

441

周安装

18

GitHub Stars

公开资料未说明

下载量

143
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:building-nango-functions-remotely(远程构建 nango 功能)
来源仓库:https://github.com/nangohq/skills
仓库路径:skills/building-nango-functions-remotely
安装命令:
npx skills add https://github.com/nangohq/skills --skill building-nango-functions-remotely
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nangohq/skills --skill building-nango-functions-remotely

简介

该技能用于远程构建和部署 Nango 函数,支持 TypeScript 单文件提交、编译、试运行及发布。

  • 适用于需要快速开发或修改 Nango Action 或 Sync 功能的用户,尤其适合无本地项目环境的情况。
  • 通过调用 Nango 的远程 API 实现函数构建,需提前规划同步策略(如时间戳、游标等)。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加,需确认权限与网络连通性。
  • building-nango-functions-remotely 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Build Nango Functions Remotely

Build Nango actions and syncs without a checked-out Nango project by sending a single-file TypeScript function to Nango's remote compile, dryrun, and deploy APIs.

When to use

  • User wants to build or modify a Nango function
  • User wants to build an action in Nango
  • User wants to build a sync in Nango

Sync Strategy Gate (required before writing code)

If the task is a sync, read references/syncs.md before writing code and state one of these paths first:

  • Checkpoint plan:

- change source (updated_at, modified_since, changed-records endpoint, cursor, page token, offset/page, since_id, or webhook) - checkpoint schema - how the checkpoint changes the provider request or resume state - whether the request still walks the full dataset or returns changed rows only - delete strategy

  • Full refresh blocker:

- exact provider limitation from the docs or sample payloads - why checkpoints cannot work here

Invalid sync implementations:

  • full refresh because it is simpler
  • saveCheckpoint() without getCheckpoint()
  • reading or saving a checkpoint without using it in request params or pagination state
  • using syncType: 'incremental' or nango.lastSyncDate in a new sync
  • using trackDeletesStart() / trackDeletesEnd() with a changed-only checkpoint (modified_after, updated_after, changed-records endpoint). Those requests omit unchanged rows, so trackDeletesEnd() will falsely delete them.
  • using trackDeletesStart() / trackDeletesEnd() in an incremental sync that already has explicit deleted-record events

Choose the Path

Action:

  • One-time request, user-triggered, built with createAction()
  • Read references/actions.md before writing code

Sync:

  • Scheduled or webhook-driven cache updates built with createSync()
  • Complete the Sync Strategy Gate first
  • Read references/syncs.md before writing code

Required Inputs (Ask User if Missing)

Always:

  • Integration ID (provider name)
  • Connection ID (for validation or dryrun)
  • Script/function name (kebab-case)
  • API reference URL or sample response

Action-specific:

  • Use case summary
  • Input parameters
  • Output fields
  • Metadata JSON if required
  • Test input JSON for validation/dryrun (required; use {} for no-input actions)

Sync-specific:

  • Model name (singular, PascalCase)
  • Frequency (every hour, every 5 minutes, etc.)
  • Checkpoint schema (timestamp, cursor, page token, offset/page, since_id, or composite)
  • How the checkpoint changes the provider request or resume state
  • Delete strategy (deleted-record endpoint/webhook, or why full refresh is required)
  • If proposing a full refresh, the exact provider limitation that blocks checkpoints from the docs/sample response
  • Metadata JSON if required (team_id, workspace_id)

If any required external values are missing, ask a targeted question after checking the repo and provider docs. For syncs, choose a checkpoint plus deletion strategy whenever the provider supports one. If you cannot find a viable checkpoint strategy, state exactly why before writing a full refresh.

Non-Negotiable Rules

Shared platform constraints

  • Nango functions use createAction() / createSync().
  • You cannot add arbitrary packages. Use relative imports only when the chosen workflow supports them; built-ins include zod, crypto/node:crypto, and url/node:url.
  • Use the Nango HTTP API for connection lookup, credentials, and proxy calls outside function code. Do not invent CLI token or connection commands.
  • Add an API doc link comment above each provider call.
  • Action outputs cannot exceed 2MB.
  • HTTP retries default to 0; set retries deliberately. Treat 3 as the normal maximum; for sync provider calls, values above 3 are effectively forbidden unless docs prove they are safe and necessary. Avoid retries for non-idempotent writes unless the API supports idempotency.

Sync rules

  • Sync records need a stable string id.
  • New syncs should define a checkpoint schema, call nango.getCheckpoint() first, and nango.saveCheckpoint() after each page or batch.
  • A checkpoint is valid only if it changes the request or resume state (since, updated_after, cursor, page_token, offset, page, since_id, etc.). Saving one without using it is not incremental sync.
  • New syncs must not use syncType: 'incremental' or nango.lastSyncDate.
  • Default to nango.paginate(...) + nango.batchSave(...). Avoid manual while (true) loops when cursor, link, or offset pagination fits.
  • Prefer batchDelete() when the provider returns deletions, tombstones, or delete webhooks.
  • Use full refresh only if the provider cannot return changes, deletions, or resume state, or if the dataset is tiny.
  • For full refresh, cite the exact provider limitation from docs or payloads. "It is easier" is not enough.
  • deleteRecordsFromPreviousExecutions() is deprecated. For full refresh, call trackDeletesStart() before fetch/save and trackDeletesEnd() only after a successful full fetch/save.
  • Never combine trackDeletesStart() / trackDeletesEnd() with changed-only checkpoints (modified_after, updated_after, changed-records endpoints, etc.). They omit unchanged rows, so trackDeletesEnd() would delete them.
  • Checkpointed full refreshes are still full refreshes. Call trackDeletesEnd() only in the run that finishes the full window.

Conventions

  • Match field casing to the external API. Passthrough fields keep provider casing; non-passthrough fields should use the majority casing of that API.
  • Prefer explicit field names.
  • Add .describe() examples for IDs, timestamps, enums, and URLs.
  • Avoid any; use inline mapping types.
  • Prefer static Nango endpoint paths (avoid :id / {id} in the exposed endpoint); pass IDs in input or params.
  • List actions should expose cursor plus a next-cursor field in the majority casing of that API (next_cursor, nextCursor, etc.).
  • Use nango.zodValidateInput() only when you need custom validation or logging; otherwise rely on schemas plus the chosen validation workflow.

Schema Semantics

  • Default non-required inputs to .optional().
  • Use .nullable() only when null has meaning, usually clear-on-update; add .optional() when callers may omit the field too.
  • Raw provider schemas should match the provider: .optional() for omitted fields, .nullable() for explicit null, .nullish() only when the provider truly does both.
  • Final action outputs and normalized sync models should prefer .optional() and normalize upstream null to omission unless null matters.
  • Default generated schemas to .optional() for non-required inputs and normalized outputs; widen only when the upstream contract justifies it.
  • Prefer .nullable() over z.union([z.null(), T]) or z.union([T, z.null()]).
  • Return null only when the output schema allows it.
  • z.object() strips unknown keys by default. For provider pass-through use z.object({}).passthrough(), z.record(z.unknown()), or z.unknown() with minimal refinements.

Field Naming and Casing Rules

  • Use explicit suffixes in the API's majority casing: IDs (user_id, userId), names (channel_name, channelName), emails (user_email, userEmail), URLs (callback_url, callbackUrl), and timestamps (created_at, createdAt).

Mapping example (API expects a different parameter name):

const InputSchema = z.object({
    userId: z.string()
});

const config: ProxyConfiguration = {
    endpoint: 'users.info',
    params: {
        user: input.userId
    },
    retries: 3
};

If the API is snake_case, use user_id instead. The goal is API consistency.

References

  • Action patterns, CRUD examples, metadata usage, and ActionError examples: references/actions.md
  • Sync patterns, concrete checkpoint examples, delete strategies, and full refresh fallback: references/syncs.md

Useful Nango docs (quick links)

When API Docs Do Not Render

If web fetching returns incomplete docs (JS-rendered):

  • Ask the user for a sample response
  • Use existing Nango actions or syncs in the workspace as a pattern when they exist
  • Use the skill-specific validation or dryrun workflow until it passes

Preconditions (Do Before Writing Code)

  • No checked-out Nango project is required.
  • Resolve NANGO_SERVER_URL in this order: environment variable, .env file, then fallback to https://api.nango.dev.
  • Resolve NANGO_SECRET_KEY before calling remote endpoints.
  • Use the environment bound to that secret key.
  • Keep the function self-contained in one TypeScript file unless you have direct evidence that the remote endpoint accepts multi-file payloads.
  • Do NOT create or modify any files in the current project/directory. If you need to create files, use a temp folder

Workflow (required)

  1. Decide whether this is an action or a sync.
  2. Read the matching reference file: references/actions.md or references/syncs.md.
  3. For syncs, inspect provider docs or payloads for checkpoints and deletes, decide whether the endpoint returns full data or changed rows, and complete the Sync Strategy Gate.
  4. Gather required inputs and external values, including the NANGO_SECRET_KEY for the target environment and any metadata needed for dryrun.
  5. Resolve the host from NANGO_SERVER_URL in the environment, then .env, then https://api.nango.dev.
  6. Write or update the function as one self-contained TypeScript file using createAction() or createSync().
  7. Compile with POST {host}/remote-function/compile until compilation passes.
  8. Dryrun with POST {host}/remote-function/dryrun using the target connection plus input, metadata, or checkpoint as needed.
  9. If compile or dryrun cannot pass, stop and report the missing external state, inputs, or API contract mismatch.
  10. Deploy with POST {host}/remote-function/deploy only when requested.

Remote API Workflow (required)

Read references/api.md before making remote calls.

Required sequence:

  1. Compile first with /remote-function/compile.
  2. Dryrun second with /remote-function/dryrun.
  3. Deploy last with /remote-function/deploy.

Rules:

  • These endpoints are relative. Always resolve them against the chosen NANGO_SERVER_URL.
  • Send Authorization: Bearer <NANGO_SECRET_KEY> and Content-Type: application/json.
  • Do not send query params unless the API docs or an existing caller prove they are supported.
  • Use the server's validation errors to correct payloads. Do not invent undocumented fields when the API rejects a request.
  • For actions, dryrun should include input and metadata only when needed.
  • For syncs, dryrun should include metadata and checkpoint when needed to simulate a resumed run. Do not introduce last_sync_date for a new sync design.
  • Remote dryrun does not expose CLI --validate or --save; it compiles before running and returns the execution result, but it does not record local mocks.

Final Checklists

Action:

  • references/actions.md was used for the action pattern
  • Schemas and types are clear, and the function stays self-contained in one file
  • createAction() includes endpoint, input, output, and scopes when required
  • Fields use passthrough casing or the API's majority casing
  • Provider call includes an API doc link comment and intentional retries
  • nango.ActionError is used for expected failures
  • Host was resolved from NANGO_SERVER_URL, .env, or https://api.nango.dev
  • Compile succeeds with POST /remote-function/compile
  • Dryrun succeeds with POST /remote-function/dryrun and the expected action output
  • Deploy succeeds with POST /remote-function/deploy when requested

Sync:

  • references/syncs.md was used for the sync pattern
  • Models map is defined, ids are stable strings, and normalized models prefer .optional() unless null matters
  • Incremental was chosen first, with a checkpoint schema unless full refresh is explicitly justified from docs or payloads
  • nango.getCheckpoint() is read at the start and nango.saveCheckpoint() runs after each page or batch
  • Checkpoint data changes the provider request or resume state (since, updated_after, cursor, page_token, offset, page, since_id, etc.)
  • Changed-only checkpoint syncs (modified_after, updated_after, changed-records endpoint) do not use trackDeletesStart() / trackDeletesEnd()
  • If checkpoints were not used, the response explains exactly why no viable checkpoint strategy exists
  • Provider API calls use retries: 3; no sync retry value exceeds 3 without a documented exception
  • The function stays self-contained in one file unless the remote API proves multi-file support
  • Host was resolved from NANGO_SERVER_URL, .env, or https://api.nango.dev
  • Compile succeeds with POST /remote-function/compile
  • Dryrun succeeds with POST /remote-function/dryrun and returns the expected change set
  • Deploy succeeds with POST /remote-function/deploy when requested

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.7%
按下载量换算57

Claude

27.74%
按下载量换算40

Cursor

18.12%
按下载量换算26

Gemini CLI

9.98%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills