Установка
SKILL.md
Contact Goat - Printing Press CLI
Prerequisites: Install the CLI
This skill drives the contact-goat-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:<!-- -->npx -y @mvanhorn/printing-press-library install contact-goat --cli-only - Verify:
contact-goat-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.5 or newer):
go install github.com/mvanhorn/printing-press-library/library/sales-and-crm/contact-goat/cmd/contact-goat-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
When to Use This CLI
Reach for this when the user wants:
- coverage of a company (who you already know there, ranked by relationship strength)
- a warm-intro path to a target person (mutual connections across sources)
- prospecting (fan-out search with cross-source dedupe)
- a unified dossier (LinkedIn profile + Happenstance research + optional Deepline enrichment)
- network diffs over time (what's new in your graph in the last N days)
- waterfall enrichment that walks free sources before paid ones
Skip it when the user has a workflow that lives entirely inside LinkedIn Sales Navigator, or when they only need raw LinkedIn scraping with no Happenstance or Deepline overlay (use the LinkedIn MCP directly in that case).
Two Auth Surfaces
Happenstance has two parallel auth paths and the CLI uses both:
| Surface | Auth | Cost | Default? |
|---|---|---|---|
| Cookie web app | Chrome session cookies | Free monthly allocation | YES (auto-prefer) |
| Public REST API | HAPPENSTANCE_API_KEY (Bearer) | 2 credits/search, 1 credit/research | Fallback only |
The auto router prefers cookies until quota is exhausted, then falls back to bearer with an explicit "cost spent" log line on stderr. Use --source api on coverage, hp people, prospect, or warm-intro to opt into bearer explicitly (e.g. for the richer research schema or scoped group searches). Use --source hp to force the cookie surface.
The api hpn * subcommands always use the bearer surface and always cost credits. Provision and rotate keys at https://happenstance.ai/settings/api-keys.
Argument Parsing
Parse $ARGUMENTS:
- Empty,
help, or--help-> runcontact-goat-pp-cli --help - Starts with
installand ends withmcp-> MCP installation (see below) - Starts with
install-> CLI installation (see below) - Anything else -> Direct Use (map the request to the best command and run it)
MCP Server Installation
- Install the MCP server:<!-- -->
go install github.com/mvanhorn/printing-press-library/library/sales-and-crm/contact-goat/cmd/contact-goat-pp-mcp@latest - Register with Claude Code:<!-- -->
<!-- -->Ask the user for actual values of required API keys before running.claude mcp add -e DEEPLINE_API_KEY=value -e HAPPENSTANCE_API_KEY=value contact-goat-pp-mcp -- contact-goat-pp-mcp - Verify:
claude mcp list.
The MCP server exposes 16 tools. The four bearer-API tools added in this release are:
api_search- Run a Happenstance public-API search (costs 2 credits)api_research- Run a deep-research dossier (costs 1 credit on completion)api_groups_list- List Happenstance groups for the caller (free)api_usage- Show live credit balance and usage history (free)
The other 12 tools cover the cookie surface (search, friends, feed, notifications, dossier, etc.) and the LinkedIn / Deepline integrations.
Direct Use
- Check if installed:
which contact-goat-pp-cli. If not found, offer CLI installation (above). - Discover commands:
contact-goat-pp-cli --help. Drill into subcommand help withcontact-goat-pp-cli <command> --helporcontact-goat-pp-cli api hpn <subcommand> --help. - Match the user query to the best command (see Notable Commands below).
- Execute with the
--agentflag for structured, token-efficient output:<!-- -->contact-goat-pp-cli <command> [args] --agent - The
--agentflag sets--json --compact --no-input --no-color --yes.
Source routing (cookie vs bearer) is automatic. The auto router prefers the free cookie surface and falls back to the paid bearer surface only when cookie quota is exhausted, logging a "cost spent" notice on stderr. Pass --source api to opt into bearer explicitly (richer schema, group-scoped searches), or --source hp to force cookies.
Enrichment Preflight (read this before running any enrichment command)
These commands spend Deepline credits and REQUIRE DEEPLINE_API_KEY or a BYOK setup:
waterfall(unless you pass--byokand have BYOK providers configured)dossier --enrich-emaildeepline find-email/enrich-person/email-find/phone-finddeepline search-people/search-companies/enrich-company
Before invoking any of these, verify auth by running doctor first:
contact-goat-pp-cli doctor --agent | grep -i deepline
deepline_env shows the resolution source:
set (env)—DEEPLINE_API_KEYexported in the current shellset (flag)—--deepline-keypassed on the command lineset (file:~/.local/deepline/<host>/.env)— auto-discovered from the official Deepline CLI's persisted key (the user authenticated withdeepline auth registerordeepline auth status; no shell export needed)not set— none of the above. Ask the user for a key, or for a BYOK Hunter/Apollo key
The auto-discovery path means a user who has the Deepline CLI installed and authenticated does NOT need to re-export the key into their shell — contact-goat reads ~/.local/deepline/code-deepline-com/.env directly (mode 0600, owned by the user). Don't ask the user to re-export when set (file:...) is reported. If deepline_discovery_skipped is also reported, those are candidate files the resolver rejected for a security reason (wrong mode, missing prefix); surface them so the user can fix the underlying issue.
Provider chain by target kind (waterfall):
| Target | Primary | Fallback 1 | Fallback 2 |
|---|---|---|---|
| LinkedIn URL | apollo_people_match | hunter_people_find | contactout_enrich_person |
| apollo_people_match | hunter_people_find | - | |
| Name + --company | dropleads_email_finder | hunter_email_finder | datagma_find_email |
Notes:
- Name targets MUST pass
--company <domain>(or setCONTACT_GOAT_COMPANYenv). - Apollo returns
personal_emails[]when available; treatemail_status: "unavailable"as "no verified work email on file" (the personal email is still usable). - Dropleads returns
status: "catch_all"for domains on Google Workspace; the email is a pattern guess, not a verified mailbox. - Provider-level 403s are surfaced as "Provider not connected" rather than "Check DEEPLINE_API_KEY"; they do not abort the chain. The next provider is tried automatically.
Notable Commands
| Command | What it does |
|---|---|
coverage <company> | Who you know at a company across LinkedIn + Happenstance, ranked by relationship strength |
coverage --location <city> | Who you know in a city. Bearer-only (cookie surface has no city-search); use --source api. |
hp people <query> | Happenstance graph people-search (1st / 2nd / 3rd degree). --csv emits flat CSV with semicolon-joined bridges. |
prospect <query> | Fan-out search across LinkedIn + Happenstance (+ opt-in Deepline), deduped |
warm-intro <target> | Mutual connections across sources who could intro you to a target |
waterfall <target> [--company X] | Free-sources-first enrichment, falls through to Deepline provider chain. Requires DEEPLINE_API_KEY or --byok. Bare-name targets need --company |
dossier <target> [--enrich-email] | Unified LinkedIn + Happenstance + (optional) Deepline dossier. --enrich-email requires DEEPLINE_API_KEY |
deepline find-email "<name>" --company <domain> | Single-call work-email lookup via dropleads_email_finder |
deepline enrich-person <linkedin-url> | Full person record via apollo_people_match (includes personal_emails[]) |
api hpn search <text> | Bearer-API search (costs 2 credits, async with poll). --first-degree-only keeps only 1st-degree matches; --min-score N drops weak signals (see docs/scoring.md); --all --max-results N auto-paginates. |
api hpn research <description> | Bearer-API deep dossier (costs 1 credit on completion) |
api hpn usage | Live credit balance, purchases, recent usage events (free) |
doctor | Check CLI health, both Happenstance surfaces, LinkedIn, and Deepline. Reports happenstance_graph_status (ok / stale / very_stale) on the LinkedIn upload age. |
Run any command with --help for full flag documentation.
Agent Mode
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
- Pipeable — JSON on stdout, errors on stderr
- Filterable —
--selectkeeps a subset of fields, with dotted-path support (see below) - Previewable —
--dry-runshows the request without sending - Cacheable — GET responses cached for 5 minutes, bypass with
--no-cache - Non-interactive — never prompts, every input is a flag
Filtering output
--select accepts dotted paths to descend into nested responses; arrays traverse element-wise:
contact-goat-pp-cli <command> --agent --select id,name
contact-goat-pp-cli <command> --agent --select items.id,items.owner.name
Use this to narrow huge payloads to the fields you actually need — critical for deeply nested API responses.
Response envelope
Data-layer commands wrap output in {"meta": {...}, "results": <data>}. Parse .results for data and .meta.source to know whether it's live or local. The N results (live) summary is printed to stderr only when stdout is a TTY; piped/agent consumers see pure JSON on stdout.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue, including bearer 402 out-of-credits) |
| 7 | Rate limited (cookie 429 or bearer 429; auto-fallback may apply) |
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: pp-contact-goat](https://darkplay.ru/ai/skills/mvanhorn-printing-press-library-pp-contact-goat)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
carta-crmanthropics · Управление Carta CRM в диалоговом режиме — поиск, добавление, обновление и обогащение…
hunteranthropics · Поиск и проверка рабочих email-адресов, поиск контактов по домену и обогащение данных о…
intercomanthropics · Интеграция Intercom для Claude Code. Поиск по диалогам, анализ обращений в поддержку…
vibe-prospectinganthropics · Vibe Prospecting подключает Claude к актуальным данным о B2B-компаниях и контактах для…
zoominfoanthropics · Поиск компаний и контактов, обогащение лидов, поиск похожих и AI-ранжированные…
carta-crmanthropics · Управление Carta CRM в диалоговом режиме — поиск, добавление, обновление и обогащение…
common-roomanthropics · Превратите Common Room в своего GTM-копилот. Исследование аккаунтов и контактов…
graspanthropics · Рабочие процессы для сделок на основе инструментов Grasp: поиск компаний, создание…
intercomanthropics · Интеграция Intercom для Claude Code. Поиск диалогов, анализ обращений в поддержку, поиск…
vibe-prospectinganthropics · Vibe Prospecting подключает Claude к живым данным о B2B-компаниях и контактах, позволяя…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton