NG Lawyer DB Build (Step 1)
What this skill does
This is Step 1 of Fei Gao’s “Nigeria Lawyer Network” workflow:
- Build a Lawyer Database (this skill)
- Send outreach emails and score by response (separate skill)
- Sort & export for fast lookup (separate skill)
The objective is to create a database that allows fast matching by:
City → Practice → Sub-specialty → Regulator → Firm size → Position → Score → Contact.
This skill focuses on data collection + structured classification with evidence links.
Inputs
- city:
Lagos | Abuja
- practice:
Construction | RealEstate | Labour | Tax | Criminal | IP
- n_per_segment: integer (target 3)
Output files
- lawyer_db_ng.xlsx (main database)
- sources.jsonl (evidence per record: url + snippet + timestamp)
Database schema (fixed column order)
The Excel must contain columns in this exact order:
- Lawyer_UID
- Country
- City
- Practice
- Sub_Practice
- Regulator_Tag
- Firm_Name
- Firm_Size
- Position
- Lawyer_Name
- Email
- Phone
- LinkedIn
- Website
- Evidence_URL
- Score_Total (blank in Step 1)
- Score_ResponseSpeed (blank)
- Score_Detail (blank)
- Score_Pricing (blank)
- Score_Cooperation (blank)
- Risk_Flag (blank)
- NeedFollowUp (0/1)
- ChannelCostRisk (Low/Medium/High)
- Last_Updated
Non-negotiable rules (to avoid future scoring chaos)
1) Unique key (Lawyer_UID)
All later scoring MUST be written back by Lawyer_UID, never by name.
Format:
LAW-NG-{CITYCODE}-{PRACTICECODE}-{NNNN}
- CityCode: Lagos=LAG, Abuja=ABJ
- PracticeCode: Construction=CON, RealEstate=REA, Labour=LAB, Tax=TAX, Criminal=CRI, IP=IPR
Example:
2) Email policy (anti-channel-cost)
- Email must be explicitly published on the evidence page (law firm bio page, author page, or official profile).
- NO guessing (e.g., firstname.lastname@firm.com is not allowed unless shown).
- If only a general firm email exists (info@ / contact@), it may be used but set:
ChannelCostRisk=High
NeedFollowUp=1
3) Evidence chain
Each row must store Evidence_URL.
The skill also writes sources.jsonl with:
- Lawyer_UID
- Evidence_URL
- Evidence_Snippet (<= 300 chars)
- Captured_At
4) Firm_Size classification (fee proxy)
Firm_Size affects pricing expectation. Classify using evidence:
- Top:
- The firm is ranked in Chambers or Legal 500 in Nigeria for the relevant practice; OR
- Firm lawyer count > 50 (evidence required)
- Mid: lawyer count 15–50
- Small: lawyer count 2–14
- Solo: sole practitioner / independent (count=1)
- Unknown: insufficient evidence → set NeedFollowUp=1
5) Position mapping (fee proxy)
Normalize to:
- Partner / Counsel / SeniorAssociate / Associate / Junior / Independent / Unknown
Mapping hints:
- Partner: Managing Partner, Senior Partner, Partner
- Counsel: Counsel, Of Counsel
- SeniorAssociate: Senior Associate, Associate (Senior)
- Associate: Associate, Solicitor
- Junior: Junior Associate, Trainee
- Independent: Sole Practitioner, Principal, Independent Legal Practitioner
Regulator_Tag (only with evidence)
Allowed values:
- CAC, NIPC, FIRS, StateIRS, NAFDAC, Immigration, MinistryOfMines, IPRegistry, EFCC, Police, Court
Rule:
- Tag only when evidence mentions regulator or shows relevant matters.
- If not evidenced, leave blank; outreach email will ask the lawyer to self-report regulators handled.
Data collection strategy (recommended sources)
Priority order:
- Chambers / Legal 500 ranked firms for Nigeria practice (Top candidates)
- Official law firm team pages (bio pages with emails)
- Author pages on firm sites / Lexology / IFLR (when email is shown)
- Boutique firm sites for Small/Solo
Segmentation target
For each (Firm_Size x Position) segment, collect n_per_segment candidates with verified emails where possible.
Recommended priority within Top firms:
- Counsel / SeniorAssociate / Associate (often more willing for flexible cooperation)
Example run (MVP)
City: Lagos
Practice: Construction
n_per_segment: 3
Goal: produce a usable initial database for Lagos Construction to validate:
- Firm_Size classification is correct
- Position mapping is correct
- Emails are evidence-backed
- Column order is stable
1---
2name: ng-lawyer-db-build-step-1
3description: "This is Step 1 of Fei Gao’s “Nigeria Lawyer Network” workflow: 1)
4 Build a Lawyer Database (this skill) 2) Send outreach emails and score by
5 response (separate skill) 3) Sort & export for fast looku..."
6metadata:
7 source: https://skillmd.com/skills/modbender/ng-lawyer-db-build-step-1
8---
9
10# NG Lawyer DB Build (Step 1)
11
12## What this skill does
13This is **Step 1** of Fei Gao’s “Nigeria Lawyer Network” workflow:
141) Build a **Lawyer Database** (this skill)
152) Send outreach emails and score by response (separate skill)
163) Sort & export for fast lookup (separate skill)
17
18The objective is to create a database that allows **fast matching** by:
19**City → Practice → Sub-specialty → Regulator → Firm size → Position → Score → Contact**.
20
21This skill focuses on **data collection + structured classification** with evidence links.
22
23---
24
25## Inputs
26- **city**: `Lagos` | `Abuja`
27- **practice**: `Construction` | `RealEstate` | `Labour` | `Tax` | `Criminal` | `IP`
28- **n_per_segment**: integer (target **3**)
29
30---
31
32## Output files
33- **lawyer_db_ng.xlsx** (main database)
34- **sources.jsonl** (evidence per record: url + snippet + timestamp)
35
36---
37
38## Database schema (fixed column order)
39The Excel must contain columns in this exact order:
40
411. Lawyer_UID
422. Country
433. City
444. Practice
455. Sub_Practice
466. Regulator_Tag
477. Firm_Name
488. Firm_Size
499. Position
5010. Lawyer_Name
5111. Email
5212. Phone
5313. LinkedIn
5414. Website
5515. Evidence_URL
5616. Score_Total (blank in Step 1)
5717. Score_ResponseSpeed (blank)
5818. Score_Detail (blank)
5919. Score_Pricing (blank)
6020. Score_Cooperation (blank)
6121. Risk_Flag (blank)
6222. NeedFollowUp (0/1)
6323. ChannelCostRisk (Low/Medium/High)
6424. Last_Updated
65
66---
67
68## Non-negotiable rules (to avoid future scoring chaos)
69### 1) Unique key (Lawyer_UID)
70All later scoring MUST be written back by **Lawyer_UID**, never by name.
71
72Format:
73- `LAW-NG-{CITYCODE}-{PRACTICECODE}-{NNNN}`
74- CityCode: Lagos=LAG, Abuja=ABJ
75- PracticeCode: Construction=CON, RealEstate=REA, Labour=LAB, Tax=TAX, Criminal=CRI, IP=IPR
76
77Example:
78- `LAW-NG-LAG-CON-0001`
79
80### 2) Email policy (anti-channel-cost)
81- Email must be **explicitly published** on the evidence page (law firm bio page, author page, or official profile).
82- **NO guessing** (e.g., firstname.lastname@firm.com is not allowed unless shown).
83- If only a general firm email exists (info@ / contact@), it may be used but set:
84 - `ChannelCostRisk=High`
85 - `NeedFollowUp=1`
86
87### 3) Evidence chain
88Each row must store **Evidence_URL**.
89The skill also writes **sources.jsonl** with:
90- Lawyer_UID
91- Evidence_URL
92- Evidence_Snippet (<= 300 chars)
93- Captured_At
94
95### 4) Firm_Size classification (fee proxy)
96Firm_Size affects pricing expectation. Classify using evidence:
97
98- **Top**:
99 - The firm is ranked in **Chambers** or **Legal 500** in Nigeria for the relevant practice; OR
100 - Firm lawyer count **> 50** (evidence required)
101- **Mid**: lawyer count **15–50**
102- **Small**: lawyer count **2–14**
103- **Solo**: sole practitioner / independent (count=1)
104- **Unknown**: insufficient evidence → set NeedFollowUp=1
105
106### 5) Position mapping (fee proxy)
107Normalize to:
108- Partner / Counsel / SeniorAssociate / Associate / Junior / Independent / Unknown
109
110Mapping hints:
111- Partner: Managing Partner, Senior Partner, Partner
112- Counsel: Counsel, Of Counsel
113- SeniorAssociate: Senior Associate, Associate (Senior)
114- Associate: Associate, Solicitor
115- Junior: Junior Associate, Trainee
116- Independent: Sole Practitioner, Principal, Independent Legal Practitioner
117
118---
119
120## Regulator_Tag (only with evidence)
121Allowed values:
122- CAC, NIPC, FIRS, StateIRS, NAFDAC, Immigration, MinistryOfMines, IPRegistry, EFCC, Police, Court
123
124Rule:
125- Tag only when evidence mentions regulator or shows relevant matters.
126- If not evidenced, leave blank; outreach email will ask the lawyer to self-report regulators handled.
127
128---
129
130## Data collection strategy (recommended sources)
131Priority order:
1321) Chambers / Legal 500 ranked firms for Nigeria practice (Top candidates)
1332) Official law firm team pages (bio pages with emails)
1343) Author pages on firm sites / Lexology / IFLR (when email is shown)
1354) Boutique firm sites for Small/Solo
136
137---
138
139## Segmentation target
140For each (Firm_Size x Position) segment, collect **n_per_segment** candidates **with verified emails** where possible.
141
142Recommended priority within Top firms:
143- Counsel / SeniorAssociate / Associate (often more willing for flexible cooperation)
144
145---
146
147## Example run (MVP)
148City: Lagos
149Practice: Construction
150n_per_segment: 3
151
152Goal: produce a usable initial database for Lagos Construction to validate:
153- Firm_Size classification is correct
154- Position mapping is correct
155- Emails are evidence-backed
156- Column order is stable
157