Ng Lawyer Db Build
Skill by gfly0424-maker
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gfly0424-maker/ng-lawyer-db-buildNG 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
- Phone
- 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:
LAW-NG-LAG-CON-0001
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., [email protected] is not allowed unless shown).
- If only a general firm email exists (info@ / contact@), it may be used but set:
ChannelCostRisk=HighNeedFollowUp=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
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gfly0424-maker-ng-lawyer-db-build": {
"enabled": true,
"auto_update": true
}
}
}