
Party Invite
- 1 installs
- Updated January 19, 2026
- erikdrouhard/skills-workshop
Generate a personalized party invitation from a name, date, and dress code using a bundled template and Python script.
About
Generates a personalized party invitation file from guest name, date, and dress code via a Python script and template. A user invokes it when they want to create a party invite or invitation email.
- Runs generate_invite.py with name, date, and dress-code arguments
- Saves a personalized markdown invite per guest
Party Invite by the numbers
- 1 all-time installs (skills.sh)
- Ranked #1,983 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Jul 8, 2026 (Skillselion catalog sync)
npx skills add https://github.com/erikdrouhard/skills-workshop --skill party-inviteAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| Last updated | January 19, 2026 |
| Repository | erikdrouhard/skills-workshop ↗ |
What it does
Generate a personalized party invitation from a name, date, and dress code using a bundled template and Python script.
Files
Party Invite Generator
Generate party invitations using the template in assets/invite-template.txt.
Usage
Run the script with the guest's details:
python scripts/generate_invite.py --name "NAME" --date "DATE" --dress-code "DRESS_CODE"Required arguments:
--name/-n— Guest's name--date/-d— Party date and time--dress-code/-c— Dress code
Optional:
--output-dir/-o— Where to save (default: current directory)
Example
python scripts/generate_invite.py \
--name "Sarah" \
--date "Saturday, February 15th at 7pm" \
--dress-code "Smart Casual"Creates party-invite-sarah.md with the personalized invitation.
Workflow
1. Collect from user: name, date, dress code 2. Run the script with those values 3. Show user the generated invite file
Subject: You're Invited! 🎉
Hey {{name}},
You're officially invited to an awesome party!
📅 **When:** {{date}}
👔 **Dress Code:** {{dress_code}}
We'd love to see you there! It's going to be a blast.
Please let me know if you can make it!
Cheers,
Your Host
#!/usr/bin/env python3
"""
Party Invite Generator - Creates personalized party invitations from a template.
Usage:
python generate_invite.py --name "John" --date "Saturday, Feb 15th at 7pm" --dress-code "Casual"
Output:
Creates party-invite-{name}.md in the current directory
"""
import argparse
import re
import sys
from pathlib import Path
def generate_invite(name: str, date: str, dress_code: str, output_dir: str = ".") -> str:
"""Generate a party invite from the template and save to file."""
# Find the template relative to this script
script_dir = Path(__file__).parent.parent
template_path = script_dir / "assets" / "invite-template.txt"
if not template_path.exists():
print(f"Error: Template not found at {template_path}")
sys.exit(1)
# Read template
template = template_path.read_text()
# Substitute placeholders
invite_text = template.replace("{{name}}", name)
invite_text = invite_text.replace("{{date}}", date)
invite_text = invite_text.replace("{{dress_code}}", dress_code)
# Create safe filename from name
safe_name = re.sub(r'[^\w\-]', '-', name.lower()).strip('-')
# Save to output file
output_path = Path(output_dir) / f"party-invite-{safe_name}.md"
output_path.write_text(invite_text)
print(f"✓ Invite created: {output_path}")
return str(output_path)
def main():
parser = argparse.ArgumentParser(
description="Generate a personalized party invitation",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog="""
Examples:
python generate_invite.py --name "Alice" --date "Saturday, March 1st at 8pm" --dress-code "Smart Casual"
python generate_invite.py -n "Bob" -d "Friday night" -c "Costume party!"
"""
)
parser.add_argument(
"-n", "--name",
required=True,
help="Name of the person to invite"
)
parser.add_argument(
"-d", "--date",
required=True,
help="Date and time of the party"
)
parser.add_argument(
"-c", "--dress-code",
required=True,
help="Dress code for the party"
)
parser.add_argument(
"-o", "--output-dir",
default=".",
help="Directory to save the invite (default: current directory)"
)
args = parser.parse_args()
generate_invite(args.name, args.date, args.dress_code, args.output_dir)
if __name__ == "__main__":
main()