member-import

member-import is a command for Claude Code from TheLobbi/claude. It costs 16 tokens per session (5,162 once invoked), scanned A, original, MIT.

A bulk importer for adding organization members from CSV or Excel files. It validates records, detects duplicates, creates authentication users, stores member records in MongoDB, and produces import reports.

In plain words
What is it for?
Use it to import member lists into a Lobbi organization, create their Keycloak accounts, store their records, and send welcome emails.
Why use it?
It removes the need to enter many members manually and identifies invalid or duplicate data during the import. Batch processing and error handling help manage larger files.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

Part of the claude-orchestration plugin — 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/thelobbi/claude/member-import
Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude

Made for: Claude Code.

Or install claude-orchestration, the plugin that ships this one along with the rest of its 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for member-import

README.md
[![agentmods](https://agentmods.dev/badge/commands/thelobbi/claude/member-import.svg)](https://agentmods.dev/commands/thelobbi/claude/member-import)
Your own site
<a href="https://agentmods.dev/commands/thelobbi/claude/member-import"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/member-import.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,162 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.05162
Opus 5 $0.00008 $0.02581
Sonnet 5 $0.00003 $0.01032
Haiku 4.5 $0.00002 $0.00516

Measured yesterday against content hash bced9da7f4c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

member-import scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.post(
.claude/commands/member-import.md · 715 lines

How it starts

The opening of the file, as written. The whole thing — 715 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bulk Member Import

Import multiple members from CSV or Excel files into a Lobbi organization with comprehensive validation, duplicate detection, batch processing, and detailed error reporting.

Usage

/member-import <file-path> --org=<org-id> [options]

Description

This command imports member data in bulk by:

  • Parsing CSV or Excel files with flexible column mapping
  • Validating all member data against schema rules
  • Detecting and handling duplicates
  • Creating Keycloak users with proper authentication
  • Inserting member records into MongoDB
  • Processing in configurable batches for performance
  • Generating comprehensive import reports
  • Sending welcome emails to new members

Prerequisites

Required Services:

  • Keycloak running and accessible
  • MongoDB connection available
  • Redis for job queue (optional, for async processing)
  • SMTP configured for welcome emails

Environment Variables:

DATABASE_URL=mongodb://admin:admin@localhost:27017/member_db?authSource=admin
KEYCLOAK_URL=http://localhost:8080
KEYCLOAK_REALM=alpha-members
KEYCLOAK_CLIENT_ID=member-api
KEYCLOAK_CLIENT_SECRET=<secret>
SMTP_HOST=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASSWORD=<api-key>
REDIS_URL=redis://localhost:6379

File Format Requirements:

CSV/Excel files must include these columns (case-insensitive):

  • Required: email, firstName, lastName
  • Optional: phone, dateOfBirth, membershipType, status, joinDate, address, city, state, zipCode, country

Example CSV:

email,firstName,lastName,phone,membershipType,status
[email protected],John,Doe,555-1234,premium,active
[email protected],Jane,Smith,555-5678,basic,active

Step-by-Step Instructions

1. Validate Input File

# Check file exists
test -f <file-path> || { echo "ERROR: File not found"; exit 1; }

# Detect file type
FILE_EXT="${FILE_PATH##*.}"
case "$FILE_EXT" in
  csv) echo "CSV file detected" ;;
  xlsx|xls) echo "Excel file detected" ;;
  *) echo "ERROR: Unsupported file type. Use CSV or Excel"; exit 1 ;;
esac

# Preview first 5 rows
if [ "$FILE_EXT" = "csv" ]; then
  head -6 <file-path> | column -t -s,
else
  # Use xlsx2csv or similar for Excel
  python3 << 'EOF'
import pandas as pd
df = pd.read_excel("<file-path>", nrows=5)
print(df.to_string())
EOF
fi

# Count total rows
if [ "$FILE_EXT" = "csv" ]; then
  TOTAL_ROWS=$(($(wc -l < <file-path>) - 1))
else
  TOTAL_ROWS=$(python3 -c "import pandas as pd; print(len(pd.read_excel('<file-path>')))")
fi

echo "Total members to import: $TOTAL_ROWS"

Read the full file on GitHub · 715 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 715 lines · 16 tokens per session scan A bced9da7f4c3

Subscribe to this mod's changes

member-import is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 5,162 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.