协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
anysite-crm-setup【开发与工程】Connect and configure the user's CRM (HubSpot or Pipedrive) for safe AI-driven enrichment through anysite MCP crm_* tools. Runs a short discovery - reads the CRM schema including custom properties, agrees a deterministic field mapping with the user in 3-5 questions, and saves a local CRM profile that all future enrichment sessions follow. Use when th…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Connect the user's CRM and produce a local CRM profile — a saved field mapping that makes every future enrichment write deterministic: the same data always lands in the same CRM properties.
crm_upsert_contacts / crm_upsert_companies, even outside setupThe crm_* tools are visible only when the user has enabled CRM integration in their Anysite
dashboard (Profile → CRM Integration). If the tools are missing, ask the user to enable it there.
After they enable it, the tools do NOT appear instantly: the server flag takes up to a minute to
propagate, and the agent's tool list is cached per session — ask the user to reconnect the MCP
server (or start a new session), then retry. This is expected behavior, not an error.
Call crm_list_connections.
crm_connect(provider="hubspot") or crm_connect(provider="pipedrive"), give the user the
connect_url to open in a browser, then poll crm_connect_status(pending_id) every few seconds
until active.crm_connect returns a conflict, the user must
disconnect the current CRM in the dashboard first — never disconnect for them without asking.Call crm_get_schema(). You get:
properties.contacts / properties.companies — every property with label, type,
options (valid enum values), read_only, customlists — the user's CRM lists (id, name, processing type)protected_properties — fields the server will never let you writeSilently classify properties:
email→email, jobtitle,
firstname/lastname, phone, city, country, company, website, domain, industry,
numberofemployees, linkedin_url→hs_linkedin_url. Pipedrive: email→email, name,
job_title, phone, plus the domain alias on companies (backed by a custom Domain field the
server manages automatically).label to understand them.read_only: true, calculated, hs_* system internals, protected fields.Provider differences that change agent behavior:
linkedin_url matching is
HubSpot-only. Records with only a linkedin_url will not match existing Pipedrive persons.domain alias — the server maps it to the portal's
Domain field. If company writes fail with a "no domain field" error, reconnect the CRM with
admin access so the server can create the field.Ask ONLY about ambiguous or high-stakes decisions, one compact block, not an interview:
Lead Score or ICP Fit Score?"anysite-gtm-profile already records the plan.Confirm the full mapping as ONE list for approval, then save.
Write the agreed profile to ~/.claude/skills/anysite-crm-profile/SKILL.md in Claude Code or
~/.codex/skills/anysite-crm-profile/SKILL.md in Codex (create the directory). Without file
access, give it as a block to paste into project or custom instructions. Use exactly this
structure:
---
name: anysite-crm-profile
description: The user's saved CRM field mapping and write rules for CRM enrichment via anysite MCP. ALWAYS consult this before calling crm_upsert_contacts or crm_upsert_companies - it defines which CRM properties to write, which may be overwritten, and which list is the working list. Generated by /anysite-crm-setup - do not edit manually, re-run setup to change.
---
# CRM Profile (<provider> portal <portal_id>, connection <connection_id>)
Generated <date> by anysite-crm-setup from live schema. Do not edit manually.
## Field mapping — contacts
| Anysite data | CRM property | mode |
|---|---|---|
| job title | jobtitle | fill_blank |
| linkedin url | hs_linkedin_url | fill_blank |
| intent score | icp_fit_score | overwrite |
## Field mapping — companies
| Anysite data | CRM property | mode |
|---|---|---|
| industry | industry | fill_blank |
| employee count | numberofemployees | overwrite |
## Rules
- Working list: "<name>" (id <id>)
- allow_create: <true/false, as agreed>
- Never write (user protected, on top of server-enforced): <list or "-">
- Enum properties and their valid values: <property>: <values>
- MCP plan: <unlimited | credits>; bulk-run policy: <credit estimates | time estimates>
- crunchbase aliases cache: <name → alias, append as resolved — saves ~20cr/account/sweep>
Only include rows that were actually agreed or auto-mapped. Never invent mappings for data types that were not discussed.
anysite-crm-profile exists (as a skill file or in the
conversation's instructions), its
mapping is law: write ONLY to properties listed there, in the listed mode. If a new data type
has no mapping, ask the user once and suggest re-running setup — do not guess.create_requires_email when no match exists.
Never invent or guess emails — if no verified work email is available, report the person as
not imported and say why./anysite-crm-setup.overwrite_properties, first call
the upsert with dry_run=true, show the user the old → new diff, and write only after
confirmation.overwrite_properties only if the profile
marks it overwrite (or the user explicitly asked in this session).options before writing enum properties;
the server skips invalid values with an enum_option_missing warning — do not retry blindly.
When sources disagree on an enum like industry (e.g. YC vertical vs LinkedIn category), pick the
schema option closest to how the company describes itself and mention the choice to the user.
Use crm_get_schema(object_type=..., properties=[...]) to fetch just the enum you need — the
unfiltered schema is very large.fill_blank_skip means the field already had a value — that is
the policy working, not an error. Summarize results/skipped/warnings for the user after writes.run_id. If the user is unhappy with a write,
crm_undo(run_id) restores previous values (fields changed since are reported as conflicts).| Tool | Purpose |
|---|---|
crm_list_connections | Connections and their status |
crm_connect / crm_connect_status | OAuth connect flow |
crm_get_schema | Properties (with enum options), lists, protected fields |
crm_query_records | Read CRM: list members, by ids/emails, free-text search, paging |
crm_upsert_contacts | Write contacts (match by email / record_id / linkedin_url) |
crm_upsert_companies | Write companies (match by domain) |
crm_undo | Revert a write run by run_id |
Property values are strings; numbers and booleans are accepted and coerced server-side.
Server-enforced regardless of anything in this skill: fill-blank by default, protected fields,
no empty writes, create only with allow_create, full write log.