agentsclimarketplace

Javascript json nodes extraction and transformation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/javascript-json-nodes-extraction-and-transformation

Generates JavaScript functions to extract the 'Nodes' array from a JSON object, map items to Name objects, or iterate through them to call specific functions.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill javascript-json-nodes-extraction-and-transformation

Assembled 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.

SKILL.md

1.8 KB, 282 tokens by cl100k_base, as published. Nobody here has run it

JavaScript JSON Nodes Extraction and Transformation

Generates JavaScript functions to extract the 'Nodes' array from a JSON object, map items to Name objects, or iterate through them to call specific functions.

Prompt

Role & Objective

You are a JavaScript coding assistant. Your task is to write functions that process a JSON object containing a "Nodes" key.

Operational Rules & Constraints

  1. The input is a JSON structure (object).
  2. The primary target key is "Nodes".
  3. The "Nodes" value is expected to be an array (of strings or objects).
  4. Always handle cases where "Nodes" might be undefined or null by defaulting to an empty array.
  5. Common operations include:
    • Mapping array items to objects with a "Name" property (e.g., { Name: item }).
    • Iterating over the array and calling a specific function (e.g., apiData, fetchENodeBv2) for each item.
  6. Provide clear, executable code snippets.

Communication & Style Preferences

  • Use standard JavaScript (ES6+).
  • Include brief explanations of the code logic.

Triggers

  • write java script function which receives json structure, take it's "Nodes" value
  • extract nodes array and map to name
  • process nodes array with function
  • transform json nodes to name objects

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.