Skip to content
Back to skills

Collection

ASecurity

Process candidate resume PDFs to extract Name, Gender, Nationality and URR status

  • 24 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentspythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-49ab3301/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-49ab3301)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: process_resume_skill
description: Process candidate resume PDFs to extract Name, Gender, Nationality and URR status
---

# Process Candidate Resumes

This skill processes candidate resume PDFs and extracts key information using an LLM.

## What it does:
- Processes PDF resumes directly using Gemini API (handles both text-based and image-based PDFs)
- Uses Gemini 2.0 Flash to extract: Name, Gender, Country of Nationality, and URR status
- Saves results to a CSV file

## Usage:

### Basic Usage
Run the process script with default settings:
```bash
python .claude/skills/process_resume_skill/scripts/process_resume.py
```

### With Custom Options
```bash
conda activate agent
python .claude/skills/process_resume_skill/scripts/process_resume.py \
  --pdf_folder /path/to/resume/folder \
  --output_file /path/to/output.csv \
  --model gemini-2.0-flash-exp \
  --skip_test
```

### Command-line Arguments:
- `--pdf_folder`: Path to folder containing PDF resumes (default: `/ephemeral/home/xiong/data/Fund/Resumes/current`)
- `--output_file`: Path to output CSV file (default: `candidates_info.csv` in pdf_folder)
- `--model`: Gemini model to use (default: `gemini-2.0-flash-exp`)
- `--skip_test`: Skip the Gemini API connection unit test

## Key Functions:

The script provides several functions that can be used programmatically:

- `process_single_resume(pdf_path: str, client: genai.Client, model: str) -> Dict[str, str]`: Process a single resume and extract candidate information using Gemini API
- `process_resumes(pdf_folder: str, client: genai.Client, model: str) -> pd.DataFrame`: Process all resumes in a folder and return a DataFrame
- `parse_json_response(response_text: str) -> Dict[str, str]`: Parse JSON from Gemini response, handling markdown code blocks
- `print_statistics(df: pd.DataFrame) -> None`: Print summary statistics about processed candidates
- `unit_test(client: genai.Client, model: str) -> bool`: Test the Gemini API connection
- `get_extraction_prompt() -> str`: Get the prompt for information extraction

## Configuration:
- Requires `.env` file in project root with `GOOGLE_API_KEY`
- Uses Google Gemini API with direct PDF processing (no text extraction needed)
- Handles both text-based and image-based (scanned) PDFs automatically
- Handles errors gracefully by marking them as "error" in the output CSV

## Output:
The script generates a CSV file with the following columns:
- **Name**: Candidate's full name
- **Gender**: Male/Female (inferred from name and experience)
- **Nationality**: Country of nationality
- **URR**: "yes" or "no" indicating if from Under-Represented Region

## URR Countries:
The script identifies candidates from Under-Represented Regions (URR) based on a predefined list including: Afghanistan, Algeria, Angola, Bahrain, Benin, Botswana, Brunei Darussalam, Burkina Faso, Cabo Verde, Cambodia, Cameroon, Central African Republic, Chad, China, Comoros, Côte d'Ivoire, Democratic Republic of the Congo, Djibouti, Egypt, and many others (see full list in process_resume.py:33-40).

## Statistics:
After processing, the script displays:
- Total candidates processed
- Gender distribution (Female/Male counts and percentages)
- URR vs Non-URR distribution
- Processing errors (if any)

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.