Skip to content

getaero-io/gtm-eng-skills / engineering/warm-intro-scoring

warm-intro-scoring

Verified

FileKindSize
.gitignoreother121 B
GUIDE.mdmarkdown4.7 KB
LICENSEother1.1 KB
README.mdmarkdown8.0 KB
SKILL.mdskill md327 B
TESTING.mdmarkdown8.9 KB
UPSTREAM.mdmarkdown1.3 KB
assets/company-research.play.tsscript1021 B
assets/customer-db.sqlother2.7 KB
assets/evaluation-example.jsonconfig4.6 KB
assets/example.jsonconfig6.9 KB
assets/portfolio-focus.weights.jsonconfig32 B
assets/review.htmlother7.4 KB
assets/tuning-example.jsonconfig1.2 KB
assets/tuning.htmlother30.1 KB
check_all.pyscript1.4 KB
package-manifest.jsonconfig9.8 KB
plays/README.mdmarkdown18.2 KB
plays/check-report.pyscript1.8 KB
plays/check_all.pyscript1.6 KB
plays/check_parity.pyscript6.0 KB
plays/collect.play.tsscript4.0 KB
plays/collection.tsscript1.9 KB
plays/core.tsscript44.2 KB
plays/evaluation-contract.mdmarkdown3.4 KB
plays/evaluation.tsscript13.8 KB
plays/features.play.tsscript4.7 KB
plays/features.tsscript22.6 KB
plays/generatedtemplate.tsscript38.1 KB
plays/guardrails.tsscript948 B
plays/legacy.tsscript9.7 KB
plays/merge-payloads.pyscript8.6 KB
plays/parity-driver.tsscript995 B
plays/parity-evaluation.pyscript8.5 KB
plays/parity-reports.pyscript2.3 KB
plays/prepare-inputs.pyscript6.5 KB
plays/quality.tsscript3.8 KB
plays/read-sources.play.tsscript3.4 KB
plays/report-cli.tsscript590 B
plays/report.play.tsscript2.9 KB
plays/report.tsscript3.1 KB
plays/reports.tsscript5.7 KB
plays/research.play.tsscript1.6 KB
plays/review-uncertainty.play.tsscript5.5 KB
plays/score.play.tsscript2.3 KB
plays/snapshots.play.tsscript4.2 KB
plays/strict-json.tsscript1.8 KB
plays/sync-template.pyscript849 B
plays/uncertainty.tsscript4.9 KB
plays/validation.play.tsscript3.6 KB
references/adversarial-review.mdmarkdown7.0 KB
references/batch-collection.mdmarkdown5.1 KB
references/company-network.mdmarkdown5.8 KB
references/competitive-review.mdmarkdown8.8 KB
references/evaluation.mdmarkdown8.5 KB
references/evaluator-validation.mdmarkdown3.4 KB
references/evaluator.mdmarkdown7.9 KB
references/external-data.mdmarkdown4.0 KB
references/factor-test-matrix.mdmarkdown4.6 KB
references/factors.mdmarkdown6.1 KB
references/intro-drafts.mdmarkdown1.6 KB
references/pipeline.mdmarkdown7.6 KB
references/readable-output.mdmarkdown5.4 KB
references/research-brief.mdmarkdown2.4 KB
references/sources.mdmarkdown7.5 KB
references/tuning.mdmarkdown14.6 KB
scripts/audit_history.pyscript5.1 KB
scripts/check.pyscript5.1 KB
scripts/compare_versions.pyscript1.9 KB
scripts/evaluate.pyscript22.5 KB
scripts/package-skill.pyscript1.9 KB
scripts/portfolio.pyscript3.7 KB
scripts/quality.pyscript5.3 KB
scripts/recipe-demo.tsscript2.6 KB
scripts/render.pyscript1.6 KB
scripts/score.pyscript9.6 KB
scripts/temporal.pyscript2.2 KB
scripts/test_ask_handoff.pyscript2.1 KB
scripts/test_audit_history.pyscript2.7 KB
scripts/test_handoff_evaluate.pyscript9.1 KB
scripts/test_portfolio.pyscript3.6 KB
scripts/test_quality.pyscript3.1 KB
scripts/test_temporal.pyscript1.3 KB
scripts/test_tuning.pyscript14.1 KB
scripts/test_tuning_browser.cjsscript7.7 KB
scripts/test_version_parity.pyscript1.0 KB
scripts/tuning.pyscript10.9 KB
tests/adversarial.test.tsscript8.2 KB
tests/browser_e2e.cjsscript1.9 KB
tests/cloud_e2e.pyscript6.9 KB
tests/e2e-fixture.jsonconfig3.6 KB
tests/feature_parity.pyscript2.4 KB
tests/features.test.tsscript8.3 KB
tests/test_prepare_inputs.pyscript8.6 KB
tests/uncertainty.test.tsscript2.5 KB
vendor-manifest.jsonconfig748 B

