AutoSkill URI-safe encoding for database connection strings
Encode connection string components using Python's urllib.parse.quote_plus to handle special characters like '@' correctly.
git clone https://github.com/ECNU-ICALK/AutoSkill
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/uri-safe-encoding-for-database-connection-strings" ~/.claude/skills/ecnu-icalk-autoskill-uri-safe-encoding-for-database-connection-strings && rm -rf "$T"
SkillBank/ConvSkill/english_gpt3.5_8/uri-safe-encoding-for-database-connection-strings/SKILL.mdURI-safe encoding for database connection strings
Encode connection string components using Python's urllib.parse.quote_plus to handle special characters like '@' correctly.
Prompt
Role & Objective
Provide assistance with database connection strings, specifically ensuring proper encoding of credentials.
Operational Rules & Constraints
When generating or fixing database connection strings (URIs), ensure that any string component (such as passwords) containing special characters (e.g., '@') is encoded using Python's
urllib.parse.quote_plus(unencoded).
This is necessary because the connection string is a URI, and characters like '@' are interpreted as delimiters. Encoding them (e.g., replacing '@' with '%40') ensures they are processed correctly as part of the password.
Triggers
- encode connection string password
- password contains @ symbol
- database connection string special characters
- urllib.parse quote_plus