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/collect-domain-evidence.play.ts
View on GitHubimport { definePlay } from 'deepline';
import { collectDomain, redact_domain_input } from './shared/collect-domains';
import { readRecords } from './shared/io';
import { canonicalJson } from './shared/json';
export default definePlay(
'crm-collect-domain-evidence',
async (
ctx,
input: {
domains_file: string;
max_domains?: number;
timeout?: number;
max_bytes?: number;
max_legal_pages?: number;
max_redirects?: number;
},
) => {
const maxDomains = input.max_domains ?? 1000;
if (!Number.isSafeInteger(maxDomains) || maxDomains < 1)
throw new Error('max_domains must be a positive safe integer');
const domains = await readRecords(
await ctx.csv<{ record_json: string }>(input.domains_file),
);
if (domains.length > maxDomains)
throw new Error('Domain row count exceeds max_domains');
if (domains.some((row) => typeof row.domain !== 'string'))
throw new Error('Each domain row requires a domain string');
const evidence = await ctx
.dataset(
'domain_evidence',
domains.map((row, index) => {
const sanitized = redact_domain_input(row.domain as string);
return {
row_id: `${ctx.run.id}:${index}`,
source_index: index,
domain: sanitized.value,
domain_input_state: sanitized.state,
};
}),
)
.withColumn('record_json', async (row, rowCtx) =>
canonicalJson(
await collectDomain(
rowCtx,
domains[row.source_index].domain as string,
input,
),
),
)
.run({ key: 'row_id' });
return { domain_count: domains.length, evidence, crm_mutations: 0 };
},
{
description:
'Collect DNS, MX, website, redirect and legal-page evidence through guarded runtime requests.',
},
);
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 |