Skip to content

getaero-io/gtm-eng-skills / skills/deepline-crm-cleaning

deepline-crm-cleaning

Verified

Use 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.

FileKindSize
SKILL.mdskill md8.5 KB
adapters/attio.mdmarkdown3.3 KB
adapters/hubspot.mdmarkdown3.4 KB
adapters/other.mdmarkdown1.9 KB
adapters/salesforce.mdmarkdown3.7 KB
jobs/audit.mdmarkdown2.8 KB
jobs/dedupe.mdmarkdown4.6 KB
jobs/employment.mdmarkdown1.0 KB
jobs/enrich.mdmarkdown1.5 KB
jobs/evaluate.mdmarkdown1.8 KB
jobs/hierarchy.mdmarkdown1.9 KB
jobs/monitor.mdmarkdown1.1 KB
jobs/prevent.mdmarkdown1.2 KB
jobs/relationships.mdmarkdown1.0 KB
jobs/repair.mdmarkdown1.6 KB
plays/README.mdmarkdown14.5 KB
plays/audit-crm-snapshot.play.tsscript1.7 KB
plays/bun.lockother2.1 KB
plays/classify-company-domains.play.tsscript882 B
plays/collect-domain-evidence.play.tsscript1.8 KB
plays/collect-hubspot-companies.play.tsscript876 B
plays/deepline.jsonconfig27 B
plays/evaluate-crm-cleaning.play.tsscript3.5 KB
plays/package.jsonmanifest408 B
plays/plan-crm-domain-repairs.play.tsscript1.4 KB
plays/resolve-crm-contact-duplicates.play.tsscript1.9 KB
plays/sample-hubspot-crm.play.tsscript2.3 KB
plays/schemas/receipt.schema.jsonconfig13.1 KB
plays/score-crm-company-candidates.play.tsscript2.3 KB
plays/shared/assets/README.mdmarkdown566 B
plays/shared/assets/public-suffix-list.LICENSE.txtmarkdown16.7 KB
plays/shared/assets/public-suffix-list.txtmarkdown311.1 KB
plays/shared/assets/unicode.LICENSE.txtmarkdown1.9 KB
plays/shared/audit.tsscript30.7 KB
plays/shared/collect-domains.tsscript20.3 KB
plays/shared/company-candidates.tsscript16.7 KB
plays/shared/domain-policy.tsscript7.8 KB
plays/shared/domain-repairs.tsscript13.2 KB
plays/shared/domain.tsscript16.7 KB
plays/shared/duplicates.tsscript21.1 KB
plays/shared/evaluate.tsscript40.9 KB
plays/shared/hubspot.tsscript21.7 KB
plays/shared/identity-evaluation.tsscript14.4 KB
plays/shared/io.tsscript1.8 KB
plays/shared/json.tsscript6.8 KB
plays/shared/native.tsscript1004 B
plays/shared/time.tsscript1.9 KB
plays/shared/unicode-casefold.jsonconfig37.1 KB
shared/domain-evidence.mdmarkdown7.1 KB
shared/entity-model.mdmarkdown4.4 KB
shared/evaluation.mdmarkdown4.4 KB
shared/hierarchy-discovery.mdmarkdown4.5 KB
shared/metrics.mdmarkdown8.2 KB
shared/receipts.mdmarkdown5.9 KB
shared/source-connections.mdmarkdown1.5 KB
skill-metadata.jsonconfig851 B

plays/schemas/receipt.schema.json

