Use whenever the user wants to find, shortlist, vet, or enrich US engineering firms — civil, structural, MEP, mechanical, electrical, geotechnical, transport...
---
name: find-engineering-firm
description: Use whenever the user wants to find, shortlist, vet, or enrich US engineering firms — civil, structural, MEP, mechanical, electrical, geotechnical, transportation, environmental, and manufacturing. **For real-world engineering (buildings, infrastructure, manufacturing) — NOT software engineering.** Triggers on "find civil engineering firms in Florida for transportation", "shortlist three structural engineering firms with high-rise experience", "MEP consultancy for a hospital project", or "pull contact info for these 12 engineering firm domains", even when described indirectly (PE-stamped drawings, building-permit review). Drives the ServiceGraph API (api.servicegraph.co) — a 100k+ US firm catalog filterable by industry, services, location, size, ratings. Defer software-dev / "engineering team" / SaaS-architecture asks to find-software-developer. Skip in-house engineering-manager hires, DIY questions, software-product comparisons (Revit, AutoCAD), non-US firms, individual freelancers.
version: "0.3.0"
metadata:
api_base: https://api.servicegraph.co
dataset_id: pro_services
industry: engineering_services
---
# find-engineering-firm
Drive the **ServiceGraph API** (`https://api.servicegraph.co`) to find,
shortlist, and enrich US **real-world** engineering firms — buildings,
infrastructure, energy, manufacturing — via the `pro_services`
dataset. The catalog tags firms with `industry:engineering_services`
and a ~23-tag service sub-taxonomy.
**This is NOT for software engineering.** "Software engineering firm",
"engineering team", "engineering manager hire", "system architecture
review" — those are all software-developer territory. The first thing
this skill confirms is that the user means real engineering, not
software.
**Always pin `industry:engineering_services`.** Note the **`_services`
suffix** — older docs sometimes show `industry:engineering` but the
literal pin returns zero results in the live catalog. Sub-disciplines
are typically structured `service_provided` tags
(`civil-engineering`, `structural-engineering`, `mep-engineering`,
etc.) — confirm exact names via
`/v1/datasets/pro_services/fields?include_values=1`. Surveying is
`surveying-mapping`, not `surveying`.
Any HTTP client works (curl, fetch, requests). Examples below use curl.
## When NOT to use this skill
The dominant failure mode is firing on software-engineering asks. Refuse those.
- **Software / SaaS / app-development asks** — even when phrased as "software engineering firm", "engineering team partner", "build our platform" → defer to `find-software-developer`.
- **In-house "engineering manager" hires** — in modern B2B usage this is almost always software-engineering recruiting. Refuse.
- **System / cloud / database architecture questions** ("Postgres vs DynamoDB", "monolith vs microservices") — software topics.
- **Architecture (buildings)** — `find-architecture-firm` covers that industry (when it exists). This skill covers engineering disciplines that *work with* architects (structural, MEP, civil), but the architect-of-record procurement is a different fire.
- **Consumer/residential** ("architect for a residential remodel", "engineer to inspect my house"). Catalog is B2B procurement only.
- **Non-US firms / individual freelance engineers / DIY questions / engineering-software product comparisons (Revit, AutoCAD, SolidWorks, Ansys).**
## MCP server (preferred for authed calls)
If your harness has the ServiceGraph MCP server loaded (tools
containing `servicegraph`), prefer those — OAuth 2.1 + PKCE keeps the
token in the harness sandbox. Otherwise use the REST flow below.
## API surface (dataset id: `pro_services`)
Every endpoint requires the bearer (`Authorization: Bearer vk_…`).
No anonymous tier.
| Endpoint | Cost | Use it for |
|---|---|---|
| `GET /v1/datasets/pro_services/fields[?include_values=1]` | free | Confirm `engineering_services` industry value and sub-tag names. |
| `GET /v1/datasets/pro_services/check?filter=…` | free | Validate filter. |
| `POST /v1/datasets/pro_services/translate-intent` | free | `{intent}` → DSL filter + sanity count. |
| `GET /v1/datasets/pro_services/search?filter=…&limit=` | free | Brief firm cards + per-row unlock hint + total. |
| `GET /v1/datasets/pro_services/:apex` | free | One row brief; detail only if unlocked. |
| `POST /v1/datasets/pro_services/unlocks` | **10 credits / firm** | `{apexes:[...]}` ≤100; atomic; 30-day TTL on detail. |
| `GET /v1/me/credits` | free | Balance. |
**Cost model.** Discovery / validation / search / brief reads are
free. Detail (url, phone, email, social, address, full `platforms`
map) costs **10 credits per firm** and lasts **30 days**.
## Auth
`vk_*` API keys minted in the dashboard. **Keep the token out of the
LLM context** — never read `.env*` into your context; dispatch via
shell.
1. **Try the call first** through a shell wrapper that sources `.env.local`:
```bash
( set -a; [ -f .env.local ] && . ./.env.local; set +a;
curl -sS -H "Authorization: Bearer $SERVICEGRAPH_API_KEY" \
'https://api.servicegraph.co/v1/datasets/pro_services/fields' )
```
2. **On `401`** prompt the user:
> "Open **https://servicegraph.co/profile/api-keys**, create a
> key, and add `SERVICEGRAPH_API_KEY=vk_…` to `.env.local` here
> (or export it). Tell me when done. Please don't paste the key
> into chat."
3. **Retry** after the user signals ready.
## Filter DSL
GitHub-search-style.
```
filter := orExpr
orExpr := andExpr ("OR" andExpr)*
andExpr := notExpr (("AND")? notExpr)* # whitespace = implicit AND
notExpr := ("NOT" | "-") notExpr | atom
atom := "(" filter ")" | predicate
predicate:= IDENT op valueOrList | bareword
op := ":" | "=" | ">=" | "<=" | ">" | "<"
valueOrList := value ("," value)*
value := IDENT | NUMBER | tagAtEvidence
tagAtEvidence := IDENT "@" ("low"|"medium"|"high")
bareword := IDENT | NUMBER # → keyword:<bareword>
```
**Four rules that bite:** AND binds tighter than OR (use parens);
comma list = OR within one predicate; negation is `-x` or `NOT x`;
bareword = keyword search (quote multi-word phrases).
**Engineering-flavored examples** (validate yours with `/check`):
```
industry:engineering_services service_provided:civil-engineering state:FL transportation
industry:engineering_services service_provided:structural-engineering high-rise
industry:engineering_services service_provided:mep-engineering hospital
industry:engineering_services service_provided:mechanical-engineering hvac industrial
industry:engineering_services service_provided:environmental-engineering remediation
industry:engineering_services service_provided:geotechnical-engineering state:CA
industry:engineering_services service_provided:civil-engineering@high has:clutch
industry:engineering_services service_provided:electrical-engineering manufacturing
```
**Sub-discipline → tag mapping** (verify exact names via `/fields`;
~23 sub-tags so this isn't exhaustive):
| User asks for | Use |
|---|---|
| Civil engineering / sitework / transportation | `service_provided:civil-engineering` |
| Structural engineering | `service_provided:structural-engineering` |
| MEP (mechanical/electrical/plumbing) | `service_provided:mep-engineering` |
| Mechanical / HVAC | `service_provided:mechanical-engineering` |
| Electrical engineering | `service_provided:electrical-engineering` |
| Geotechnical / soils / foundations | `service_provided:geotechnical-engineering` |
| Surveying / land surveys / mapping | `service_provided:surveying-mapping` (NOT `surveying`) |
| Transportation engineering | `service_provided:transportation-engineering` |
| Environmental / remediation | `service_provided:environmental-engineering` |
| Manufacturing / process | `service_provided:manufacturing-engineering` |
| Aerospace | `service_provided:aerospace-engineering` |
| Energy (oil/gas/renewables) | `service_provided:energy-engineering` |
| Industrial automation / controls | `service_provided:industrial-automation` |
| Materials testing | `service_provided:materials-testing` |
| Acoustic / vibration | `service_provided:acoustic-engineering` |
| Biomedical | `service_provided:biomedical-engineering` |
Verticals (hospital, high-rise, semiconductor, retail, datacenter)
and credentials (PE-licensed, LEED, AICP) are keyword-only.
## Identifying firms — `apex`
Firms are identified by their **apex domain** (`aecom.com`, not
`www.aecom.com/about`).
## Recipes
### A. Civil engineering for transportation, in a state
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:civil-engineering+state:FL+transportation&limit=10
# Present, get pick of 3. "Unlocking 3 = 30 credits, 30-day TTL."
POST /v1/datasets/pro_services/unlocks
{ "apexes": ["firm-a.com", "firm-b.com", "firm-c.com"] }
```
### B. Structural engineering + commercial high-rise
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:structural-engineering+(high-rise OR commercial)&limit=10
```
### C. MEP for a hospital project
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:mep-engineering+hospital&limit=10
```
### D. Mechanical / HVAC for industrial facility
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:mechanical-engineering+hvac+industrial&limit=10
```
### E. Indirect intent — "stamp the drawings"
User: *"We're building a 10-story office and need a structural engineer to stamp the drawings."*
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:structural-engineering+commercial&limit=10
```
PE-license details surface from the unlocked `platforms` map / firm
detail. If the user wants only PE-licensed firms, add `pe` as a keyword.
### F. Geotechnical in California
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:geotechnical-engineering+state:CA&limit=10
```
Avoid pinning narrow keywords like `seismic` on top — engineering
verticals tend to collapse below k=20 quickly. The full state pool
of ~20 geotechnical firms is more useful than a 2-firm pool after
keyword narrowing.
### G. Quality threshold — be careful
Engineering firms aren't reviewed like agencies; `rating>=N` collapses
civil/structural/MEP pools sharply. Prefer `@high` + size + geography
as the quality proxy instead of a rating gate:
```
GET /v1/datasets/pro_services/search?filter=industry:engineering_services+service_provided:civil-engineering@high+state:CA+-company_size_signal:solo&limit=10
```
If the user insists on rated firms, add `has:clutch` (more lenient
than `rating>=4`).
### H. BYO apex list — enrich domains
User pastes 8–20 engineering firm domains:
1. `GET /v1/datasets/pro_services/:apex` per domain — free brief
(404 = not in catalog, no charge). A 404 often means the domain
is a software firm tagged `industry:it_services` instead of real
engineering.
2. User picks N to fully enrich. `POST /unlocks` = **10×N credits**,
atomic, detail returned.
3. Re-runs within 30-day TTL are free.
## Gotchas
- **Always pin `industry:engineering_services`.** Without it, `civil-engineering` / `mep-engineering` / `electrical-engineering` keywords could leak into other industries (architecture firms sometimes list MEP coordination as a sub-service).
- **It's `engineering_services`, not `engineering`.** The literal pin `industry:engineering` returns zero results. Same drift logic for `surveying-mapping` (not `surveying`).
- **The hardest boundary is software-engineering.** "Engineering firm" / "engineering team" in modern B2B usage almost always means software in tech contexts. Defer those to `find-software-developer`. Real engineering is for buildings, infrastructure, energy, manufacturing — not for SaaS apps.
- **"Engineering manager" hires are recruiting**, not procurement.
- **Architecture firms are a separate industry.** Architect-of-record procurement (form/aesthetics) is a different fire; this skill is for the engineering disciplines that work with architects.
- **Consumer/residential is out of scope** ("architect for my house remodel", "engineer to inspect my deck"). B2B-only.
- **Engineering verticals are rating-sparse.** Civil/structural/MEP firms aren't reviewed like agencies — `rating>=N` collapses pools below k=20. Use `@high` evidence + size + geography as the quality proxy.
- **Narrow keywords artificially shrink pools.** A keyword like `seismic` on top of a CA geotech filter yields only ~2 firms vs ~20 without it. Drop narrowing keywords for default-required verticals.
- **Engineering-software product comparisons (Revit, AutoCAD, SolidWorks, Ansys, Bentley)** are NOT procurement.
- **Briefs DO include `apex`, `name`, location, ratings.** They DON'T include `url`, `phone_primary`, `email_primary`, `legal_name`, `address_full`, full `platforms` — those require an unlock.
- **`not_found` / `not_in_dataset` 404 = not in `pro_services`.** Skip; not charged.
- **Unlock is atomic.** N apexes either all charge (up to 10×N credits) or none on 402.
- **Within-TTL re-views are free** (`was_cached:true`).
## Errors
JSON envelope: `{"error": {"code": "...", "message": "..."}}`.
| Status | Code | What to do |
|---|---|---|
| 400 | `filter_parse_error` | `position` included; fix and re-validate with `/check`. |
| 400 | `kind_in_filter` | Strip any `kind:` from filter. |
| 400 | `field_not_in_dataset` | Drop the disallowed field. |
| 400 | `invalid_apex` | Re-normalize. |
| 401 | `unauthorized` / `invalid_audience` | Re-prompt for fresh `vk_…`. |
| 402 | `insufficient_credits` | `needed` and `balance`; nothing charged. |
| 404 | `not_found` / `not_in_dataset` | Skip; not charged. |
| 429 | `rate_limited` | Honor `Retry-After`. |
## End-to-end example
User: *"Three civil engineering firms in Florida focused on
transportation infrastructure, ideally with PE-licensed engineers."*
```
GET /v1/datasets/pro_services/fields?include_values=1
GET /v1/datasets/pro_services/check?filter=industry:engineering_services+service_provided:civil-engineering+state:FL+transportation+pe
GET /v1/datasets/pro_services/search?filter=...&limit=10
# Present briefs. "Unlocking 3 = 30 credits, 30-day TTL."
POST /v1/datasets/pro_services/unlocks
{ "apexes": ["firm-a.com", "firm-b.com", "firm-c.com"] }
GET /v1/me/credits
```
don't have the plugin yet? install it then click "run inline in claude" again.
restructured original prose into implexa's six required sections, explicitly documented auth flow, api endpoints, dsl filter rules, decision logic, edge cases (rate limits, 402 insufficient credits, 404 not found, caching), and added outcome signals for user validation, preserving original author's intent and procedure throughout.
find, shortlist, and enrich us real-world engineering firms (buildings, infrastructure, energy, manufacturing) via the servicegraph api and pro_services dataset. use this when the user needs civil, structural, mep, mechanical, electrical, geotechnical, surveying, transportation, environmental, manufacturing, aerospace, or energy engineering firms. do not use for software engineering, in-house hiring, architecture-of-record procurement, consumer/residential work, non-us firms, diy questions, or engineering software product comparisons. the catalog filters by industry, services, location, size, and ratings to shortlist firms for procurement or enrichment.
SERVICEGRAPH_API_KEY=vk_* stored in .env.local or exported as env var. obtain from https://servicegraph.co/profile/api-keys. keep the token out of llm context; dispatch calls via shell wrapper.https://api.servicegraph.copro_services (100k+ us firms tagged by industry, services, location, size, ratings)servicegraph), prefer those tools for authed calls (oauth 2.1 + pkce keeps token in sandbox). otherwise use rest endpoints below.confirm user means real engineering, not software. if the user says "software engineering firm", "engineering team", "engineering manager hire", "system architecture review", "monolith vs microservices", or "cloud database architecture" , refuse and defer to find-software-developer. if unclear, ask: "do you mean real-world engineering (buildings, infrastructure, manufacturing) or software engineering?"
validate the api key. call via shell wrapper:
( set -a; [ -f .env.local ] && . ./.env.local; set +a;
curl -sS -H "Authorization: Bearer $SERVICEGRAPH_API_KEY" \
'https://api.servicegraph.co/v1/datasets/pro_services/fields' )
if 401 or missing key, prompt:
open https://servicegraph.co/profile/api-keys, create a key, and add
SERVICEGRAPH_API_KEY=vk_…to.env.local(or export it). tell me when done. don't paste the key into chat.
confirm exact field and tag names. call /v1/datasets/pro_services/fields?include_values=1 to list all available filters, especially sub-discipline tags (civil-engineering, structural-engineering, mep-engineering, mechanical-engineering, electrical-engineering, geotechnical-engineering, surveying-mapping, transportation-engineering, environmental-engineering, manufacturing-engineering, aerospace-engineering, energy-engineering, industrial-automation, materials-testing, acoustic-engineering, biomedical-engineering). note: always use service_provided: prefix (not bare tag names) and always pin industry:engineering_services (not industry:engineering).
translate user intent to dsl filter (optional but recommended). call POST /v1/datasets/pro_services/translate-intent with {"intent": "<user ask>"} to auto-generate a filter suggestion and sanity count (how many firms match). this step catches common field/tag typos and saves iteration.
validate the filter. call GET /v1/datasets/pro_services/check?filter=<your_filter> to parse the filter dsl and return total matching firms. if error, fix and revalidate. common dsl rules: and binds tighter than or (use parens); comma list = or within one predicate; - or NOT = negation; bareword = keyword search.
search and brief. call GET /v1/datasets/pro_services/search?filter=<your_filter>&limit=<10-50> to retrieve brief cards (apex, name, location, ratings). briefs include an unlock hint per row showing cost (10 credits per firm). total matching count is included. do not display internal fields (url, phone_primary, email_primary, legal_name, address_full, full platforms map) , those require unlock.
let user pick firms to enrich. present the brief results. ask: "which of these would you like me to unlock?" typical answer: "the top 3" or "acme-eng.com and xyz-struct.com". calculate unlock cost: 10 credits per firm, atomic (all-or-nothing).
unlock and enrich. once user confirms, call POST /v1/datasets/pro_services/unlocks with {"apexes": ["firm-a.com", "firm-b.com", ...]} (up to 100 apexes per request, ≤10 recommended for clarity). response includes full firm detail: url, phone, email, social, address, full platforms map, pe-license info, certifications. ttl is 30 days; re-views within ttl are free.
handle 402 (insufficient credits). if insufficient_credits error, stop and report: "unlock needs X credits but you have Y. upgrade or skip." nothing is charged on 402.
check balance (optional). call GET /v1/me/credits anytime to show remaining credits.
byo apex list (enrichment only). if user pastes 8-20 domain names: (a) call GET /v1/datasets/pro_services/:apex per domain to fetch free briefs (404 = not in catalog, no charge, skip). (b) user picks firms to unlock. (c) POST /unlocks as above.
if user asks for software engineering, software team, engineering manager hire, architecture (form/aesthetics), system/cloud/database architecture, consumer/residential work, non-us firms, diy questions, or engineering software (revit, autocad, solidworks, ansys, bentley): refuse and defer to find-software-developer or appropriate domain skill. do not attempt the search.
if api key missing or 401 on first call: prompt user to create a key at https://servicegraph.co/profile/api-keys and add to .env.local. retry after user signals ready.
if filter validation fails (400 filter_parse_error): the error includes position. show user the error, fix the filter, and revalidate with /check.
if user wants to narrow by rating (e.g., "4-star firms only"): warn that rating>=N collapses engineering pools sharply below k=20 (engineering firms are rating-sparse). recommend instead using @high evidence tags, size filters, and geography as quality proxies. if user insists, use has:clutch (more lenient than numeric rating gates).
if user asks for pe-licensed firms: add keyword pe to the filter. full pe credentials surface in the unlocked platforms map.
if user specifies a narrow vertical keyword (e.g., "seismic" + geotechnical + california): warn that narrow keywords artificially shrink pools (e.g., 2 firms vs 20). recommend dropping narrowing keywords for default-required verticals and using full state pool instead. let user decide.
if search returns 0 results: confirm the filter is correct (validate with /check). if correct, inform user the catalog has no matches for that combination. suggest broadening the geography, dropping narrow keywords, or removing service sub-discipline constraints.
if unlock returns 402 (insufficient credits): report needed vs balance. do not charge anything. user must upgrade or pick fewer firms.
if unlock returns 404 (not_found or not_in_dataset): firm not in pro_services. skip; no charge.
if rate limited (429): honor the Retry-After header. wait and retry.
if user asks to re-view an unlocked firm within 30 days: the unlock is cached. re-view is free; response includes was_cached:true.
success means:
brief search results: json array of firm objects with apex, name, city, state, rating, unlock_cost_credits (10), total_matching_count. no detail fields exposed.
enriched firm data (after unlock): json array of firm objects with full detail: apex, name, url, phone_primary, email_primary, legal_name, address_full, city, state, zip, rating, platforms (map of certifications, pe licenses, third-party profiles), company_size_signal, social_accounts, was_cached (true if within 30-day ttl). format as markdown table or json, per user preference.
credit balance: integer remaining credits from GET /v1/me/credits.
validation reports: /check and /translate-intent return filter dsl parse result and total matching firm count. errors include position or field name for debugging.
file location: if user requests export, write results to .engineering-firms.json in the current working directory with metadata header (timestamp, user filter, total count, unlocked apexes, cost).
user knows the skill worked when:
brief results display firm names, locations, ratings, and cost to unlock, matching the stated discipline and geography. user can read and pick firms.
unlocked results show full contact info, websites, phone numbers, emails, pe credentials, certifications, and social profiles for the chosen firms. data is accurate (verified against live servicegraph catalog).
credit balance is reported and decrements correctly (10 credits per unlocked firm). user confirms spend.
search results are reproducible: same filter, same user, same result set (or user signals new firms added to catalog).
if user re-runs the skill within 30 days on unlocked firms, full detail re-appears instantly with was_cached:true and no credit charge.
export file (if requested) contains all enriched results, is valid json, and can be imported into crm, spreadsheet, or procurement tool.