building-nango-functions-locally

building-nango-functions-locally is a skill for Claude Code, Codex from JustineDevs/premortem. It costs 122 tokens per session (4,354 once invoked), scanned A, original, Apache-2.0.

A guide for building Nango Functions, which are TypeScript actions and synchronisation jobs that connect applications to other services.

In plain words
What is it for?
Use it to create or update Nango actions and syncs, validate them with the Nango command-line tools, generate tests, and optionally deploy them.
Why use it?
It gives a local workflow for checking and testing these functions before they are deployed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to create or update Nango actions and syncs, validate them with the Nango command-line tools, generate tests, and optionally deploy them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/justinedevs/premortem/building-nango-functions-locally
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JustineDevs/premortem --skill building-nango-functions-locally
Clone the repo
git clone --depth 1 https://github.com/JustineDevs/premortem

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for building-nango-functions-locally

README.md
[![agentmods](https://agentmods.dev/badge/skills/justinedevs/premortem/building-nango-functions-locally/github.svg)](https://agentmods.dev/skills/justinedevs/premortem/building-nango-functions-locally)
Your own site
<a href="https://agentmods.dev/skills/justinedevs/premortem/building-nango-functions-locally"><img src="https://agentmods.dev/badge/skills/justinedevs/premortem/building-nango-functions-locally/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for building-nango-functions-locally

Your own site · 80×15
<a href="https://agentmods.dev/skills/justinedevs/premortem/building-nango-functions-locally"><img src="https://agentmods.dev/badge/skills/justinedevs/premortem/building-nango-functions-locally.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,354 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.04354
Opus 5 $0.00061 $0.02177
Sonnet 5 $0.00024 $0.00871
Haiku 4.5 $0.00012 $0.00435

Measured 11d ago against content hash ce23e5348a2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

building-nango-functions-locally scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/building-nango-functions-locally/SKILL.md · 337 lines

How it starts

The opening of the file, as written. The whole thing — 337 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Nango Functions Locally

Build deployable Nango actions and syncs in a checked-out Nango project with the local CLI validation and test workflow.

Implementation Scope

  • Build or modify a Nango function implementation
  • Build an action in Nango with createAction()
  • Build a sync in Nango with createSync()
  • Use the active workflow skill for compile, dryrun, test, and deploy mechanics

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)

Read the full file on GitHub · 337 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 337 lines · 122 tokens per session scan A ce23e5348a2c

Subscribe to this mod's changes

building-nango-functions-locally is a skill published in the GitHub repository JustineDevs/premortem (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 122 tokens to every session and 4,354 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

azure-identity-ts

Authenticate to Azure services using Azure Identity library for JavaScript (@azure/identity). Use when configuring authentication with DefaultAzureCredential, managed identity, service principals, or interactive browser login.

microsoft/skills · 41 tokens

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

NestJS Framework

Node.js/TypeScript backend framework with dependency injection and modular architecture.

FortiumPartners/ensemble · 17 tokens

react-component-design

Designs or reviews React component APIs. Handles prop drilling decisions, composition patterns, controlled/uncontrolled contracts, and minimal public API surfaces for React 18+ TypeScript components. Invoked when creating new components, refactoring existing ones, or reviewing component contracts.

soulcodex/agentic · 56 tokens

typescript-guide

Use when editing or reviewing TypeScript in Node.js ESM projects. Triggers on .ts files, ESM package.json, and prompts about async functions, type inference, strict mode, ESM imports, env handling, template literals, even when the user doesn't say 'TypeScript'.

xonovex/platform · 63 tokens

zod-guide

Use when defining or editing Zod 4.0+ schemas for runtime validation in TypeScript. Triggers on .ts files with zod imports and prompts about API input validation, schema composition, type inference (z.infer), z.uuid(), z.email(), z.iso.datetime(), defaults, or refinements, even when the user doesn't say 'Zod'.

xonovex/platform · 87 tokens