building-apis

building-apis is a skill for Claude Code from celigo/ai. It costs 52 tokens per session (5,438 once invoked), scanned A, original, MIT.

A guide for building Celigo APIs, which are web addresses that other systems can call to send data or request results from an integration.

In plain words
What is it for?
Use it to create HTTP endpoints for authenticated lookups, data writes, proxies, and structured responses.
Why use it?
It helps you define how requests enter an integration, how data is processed, and what response the caller receives.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the celigo plugin — 24 skills, 5 commands, 1 MCP server shipped together

Good fit Use it to create HTTP endpoints for authenticated lookups, data writes, proxies…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/celigo/ai/building-apis
View source ↗ celigo/ai
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 celigo/ai --skill building-apis
Clone the repo
git clone --depth 1 https://github.com/celigo/ai

Made for: Claude Code.

Or install celigo, the plugin that ships this one along with the rest of its 24 skills, 5 commands, 1 MCP server.

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-apis

README.md
[![agentmods](https://agentmods.dev/badge/skills/celigo/ai/building-apis.svg)](https://agentmods.dev/skills/celigo/ai/building-apis)
Your own site
<a href="https://agentmods.dev/skills/celigo/ai/building-apis"><img src="https://agentmods.dev/badge/skills/celigo/ai/building-apis.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,438 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.00052 $0.05438
Opus 5 $0.00026 $0.02719
Sonnet 5 $0.00010 $0.01088
Haiku 4.5 $0.00005 $0.00544

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

Security

Grade A, and why

building-apis 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 6d 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.

skills/building-apis/SKILL.md · 358 lines

How it starts

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

Building APIs

An API is a RESTful endpoint that exposes integration logic for external consumption. External systems call the API over HTTP; the API processes the request through lookups and imports, then returns a structured response. Concerns when building an API:

  • Mode selection -- builder (visual configuration) vs script (full JavaScript control)
  • Request definition -- HTTP method, URI path, parameters, body schema, request transformation
  • Processing pipeline -- routers and page processors (lookups + imports) that execute business logic
  • Response routing -- directing processed data to the correct response definition based on success/failure or custom conditions
  • Response shaping -- status codes, field mappings, body schema, hooks (preMap, postMap) on each response
  • Response mapping -- extracting fields from each page processor's response back into the record for downstream steps. Configured on each pageProcessors[] entry, same as in flows. For lookup exports the response has data[] and errors[] (use data[0].fieldName for single results). For imports the response is via _json (use _json.fieldName)
  • postResponseMap hook -- JavaScript processing after response mapping, configured on pageProcessors[] entries

Used across integrations alongside flows and tools. APIs do not have their own authentication -- incoming requests authenticate via the Celigo API token; outbound calls to external systems use the connections referenced by exports/imports in the pipeline.

The Request IS the Source Record

APIs are invoked by an external HTTP caller -- there is no upstream export, no scheduler, no listener feeding them. That has three design consequences:

  • The request stage is the input shape. Whatever the caller sends (body, path params, query params, headers) is what downstream processing sees as the record. There is no upstream pipeline to reshape it first -- use the request transform if the envelope needs reshaping before routing.
  • The response stage is the output. Whatever the selected response definition produces is exactly what the caller receives. Nothing runs after it.
  • No self-starting. APIs have no schedule, no listener, and none of the flow runtime controls (proceedOnFailure, skipRetries, chaining). "Every night at 2 AM, do X" is a flow -- possibly one that calls the API, but the schedule lives on the flow. Retry-after-failure is the caller's decision.

Read the full file on GitHub · 358 lines

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. 6d ago First seen · 358 lines · 52 tokens per session scan A adf176089445

Subscribe to this mod's changes

building-apis is a skill published in the GitHub repository celigo/ai (3 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 5,438 once invoked, about $0.0003 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.