# promptgtm-shared/clay-jev-people-ranker architecture

> Architecture diagram of the GitHub repository promptgtm-shared/clay-jev-people-ranker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/promptgtm-shared/clay-jev-people-ranker
- Repository: https://github.com/promptgtm-shared/clay-jev-people-ranker

## Overview

This repository provides a Clay-to-JEV lead qualification workflow, alongside an Agent Skill for adapting and using it. The main path retrieves candidates from Clay, scores role fit with TypeSafe JEV, applies thresholds, and exports selected results. The graph captures these documented stages; the script excerpt is partial, so some internal call relationships are supported by the README rather than inspected implementation details.

Main entry points: [`scripts/rank_clay_people.py`](https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py) (Ranker Workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_retrieval["Candidate Retrieval"]
  node_ranker["Ranker Workflow"]
  node_clay["Clay CLI"]
end

subgraph group_qualification["JEV Qualification"]
  node_jev["TypeSafe JEV"]
  node_qualification_policy["Threshold Policy"]
end

subgraph group_results["Scoring Results"]
  node_export["JSON and CSV Export"]
end

subgraph group_skill["Agent Skill"]
  node_agent_skill["Clay + JEV Skill<br/>[SKILL.md]"]
end

node_operator(("GTM Operator"))

node_operator -->|"runs workflow"| node_ranker
node_ranker -->|"creates searches"| node_clay
node_ranker -->|"retrieves candidates"| node_clay
node_ranker -->|"scores candidates"| node_jev
node_ranker -->|"applies thresholds"| node_qualification_policy
node_ranker -->|"exports results"| node_export

click node_ranker "https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py"
click node_qualification_policy "https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py"
click node_export "https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py"
click node_agent_skill "https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ranker,node_clay toneBlue
class node_jev,node_qualification_policy toneAmber
class node_export toneMint
class node_agent_skill toneRose
class node_operator toneIndigo
```

## Components

### Candidate Retrieval

- [Ranker Workflow](https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py): `scripts/rank_clay_people.py`
- **Clay CLI**

### JEV Qualification

- **TypeSafe JEV**
- [Threshold Policy](https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py): `scripts/rank_clay_people.py`

### Scoring Results

- [JSON and CSV Export](https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/scripts/rank_clay_people.py): `scripts/rank_clay_people.py`

### Agent Skill

- [Clay + JEV Skill](https://github.com/promptgtm-shared/clay-jev-people-ranker/blob/main/SKILL.md): `SKILL.md`

### Other components

- **GTM Operator**

## Connections

- GTM Operator → Ranker Workflow: runs workflow (evidence: `README.md`)
- Ranker Workflow → Clay CLI: creates searches (evidence: `scripts/rank_clay_people.py`)
- Ranker Workflow → Clay CLI: retrieves candidates (evidence: `README.md`)
- Ranker Workflow → TypeSafe JEV: scores candidates (evidence: `README.md`)
- Ranker Workflow → Threshold Policy: applies thresholds (evidence: `README.md`)
- Ranker Workflow → JSON and CSV Export: exports results (evidence: `README.md`)
