/accordo:build-lead-intelligencefrom Accordo — agent-native CRM framework
Add or extend Lead Intelligence in an Accordo project - enrichment providers, versioned explainable scoring models, versioned routing policies and routing targets. Use for enrich/score/route work on leads. Do not use for CRUD module changes (create-crm-module) or approval processes (create-crm-workflow).
Ships in Accordo — agent-native CRM framework. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
npm run crm -- app inspect --json
Read valid, then problems[], then limitations[], in that order. Every problem is fixed or reported before anything is built on top of it, and every limitation is a hard boundary on what you may claim. Then read packages[], capabilities[], resources[], actions[], policies[] and providers[]: that list is what exists. A capability absent from the report does not exist, whatever a record name, a label or a document suggests.
If the repository documents this skill names are absent, you are in a project built from this framework rather than in the framework itself. The inspection report is then the source of truth and those documents are optional background — do not guess at their contents, and do not assume a path exists because this skill names it.
providers[] reports declared metadata only. A provider entry never means the provider is configured, credentialed or reachable — PROVIDER_HEALTH_UNKNOWN is in limitations[] for exactly that reason.
Background, where they exist: ARCHITECTURE.md, DECISIONS.md (ADR-015) and docs/LEAD_INTELLIGENCE.md. They are the deeper source for the rules below, not a prerequisite for them — the rules stand on their own.
{ name, version, label, capabilities: ['company'], async enrichCompany({ lead }, { now }) } returning { fields: { companyDomain, companyName, country (A-Z2), employeeRange, industry, revenueRange, language (a-z2) }, confidence (0–100 int), sourceRef, expiresAt?, partial? }. Out-of-contract output is refused (PROVIDER_INVALID) — never loosen the normalizer.packages/intelligence/generated/index.js (static import, like actions/pipelines).prepare phase — never inside a DB transaction. Do not add DB writes to a provider.PROVIDER_FAILED, hang → PROVIDER_TIMEOUT, bad shapes → PROVIDER_INVALID): nothing persisted, honest failed trace.{ name, version, label, minScore?, maxScore?, rules: [{ key, label, weight (non-zero int), evaluate(context) }] } — evaluate gets frozen { lead, snapshot, signals, evaluatedAt }, must be total, deterministic, side-effect-free (no network, no LLM, no DB writes) and return boolean or { matched, reason }.config. The fingerprint is a declared-definition fingerprint: it captures the definition's source and its declared config (frozen into ctx.config), NOT values captured by closures or out-of-file helpers. A closure-held threshold changes silently — put it in config or as a literal.{ name, version, label, route(context) } — context gives frozen { lead, score, snapshot, targets (eligible, with currentLoad), allTargets, rank, routedAt }; return { target, rule } choosing an ELIGIBLE target, or null for the fallback queue. Use rank() (priority desc → load asc → key asc) for ties — never randomness.key, kind, active, countries, languages, skills, capacity, priority, scoreMin/Max); capacity works against the in-transaction count of assigned leads. Same versioning rules as scoring models.ALREADY_ASSIGNED on reroute, LEAD_NOT_SCORED before scoring, one final assignment under concurrency.Boot the app twice: same source must boot cleanly; a changed registered version must fail with "source changed after registration". Runs must retain the old version + fingerprint after new versions appear.
There is no Sales-Manager reassignment action and none may be added before the Production Spine (auth, tenancy, RBAC). Routing targets are trusted identifiers, not users. Keep the JTBD matrix honest.
Finish with npm run verify and the starter (node examples/starters/b2b-lead-qualification/install.mjs).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/build-commercial-operationsAdd or extend Commercial Operations in an Accordo project - catalog providers, products and price books, quotes with server-priced lines, immutable quote versions, and versioned discount policies with human approval. Use for catalog/quote/discount/CPQ work. Do not use for CRUD module changes (create-crm-module) or lead scoring/routing (build-lead-intelligence)./build-contract-activationAdd or extend contract activation and renewal/amendment execution in an Accordo project - turning a signed immutable Order into a Commercial Contract, Contract Version and Lines, a Subscription with its lines and pending delivery/service obligations through a versioned Order Activation Policy, and executing a governed SUCCESSOR agreement from a later signed Order with immutable lineage. Use for contract, subscription, obligation, activation-policy, renewal, amendment, successor or contract-lineage work, and for building a new optional domain package. Do not use for signature/order work (build-signature-order), catalog/quote/discount work (build-commercial-operations), billing or cancellation (neither exists) or CRUD module changes (create-crm-module)./build-custom-domain-packageCreate or extend a domain package in an Accordo repository - a bounded domain with its own resources, actions, policies, capabilities and schema metadata, registered statically and removable without touching the kernel. Use for "add a custom package", package contract, package dependency/capability, package validation or new-domain work, including customer-specific packages. Do not use for a single custom object (create-crm-module) or one lifecycle step on an existing record (create-crm-workflow).npx claudepluginhub khaoss85/agent-crm --plugin accordo