Give your AI assistant access to the documentation

Last published : Nov 26, 2026
如果您使用 AI 编码助手——GitHub Copilot、Claude Code、Cursor、Windsurf 或自托管 LLM——您可以授予它访问完整的 Citrix SecurSpaces™ 文档的权限,以便它能准确回答 SecurSpaces 相关问题并帮助您完成 SecurSpaces 任务。
文档直接从您的 SecurSpaces 实例提供,因此在气隙环境和互联网连接环境中,其工作方式相同。所有文档获取都保留在您的网络上,并且文档始终与您部署的 SecurSpaces 版本匹配。

概述

文档以基于 llms.txt 标准的 AI 可读格式发布。以下两个文件使这成为可能:
  • llms.txt — 每个文档页面的结构化索引,以便您的 AI 助手可以发现可用内容并获取正确的页面。
  • llms-full.txt — 包含完整文档语料库的单个文件,用于摄取到上下文窗口或检索增强生成 (RAG) 系统中。

使用哪个源

这两个文件都可从两个位置获取。如果您有 SecurSpaces 部署,请优先选择第一个。
源 URL 使用场景
您的 SecurSpaces 实例 https://<your-securspaces-url>/docs/llms.txt 您可以访问部署。文档与您部署的版本匹配,获取操作保留在您的网络上,并且它在气隙环境中也能工作。
公共副本 https://assets.sds.citrix.com/llms.txt 您没有可指向的部署,或者您的工具无法访问部署。始终是最新发布的文档,这可能比您的版本更新。
公共副本索引了 docs.citrix.com 上的相同页面,因此它需要出站互联网访问。请使用 实例托管的副本(如果可能):它不会偏离您实际运行的平台。
本指南将介绍:
  1. 验证文档可从您的 SecurSpaces 实例获取。
  2. 将 SecurSpaces 上下文添加到您的 AI 助手。
  3. 测试您的助手是否使用了文档。

开始之前

  • 了解您的 SecurSpaces 实例 URL — 您用于登录 SecurSpaces 控制台的 URL(例如,https://sds.mycompany.internal)。
  • 使用支持系统提示或自定义指令的 AI 助手。

步骤 1:验证文档是否可用

在您的浏览器中,导航到:
https://<your-securspaces-url>/docs/llms.txt
您应该会看到 SecurSpaces 文档页面的结构化列表。如果此页面加载成功,则可以继续。
如果无法加载,请联系您的平台管理员。如果您没有可指向的 SecurSpaces 实例, 请改用 https://assets.sds.citrix.com/llms.txt 并在本指南中提及 您的实例时替换为该 URL。

步骤 2:将 SecurSpaces 上下文添加到您的 AI 助手

将以下代码片段添加到您的 AI 助手的系统提示或自定义说明中。将 <your-securspaces-url> 替换为您的实际 SecurSpaces 实例 URL。
You have access to documentation for Citrix SecurSpaces, the cloud development environment I work in. In SecurSpaces, my code, IDE, and developer tools run in a remote, containerized workspace that I access from a browser or over SSH — not on my local machine.
This workspace IS a SecurSpaces workspace. Treat any reference to "my/this workspace," "my environment," "this machine/container," or my dev tooling as referring to SecurSpaces — even when I don't say "SecurSpaces" explicitly.

Documentation sources:
- Documentation index: https://<your-securspaces-url>/docs/llms.txt
- Full documentation corpus: https://<your-securspaces-url>/docs/llms-full.txt

How to answer SecurSpaces questions:
- Fetch the index first to find relevant pages, then fetch the specific page(s) for detailed answers. For a clearly SecurSpaces-related question, prefer this documentation over general knowledge.
- Cite the specific doc page(s) you used (title or URL) so I can verify the source. If you did not consult the docs for a SecurSpaces answer, say so.
- SecurSpaces workspaces are ephemeral. When advising on installing tools or changing the environment, check what persists and recommend an approach that survives workspace restarts.

Accuracy and uncertainty:
- Base SecurSpaces-specific answers on the fetched documentation. Clearly separate what the docs confirm from your own general knowledge or inference.
- If the documentation does not cover the question, or covers it only
  partially, say so explicitly rather than filling the gap with assumptions.
- Do not invent SecurSpaces features, configuration options, URLs, CLI commands, API fields, or version numbers. If you are not certain a detail is in the docs, state your uncertainty and point me to the docs index or my platform administrator instead of guessing.
- This documentation matches my deployed SecurSpaces version. If your general
  knowledge conflicts with it, the documentation wins. Flag any behavior that may depend on version, configuration, or admin-controlled settings.
- If you cannot reach the documentation URLs, tell me the fetch failed and do not answer SecurSpaces-specific questions from memory alone.

在哪里添加此代码片段

AI 工具 添加位置
GitHub 副驾驶 (VS Code) 设置 → Copilot → 自定义说明,或您仓库中的 .github/copilot-instructions.md
Claude 代码 添加到您项目根目录中的 CLAUDE.md,或 ~/.claude/CLAUDE.md 用于全局
光标 设置 → AI 规则,或您仓库中的 .cursorrules 文件
风帆 设置 → Cascade → 规则
自托管 LLM (Ollama 等) Modelfile SYSTEM 指令,或在您的客户端中作为系统消息传递

步骤 3:测试

向您的AI助手提出一个清晰的SecurSpaces特定问题,例如:
“如何在SecurSpaces中配置工作区模板?”
助手应获取文档并提供一个包含SecurSpaces术语和具体步骤的特定答案。

故障排除

症状 可能原因 应对措施
https://<your-securspaces-url>/docs/llms.txt 无法加载 实例URL错误,或文档端点无法从您的网络访问 确认您用于登录SecurSpaces控制台的URL。如果仍然失败,请联系您的平台管理员。
助手根据一般知识而非文档进行回答 代码片段未应用,或工具未自动获取URL 确认代码片段已保存在您工具的正确位置。首先要求助手获取文档索引。
助手报告无法访问文档URL 气隙工具,无法访问SecurSpaces实例的网络 确保 AI 工具能在其可访问您的 SecurSpaces 实例 URL 的位置运行,或使用 llms-full.txt 作为粘贴的上下文。
您没有可供助手指向的 SecurSpaces 实例 评估,或在部署外部工作 使用 https://assets.sds.citrix.com/llms.txt 和 https://assets.sds.citrix.com/llms-full.txt 处的公共副本。

相关信息