Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.

  1. Look at the project's CLAUDE.md, README, or any top-level documentation to understand the project structure.
  2. Find where people pages live. Common patterns:
    • wiki/people/, people/, contacts/, network/
    • Markdown files with tags: [person] or type: person in frontmatter
    • A directory index or manifest that lists people
  3. 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.
  4. 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):

  1. 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."
  2. Ask: "Would you like to sign up for free credits, or add funds directly to your wallet?"
  3. If they want free credits:
    • Run open https://agentcash.dev/onboard to 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.
  4. If they want to add funds: run npx agentcash accounts and 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

  1. List all people pages from the directory discovered in Step 0.
  2. Read each person page and parse whatever frontmatter format the project uses.
  3. Extract what you can identify as: name, email, linkedin, phone, twitter/x, org, role, location.
  4. 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
  5. Present a one-line summary: "Found N people. M are missing contact information."
  6. 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 email
  • personal_emails[0].email_address -> personal email
  • phones[0].phone_number -> phone
  • twitter_url -> twitter/x
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить enrich-knowledge-graph с