Imported from jarbcs1-prog/the-seas (
skills/crm_company/SKILL.md). Install upstream withnpx skills add jarbcs1-prog/the-seas --skill crm_company. Copyright stays with the author.
crm-company
Look up a company by its CRM id, or find all companies at a given domain.
When to use
Use this skill when you have a company id (e.g. from a previous search or a deal/contact record) and need the full company record, or when you have a domain (e.g. "acme.com") and want to find all companies in the CRM at that domain.
How it works
- Take either a
company_idor adomain(not both) - Call the appropriate repository method:
company_by_idfor exact id lookupcompanies_by_domainfor domain search
- Return the company record(s) wrapped in a standard result
Input
company_id(str, optional): A company id to look up exactly. Provide this OR domain.domain(str, optional): A domain to search for companies (e.g. "acme.com"). Provide this OR company_id.
Exactly one of company_id or domain must be provided.
Output
If company_id provided:
ok: truecompany: dict with all company fields (id, name, domain, description, logoUrl, logoDarkUrl, iconUrl, iconDarkUrl, iconTone, brandColor, industry, subIndustry, city, stateCode, country, countryCode, phone, email, linkedinUrl, twitterUrl, githubUrl, pricingUrl, careersUrl, contacts, deals)
If domain provided:
ok: truecompanies: list of company dicts (same fields as above)
If neither or both provided:
ok: falseerror: descriptive message
If CRM capability not enabled:
ok: falseerror: unavailability dict with reason
Notes
- The CRM capability ("crm") must be enabled (AGENT_BRIDGE_SECRET set) for this skill to work.
- Domain matching is case-insensitive and exact.
- Company id lookup is exact match.
- Returns all COMPANY_FIELDS from the repository.