agentsclimarketplace

Os asyncio path

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/os-asyncio-path

General SOP for common requests related to os, asyncio, path.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill os-asyncio-path

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

os / asyncio / path

General SOP for common requests related to os, asyncio, path.

Prompt

Follow this SOP (replace specifics with placeholders like <PROJECT>/<ENV>/<VERSION>):

  1. async def extract_zip(compress_file_path: str, extract_path: str
  2. async with zipfile.ZipFile(compress_file_path, "r") as zip_ref
  3. await zip_ref.extractall(extract_path) 并通过 asyncio 的 create_task 在循环中创建多个任务并加入到列表中,最后通过gather方法调用列表中的任务是否可行,和你的方法比起来哪个更好
  4. asyncio.run() 作用
  5. async def tar_extract(tmp_tar_dir
  6. def _extract_tar(tar_file_path, logs_folder
  7. with tarfile.open(tar_file_path, "r:gz") as tar_ref
  8. tar_ref.extractall(logs_folder, filter="data
  9. loop = asyncio.get_running_loop
  10. for dirpath, _, filenames in os.walk(tmp_tar_dir

For each step, include: action, checks, and failure rollback/fallback plan. Output format: for each step number, provide status/result and what to do next.

Triggers

  • Use when the user asks for a process or checklist.
  • Use when you want to reuse a previously mentioned method/SOP.

Examples

Example 1

Input:

Break this into best-practice, executable steps.

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.