Agent skill

Add Enrichment

by simstudioai in simstudioai/sim

Add a code-defined table enrichment (registry entry) under apps/sim/enrichments/ backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support.

Apache-2.0Auto-check passed

Install Add Enrichment

skills CLI
$ npx skills add simstudioai/sim --skill add-enrichment -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install simstudioai/sim add-enrichment --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/simstudioai/sim.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-enrichment .claude/skills/add-enrichment && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-enrichment
GitHub stars
30k
Token cost
~2.2k tokens
SKILL.md length
799 words
Files
2
Skills in repo
40
Repo updated
First seen
Licence
Apache-2.0

At a glance

Add a code-defined table enrichment (registry entry) under apps/sim/enrichments/ backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support.

  • Works in 5 steps: Pick the data-source tool(s) → Verify hosted-key support — chain to… → Write the enrichment definition → …
  • Adding a per-row table enrichment that fills cells via existing Sim tools
  • SKILL.md covers Overview, Architecture (what you're…, Step 1: Pick the data-source… and Step 2: Verify hosted-key…, plus 4 more sections
  • Calls bun and bunx; needs SERVICE_API_KEY

What it does

Add Enrichment is an agent skill from simstudioai/sim. Add a code-defined table enrichment (registry entry) under apps/sim/enrichments/ backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support. Use when adding a per-row table enrichment that fills cells via existing Sim tools.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The repository describes itself as: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. The licence is Apache-2.0.

When your agent uses it

  • Adding a per-row table enrichment that fills cells via existing Sim tools

Example prompts

  • “/add-enrichment”

Requirements

  • A credential in SERVICE_API_KEY

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Pick the data-source tool(s)
  2. Verify hosted-key support — chain to /add-hosted-key if missing
  3. Write the enrichment definition
  4. Register it
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 546d4e7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun
    • bunx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SERVICE_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Enrichment loads about 2.2k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 799 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from simstudioai/sim at commit 546d4e7, republished under its Apache-2.0 licence (© simstudioai). 799 words, ~2,164 tokens.

Download SKILL.mdSave it as .claude/skills/add-enrichment/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
add-enrichment
description
Add a code-defined table enrichment (registry entry) under `apps/sim/enrichments/` backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support. Use when adding a per-row table enrichment that fills cells via existing Sim tools.
argument-hint
<enrichment-name>

Adding a Table Enrichment

Enrichments are code-defined entries in apps/sim/enrichments/ that run directly per table row (no workflow). Each enrichment declares inputs, outputs, and an ordered list of providers; the cascade runner tries providers in order and the first non-empty result fills the cell. Each provider calls one existing Sim tool via executeTool, which injects the workspace's BYOK key or a hosted key and bills usage automatically.

Because enrichments run on Sim's hosted keys by default, every provider tool you reference must have hosted-key support — otherwise it can only run when the workspace brings its own key. This command makes that check a required step.

Overview

StepWhatWhere
1Pick the data-source tool(s) for each outputtools/{service}/ + tools/registry.ts
2Verify each tool has hosting; if not, run /add-hosted-keytools/{service}/{action}.ts
3Write the enrichment definitionenrichments/{id}/{id}.ts + index.ts
4Register itenrichments/registry.ts
5Verifytsc / biome / manual run

Architecture (what you're plugging into)

  • enrichments/types.ts — EnrichmentConfig { id, name, description, icon, inputs, outputs, providers } and EnrichmentProvider { id, label, toolId, buildParams, projectFailure, mapOutput } — toolProvider fills projectFailure with the standard HTTP projection; override it only for a provider whose failure shape is nonstandard (see enrichments/provider-failures/). Providers are plain data (no @/tools import) so the catalog stays client-safe.
  • enrichments/providers.ts — toolProvider(...) (typed passthrough) plus shared input helpers: str(v), normalizeDomain(v), firstNonEmpty(arr), splitName(fullName), and projectEnrichmentProviderFailure.
  • enrichments/run.ts — the server-only cascade runner. Calls executeTool(provider.toolId, { ...params, _context: { workspaceId, userId } }), accumulates hosted-key cost, returns the first non-empty mapped result. You do not edit this — it works for any registry entry.
  • enrichments/registry.ts — ENRICHMENT_REGISTRY / ALL_ENRICHMENTS / getEnrichment. Register new entries here.

Outputs automatically become table columns; billing, the catalog/sidebar UI, and per-row execution work with no extra wiring.

Step 1: Pick the data-source tool(s)

For each output the enrichment produces, decide which existing tool provides it. Look up the service's API and the tool in apps/sim/tools/{service}/ (e.g. hunter_email_finder, pdl_person_enrich, pdl_company_enrich). Confirm:

  • The tool id is registered in apps/sim/tools/registry.ts.
  • Its params accept what you can derive from table columns (read the tool's params).
  • Its outputs / transformResponse actually expose the field you need (read the real output shape — don't assume).

Order providers cheapest / most-likely-to-hit first; the cascade stops at the first non-empty result. Apollo / LinkedIn are not hosted-safe (ToS) — don't use them.

Step 2: Verify hosted-key support — chain to /add-hosted-key if missing

This is the required gate. For every tool a provider calls, open apps/sim/tools/{service}/{action}.ts and check for a hosting block:

typescript
hosting: {
  envKeyPrefix: 'SERVICE_API_KEY',
  apiKeyParam: 'apiKey',
  byokProviderId: 'service',
  pricing: { /* ... */ },
  rateLimit: { /* ... */ },
}
  • If hosting is present — good. Note the envKeyPrefix; the deployment needs {PREFIX}_COUNT + {PREFIX}_1..N env vars set for the hosted key to actually resolve at runtime (ops concern, not code). If those env vars aren't set in the target environment, the provider will only run with a workspace BYOK key.
  • If hosting is absent — the tool can't use a Sim-provided key, so the enrichment would silently produce blank cells on hosted Sim. Stop and run /add-hosted-key <service> to add hosted-key support to that tool first, then come back. Do this for every provider tool that lacks it.

Why it matters: the cascade runner only bills (and only reads output.cost.total) when executeTool injected a hosted key, which requires the tool's hosting config. No hosting → no hosted key → the enrichment depends entirely on per-workspace BYOK.

Show full SKILL.md (274 more words)Show less

Step 3: Write the enrichment definition

Create apps/sim/enrichments/{id}/{id}.ts and a barrel index.ts. Mirror the entries registered in enrichments/registry.ts.

typescript
import { SomeIcon } from '@sim/emcn/icons'
import { filterUndefined } from '@sim/utils/object'
import { normalizeDomain, splitName, str, toolProvider } from '@/enrichments/providers'
import type { EnrichmentConfig } from '@/enrichments/types'

export const myEnrichment: EnrichmentConfig = {
  id: 'my-enrichment',
  name: 'My Enrichment',
  description: 'One concise sentence describing what it finds.',
  icon: SomeIcon,
  inputs: [
    // Person enrichments take a single canonical `fullName` (Clay-style);
    // split it with splitName() for tools that need first/last.
    { id: 'fullName', name: 'Full name', type: 'string', required: true },
    { id: 'companyDomain', name: 'Company domain', type: 'string' },
  ],
  outputs: [{ id: 'value', name: 'value', type: 'string' }],
  providers: [
    toolProvider({
      id: 'provider-a',
      label: 'Provider A',
      toolId: 'service_action', // must have `hosting` (Step 2)
      buildParams: (inputs) => {
        // Return null when there aren't enough inputs → cascade skips this provider.
        const name = splitName(inputs.fullName)
        const domain = normalizeDomain(inputs.companyDomain)
        if (!name || !domain) return null
        return { domain, first_name: name.firstName, last_name: name.lastName }
      },
      mapOutput: (output) => {
        // Return { [outputId]: value } on a hit, or null to fall through.
        const value = str(output.value)
        return value ? { value } : null
      },
    }),
    // ...additional fallback providers, in priority order.
  ],
}
typescript
// apps/sim/enrichments/{id}/index.ts
export { myEnrichment } from './my-enrichment'

Rules:

  • Keep the file client-safe: import only @sim/emcn/icons, @sim/utils/*, @/enrichments/providers, and the types. Never import @/tools here — the runner does the tool call.
  • buildParams returns null when inputs are insufficient (provider skipped). mapOutput returns null/empty for a miss (falls through). Use filterUndefined when assembling optional tool params; coerce numbers explicitly (don't pass '' to number outputs).
  • Output ids are the keys mapOutput returns; output names are the default column names (the user can rename them in the config).

Step 4: Register it

In apps/sim/enrichments/registry.ts, import and add the entry (catalog order is registration order):

typescript
import { myEnrichment } from '@/enrichments/{id}'

export const ENRICHMENT_REGISTRY: EnrichmentRegistry = {
  // ...existing
  [myEnrichment.id]: myEnrichment,
}

Step 5: Verify

  1. bun run type-check (from apps/sim) and bunx biome check on the changed files.
  2. In a table → + New column → Enrichments → pick the new enrichment, map its inputs to columns, name the output column(s), Save. Confirm it appears in the catalog with its icon/description.
  3. With hosted keys (or a workspace BYOK key) configured for each provider's service, run a row and confirm the cell fills; the dev-server log shows Enrichment hit { provider }. A row whose providers all miss completes blank; a row where every provider errored shows an error cell.

Checklist

  • Each output mapped to a real tool field (verified against the tool's params/outputs)
  • Every provider tool has a hosting block — ran /add-hosted-key for any that didn't
  • Providers ordered cheapest / most-likely-first; Apollo/LinkedIn not used
  • Enrichment file is client-safe (no @/tools import); uses toolProvider + shared helpers
  • buildParams returns null on insufficient inputs; mapOutput returns null on a miss
  • Registered in enrichments/registry.ts
  • tsc + biome clean; created and ran the column end-to-end

© simstudioai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/add-enrichment of simstudioai/sim.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 546d4e7

Compare with similar skills

Add Enrichment next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Enrichment compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Enrichment this skillsimstudioai/sim30k—~2.2kAutomated safety check: PassApache-2.0
Table Headersthedaviddias/Front-End-Checklist74k—~460Automated safety check: PassMIT
Table Fitasgeirtj/system_prompts_leaks69k—~772Automated safety check: PassCC0-1.0
Accessible Tablesthedaviddias/Front-End-Checklist74k—~521Automated safety check: PassMIT
Data Table Managern8n-io/n8n207k—~2.3kAutomated safety check: PassCustom licence
Tablebrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~3.3kAutomated safety check: PassCustom licence

Similar skills

  • Table Headers

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Define proper table headers.

    74k GitHub stars~460 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Table Fit

    asgeirtj/system_prompts_leaks

    Keep a Markdown table readable in a narrow terminal of about 100 display columns - a wide table or one carrying prose in its cells wraps into unreadable ragged rows.

    69k GitHub stars~772 tokensUpdated today
    Testing & QAAuto-check passed
  • Accessible Tables

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Use semantic table markup for screen readers.

    74k GitHub stars~521 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Official

    Load before calling data-tables or parse-file. An agent skill from n8n-io/n8n.

    207k GitHub stars~2.3k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Table

    brycewang-stanford/Auto-Empirical-Research-Skills

    Econometrics skill for creating publication-quality LaTeX regression and summary tables.

    4.5k GitHub stars~3.3k tokensUpdated 3 days ago
    Documents & OfficeAuto-check passed
  • Tables

    brycewang-stanford/Auto-Empirical-Research-Skills

    Design and format publication-quality tables: column order, row grouping, notes, precision, reproducibility.

    4.5k GitHub stars~2k tokensUpdated 3 days ago
    Research & ScienceAuto-check passed

More from simstudioai/sim

All 40 skills in this repo
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Add Column Type

    simstudioai/sim

    Add a new table column type to Sim — registry entry, icon, storage shape, coercion, and the behavioral hooks the grid and API read.

    30k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Add Hosted Key

    simstudioai/sim

    Add hosted API key support to a tool so Sim provides the key (metered and billed to the workspace) when a user has not brought their own.

    30k GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Add Managed CLI

    simstudioai/sim

    Add or upgrade a curated, immutable managed CLI for Sim Function sandboxes, including client-safe catalog metadata, a pinned server-only installation recipe, checksum and executable verification…

    30k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Add Selector

    simstudioai/sim

    Add or update a Sim dynamic selector using the shared manifest, server attachment, and selectors.execute path.

    30k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Babysit

    simstudioai/sim

    Drive a PR to a clean review (Greptile 5/5, zero open threads) — ships if needed, keeps it mergeable against staging, re-triggers both Greptile and cubic, fixes real findings, replies to and…

    30k GitHub stars~2.9k tokensUpdated today
    Auto-check passed

Questions about Add Enrichment

What does Add Enrichment do?

Add a code-defined table enrichment (registry entry) under apps/sim/enrichments/ backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support. Add Enrichment is an agent skill from simstudioai/sim. Add a code-defined table enrichment (registry entry) under apps/sim/enrichments/ backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support.

When should I use Add Enrichment?

Add Enrichment fits situations like: adding a per-row table enrichment that fills cells via existing Sim tools.

How do I install Add Enrichment in Claude Code?

Run `npx skills add simstudioai/sim --skill add-enrichment -a claude-code`. Or copy the skill folder (.agents/skills/add-enrichment in simstudioai/sim) into .claude/skills/add-enrichment in your project. Claude Code loads it when a task matches its description.

How do I install Add Enrichment in Codex?

Run `npx skills add simstudioai/sim --skill add-enrichment -a codex`. Or copy the skill folder (.agents/skills/add-enrichment in simstudioai/sim) into .agents/skills/add-enrichment in your project. Codex loads it when a task matches its description.

Can I use Add Enrichment in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add simstudioai/sim --skill add-enrichment -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-enrichment, .gemini/skills/add-enrichment, .github/skills/add-enrichment and .opencode/skills/add-enrichment in your project.

What does Add Enrichment need to run?

Going by SKILL.md and its folder, Add Enrichment needs the command-line tools its instructions call (bun and bunx) and credentials named SERVICE_API_KEY. Our summary lists: A credential in SERVICE_API_KEY.

Does Add Enrichment access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Enrichment safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Enrichment use?

Add Enrichment is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Enrichment use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Enrichment?

Skills that share tags, products or a category with Add Enrichment: Table Headers (thedaviddias/Front-End-Checklist, 74k stars), Table Fit (asgeirtj/system_prompts_leaks, 69k stars), Accessible Tables (thedaviddias/Front-End-Checklist, 74k stars) and Data Table Manager (n8n-io/n8n, 207k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Enrichment?

simstudioai (a GitHub organization) maintains it in simstudioai/sim, which has 29,792 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on October 8, 2026.

Source: simstudioai/sim on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.