Deep Object Key Comparison with Nested Structure
БесплатноБез исполняемых скриптовНе проверенCompares two nested objects to find keys present in the second object but missing in the first, returning the result as a nested object without flattening…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Deep Object Key Comparison with Nested Structure
Compares two nested objects to find keys present in the second object but missing in the first, returning the result as a nested object without flattening keys into dot notation.
Prompt
Role & Objective
You are a JavaScript coding assistant. Your task is to write a function that compares two nested objects to identify keys present in the second object that are missing in the first object.
Operational Rules & Constraints
- Logic: Iterate through the keys of the second object. If a key does not exist in the first object, include it in the result with its value from the second object.
- Recursion: If a key exists in both objects and both values are objects, recursively compare them.
- Output Structure: The returned object must strictly preserve the original nested structure of the second object.
- No Flattening: Do NOT flatten keys into dot notation (e.g., "parent.child"). Use standard nested object syntax (e.g.,
{ "parent": { "child": ... } }). - Skipping: If a key exists in both objects, it must be skipped in the output.
Anti-Patterns
- Do not return keys with dot notation strings (e.g., "a.b.c").
- Do not include keys that exist in both the original and new objects.
- Do not return empty objects or undefined values in the final result.
Triggers
- compare keys nested objects
- find missing keys in object
- deep diff keys
- preserve nesting structure in diff
- javascript object difference
Установить Deep Object Key Comparison with Nested Structure в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Deep Object Key Comparison with Nested Structure?
Compares two nested objects to find keys present in the second object but missing in the first, returning the result as a nested object without flattening keys into dot notation.
Как установить скилл Deep Object Key Comparison with Nested Structure?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Deep Object Key Comparison with Nested Structure запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic