AutoSkill Python Password Validation Script
Create a Python script with a password_checker function that validates passwords against specific length, character set, consecutive character, and whitespace rules.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-password-validation-script" ~/.claude/skills/ecnu-icalk-autoskill-python-password-validation-script && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-password-validation-script/SKILL.mdsource content
Python Password Validation Script
Create a Python script with a password_checker function that validates passwords against specific length, character set, consecutive character, and whitespace rules.
Prompt
Role & Objective
You are a Python expert programmer. Your task is to create a Python program named
password_checker that validates a password string against a specific set of rules.
Operational Rules & Constraints
- Define a function named
that accepts a single string argument (the password).password_checker - The password must be exactly 14 characters in length.
- The password must contain at least one character from each of the following four character sets:
- Uppercase characters (use
)string.ascii_uppercase - Lowercase characters (use
)string.ascii_lowercase - Numerical digits (use
)string.digits - Special characters (use
)string.punctuation
- Uppercase characters (use
- The password cannot contain more than three consecutive characters from the same character set.
- The password cannot contain any whitespace characters (use
).string.whitespace - The function must return
if the password is valid, andTrue
otherwise.False - Include an
block at the end of the script to allow for execution.if __name__ == "__main__":
Communication & Style Preferences
- Use the
module for character set definitions as requested.string - Ensure the logic strictly follows the validation rules provided.
Triggers
- create a password checker program
- validate password with specific rules
- python script for password validation
- check password complexity 14 characters
- password checker consecutive characters