Choose clear, accurate variable names that improve code readability and maintenance.
This skill appears to be an open-source prompt/documentation-style naming guide with no keys, no remote endpoints, and no evident local execution or data exfiltration, so overall risk is low. The main uncertainty is low community adoption, no declared license, and unknown maintenance status, but these alone do not justify a high-risk rating.
The materials explicitly state that no keys or environment variables are required; as a prompt/documentation-only skill, there is no evident credential collection, storage, or misuse path.
No remote endpoints are declared, and the system flags it as prompt-only; there is no factual indication that user content is transmitted to external services.
Based on the description and README, this skill only provides variable-naming guidance and does not involve local process spawning, script execution, or system capability access.
The materials do not show any need to read, write, or enumerate local files, repositories, or other data resources; it functions as guidance content only.
The source is an open GitHub repository, making the contents in principle auditable, which lowers risk; however, the repository has 0 stars, no declared license, and unknown maintenance status, so supply-chain maturity and ongoing maintenance remain uncertain.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "Naming Variables" skill from askskill: 1. Download https://raw.githubusercontent.com/obra/clank/main/skills/coding/naming-variables/SKILL.md 2. Save it as ~/.claude/skills/naming-variables/SKILL.md 3. Reload skills and tell me it's ready
Review the variable names in this code and rename vague ones to be more accurate and readable. Explain the reason for each change: let d = new Date(); let x = users.filter(u => u.active); let n = x.length;
Provides revised code and explains why each new variable name better matches its meaning.
I mixed abbreviations, pinyin, and inconsistent naming styles in a JavaScript project. Based on semantic clarity and consistency, propose naming rules and show how to rename these variables: userNm, shijian, tmpVal, list2.
Gives concise naming guidelines and suggests more consistent, descriptive variable names.
I’m writing e-commerce order logic and need names for these variables: user's first order time, refundable amount, shipped item count, and whether free shipping applies. Suggest concise but accurate English variable names and explain the naming logic.
Outputs a set of business-friendly English variable names with rationale for each choice.
The most important consideration in naming a variable is that the name fully and accurately describes the entity the variable represents.
Core principle: A variable and its name are essentially the same thing. The goodness or badness of a variable is largely determined by its name.
Name quality = Design quality. If you struggle to name something well, that's a warning sign about the design.
Always use when:
Warning signs you need better names:
x, x1, x2, temp, data, info, valProblem-oriented (what it represents) not solution-oriented (how it's implemented):
✅ Good: employeeData, printerReady, totalRevenue
❌ Bad: inputRec, bitFlag, calcVal
The bad names describe computing concepts (input, record, bit, calculation). Good names describe the problem domain (employee, printer, revenue).
Optimal: 10-16 characters average
| Too Long | Too Short | Just Right |
|---|---|---|
numberOfPeopleOnTheUsOlympicTeam | n, np, ntm | numTeamMembers, teamMemberCount |
numberOfSeatsInTheStadium | n, ns, nsisd | numSeatsInStadium, seatCount |
maximumNumberOfPointsInModernOlympics | m, mp, max | teamPointsMax, pointsRecord |
Exception: Short names OK for very limited scope (loop index i in 3-line loop)
i, j acceptableShort name says: "I'm a scratch value with limited scope, don't look for me elsewhere"
Effective technique: state in words what the variable represents. Often that statement IS the best name.
Example:
runningTotal or checkTotalvelocity, trainVelocity, velocityInMphcurrentDate, todaysDatePut qualifiers like Total, Sum, Average, Max, Min, Count at the END:
✅ Good: revenueTotal, expenseAverage, pointsMax, customerCount
❌ Bad: totalRevenue mixed with revenueTotal (inconsistent)
Why:
revenueTotal, revenueAverage, revenueMaxtotalRevenue vs revenueTotal - pick one convention)Exception: Num is ambiguous
numCustomers (count of all customers)customerNum (specific customer number)Count for total, Index for specific: customerCount, customerIndexDon't be clever. Use the ordinary, obvious words:
✅ currentDate, employeeName, accountBalance
❌ cd, empNm, acctBal
Programmers sometimes overlook using ordinary words, which is often the easiest solution.
Names that are too general can be used for anything = not informative:
❌ Bad: x, temp, data, info, value, variable
✅ Good: discriminant, oldRoot, errorMessage, customerInfo, totalRevenue
Generic names acceptable ONLY for very limited scope.
Standard patterns for consistency and clarity:
…
Write evergreen comments focused on what and why, not historical context.
Compare 2-3 approaches before execution to choose a stronger solution.
Plan with pseudocode first, refine approaches, then translate into working code.
Search past Claude Code chats to recover facts, decisions, and context.
Design systems by hiding implementation details behind domain-level interfaces.
Name code by domain meaning to improve clarity and team alignment.
Improve code clarity and maintainability by assigning each variable one purpose.
Help developers limit variable scope to improve code clarity and maintainability.
Analyze code vibes and suggest more stylish naming alternatives.