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/prepare-inputs.py

View on GitHub
#!/usr/bin/env python3
"""Package retained source snapshots for features.play.ts. Offline; no provider calls.

python3 plays/prepare-inputs.py sources.json --out run-input.csv
python3 plays/prepare-inputs.py sources.json --out run-input.csv --targets-per-file 25

Batching repeats the source context and partitions targets. Every emitted CSV must
fit the Play's 5,000-record bound. Connector-shard merging is not supported. Use the local TypeScript feature core if context alone is
larger. Output files contain private profiles and are created with mode 0600.
"""
import argparse
import csv
import json
import os
from datetime import date
from pathlib import Path

SECTIONS = ('connectors', 'profiles', 'company_sizes', 'funding_edges',
            'verified_firms', 'owner_portfolio')
CONFIG = ('as_of', 'profiles_checked_at', 'requester_name', 'requester_company',
          'excluded_connector_urls', 'target_research')
LIMIT = 5000


def require(value, description):
    if not value:
        raise ValueError(description)


def text(value):
    return isinstance(value, str) and bool(value.strip())


def day(value, label):
    require(text(value), f'{label} must be a YYYY-MM-DD date')
    parsed = date.fromisoformat(value)
    require(parsed.isoformat() == value, f'{label} must be a YYYY-MM-DD date')
    return parsed


def validate(data):
    require(isinstance(data, dict), 'Input must be a JSON object')
    allowed = set(SECTIONS + CONFIG + ('targets',))
    require(not set(data) - allowed, 'Unknown fields: ' + ', '.join(sorted(set(data) - allowed)))
    cutoff = day(data.get('profiles_checked_at'), 'profiles_checked_at')
    require(cutoff <= day(data.get('as_of'), 'as_of'), 'Profile cutoff is after as_of')
    require(text(data.get('requester_name')), 'requester_name is required')
    for section in SECTIONS + ('targets',):
        rows = data.get(section, [])
        require(isinstance(rows, list), f'{section} must be an array')
        require(all(isinstance(r, dict) for r in rows), f'{section} rows must be objects')
    require(bool(data.get('targets')), 'targets must not be empty')
    require(bool(data.get('connectors')), 'connectors must not be empty')
    require('profiles' in data, 'profiles array is required; use [] for missing profiles')
    for section in ('connectors', 'profiles'):
        for i, row in enumerate(data[section]):
            label = f'{section}[{i}]'
            for field in ('id', 'linkedin_url', 'source', 'observed_at'):
                require(text(row.get(field)), f'{label}.{field} is required')
            require(day(row['observed_at'], label + '.observed_at') <= cutoff,
                    f'{label} is newer than profiles_checked_at')
            for field in ('experience', 'education'):
                values = row.get(field)
                require(values is None or (isinstance(values, list) and
                        all(isinstance(v, dict) for v in values)), f'{label}.{field} must be an array of objects')
    for i, row in enumerate(data['targets']):
        for field in ('name', 'linkedin_url', 'company', 'domain'):
            require(text(row.get(field)), f'targets[{i}].{field} is required')
    if 'excluded_connector_urls' in data:
        require(isinstance(data['excluded_connector_urls'], list) and
                all(text(v) for v in data['excluded_connector_urls']),
                'excluded_connector_urls must be an array of URLs')
    if 'target_research' in data:
        require(isinstance(data['target_research'], dict), 'target_research must be an object')
    return data


def record(section, key, payload):
    return dict(section=section, key=key,
                payload_json=json.dumps(payload, ensure_ascii=False, separators=(',', ':'), allow_nan=False))


def batches(data, targets_per_file=None):
    validate(data)
    if targets_per_file is not None:
        require(isinstance(targets_per_file, int) and not isinstance(targets_per_file, bool)
                and targets_per_file > 0, 'targets_per_file must be a positive integer')
    context = [record('config', 'config', {k: data[k] for k in CONFIG if k in data})]
    for section in SECTIONS:
        context.extend(record(section, f'{section}:{i}', row)
                       for i, row in enumerate(data.get(section, [])))
    size = targets_per_file or len(data['targets'])
    require(len(context) + min(size, len(data['targets'])) <= LIMIT,
            f'CSV exceeds {LIMIT} source records; use --targets-per-file; if shared context alone exceeds the limit, use local TypeScript feature extraction (connector-shard merging is unsupported)')
    output = []
    for start in range(0, len(data['targets']), size):
        # Position in the full input preserves identity across partitioning and retains
        # unresolved or duplicate target rows for review instead of silently dropping them.
        target_rows = [record('targets', f'target:{i}', {'target': row})
                       for i, row in enumerate(data['targets'][start:start + size], start)]
        output.append(context + target_rows)
    return output


def write_inputs(data, destination, targets_per_file=None):
    groups = batches(data, targets_per_file)
    base = Path(destination)
    paths = [base] if len(groups) == 1 else [base.with_name(f'{base.stem}.{i:03d}{base.suffix or ".csv"}')
                                           for i in range(1, len(groups) + 1)]
    require(all(not p.exists() for p in paths), 'An output file already exists; choose a new --out path')
    for path, rows in zip(paths, groups):
        with os.fdopen(os.open(path, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o600), 'w', newline='') as handle:
            writer = csv.DictWriter(handle, fieldnames=['section', 'key', 'payload_json'])
            writer.writeheader()
            writer.writerows(rows)
    return paths


def main():
    parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    parser.add_argument('source', type=Path)
    parser.add_argument('--out', type=Path, required=True)
    parser.add_argument('--targets-per-file', type=int)
    args = parser.parse_args()
    try:
        data = json.loads(args.source.read_text(), parse_constant=lambda x: (_ for _ in ()).throw(ValueError('Non-finite JSON number')))
        paths = write_inputs(data, args.out, args.targets_per_file)
    except (ValueError, OSError, TypeError) as exc:
        parser.exit(2, f'Input packaging failed: {exc}\n')
    print(json.dumps({'files': [str(p.resolve()) for p in paths], 'targets': len(data['targets'])}))


if __name__ == '__main__':
    main()
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