getaero-io/gtm-eng-skills / skills/deepline-crm-cleaning
deepline-crm-cleaning
VerifiedUse for CRM audits, duplicate detection, missing or stale fields, job changes, domain checks, acquisitions, parent-child relationships, repair plans, prevention, monitoring, and evaluation. Supports HubSpot, Salesforce, Attio, and mapped exports. Start with read-only analysis. Skip outreach writing, CRM interface design, and unrelated analysis.
plays/sample-hubspot-crm.play.ts
View on GitHubimport { definePlay } from 'deepline';
import { sampleHubspot } from './shared/hubspot';
import { recordStream, readDocument, recordRows } from './shared/io';
export default definePlay(
'crm-sample-hubspot-crm',
async (
ctx,
input: {
expected_portal_id: string;
inventory_file: string;
manifest_file: string;
seed: string;
company_limit?: number;
contact_limit?: number;
},
) => {
const inventory = recordStream(
await ctx.csv<{ record_json: string }>(input.inventory_file),
);
const inventory_manifest = await readDocument(
await ctx.csv<{ record_json: string }>(input.manifest_file),
);
const result = await sampleHubspot(ctx, {
...input,
inventory,
inventory_manifest,
});
return {
company_count: result.companies.length,
contact_count: result.contacts.length,
companies: await ctx
.dataset('sample_companies', recordRows(result.companies, ctx.run.id))
.run({ key: 'row_id' }),
contacts: await ctx
.dataset('sample_contacts', recordRows(result.contacts, ctx.run.id))
.run({ key: 'row_id' }),
company_contacts: await ctx
.dataset(
'company_contacts',
recordRows(result.associations.company_contacts, ctx.run.id),
)
.run({ key: 'row_id' }),
contact_companies: await ctx
.dataset(
'contact_companies',
recordRows(result.associations.contact_companies, ctx.run.id),
)
.run({ key: 'row_id' }),
company_hierarchy: await ctx
.dataset(
'company_hierarchy',
recordRows(result.associations.company_hierarchy, ctx.run.id),
)
.run({ key: 'row_id' }),
hierarchy_labels: await ctx
.dataset(
'hierarchy_labels',
recordRows(
result.associations.company_hierarchy_labels.results,
ctx.run.id,
),
)
.run({ key: 'row_id' }),
manifest: await ctx
.dataset('sample_manifest', recordRows([result.manifest], ctx.run.id))
.run({ key: 'row_id' }),
crm_mutations: 0,
};
},
{
description:
'Collect a reproducible HubSpot company cohort with fully paginated associated contacts and portal checks.',
secrets: ['HUBSPOT_API_KEY'],
},
);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |