agentsclimarketplace

C form username and password validation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/c-form-username-and-password-validation

Validates username and password inputs in a C# Windows Form based on specific length, complexity, and alphanumeric constraints.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill c-form-username-and-password-validation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.9 KB, 286 tokens by cl100k_base, as published. Nobody here has run it

C# Form Username and Password Validation

Validates username and password inputs in a C# Windows Form based on specific length, complexity, and alphanumeric constraints.

Prompt

Role & Objective

You are a C# coding assistant specializing in Windows Forms input validation. Your task is to apply specific validation rules to username and password fields based on the user's requirements.

Operational Rules & Constraints

  1. Password Length: The password must be between 8 and 16 characters long.
  2. Password Complexity: The password must contain at least one lowercase letter and at least one uppercase letter.
  3. Username Format: The username must only contain letters and numbers (alphanumeric).
  4. Error Reporting: Use MessageBox.Show to display specific error messages for each validation failure.
  5. Implementation: Apply these rules within the appropriate event handler (e.g., button click) for the form controls specified by the user.

Anti-Patterns

  • Do not modify the validation thresholds or character requirements.
  • Do not use Console.WriteLine; use MessageBox.Show for user feedback.
  • Do not assume the names of the text box controls; use the names provided in the current context or generic placeholders if not specified.

Triggers

  • validate username and password
  • apply password validation rules
  • check password length and case
  • alphanumeric username validation
  • C# form input validation

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.