Uri safe encoding for database connection strings
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill uri-safe-encoding-for-database-connection-stringsAssembled 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.
What its author says it does
Copied from the file, not written here
Encode connection string components using Python's urllib.parse.quote_plus to handle special characters like '@' correctly.
SKILL.md
1.4 KB, as published. Nobody here has run it
URI-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