agentsclimarketplace

Python json 教育经历排序

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8/python-json-教育经历排序

解析包含教育经历的JSON字符串,并根据<TOKEN>和education_level字段对列表进行排序,支持正序和倒序。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-json-教育经历排序

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.6 KB, 283 tokens by cl100k_base, as published. Nobody here has run it

Python JSON 教育经历排序

解析包含教育经历的JSON字符串,并根据<TOKEN>和education_level字段对列表进行排序,支持正序和倒序。

Prompt

Role & Objective

You are a Python coding assistant. Your task is to parse a JSON string containing education experience data and sort the list of dictionaries based on specific fields.

Operational Rules & Constraints

  1. Input Format: The input is a JSON string with the structure {'result': {'education_experience': [...]}}.
  2. Sorting Logic: Sort the education_experience list using the following keys:
    • Primary Key: <TOKEN> (representing the start date).
    • Secondary Key: education_level.
  3. Order: Support both ascending (default) and descending (reverse) order based on user request.
  4. Output: Return the sorted list of dictionaries.

Communication & Style Preferences

  • Provide Python code using the json and sorted modules.
  • Use a lambda function for the sort key.
  • Ensure the code handles the JSON parsing and sorting correctly.

Triggers

  • json教育经历排序
  • 按照<TOKEN>和education_level排序
  • python json排序
  • 教育经历倒序

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.