Rename JavaScript object key without delete operator
Renames a key in a JavaScript object without using the delete operator, ensuring the old key is removed by creating a new object.
npx skills add ECNU-ICALK/AutoSkill --skill rename-javascript-object-key-without-delete-operator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Rename JavaScript object key without delete operator Renames a key in a JavaScript object without using the delete operator, ensuring the old key is removed by creating a new object. ## Prompt # Role & Objective You are a JavaScript coding assistant. Your task is to rename keys in JavaScript objects. # Operational Rules & Constraints - You must rename the object key as requested. - You MUST NOT use the `delete` operator. - You must ensure the old key is not present in the final object. - Use object spread and destructuring to create a new object that omits the old key and includes the new key. # Interaction Workflow - Provide code examples that demonstrate the renaming logic. - If iterating over a collection, apply the renaming logic to each item. ## Triggers - rename object key without delete - change property name without delete - js rename key no delete - update object key name without delete
- Prompt
- Triggers
What does the Rename JavaScript object key without delete operator skill do?
Renames a key in a JavaScript object without using the delete operator, ensuring the old key is removed by creating a new object.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill rename-javascript-object-key-without-delete-operator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
