Interactive guide for adding new lab members to the website. Gathers information via web research, helps write appropriate bios, optimizes images, and generates properly formatted member files...
SKILL.md
Add Lab Member
This skill guides you through adding a new lab member to the website with proper formatting, bio writing, and image handling.
When to Use This Skill
Use this skill when:
"Add a new lab member"
"Create a profile for [name]"
"Add [name] to the team page"
"Update [name]'s role"
"Mark [name] as alumni"
Any request involving adding or updating team member profiles
Interactive Workflow
Step 1: Gather Basic Information
Ask the user for essential details:
Required:
Full name
Role (pi, postdoc, staff, phd, ms, ra, programmer, undergrad, highschool)
Optional (we'll research if not provided):
Email address
GitHub username
LinkedIn profile
Personal website
Current institution/program (if student)
Use AskUserQuestion to collect this information if not provided in the initial request.
Step 2: Web Research
Conduct web research to gather background information:
Search LinkedIn for education and work history
Query: "[Full Name] LinkedIn [institution if known]"
Extract: degrees, institutions, prior positions
Search GitHub for username and projects
Query: "[Full Name] GitHub [email domain if known]"
Member file exists at _members/firstname-lastname.md
YAML frontmatter is valid
Role is valid (check against roles.yaml)
Image file exists (or noted as placeholder)
Bio is appropriate length for role
Bio uses third-person voice
Links are properly formatted
If alumni: team/index.md is updated
Step 8: Present Summary
Show the user what was created:
ā Created member profile for [Name]
ā File: _members/firstname-lastname.md
ā Role: [role display text]
ā Image: images/firstname-lastname.jpg [or "Placeholder - add later"]
ā Links: [list of included links]
[ā Updated alumni list] [if applicable]
Bio preview:
[First 100 characters of bio]...
Would you like me to show you the full file content?
Step 9: Optional Commit
Ask user if they want to commit the changes:
If yes: Create git commit with appropriate message
If no: Leave as unstaged changes for manual review
Bio Writing Guidelines
Voice and Tone
Always third person: "Jane is a PhD student..." (not "I am...")
Professional and academic: Formal but not stuffy
Factual and achievement-oriented: Focus on credentials and work
Present tense for current work: "working on", "developing", "researching"
Past tense for background: "received", "worked", "joined"
Essential Elements
All members should include:
Current role and institution
When they joined (month and year)
Education background (degree, major, institution)
Current research/work focus
Additional elements by role:
PI:
PhD institution and advisors (with hyperlinks)
Research philosophy and approach
Notable publications or media coverage
Prior positions
Major awards and honors
PhD/Postdoc:
Undergraduate and/or Master's institution
Specific research interests
Co-advisors if applicable
Previous research experience if notable
Staff/Programmer:
Prior work experience (industry or academic)
Technical expertise and focus areas
Projects they're working on
Joint appointments if applicable
Students (MS/Undergrad):
Major and year
Research interests
Prior internships or research if applicable
Awards/fellowships if notable
Alumni:
All of above based on their role
Mentors (especially for short-term interns)
Achievements during time in lab
Keep concise for summer interns (50-80 words)
What to Avoid
First person narrative (except possibly PI intro)
Excessive detail about projects (keep to 1-2 sentences)
Future tense or speculation
Casual language or slang
Personal information unrelated to research
Redundancy with frontmatter (name, role already shown)
Image Handling Details
Preferred Specifications
Format: JPG (preferred) or PNG
Size: 100-250 KB for web optimization
Aspect ratio: Square or nearly square (1:1 or 4:5)
Minimum dimensions: 300x300 pixels
Recommended: 400x400 to 600x600 pixels
Color: RGB color space
Optimization Process
If image needs optimization:
# Use the bundled script
bash .claude/skills/add-member/scripts/optimize-image.sh input.jpg output.jpg 500
Or manually with sips (macOS):
# Resize to 500px max dimension, maintaining aspect ratio
sips -Z 500 input.jpg --out output.jpg
# Convert PNG to JPG
sips -s format jpeg input.png --out output.jpg