View on GitHub
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://code.deepline.com/schemas/crm-cleaning-receipt.v1.json",
  "title": "Deepline CRM cleaning receipt",
  "type": "object",
  "properties": {
    "schema_version": {
      "const": "crm-cleaning.receipt.v1"
    },
    "run_id": {
      "type": "string",
      "minLength": 1
    },
    "case_id": {
      "type": "string",
      "minLength": 1
    },
    "path": {
      "enum": [
        "audit",
        "dedupe",
        "prevent",
        "enrich",
        "employment",
        "relationships",
        "hierarchy",
        "repair",
        "monitor",
        "evaluate"
      ]
    },
    "crm": {
      "enum": ["hubspot", "salesforce", "attio", "other"]
    },
    "status": {
      "enum": [
        "completed",
        "review_required",
        "blocked",
        "no_change",
        "partial"
      ]
    },
    "decision": {
      "type": "string",
      "minLength": 1
    },
    "reason_codes": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true
    },
    "scope": {
      "type": "object",
      "properties": {
        "tenant_ref": {
          "type": "string",
          "minLength": 1
        },
        "snapshot_ref": {
          "type": "string",
          "minLength": 1
        },
        "policy_ref": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": ["tenant_ref", "snapshot_ref", "policy_ref"],
      "additionalProperties": false
    },
    "outcome": {
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "unit": {
              "type": "string",
              "minLength": 1
            },
            "planned": {
              "type": "integer",
              "minimum": 0
            },
            "attempted": {
              "type": "integer",
              "minimum": 0
            },
            "resolved": {
              "type": "integer",
              "minimum": 0
            },
            "unresolved": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "unit",
            "planned",
            "attempted",
            "resolved",
            "unresolved"
          ],
          "additionalProperties": false
        }
      }
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "operation": {
            "enum": [
              "merge_records",
              "patch_fields",
              "create_record",
              "upsert_record",
              "link_entities",
              "convert_lead",
              "hold_for_review",
              "block_create",
              "emit_alert",
              "schedule_refresh",
              "record_metric",
              "no_op",
              "request_evidence",
              "preserve_records",
              "clear_field",
              "change_owner",
              "refresh_employment",
              "verify_relationships",
              "reconcile_receipt",
              "retry_read",
              "delete_record",
              "end_relationship"
            ]
          },
          "target_refs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "uniqueItems": true
          },
          "status": {
            "enum": [
              "proposed",
              "executed",
              "verified",
              "blocked",
              "failed",
              "unknown"
            ]
          },
          "provider_receipt_ref": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "relationship": {
            "type": "object",
            "properties": {
              "source_ref": {
                "type": "string",
                "minLength": 1
              },
              "target_ref": {
                "type": "string",
                "minLength": 1
              },
              "relationship_type": {
                "type": "string",
                "minLength": 1
              },
              "direction": {
                "const": "source_to_target"
              },
              "valid_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "valid_to": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "observed_at": {
                "type": "string",
                "format": "date-time"
              },
              "verification_state": {
                "enum": ["unverified", "verified", "conflicting"]
              }
            },
            "required": [
              "source_ref",
              "target_ref",
              "relationship_type",
              "direction",
              "valid_from",
              "valid_to",
              "observed_at",
              "verification_state"
            ],
            "additionalProperties": false
          },
          "reason_code": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "operation",
          "target_refs",
          "status",
          "provider_receipt_ref"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "operation": {
                  "const": "end_relationship"
                }
              },
              "required": ["operation"]
            },
            "then": {
              "required": ["relationship"],
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "status": {
                        "enum": ["executed", "verified"]
                      }
                    },
                    "required": ["status"]
                  },
                  "then": {
                    "properties": {
                      "provider_receipt_ref": {
                        "type": "string",
                        "minLength": 1
                      },
                      "relationship": {
                        "properties": {
                          "verification_state": {
                            "const": "verified"
                          },
                          "valid_to": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                {
                  "if": {
                    "properties": {
                      "relationship": {
                        "properties": {
                          "valid_to": {
                            "type": "null"
                          }
                        },
                        "required": ["valid_to"]
                      }
                    },
                    "required": ["relationship"]
                  },
                  "then": {
                    "properties": {
                      "status": {
                        "enum": ["proposed", "blocked"]
                      }
                    },
                    "required": ["reason_code"]
                  }
                }
              ]
            }
          },
          {
            "if": {
              "properties": {
                "status": {
                  "enum": ["executed", "verified"]
                }
              },
              "required": ["status"]
            },
            "then": {
              "properties": {
                "provider_receipt_ref": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        ]
      }
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "numerator": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "denominator": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "unit": {
            "enum": ["ratio", "count", "seconds", "credits"]
          },
          "cohort_ref": {
            "type": "string",
            "minLength": 1
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "state": {
            "enum": ["measured", "not_measured", "zero_denominator"]
          },
          "source_ref": {
            "type": "string",
            "minLength": 1
          },
          "window_start": {
            "type": "string",
            "format": "date-time"
          },
          "window_end": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "name",
          "numerator",
          "denominator",
          "value",
          "unit",
          "cohort_ref",
          "as_of"
        ],
        "additionalProperties": false,
        "anyOf": [
          {
            "properties": {
              "state": {
                "const": "measured"
              },
              "numerator": {
                "type": "number",
                "minimum": 0
              }
            }
          },
          {
            "required": ["state"],
            "properties": {
              "state": {
                "const": "not_measured"
              },
              "numerator": {
                "type": "null"
              },
              "denominator": {
                "type": "null"
              },
              "value": {
                "type": "null"
              }
            }
          },
          {
            "required": ["state"],
            "properties": {
              "state": {
                "const": "zero_denominator"
              },
              "unit": {
                "const": "ratio"
              },
              "numerator": {
                "const": 0
              },
              "denominator": {
                "const": 0
              },
              "value": {
                "type": "null"
              }
            }
          }
        ],
        "allOf": [
          {
            "if": {
              "required": ["state"]
            },
            "then": {
              "required": ["source_ref", "window_start", "window_end"]
            }
          }
        ]
      }
    },
    "artifacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "minLength": 1
          },
          "ref": {
            "type": "string",
            "minLength": 1
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["kind", "ref", "sha256"],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "schema_version",
    "run_id",
    "case_id",
    "path",
    "crm",
    "status",
    "decision",
    "reason_codes",
    "evidence_refs",
    "scope",
    "outcome",
    "actions",
    "metrics",
    "artifacts"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "status": {
            "const": "partial"
          }
        },
        "required": ["status"]
      },
      "then": {
        "properties": {
          "outcome": {
            "required": ["coverage"],
            "properties": {
              "coverage": {
                "properties": {
                  "planned": {
                    "minimum": 1
                  },
                  "unresolved": {
                    "minimum": 1
                  }
                }
              }
            }
          }
        }
      }
    }
  ]
}
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall