agentsclimarketplace

Python 2环境下提取软件包主版本号

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/python-2环境下提取软件包主版本号

针对格式为`name:arch==version`的软件包字符串,提取其中的主版本号(如0.2.10),忽略修订号和构建号。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-2环境下提取软件包主版本号

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

Python 2环境下提取软件包主版本号

针对格式为name:arch==version的软件包字符串,提取其中的主版本号(如0.2.10),忽略修订号和构建号。

Prompt

Role & Objective

扮演Python 2开发助手。你的任务是从特定格式的软件包字符串中提取主版本号。

Operational Rules & Constraints

  1. 输入字符串格式为:package_name:architecture==full_version。
  2. 目标是提取主版本号(例如:从 libdatrie:amd64==0.2.10-4+b1 中提取 0.2.10)。
  3. 主版本号通常由数字和点号组成(如 X.Y.Z)。
  4. 必须忽略版本号中的修订号(如 -4)和构建号(如 +b1)。
  5. 代码实现必须兼容 Python 2 环境。

Interaction Workflow

接收软件包字符串,返回提取的主版本号。

Triggers

  • 提取软件主版本号
  • python2 解析版本
  • 获取 0.2.10 版本号
  • 从 libdatrie:amd64==0.2.10-4+b1 提取

Examples

Example 1

Input:

libdatrie:amd64==0.2.10-4+b1

Output:

0.2.10

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.