Skip to content
Back to skills

Rename Javascript Object Key Without Delete Operator

ASecurity

Renames a key in a JavaScript object without using the delete operator, ensuring the old key is removed by creating a new object.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsjavascriptjava

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill rename-javascript-object-key-without-delete-operator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rename Javascript Object Key Without Delete Operator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rename Javascript Object Key Without Delete Operator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-rename-javascript-object-key-without-delete-operat/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-rename-javascript-object-key-without-delete-operat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "d3a4c818-9d1b-4110-8dea-c506e4255a58"
name: "Rename JavaScript object key without delete operator"
description: "Renames a key in a JavaScript object without using the delete operator, ensuring the old key is removed by creating a new object."
version: "0.1.0"
tags:
  - "javascript"
  - "object manipulation"
  - "rename key"
  - "no delete"
triggers:
  - "rename object key without delete"
  - "change property name without delete"
  - "js rename key no delete"
  - "update object key name without delete"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.