api-enrichment
Build API-first enrichment pipelines — provider selection, batching, retries, rate limits, idempotency, webhooks, cost tracking, and CRM writes.
Skill by LeadMagic
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leadmagic-api-enrichment
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data, sales
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/api-enrichment
What's inside
- Skill name
api-enrichment- Description
- Build API-first enrichment pipelines — provider selection, batching, retries, rate limits, idempotency, webhooks, cost tracking, and CRM writes. Use when integrating enrichment APIs directly into GTM systems or replacing manual data workflows with programmatic pipelines.
- License
- MIT
- Compatibility
- Claude Code, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Goose, Hermes, Windsurf, Zed
- Metadata
- author: LeadMagic · version: 1.0.0 · category: automation
- Instructions
- 137 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- SKILL.md
- framework-notes.md · references/
- check-output.py · scripts/
- output-template.md · templates/
SKILL.md (first lines)
# API Enrichment ## Overview API enrichment fails when teams treat it like a simple loop over contacts. The hard parts are not the HTTP calls — they are data quality, deduplication, retry safety, rate limiting, cost controls, and knowing when not to enrich. This skill builds a production-ready enrichment pipeline that can process leads, contacts, and accounts without silent failures or uncontrolled vendor spend. ## When to Use Use this skill when the user asks to: "build an enrichment API pipeline", "integrate enrichment directly into our app", "set up automated enrichment via API", "replace manual enrichment with API calls", "batch enrich contacts", "add enrichment to inbound routing", "push enriched data to CRM", or "handle enrichment retries and webhooks". Do not use this for tool-specific no-code workflows. Use `clay-automation` or `n8n-automation` when the user wants a no-code platform. ## Authoritative Foundations ### REST API Best Practices — Idempotency and Retries Any bulk enrichment job needs idempotent writes and retry-safe requests. A retry should never create duplicate contacts, duplicate CRM notes, or duplicate sequence enrollment. ### DAMA-DMBOK — Data Quality Dimensions Provider waterfalls improve coverage and cost control by trying the best-fit source first, then falling back only when needed. This avoids paying multiple providers for the same field. ### Data Quality Management — Source Priority and Freshness Fields need source attribution and timestamps. A title from two years ago should not override a title returned yesterday. Freshness and source priority are part of the data model. ### Webhook Integration Patterns Async jobs should call back when complete instead of forcing the client to poll. Webhooks need signature verification, retry handling, and event deduplication. ## Prerequisites - Canonical record ID for every contact/account - Source-of-truth CRM fields - Provider API keys - Rate limits and pricing model for each provider - Field-level priority rules - Error logging destination - Webhook endpoint if processing async jobs ## Step-by-Step Process ### Phase 1: Define the Enrichment Contract | Field Type | Examples | Owner | |---|---|---| | Identity | name, email, phone | Enrichment pipeline | | Company | domain, size, industry, funding | Enrichment pipeline | | Sales context | lifecycle stage, owner, next step | CRM / rep | | Compliance | suppression, opt-out, consent | Compliance system / CRM | Never let enrichment overwrite human-owned sales fields without explicit rules. ### Phase 2: Build the Request Model For every request, include external ID, input fields, provider selected, requested field set, idempotency key, timestamp, and callback URL if async. Use deterministic idempotency keys such as `record_id + provider + field_set + date_bucket`. ### Phase 3: Design the Provider Waterfall | Step | Use When | Stop Condition | |---|---|---| | Primary provider | Best cost/coverage for segment | Required fields returned | | Secondary provider | Primary misses critical field | Critical fields returned | | Specialist provider | Region/persona/company-type gap | Specialist field returned | | Manual review | High-value account still incomplete | Human decides | Do not call every provider for every record. Waterfall only when the previous step misses. ### Phase 4: Implement Reliability Controls Minimum controls: exponential backoff, dead-letter queue, rate-limit budget, cost ceiling, field source attribution, hash-based dedupe before CRM write, webhook signature verification. ### Phase 5: Monitor the Pipeline Track coverage by field, match rate by provider, cost per enriched record, error rate by provider, latency p50/p95, CRM write success rate, and duplicate rate. ## Output Format ```markdown # API Enrichment Pipeline Plan ## Fields Owned | Field | Source Priority | Freshness Rule | CRM Write Rule | |---|---|---|---| ## Provider Waterfall | Step | Provider Type | Trigger | Stop Condition | Cost Guardrail | |---|---|---|---|---| ## Request Contract - Required inputs: - Idempotency key: - Retry policy: - Webhook policy: ## Monitoring - Coverage: - Cost: - Errors: - Latency: ``` ## Quality Check Before delivering, verify: - [ ] Every field has source attribution - [ ] Retry logic is idempotent - [ ] Provider calls stop when required fields are found - [ ] CRM writes cannot duplicate records - [ ] Rate limits and cost ceilings are defined - [ ] Webhooks include verification and dedupe - [ ] Monitoring covers coverage, cost, errors, latency, and CRM writes ## Common Pitfalls 1. **Looping over contacts without idempotency.** Retries create duplicates. Fix: idempotency keys and upserts. 2. **Calling all providers every time.** Costs explode. Fix: waterfall by stop condition. 3. **Overwriting rep-owned fields.** Enrichment corrupts active deals. Fix: field ownership rules. 4. **Silent failures.** Missing data looks like no match. Fix: explicit error states and dead-letter queue. 5. **No freshness rule.** Old data overwrites newer CRM data. Fix: compare timestamps and source priority.
From LeadMagic/gtm-skills, MIT.
More from LeadMagic/gtm-skills
- 0.638score
a-b-testing
LeadMagic
Design statistically sound GTM experiments for copy, channels, landing pages, sequencing, pricing, and funnel conversion.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
campaign-analytics
LeadMagic
Analyze campaign performance from deliverability through revenue: delivery, engagement, replies, meetings, SQOs, pipeline, CAC, and payback.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
growth-experimentation
LeadMagic
Build a growth experimentation system — ICE scoring, growth sprints, experiment design, statistical significance, and learning repositories.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
gtm-metrics
LeadMagic
Build a GTM metrics system for SaaS: funnel conversion, pipeline velocity, win rates, CAC, payback, NRR, sales efficiency, growth accounting, and executive…
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
gtm-system-architecture
LeadMagic
Design a complete GTM operating system — revenue model, data model, operating model, growth model, and GTM model per WbD's 6-model framework.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
tracking-plan
LeadMagic
Master analytics tracking plan for PLG and B2B SaaS — unified event taxonomy, pixel strategy (1P and 3P tagging), marketing attribution architecture, CDP…
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
salesforce-setup
LeadMagic
Set up Salesforce for B2B SaaS GTM — object model, opportunity pipelines, lead management, reports and dashboards, automation (Flows), and enrichment…
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
abm-1-to-few
LeadMagic
Runs ABM at scale (1-to-few) for 15-50 clustered accounts: industry or persona clusters, semi-custom campaigns, and cluster-level content.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
abm-1-to-1
LeadMagic
Runs strategic 1-to-1 ABM for 5-15 high-value accounts: account plans, custom microsites, executive engagement, direct mail, and board-level connections.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
abm-strategy
LeadMagic
Designs an account-based marketing program: tier selection, account scoring, channel orchestration, BDR alignment (account-based sales development), and a…
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
account-selection
LeadMagic
Builds and tiers a target account list: fit and intent scoring models, tier assignment, and TAM segmentation.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
abm-1-to-many
LeadMagic
Runs programmatic 1-to-many ABM for 50-200+ accounts: automated personalization, scaled outbound, intent-based targeting, and lookalike expansion.
SkillAFreshness: A★ 67Claude Code +9
Signals
- Stars
- 67
- Forks
- 18
- Open issues
- 0
- Last commit (this folder)
- Oct 1, 2026 (28 days ago)
- Last release
- Oct 1, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/LeadMagic/gtm-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from LeadMagic
- 0.638score
a-b-testing
LeadMagic
Design statistically sound GTM experiments for copy, channels, landing pages, sequencing, pricing, and funnel conversion.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
campaign-analytics
LeadMagic
Analyze campaign performance from deliverability through revenue: delivery, engagement, replies, meetings, SQOs, pipeline, CAC, and payback.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
growth-experimentation
LeadMagic
Build a growth experimentation system — ICE scoring, growth sprints, experiment design, statistical significance, and learning repositories.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
gtm-metrics
LeadMagic
Build a GTM metrics system for SaaS: funnel conversion, pipeline velocity, win rates, CAC, payback, NRR, sales efficiency, growth accounting, and executive…
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
gtm-system-architecture
LeadMagic
Design a complete GTM operating system — revenue model, data model, operating model, growth model, and GTM model per WbD's 6-model framework.
SkillAFreshness: A★ 67Claude Code +9 - 0.638score
abm-1-to-many
LeadMagic
Runs programmatic 1-to-many ABM for 50-200+ accounts: automated personalization, scaled outbound, intent-based targeting, and lookalike expansion.
SkillAFreshness: A★ 67Claude Code +9
Cite this page
api-enrichment skill. Agent Mart. https://agentmart.dev/skills/leadmagic-api-enrichment (last updated 2026-10-24)