enrich-knowledge-graph
БесплатноБез исполняемых скриптовНе проверенEnrich people in a knowledge graph or wiki with contact and social media information — LinkedIn, email, phone, Twitter/X — using premium enrichment APIs via…
от Merit-Systems★ 23 звезды на GitHubОб этом скилле
Enrich Knowledge Graph
Enrich people pages in a user's knowledge graph or wiki with contact and social media data from premium APIs (Minerva, PDL) via the agentcash CLI. Minerva is the primary API — it returns rich data (work/personal emails, phones, Twitter, demographics, wealth signals) at $0.05/person. PDL (People Data Labs) is the fallback for name+company lookups when no LinkedIn URL is available ($0.28/match, free when no match). The APIs cost real money (typically 5-30 cents per person), so the skill guides the user through funding before making any paid calls.
Interaction rules
Only ever ask the user one question at a time. Never present multiple decisions or questions simultaneously. Be conversational — guide them step by step.
Workflow
Step 0: Discover the knowledge graph
Before doing anything else, understand the structure of the user's knowledge graph. Don't assume any particular directory layout, frontmatter schema, or file naming convention.
- Look at the project's CLAUDE.md, README, or any top-level documentation to understand the project structure.
- Find where people pages live. Common patterns:
wiki/people/,people/,contacts/,network/- Markdown files with
tags: [person]ortype: personin frontmatter - A directory index or manifest that lists people
- Read 2-3 sample people pages to learn the frontmatter schema. Look for fields that store:
- Name:
title,name,first_name/last_name,full_name, etc. - Contact info:
email,linkedin,twitter,x,phone,social, etc. - Context:
org,company,role,title,location, etc.
- Name:
- Note the schema you discover — you'll need it when writing enrichment data back.
If you can't find people pages, ask the user: "Where do your people pages live?"
Step 1: Check balance
Run:
npx agentcash balance
If the balance is zero or very low (under $0.50):
- Explain: "Enrichment uses premium APIs. It typically costs 5 cents per person with Minerva Enrich (primary), or 28 cents with PDL (fallback for name+company lookups). To enrich 20 people you'd need about $1-2."
- Ask: "Would you like to sign up for free credits, or add funds directly to your wallet?"
- If they want free credits:
- Run
open https://agentcash.dev/onboardto open signup in a browser. - Tell the user: "Complete the signup flow — it will give you a code. Paste it here and I'll activate your credits."
- When they paste the code, run
npx agentcash onboard <code>to redeem it. This is what actually deposits the credits into their wallet.
- Run
- If they want to add funds: run
npx agentcash accountsand give them the deposit URL from the output so they can send USDC.
After the user confirms they have funds, re-check balance with npx agentcash balance and proceed.
Step 2: Scan knowledge graph
- List all people pages from the directory discovered in Step 0.
- Read each person page and parse whatever frontmatter format the project uses.
- Extract what you can identify as: name, email, linkedin, phone, twitter/x, org, role, location.
- Classify each person:
- Complete: has at least email AND linkedin
- Partial: has some contact info but missing email or linkedin
- Missing: has no email, no linkedin, and no phone
- Present a one-line summary: "Found N people. M are missing contact information."
- Ask: "Want to enrich all M people with missing info, or pick specific ones?"
If the user passed an argument (e.g., /enrich-knowledge-graph John Doe), skip the scan summary and go straight to enriching that person.
Step 3: Enrich each person
For each person to enrich, build the best possible query from their existing data and call the APIs.
Strategy: use what you have
The more identifying info you provide, the better the match. Prioritize fields in this order:
- LinkedIn URL (strongest signal — use Minerva Enrich directly)
- Email or phone (use Minerva Resolve to find LinkedIn, then Enrich)
- First name + last name + company/org (use PDL as fallback)
- First name + last name alone (weakest — try Minerva Resolve with email/phone if available; PDL cannot match on name alone either)
Primary path: Minerva Enrich (~$0.05)
Minerva returns rich data at low cost: work emails, personal emails, phone numbers, Twitter, demographics, wealth signals, and full work history. It works best when you have a LinkedIn URL.
npx agentcash fetch https://stableenrich.dev/api/minerva/enrich \
--method POST \
--body '{"records":[{"record_id":"1","linkedin_url":"https://linkedin.com/in/johndoe"}]}'
You can also pass minerva_pid, first_name/last_name, emails, or phones in the record. LinkedIn URL gives the best results.
From the response, extract:
professional_emails[0].email_address-> work emailpersonal_emails[0].email_address-> personal emailphones[0].phone_number-> phonetwitter_url-> twitter/x
Установить enrich-knowledge-graph в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл enrich-knowledge-graph?
Enrich people in a knowledge graph or wiki with contact and social media information — LinkedIn, email, phone, Twitter/X — using premium enrichment APIs via the agentcash CLI. Use this skill when the user wants to enrich contacts, find someone's LinkedIn or email, fill in missing contact info for people in their wiki or knowledge base, or says 'enrich', 'find contact info', 'look up LinkedIn', 'fill in missing info', or anything about augmenting people/contact pages with external data.
Как установить скилл enrich-knowledge-graph?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл enrich-knowledge-graph запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic