跳到正文
Skillpedia
其他37k · #7578

guidance

它能做什么

这项技能帮助你设置和配置 QwenPaw。适合对安装、依赖或设置有疑问的用户。

适用场景

  • ✓当你正在安装 QwenPaw,需要了解其要求或步骤的时候。
  • ✓当你想更改某个 QwenPaw 设置,却不确定它有什么作用的时候。
  • ✓当你遇到设置问题,并希望得到文档中的官方答案的时候。

技能链接

https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/guidance-en/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/guidance-en/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我第一次要在电脑上设置 QwenPaw,应该怎么做?”

每周 5 个新技能,1 分钟读完。

工作原理

它会查找本地文档文件夹,阅读相关页面,并根据找到的内容给出答案。如果本地文档不够,它会查询官方网站的文档。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

QwenPaw Installation and Configuration Q&A Guide

Use this skill when the user asks about QwenPaw installation, initialization, environment configuration, dependency requirements, or common configuration options.

Core principles:

  • Check local documentation first, then answer
  • Base answers on what has actually been read, do not speculate
  • Answer in the same language the user used to ask

Standard Flow

Step 1: Locate the Documentation Directory

Use built-in path resolution (works for all install methods)

DOCS_DIR=$(python3 -c "from qwenpaw.constant import DOCS_DIR; print(DOCS_DIR or '')" 2>/dev/null)

If the above returns a non-empty path and the directory exists, use it directly and skip to Step 2.

If it fails (e.g., older version without DOCS_DIR), fall back in the following order:

Check for documentation directory in memory

First, check whether there is a documentation directory in memory. If found, use it directly; otherwise, proceed to the next step.

# Get the documentation directory from memory
DOCS_DIR=$(find ~/.qwenpaw/memory/ -type d -name "docs")

If there is no documentation directory in memory, continue with the following logic.

Check the documentation directory in the project source code

Run the following script logic to obtain the variable $QWENPAW_ROOT:

# Get the absolute path of the binary
QWENPAW_PATH=$(which qwenpaw 2>/dev/null || whereis qwenpaw | awk '{print $2}')

# Logical deduction: if the path contains .qwenpaw/bin/qwenpaw, the root is three levels up
# Example: /path/to/QwenPaw/.qwenpaw/bin/qwenpaw -> /path/to/QwenPaw
if [[ "$QWENPAW_PATH" == *".qwenpaw/bin/qwenpaw" ]]; then
    QWENPAW_ROOT=$(echo "$QWENPAW_PATH" | sed 's/\/\.qwenpaw\/bin\/qwenpaw//')
else
    # Fallback: try to get the parent of the parent directory
    QWENPAW_ROOT=$(dirname $(dirname "$QWENPAW_PATH") 2>/dev/null || echo ".")
fi

echo "Detected QwenPaw Root: $QWENPAW_ROOT"

Verify and list the documentation directory: Use the derived $QWENPAW_ROOT to locate the documentation:

# Construct the standard documentation path
DOCS_DIR="$QWENPAW_ROOT/website/public/docs/"

# Check if the path exists and list files
if [ -d "$DOCS_DIR" ]; then
    find "$DOCS_DIR" -type f -name "*.md" | head -n 100
else
    # If the derived path is incorrect, perform a global fuzzy search
    find "$QWENPAW_ROOT" -type d -name "docs" | grep "website/public/docs"
fi

If project documentation does not exist, search the working directory

If documentation is still not found, search for available documentation content under the qwenpaw installation path:

# Look for characteristic files such as faq.en.md or config.zh.md
FILE_PATH=$(find . -type f -name "faq.en.md" -o -name "config.zh.md" | head -n 1)
if [ -n "$FILE_PATH" ]; then
    # Use dirname to get the directory containing the file
    DOCS_DIR=$(dirname "$FILE_PATH")
fi

If a documentation directory is found, save it in memory in this format:

# Documentation Directory
$DOCS_DIR = <doc_path>

Step 2: Documentation Search and Matching

Documentation files follow the naming format <topic>.<lang>.md (e.g., config.zh.md, config.en.md, quickstart.zh.md).

Use the find command to list all matching documents in the target directory, and identify the target as <doc_path> based on filename keywords (e.g., install, env, setup).

# List all matching documents
find $DOCS_DIR -type f -name "*.md"

If no suitable document is found, read all documentation contents in the next step.

Step 3: Read the Documentation Content

After finding candidate documents, read and identify the paragraphs relevant to the question. You can use:

  • cat <doc_path>
  • file_reader skill (recommended for longer documents or paginated reading)

If the documentation is long, prioritize reading the sections most relevant to the question (installation steps, configuration options, example commands, notes, version requirements).

Step 4: Extract Information and Respond

Extract key information from the documentation and organize it into an actionable answer:

  • Give the direct conclusion first
  • Then provide steps / commands / configuration examples
  • Include necessary prerequisites and common pitfalls

Language requirement: the answer language must match the language of the user's question (answer in Chinese if asked in Chinese, answer in English if asked in English).

Step 5 (Option

常见问题

它是凭记忆回答的吗?

不是。它的答案基于实际阅读过的文档,因此不会随意猜测。

它用什么语言回答?

它会使用你提问时所用的语言回答。

如果本地文档缺失怎么办?

它会转而使用官方网站的文档。

详情

作者的原始描述

Answer user questions about QwenPaw installation and configuration: first locate and read local documentation, then distill the answer; if local information is insufficient, fall back to the official website documentation.

repo: agentscope-ai/QwenPaw

热度

GitHub 星标
37k
排名
#7578
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能