Command Palette

Search for a command to run...

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

company-autocomplete

БесплатноЗапускает вложенные скриптыНе проверен

Company autocomplete, company typeahead and company name search for your app's forms. Typed text in; matching companies out, each with name, logo, website…

crustdataот crustdata★ 17 звёзд на GitHub

Об этом скилле

Company Autocomplete

Input: the text a user typed (2+ characters). Output: up to 5 companies with name, logo, domain and headcount, the exact API calls, and code to drop into the user's app.

Tool dependencies

Crustdata MCP at https://mcp.crustdata.com/mcp (tools mode). Tools: crustdata_autocomplete_company_v2 (free) and crustdata_company_search_db_v2, plus crustdata_credit_costs (free). Put every argument inside params and pass format: "json" to the search. A local Chrome, Chromium or Playwright for the PNG (optional).

  • Pass user_query (the user's request, verbatim) on every call that accepts it (crustdata_credit_costs takes no params).
  • At the start of each run, call crustdata_credit_costs once (free) for this account's rates. Never quote prices from memory. Below, <row rate> is its per-result rate for crustdata_company_search_db_v2, plus any premium group in fields it bills on the response side.
  • Spend is the sum of each answer's credits.spent_this_call, kept in a running spent. Never a formula. For the snippets in the user's app: Node 18+, React 18+ and a Crustdata API key in CRUSTDATA_API_KEY.

Cost, said up front

  • Company names: free (crustdata_autocomplete_company_v2).
  • Logo and domain: <row rate> per suggestion (one company search row each), so 5 × <row rate> for a 5-row dropdown. Empty results are free.
  • In an app the cost is per query, not per keystroke: the React component debounces 250 ms and starts at 2 characters, and suggest.mjs caches by query. Tell the user this in one line, and offer names only (free, names without logos) if they want zero spend.

There is no question to ask for a single query: it costs at most limit × <row rate>. If the user asks to run many queries (for example "test these 200 company names"), say the total (n × limit × <row rate>) and ask for a cap (maxCredits) first. Fewer than 2 characters: no call, no cost.

1 · Run it

limit is 5 unless the user asks for another number (1 to 10). maxCredits defaults to limit × <row rate>.

  1. Names (free): crustdata_autocomplete_company_v2 with {"field": "basic_info.name", "query": <text>, "limit": <limit + 4>, "user_query": "<the user's request>"}. It returns a plain list of names, best match first. Drop repeats (case-insensitive). For names only, stop here and give the first limit names.
  2. Logo, domain and size, one call per name, the first limit names first (in parallel), then the extra names one at a time only while fewer than limit suggestions have a domain and logo. crustdata_company_search_db_v2 with filters: {field: "basic_info.name", type: "=", value: <name>}, sorts: [{field: "headcount.total", order: "desc"}], limit: 1, fields: ["basic_info.name", "basic_info.primary_domain", "basic_info.logo_permalink", "basic_info.employee_count_range", "headcount.total", "taxonomy.professional_network_industry", "locations.country"], user_query (one row, <row rate>). Skip the call if spent + <row rate> would pass maxCredits, and set stopped: "budget".
  3. Keep a row only with both primary_domain and logo_permalink, so the dropdown never shows a blank logo. Drop repeats by domain. Keep the autocomplete order. At most limit suggestions.

Each suggestion: name, domain (primary_domain), logo (logo_permalink), size (employee_count_range), headcount (headcount.total), industry, country.

2 · Show it

Save result.json in this shape, then run render.py:

{"query": "pay", "suggestions": [{"name": "", "domain": "", "logo": "", "size": "", "headcount": 0,
   "industry": "", "country": ""}],
 "names": [""], "spent": 0, "fetched": 0, "complete": true, "stopped": null}

names is the first limit free names, fetched the number of suggestions.

python3 scripts/render.py result.json company-autocomplete.png
  • The image is the input with the typed text and the dropdown underneath. Without Chrome, Chromium or Playwright it writes the HTML; then list the suggestions.
  • List the suggestions: name, domain, headcount.
  • When the user is building this, give both snippets and the two API calls (below).
  • End with one line: Used N credits., N being spent (the sum of credits.spent_this_call).

The snippets for the user's app

  • snippets/suggest.mjs (backend, Node 18+): POST https://api.crustdata.com/company/search/autocomplete { field: "basic_info.name", query, limit }, then POST https://api.crustdata.com/company/search per name. Headers Authorization: Bearer $CRUSTDATA_API_KEY, x-api-version: 2025-11-01. Caches by lowercase query, 2 s timeout, returns [] on any error so the field still works as plain text.
  • snippets/CompanyAutocomplete.tsx (frontend): calls the user's own /api/companies?q= route (never the Crustdata API from the browser, which would expose the key), 250 ms debounce, aborts stale reque
Полный SKILL.md на GitHub

Установить company-autocomplete в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdassets/crustdata-logo-dark.pngassets/crustdata-logo-light.pngassets/crustdata-mark.svgevals/evals.jsonexamples/pay.jsonexamples/pay.pngscripts/render.pysnippets/CompanyAutocomplete.tsxsnippets/suggest.mjs

FAQ

Что делает скилл company-autocomplete?

Company autocomplete, company typeahead and company name search for your app's forms. Typed text in; matching companies out, each with name, logo, website domain and headcount, best match first. Uses the free Crustdata company-name autocomplete, then one company search row per suggestion for the logo and domain. Ships the exact public API calls, a Node backend helper (suggest.mjs) with caching and a timeout, and a small dependency-free React combobox (CompanyAutocomplete.tsx) with debounce, keyboard navigation and logos, so product builders can replace a free-text company field with clean, deduplicated company records. Use when someone asks for company autocomplete, a company picker, a company search box, an employer field with logos, a Clearbit-style autocomplete, or how to turn typed company names into domains.

Как установить скилл company-autocomplete?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл company-autocomplete запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить company-autocomplete с