plays/read-sources.play.ts

View on GitHub
/* eslint-disable @typescript-eslint/no-explicit-any -- Ported JSON contract/parity boundary; runtime validators reject malformed values. */
import { definePlay } from 'deepline';
type Source={source_id:string;schema_name:string;table_name:string;key_column:string};
const identifier=(s:string)=>{if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(s))throw new Error('Invalid SQL identifier');return '"'+s+'"';};
const quote=(s:string)=>"'"+s.replace(/'/g,"''")+"'";
/** @mermaid
flowchart TD
 sources[Customer database sources] --> pages[Read complete bounded snapshots]
 pages --> stored[Retain source records]
*/
export default definePlay('warm-intro-read-sources',async(ctx,input:{csv:string;max_rows_per_source?:number})=>{
 const limit=input.max_rows_per_source??5000;if(!Number.isInteger(limit)||limit<1||limit>5000)throw new Error('Source limit must be 1..5000');
 // @mermaid-node sources type:"dataset"
 const sources=await ctx.csv<Source>(input.csv,{required:['source_id','schema_name','table_name','key_column']});
 // @mermaid-node pages type:"dataset"
 const rows=await ctx.dataset('source_snapshots',sources).withColumn('snapshot',async(row,c)=>{
  const table=identifier(row.schema_name)+'.'+identifier(row.table_name),key=identifier(row.key_column);let cursor:string|null=null;const records:any[]=[];const seen=new Set<string>();
  const counts=await c.tools.execute({id:'validate_source_keys',tool:'query_customer_db',input:{sql:`SELECT COUNT(*) AS total, COUNT(${key}) AS keyed, COUNT(DISTINCT ${key}::text) AS unique_keys FROM ${table}`,max_rows:1},staleAfterSeconds:0,description:'Require complete unique source identities'});
  const countRaw:any=counts.toolResponse.rawV2??counts.toolResponse.raw;const stats=countRaw?.rows?.[0];
  if(!stats||Number(stats.total)!==Number(stats.keyed)||Number(stats.total)!==Number(stats.unique_keys))throw new Error('Source key must be unique and non-null; supply a source view with stable unique IDs');
  const expected=Number(stats.total);if(!Number.isSafeInteger(expected)||expected>limit)throw new Error('Source exceeds configured bound; partition it before reading');
  while(true){
   const sql=`SELECT * FROM ${table} WHERE ${key} IS NOT NULL${cursor===null?'':` AND ${key}::text > ${quote(cursor)}`} ORDER BY ${key}::text LIMIT 250`;
   const result=await c.tools.execute({id:'read_source_page',tool:'query_customer_db',input:{sql,max_rows:250},staleAfterSeconds:0,description:'Read versioned source page'});
   const raw:any=result.toolResponse.rawV2??result.toolResponse.raw;
   if(!raw||!Array.isArray(raw.rows)||raw.truncated)throw new Error('Source page is missing or truncated');
   for(const item of raw.rows){const id=String(item[row.key_column]);if(seen.has(id))throw new Error('Source key is not unique');seen.add(id);records.push(item);}
   if(records.length>limit)throw new Error('Source exceeds configured bound; partition the source instead of dropping rows');
   if(raw.rows.length<250)break;
   cursor=String(raw.rows[raw.rows.length-1][row.key_column]);
  }
  if(records.length!==expected)throw new Error('Source changed during pagination; retry a stable snapshot');
  return {source_id:row.source_id,table,count:records.length,records};
 }).run({key:'source_id',undrawnColumns:['snapshot']});
 // @mermaid-node stored
 return {rows,count:await rows.count(),interpretation:'Source records retain their own observation dates. Reading a record does not refresh the profile.'};
},{description:'Read scoring source snapshots'});
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall