AgentSkillsCN

get-docs-root

获取 DOCS_ROOT 环境变量的值。每当需要确定当前环境的文档根目录,或在工作流中需要了解 DOCS_ROOT 的相关信息时,均可使用此技能。

SKILL.md
--- frontmatter
name: get-docs-root
description: Retrieve the value of the DOCS_ROOT environment variable. Use this skill whenever you need to determine the documentation root directory for the current environment, or when a workflow requires knowledge of DOCS_ROOT.

Get Docs Root

Overview

Usage

To retrieve the value of the DOCS_ROOT environment variable, execute the following script:

bash
python3 scripts/get_docs_root.py
  • If DOCS_ROOT is set, the script will print its value.
  • If DOCS_ROOT is unset or empty, the script will print an empty line.

Use this skill whenever you need to programmatically determine the documentation root directory for the current environment, or when a workflow requires knowledge of DOCS_ROOT.