Skip to content

getaero-io/gtm-eng-skills / skills/deepline-scoring

deepline-scoring

Verified

Use when discovering niche signals, auditing ICP or won/lost evidence, rescoring accounts, or building account and lead scoring Plays. Triggers on fit scoring, engagement scoring, backtesting, holdout evaluation, predictive lift, external proxies, and scoring leakage. Skip pure outreach copy or contributor skill installation tasks.

FileKindSize
.gitignoreother26 B
SKILL.mdskill md12.4 KB
package.jsonmanifest114 B
references/account-website-features.mdmarkdown10.3 KB
references/backtesting-task.mdmarkdown10.0 KB
references/buyer-language-research.mdmarkdown8.6 KB
references/capacity-evidence.mdmarkdown4.4 KB
references/dedupe.mdmarkdown1.5 KB
references/jev-feature-extraction.mdmarkdown8.2 KB
references/keyword-catalog.mdmarkdown4.9 KB
references/pitfalls.mdmarkdown1.6 KB
references/proven-signals.mdmarkdown1.1 KB
references/quality-gate.mdmarkdown2.8 KB
references/report-template.mdmarkdown6.2 KB
references/scorecard-creation.mdmarkdown3.3 KB
references/scorecard-training.mdmarkdown6.5 KB
references/scoring-delivery.mdmarkdown8.3 KB
references/scoring-diagnostics.mdmarkdown8.9 KB
references/scoring-pitfalls.mdmarkdown2.8 KB
references/signal-interpretation.mdmarkdown2.3 KB
references/step-7-prospects.mdmarkdown1.6 KB
references/technology-evidence.mdmarkdown9.4 KB
references/testing-and-evaluation.mdmarkdown6.8 KB
scripts/analyze_signals.pyscript16.9 KB
scripts/analyze_signals_v2.pyscript28.3 KB
scripts/build_feature_matrix.pyscript4.7 KB
scripts/collect_sources.pyscript16.1 KB
scripts/dedupe_utils.pyscript15.6 KB
scripts/dedupe_utils_v2.pyscript15.7 KB
scripts/find_contacts_v2.pyscript1.9 KB
scripts/hubspot_accounts.pyscript7.1 KB
scripts/jev_features.pyscript7.1 KB
scripts/replay-score.play.tsscript2.3 KB
scripts/requirements-scorecard.txtmarkdown263 B
scripts/scorecard/__init__.pyscript514 B
scripts/scorecard/config.pyscript5.0 KB
scripts/scorecard/explainer_artifacts.pyscript8.4 KB
scripts/scorecard/pipeline.pyscript38.9 KB
scripts/scorecard/report.pyscript30.4 KB
scripts/scorecard/scorer.pyscript17.3 KB
scripts/scorecard/specs.pyscript1.3 KB
scripts/scoring_contract.tsscript7.5 KB
scripts/technology_evidence.pyscript3.8 KB
scripts/tests/contract_check.tsscript1.9 KB
scripts/tests/test_jev_features.pyscript3.4 KB
scripts/tests/test_scorecard.pyscript9.5 KB
scripts/train_scorecard.pyscript20.0 KB
skill-metadata.jsonconfig3.8 KB

scripts/replay-score.play.ts

View on GitHub
import deepline from 'deepline';
import { scoreRow, artifactKey } from './scoring_contract';
import type { Model, Reference, Observation } from './scoring_contract';

type Input = {
  domain: string;
  scored_at: string;
  snapshot_id: string;
  rows: Array<{
    domain: string;
    entity_id: string;
    observations: Observation[];
  }>;
  model: Model;
  reference: Reference;
};

/** Replay only. Source collection and model fitting are deliberately not fabricated. */
export const config = {
  name: 'replay-account-score',
  description: 'Replay a frozen account score',
};

export default async function (input: Input) {
  if (!input.snapshot_id) throw new Error('snapshot_id_required');
  if (
    typeof input.domain !== 'string' ||
    !Array.isArray(input.rows) ||
    input.rows.some((row) => typeof row.domain !== 'string')
  )
    throw new Error('invalid_identity_input');
  const domain = input.domain
    .trim()
    .toLowerCase()
    .replace(/^www\./, '');
  if (
    !/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?\.[a-z]{2,}$/.test(domain) ||
    domain.includes('..')
  )
    throw new Error('domain_required');
  const matches = input.rows.filter(
    (row) => row.domain.toLowerCase().replace(/^www\./, '') === domain,
  );
  const result =
    matches.length !== 1
      ? {
          ...scoreRow(
            'unresolved',
            input.scored_at,
            [],
            input.model,
            input.reference,
          ),
          entity_id: null,
          status: matches.length ? 'ambiguous_identity' : 'not_in_snapshot',
          miss_reason: matches.length
            ? 'ambiguous_identity'
            : 'not_in_snapshot',
          candidates: matches.map((row) => row.entity_id),
          score: null,
          grade: null,
        }
      : scoreRow(
          matches[0].entity_id,
          input.scored_at,
          matches[0].observations,
          input.model,
          input.reference,
        );
  const replay_key = artifactKey([
    domain,
    input.snapshot_id,
    input.model,
    input.reference,
    input.scored_at,
    matches,
  ]);
  const rows = await deepline
    .dataset('scored_rows', [
      { domain, replay_key, snapshot_id: input.snapshot_id, ...result },
    ])
    .run({ key: 'replay_key' });
  return { rows, delivery: 'replay_only' };
}
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: 194kUpdated Claude CodeCodexVerifiedInstall