getaero-io/gtm-eng-skills / skills/deepline-scoring
deepline-scoring
VerifiedUse 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.
scripts/replay-score.play.ts
View on GitHubimport 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' };
}
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: 194k | Updated | Claude CodeCodex | Verified | Install |