闲社服务运行正常AI智能体自动化平台
c

配置Telerik NuGet

技能标识:configure-telerik-nuget

Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

配置Telerik NuGet

技能名称: configure-telerik-nuget
详细描述:
使用这些辅助函数来管理Telerik NuGet源配置。

在 https://www.telerik.com/account/downloads/api-keys 获取新的API密钥。

函数: configure

设置一个全局用户环境变量用于存储Telerik API密钥,并更新/创建 nuget.config,使凭据使用环境变量而非硬编码的密钥。

powershell
function Configure-TelerikNuGetSource {
param(
[Parameter(Mandatory = $true)]
[string]$ApiKey,

[string]$ApiKeyEnvVarName = TELERIKNUGETAPI_KEY,
[string]$SourceName = TelerikNuGetServer,
[string]$SourceUrl = https://nuget.telerik.com/v3/index.json,
[string]$NuGetConfigPath = ./nuget.config
)

# 将API密钥存储为用户级环境变量,使其全局可用
[Environment]::SetEnvironmentVariable($ApiKeyEnvVarName, $ApiKey, User)
$env:$ApiKeyEnvVarName = $ApiKey

if (-not (Test-Path $NuGetConfigPath)) {
@





@ | Set-Content -Path $NuGetConfigPath -Encoding UTF8
}

[xml]$nugetConfig = Get-Content -Path $NuGetConfigPath

if (-not $nugetConfig.configuration.packageSources) {
$packageSourcesNode = $nugetConfig.CreateElement(packageSources)
$nugetConfig.configuration.AppendChild($packageSourcesNode) | Out-Null
}

if (-not $nugetConfig.configuration.packageSourceCredentials) {
$credentialsNode = $nugetConfig.CreateElement(packageSourceCredentials)
$nugetConfig.configuration.AppendChild($credentialsNode) | Out-Null
}

$existingSource = $nugetConfig.configuration.packageSources.add | Where-Object {
$_.key -eq $SourceName
}

if ($existingSource) {
$existingSource.value = $SourceUrl
} else {
$sourceNode = $nugetConfig.CreateElement(add)
$sourceNode.SetAttribute(key, $SourceName)
$sourceNode.SetAttribute(value, $SourceUrl)
$nugetConfig.configuration.packageSources.AppendChild($sourceNode) | Out-Null
}

$existingCredentialNode = $nugetConfig.configuration.packageSourceCredentials.$SourceName

if (-not $existingCredentialNode) {
$existingCredentialNode = $nugetConfig.CreateElement($SourceName)
$nugetConfig.configuration.packageSourceCredentials.AppendChild($existingCredentialNode) | Out-Null
}

$existingCredentialNode.RemoveAll()

$usernameNode = $nugetConfig.CreateElement(add)
$usernameNode.SetAttribute(key, Username)
$usernameNode.SetAttribute(value, api-key)
$existingCredentialNode.AppendChild($usernameNode) | Out-Null

$passwordNode = $nugetConfig.CreateElement(add)
$passwordNode.SetAttribute(key, ClearTextPassword)
$passwordNode.SetAttribute(value, %$ApiKeyEnvVarName%)
$existingCredentialNode.AppendChild($passwordNode) | Out-Null

$nugetConfig.Save((Resolve-Path $NuGetConfigPath))

Write-Host 已在 $NuGetConfigPath 中配置Telerik源 $SourceName。
Write-Host 已将API密钥保存在用户环境变量 $ApiKeyEnvVarName 中。
Write-Host 请重启终端/IDE,以便新进程能够读取更新后的环境变量。
}

示例用法:

powershell
Configure-TelerikNuGetSource -ApiKey

更新日志

1.1.0 - 2026-03-20

  • - 添加了技能包元数据:required_binaries、author、homepage 和 source。
  • 更新了配置函数,将API密钥保存为用户级环境变量。
  • 更新了 nuget.config 凭据处理方式,使用环境变量扩展而非硬编码的API密钥值。
  • 在文件头中添加了 version 字段。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 configure-telerik-nuget-1776122178 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 configure-telerik-nuget-1776122178 技能

通过命令行安装

skillhub install configure-telerik-nuget-1776122178

下载

⬇ 下载 configure-telerik-nuget v1.1.0(免费)

文件大小: 2.03 KB | 发布时间: 2026-4-14 11:44

v1.1.0 最新 2026-4-14 11:44
**configure-telerik-nuget 1.1.0**

- Added skill metadata: required binaries, author, homepage, and source.
- Store Telerik API key as a user-level environment variable for improved security.
- Updated nuget.config credentials to reference the environment variable instead of a hardcoded key.
- Added version field to the skill metadata frontmatter.
返回顶部