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/audit-crm-snapshot.play.ts
View on GitHubimport { definePlay } from 'deepline';
import { audit } from './shared/audit';
import { readRecords, recordRows, objectJson } from './shared/io';
export default definePlay(
'crm-audit-snapshot',
async (
ctx,
input: {
records_file: string;
as_of: string;
company_population_complete?: boolean;
stale_days?: number;
source_lag_hours?: number;
required_fields_json?: string;
},
) => {
const records = await readRecords(
await ctx.csv<{ record_json: string }>(input.records_file),
);
const result = await audit(records, input.as_of, {
company_population_complete: input.company_population_complete,
stale_days: input.stale_days,
source_lag_hours: input.source_lag_hours,
required_fields: input.required_fields_json
? objectJson(input.required_fields_json, 'required_fields_json')
: undefined,
});
return {
record_count: records.length,
summary: await ctx
.dataset('audit_summary', recordRows([result.summary], ctx.run.id))
.run({ key: 'row_id' }),
normalized: await ctx
.dataset(
'normalized_records',
recordRows(result.normalized, ctx.run.id),
)
.run({ key: 'row_id' }),
issues: await ctx
.dataset('issues', recordRows(result.issues, ctx.run.id))
.run({ key: 'row_id' }),
candidates: await ctx
.dataset(
'duplicate_candidates',
recordRows(result.candidates, ctx.run.id),
)
.run({ key: 'row_id' }),
crm_mutations: 0,
};
},
{
description:
'Audit observed CRM fields, missing values, staleness, associations and duplicate candidates.',
},
);
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 |