external-gitcode-ascend-swanlab-setup
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "external-gitcode-ascend-swanlab-setup" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b8b2546f3db26a5cfdee815378064eea78fc1c2ad6fdc91c4ca1479362e3eec4. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
SwanLab experiment tracking platform configuration and login management. Trigger scenarios: (1) configure SwanLab login credentials (2) install/login to SwanLab inside a container.
Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- swanlab_setup
- Testing
- Not tested
Browse files
Frontmatter
name: external-gitcode-ascend-swanlab-setup
description: SwanLab 实验追踪平台配置与登录管理。触发场景:(1) 配置 SwanLab 登录凭据 (2) 在容器内安装/登录 SwanLab
(3) 为指定容器配置 SwanLab (4) 检查 SwanLab 连接状态。支持多种配置获取方式:环境变量、配置文件、交互式输入。可被其他 skill 通过
source scripts/functions.sh 调用。
original-name: swanlab-setup
synced-from: https://gitcode.com/Ascend/agent-skills
synced-date: '2026-05-26'
synced-commit: 1f7666e7768a0ceb21bb1d40ce4b5179fcb6f1d6
license: UNKNOWNSwanLab 配置管理
快速使用
# source 共享函数库
source scripts/functions.sh
# 在当前环境配置 SwanLab
swanlab_setup
# 为指定容器配置
swanlab_setup_for_container my_container
# 检查连接状态
swanlab_check
配置获取优先级
环境变量 > 配置文件 > 交互式输入
| 方式 | 变量/路径 | 说明 |
|---|---|---|
| 环境变量 | SWANLAB_HOST, SWANLAB_API_KEY |
推荐方式 |
| 配置文件 | ~/.verl/swanlab.conf |
首次交互后自动保存 |
| 交互式输入 | 终端提示 | 仅在交互式终端下触发 |
API
脚本 scripts/functions.sh 提供 sourceable 函数:
| 函数 | 用途 |
|---|---|
swanlab_clear_proxy |
清除代理设置(SwanLab 连接需要) |
swanlab_load_config |
加载配置(环境变量 > 文件) |
swanlab_save_config HOST KEY |
保存配置到 ~/.verl/swanlab.conf |
swanlab_prompt_config |
交互式获取配置 |
swanlab_init |
按优先级初始化配置 |
swanlab_login |
在当前环境执行 pip install + swanlab login |
swanlab_setup |
完整流程:clear_proxy + init + login |
swanlab_setup_for_container NAME |
在指定容器内执行 swanlab_setup |
swanlab_check |
检查登录状态和网络连通性 |
其他 Skill 调用方式
# 1. 发现 skill 路径(推荐通过环境变量)
SWANLAB_SETUP_PATH="${SWANLAB_SETUP_PATH:-$(dirname "$(find ~/.claude/skills/swanlab-setup -name functions.sh 2>/dev/null || echo "")")}"
# 2. source 函数库
source "$SWANLAB_SETUP_PATH/scripts/functions.sh"
# 3. 调用
swanlab_setup
脚本结构
swanlab-setup/
├── SKILL.md # 本文档
└── scripts/
├── functions.sh # 共享函数库(被其他 skill source)
└── swanlab_check.sh # 独立检查脚本Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向 AI/ML 开发者群体,解决实验追踪工具的配置痛点
- 提供多种配置方式,适应不同使用场景
Highlights
- 触发场景描述完整,覆盖配置、安装、容器管理、状态检查
- 支持多种配置获取方式说明清晰
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构缺少专门的使用场景说明章节
Recommendation: 建议补充 When to Use 章节,详细说明适用场景和使用时机
Highlights
- 文档结构完整,包含快速使用、API、调用方式等必要章节
- 提供了完整的端到端示例代码
Areas to improve
-
license 字段不完整 Reported severity: Minor
frontmatter 中 license 字段为 UNKNOWN
Recommendation: 建议补充正确的 license 信息
Highlights
- 提供了配置优先级机制,确保可靠性
- 包含连接状态检查脚本,便于问题排查
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 52
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gitcode.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
swanlab_setup
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.