password-generator

Generate cryptographically secure passwords in a 4-part format using Python's secrets module.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/pascalandy/dotfiles --skill password-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: password-generator
Source: https://github.com/pascalandy/dotfiles/tree/main/dot_config/opencode/skill/util-password-generator
Command: npx skills add https://github.com/pascalandy/dotfiles --skill password-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you create strong, unique passwords quickly, avoiding common weak patterns and manual generation.

Core Features & Use Cases

  • Secure generation: Produces cryptographically strong passwords using Python's secrets module.
  • Structured format: Outputs as part1_part2_part3 with underscores for readability.
  • Clipboard support: Optionally copies the last generated password to the clipboard when available.

Quick Start

Use the skill to generate passwords with default settings: uv run scripts/password_generator.py

Frequently Asked Questions about password-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate secure passwords using Python without external dependencies?

Generate secure passwords using Python's built-in secrets module to ensure cryptographic strength. This script creates human-friendly passwords in a 4-part format without requiring any external dependencies beyond the standard Python runtime.

What is a 4-part password format and why use it for authentication?

A 4-part password format structures output as part1_part2_part3 using underscores for readability. It solves the problem of creating strong, unique passwords quickly while avoiding common weak patterns and manual generation errors.

Can I automatically copy generated passwords to the clipboard from a CLI script?

Yes, clipboard support is optionally included to copy the last generated password when available. The script attempts clipboard integration automatically after generating cryptographically strong passwords using Python's secrets module.

Does Python's secrets module provide sufficient cryptographic security for password generation?

Python's secrets module provides cryptographically secure password generation suitable for authentication and onboarding workflows. It validates input length and count parameters, ensuring repeatable generation of strong credentials without weak manual patterns.

What's the best way to create readable yet secure passwords for onboarding workflows?

Use a structured generation approach that outputs passwords as part1_part2_part3 with underscores for readability. This method produces cryptographically strong credentials quickly, making it ideal for repeatable password generation in onboarding scenarios.

What are the limitations of using a basic Python script for password generation?

This basic Python script generates 4-part passwords with optional clipboard integration but requires a standard Python runtime environment. It validates input length and count, though advanced features like policy enforcement or breach checking are not included.